PageSourceSearch

https://www.theinformedslp.com/_next/static/chunks/9443-435ecae9f8e77b08.js

js theinformedslp.com collected 2026-10-03 22:21:22 UTC 166,349 bytes, 9 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9b16296d-e96d-4101-9c1a-986dc5f06708",e._sentryDebugIdIdentifier="sentry-dbid-9b16296d-e96d-4101-9c1a-986dc5f06708")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9443],{17331:function(e){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(e){return"function"==typeof e}function isObject(e){return"object"==typeof e&&null!==e}e.exports=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.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},EventEmitter.prototype.emit=function(e){if(this._events||(this._events={}),"error"===e&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var t,r,n,i,a,o,s,c=Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(void 0===(r=this._events[e]))return!1;if(isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(isObject(r))for(a=0,i=Array.prototype.slice.call(arguments,1),n=(o=r.slice()).length;a<n;a++)o[a].apply(this,i);return!0},EventEmitter.prototype.addListener=function(e,t){var r,n;if(!isFunction(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,isFunction(t.listener)?t.listener:t),this._events[e]?isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,isObject(this._events[e])&&!this._events[e].warned&&(r=void 0===this._maxListeners?EventEmitter.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(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},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(e,t){if(!isFunction(t))throw TypeError("listener must be a function");var r=!1;function g(){this.removeListener(e,g),r||(r=!0,t.apply(this,arguments))}return g.listener=t,this.on(e,g),this},EventEmitter.prototype.removeListener=function(e,t){var r,n,i,a;if(!isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(r=this._events[e]).length,n=-1,r===t||isFunction(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(isObject(r)){for(a=i;a-- >0;
1)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},EventEmitter.prototype.removeAllListeners=function(e){var t,r;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(isFunction(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},EventEmitter.prototype.listeners=function(e){return this._events&&this._events[e]?isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},EventEmitter.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(isFunction(t))return 1;if(t)return t.length}return 0},EventEmitter.listenerCount=function(e,t){return e.listenerCount(t)}},8131:function(e,t,r){"use strict";var n=r(49374),i=r(67450),a=r(43650),o=r(17775),s=r(23076);function algoliasearchHelper(e,t,r,i){return new n(e,t,r,i)}algoliasearchHelper.version=r(24336),algoliasearchHelper.AlgoliaSearchHelper=n,algoliasearchHelper.SearchParameters=o,algoliasearchHelper.RecommendParameters=i,algoliasearchHelper.SearchResults=s,algoliasearchHelper.RecommendResults=a,e.exports=algoliasearchHelper},68078:function(e,t,r){"use strict";var n=r(17331);function DerivedHelper(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(14853)(DerivedHelper,n),DerivedHelper.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},DerivedHelper.prototype.getModifiedState=function(e){return this.fn(e)},DerivedHelper.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=DerivedHelper},67450:function(e){"use strict";function RecommendParameters(e){e=e||{},this.params=e.params||[]}RecommendParameters.prototype={constructor:RecommendParameters,addParams:function(e){var t=this.params.slice();return t.push(e),new RecommendParameters({params:t})},removeParams:function(e){return new RecommendParameters({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=RecommendParameters},43650:function(e){"use strict";function RecommendResults(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]})}RecommendResults.prototype={constructor:RecommendResults},e.exports=RecommendResults},82437:function(e,t,r){"use strict";var n=r(52344),i=r(90116),a=r(49803),o={addRefinement:function(e,t,r){if(o.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],s={};return s[t]=a,n(s,e)},removeRefinement:function(e,t,r){if(void 0===r)return o.clearRefinement(e,function(e,r){return t===r});var n=""+r;return o.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 o.isRefined(e,t,r)?o.removeRefinement(e,t,r):o.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,o=Object.keys(e).reduce(function(i,a){var o=e[a]||[],s=o.filter(function(e){return!t(e,a,r)});return s.length!==o.length&&(n=!0),i[a]=s,i},{});return n?o: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=o},17775:function(e,t,r){"use strict";var n=r(52344),i=r(7888),a=r(22686),o=r(60185),s=r(90116),c=r(49803),u=r(28023),l=r(46801),f=r(82437);function isEqualNumericRefinement(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return isEqualNumericRefinement(t[r],e)}):e===t}function SearchParameters(e){var t=e?SearchParameters._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invali
1d. 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!==SearchParameters.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function parseFiniteFloat(e){var t=parseFloat(e);return isFinite(t)?t:null}SearchParameters.PARAMETERS=Object.keys(new SearchParameters),SearchParameters._parseNumbers=function(e){if(e instanceof SearchParameters)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?parseFiniteFloat(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?parseFiniteFloat(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?parseFiniteFloat(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return o(e,t)},SearchParameters.make=function(e){var t=new SearchParameters(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},SearchParameters.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&&s(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."):s(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},SearchParameters.prototype={constructor:SearchParameters,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:f.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:f.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:f.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:f.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=o({},this.numericRefinements);return i[e]=o({},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&&isEqualNumericRefinement(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 s(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],o={};return Object.keys(a=a||{}
vendor: 8,292 bytes, line 1
1).forEach(function(r){var n=a[r]||[],s=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||s.push(t)}),s.length!==n.length&&(t=!0),o[r]=s}),n[i]=o,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 f.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:f.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 f.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:f.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 f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:f.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 f.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:f.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 f.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:f.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 f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:f.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:f.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:f.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:f.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)&&f.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&f.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=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var a=u(r),o=void 0!==i(this.numericRefinements[e][t],function(e){return isEqualNumericRefinement(e,a)});return n&&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;
1return 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=SearchParameters.validate(this,e);if(t)throw t;var r=this,n=SearchParameters._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=SearchParameters},10210:function(e,t,r){"use strict";e.exports=function(e){return function(t,r){var n=e.hierarchicalFacets[r],u=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",l=e._getHierarchicalFacetSeparator(n),f=e._getHierarchicalRootPath(n),h=e._getHierarchicalShowParentLevel(n),d=a(e._getHierarchicalFacetSortBy(n)),p=t.every(function(e){return e.exhaustive}),m=t;return f&&(m=t.slice(f.split(l).length)),m.reduce(function(e,t,r){var n=e;if(r>0){var a=0;for(n=e;a<r;)n=i(n&&Array.isArray(n.data)?n.data:[],function(e){return e.isRefined}),a++}if(n){var p=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r;return t=e[0],r=n.path||f,(!f||0===t.indexOf(f)&&f!==t)&&(!f&&-1===t.indexOf(l)||f&&t.split(l).length-f.split(l).length==1||-1===t.indexOf(l)&&-1===u.indexOf(l)||0===u.indexOf(t)||0===t.indexOf(r+l)&&(h||0===t.indexOf(u)))});n.data=o(p.map(function(e){var r,n,i,a,o=e[0];return r=e[1],n=c(u),i=t.exhaustive,{name:(a=o.split(l))[a.length-1].trim(),path:o,escapedValue:s(o),count:r,isRefined:n===o||0===n.indexOf(o+l),exhaustive:i,data:null}}),d[0],d[1])}return e},{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:p,data:null})}};var n=r(94039),i=r(7888),a=r(82293),o=r(42148),s=n.escapeFacetValue,c=n.unescapeFacetValue},23076:function(e,t,r){"use strict";var n=r(74587),i=r(52344),a=r(94039),o=r(7888),s=r(69725),c=r(82293),u=r(23034),l=r(42148),f=a.escapeFacetValue,h=a.unescapeFacetValue,d=r(10210);function getIndices(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function assignFacetStats(e,t,r){t&&t[r]&&(e.stats=t[r])}function SearchResults(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 f=e.getRefinedDisjunctiveFacets(),p=getIndices(e.facets),m=getIndices(e.disjunctiveFacets),y=1,v=a.facets||{};Object.keys(v).forEach(function(t){var r=v[t],n=o(e.hierarchicalFacets,function(e){return(e.attributes||[]).indexOf(t)>-1});if(n){var i=n.attributes.indexOf(t),u=s(e.hierarchicalFacets,function(e){return e.name===n.name});c.hierarchicalFacets[u][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,f=-1!==e.disjunctiveFacets.indexOf(t),h=-1!==e.facets.indexOf(t);f&&(l=m[t],c.disjunctiveFacets[l]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},assignFacetStats(c.disjunctiveFacets[l],a.facets_stats,t)),h&&(l=p[t],c.facets[l]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},assignFacetStats(c.facets[l],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),f.forEach(function(r){var n=t[y],o=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);
1Object.keys(o).forEach(function(t){var r,f=o[t];if(l){r=s(e.hierarchicalFacets,function(e){return e.name===l.name});var d=s(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,f):i(f,c.hierarchicalFacets[r][d].data)}else{r=m[t];var p=a.facets&&a.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:u(p,f),exhaustive:n.exhaustiveFacetsCount},assignFacetStats(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(h(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),o=e.getHierarchicalRefinement(r);0===o.length||o[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=s(e.hierarchicalFacets,function(e){return e.name===n.name}),f=s(c.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==f){var h={};if(o.length>0&&!c.persistHierarchicalRootCount){var d=o[0].split(a)[0];h[d]=c.hierarchicalFacets[l][f].data[d]}c.hierarchicalFacets[l][f].data=i(h,u,c.hierarchicalFacets[l][f].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=p[t];c.facets[n]={name:t,data:v[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 getFacetStatsIfAvailable(e,t){var r=o(e,function(e){return e.name===t});return r&&r.stats}function getRefinement(e,t,r,n,i){var a=o(i,function(e){return e.name===r}),s=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:s,exhaustive:a&&a.exhaustive||!1}}SearchResults.prototype.getFacetByName=function(e){function predicate(t){return t.name===e}return o(this.facets,predicate)||o(this.disjunctiveFacets,predicate)||o(this.hierarchicalFacets,predicate)},SearchResults.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],SearchResults.prototype.getFacetValues=function(e,t){var r,n=function(e,t){function predicate(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=o(e.facets,predicate);return r?Object.keys(r.data).map(function(n){var i=f(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}}):[]}if(e._state.isDisjunctiveFacet(t)){var n=o(e.disjunctiveFacets,predicate);return n?Object.keys(n.data).map(function(r){var i=f(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,i)}}):[]}if(e._state.isHierarchicalFacet(t)){var i=o(e.hierarchicalFacets,predicate);if(!i)return i;var a=e._state.getHierarchicalFacetByName(t),s=e._state._getHierarchicalFacetSeparator(a),c=h(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(a.rootPath)&&(c=c.replace(a.rootPath+s,""));var u=c.split(s);return u.unshift(t),function setIsRefined(e,t,r){e.isRefined=e.name===(t[r]&&t[r].trim()),e.data&&e.data.forEach(function(e){setIsRefined(e,t,r+1)})}(i,u,0),i}}(this,e);if(n){var a=i(t,{sortBy:SearchResults.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),s=this;return r=Array.isArray(n)?[e]:s._state.getHierarchicalFacetByName(n.name).attributes,function recSort(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||0===t.data.length)return t;var a=t.data.map(function(t){return recSort(e,t,r,n+1)});return i({data:e(a,r[n])},t)}(function(e,t){var r,n,i,o,u,f,h,d=s.renderingContent&&s.renderingContent.facetOrdering&&s.renderingContent.facetOrdering.values&&s.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&d)return n=[],i=[],o=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=o.indexOf(t)>-1;r||void 0===u[t]?r||i.push(e):n[u[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(f=d.sortRemainingBy)?n:(r="alpha"===f?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(l(i,r[0],r[1])));if(Array.isArray(a.sortBy)){var p=c(a.sortBy,SearchResults.DEFAULT_SORT),m=l(e,p[0],p[1]),y=d&&d.hide?d.hide:[];if(y.length>0){var v=[];return m.forEach(function(e){var t=e.path||e.name;-1===y.indexOf(t)&&v.push(e)}),v}return m}if("function"==typeof a.sortBy)return h=a.sortBy,e.sort(h);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)}},SearchResults.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?getFacetStatsIfAvailable(this.facets,e):this._state.isDisjunctiveFacet(e)?getFacetStatsIfAvailable(this.disjunctiveFacets,e):void 0},SearchResults.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(getRefinement(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(getRefinement(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(getRefinement(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,s,c,u,l,f,h,d;r.push((a=t.hierarchicalFacets,s=e.getHierarchicalFacetByName(n),c=e._getHierarchicalFacetSeparator(s),u=i.split(c),l=o(a,function(e){return e.name===n}),h=(f=u.reduce(function(e,t){var r=e&&o(e.data,function(e){return e.name===t});return void 0!==r?r:e},l))&&f.count||0,d=f&&f.exhaustive||!1,{type:"hierarchical",attributeName:n,name:f&&f.path||"",count:h,exhaustive:d}))})}),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=SearchResults},49374:function(e,t,r){"use strict";var n=r(17331),i=r(68078),a=r(94039).escapeFacetValue,o=r(14853),s=r(60185),c=r(90116),u=r(49803),l=r(67450),f=r(43650),h=r(96394),d=r(17775),p=r(23076),m=r(97878),y=r(24336);function AlgoliaSearchHelper(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+y+")"),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 setCurrentPage(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function getCurrentPage(){return this.state.page}o(AlgoliaSearchHelper,n),AlgoliaSearchHelper.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},AlgoliaSearchHelper.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},AlgoliaSearchHelper.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},AlgoliaSearchHelper.prototype.recommend=function(){return this._recommend(),this},AlgoliaSearchHelper.prototype.getQuery=function(){var e=this.state;return h._getHitsSearchParams(e)},AlgoliaSearchHelper.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=h._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t){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)});return}return 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})},AlgoliaSearchHelper.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=s({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(h._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 o=this.client.initIndex(n.index);if("function"!=typeof o.findAnswers)throw Error(a);return o.findAnswers(n.query,e.queryLanguages,i)},AlgoliaSearchHelper.prototype.searchForFacetValues=function(e,t,r,n){var i,o="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,s="function"==typeof this.client.initIndex;if(!o&&!s&&"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=h.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var f=this;o?i=this.client.searchForFacetValues([{indexName:c.index,params:l}]):s?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: 13,008 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 f._currentNbQueries--,0===f._currentNbQueries&&f.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 f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e})},AlgoliaSearchHelper.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,o=this.state.setQueryParameters(n||{}),s=o.isDisjunctiveFacet(e);this._currentNbQueries++;var c=this;return i=this.client.searchForFacetValues({compositionID:o.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:h._getCompositionHitsSearchParams(o)}}}),this.emit("searchForFacetValues",{state:o,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=s?o.isDisjunctiveFacetRefined(e,t.escapedValue):o.isFacetRefined(e,t.escapedValue)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},AlgoliaSearchHelper.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},AlgoliaSearchHelper.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},AlgoliaSearchHelper.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},AlgoliaSearchHelper.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},AlgoliaSearchHelper.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},AlgoliaSearchHelper.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},AlgoliaSearchHelper.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},AlgoliaSearchHelper.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},AlgoliaSearchHelper.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},AlgoliaSearchHelper.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},AlgoliaSearchHelper.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},AlgoliaSearchHelper.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},AlgoliaSearchHelper.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},AlgoliaSearchHelper.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},AlgoliaSearchHelper.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},AlgoliaSearchHelper.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},AlgoliaSearchHelper.prototype.setCurrentPage=setCurrentPage,AlgoliaSearchHelper.prototype.setPage=setCurrentPage,AlgoliaSearchHelper.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.setState=function(e){return this._change({state:d.make(e),isPageReset:!1}),this},AlgoliaSearchHelper.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new d(e),this},AlgoliaSearchHelper.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))},AlgoliaSearchHelper.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},AlgoliaSearchHelper.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},AlgoliaSearchHelper.prototype.hasTag=function(e){return this.state.isTagRefined(e)},AlgoliaSearchHelper.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},AlgoliaSearchHelper.prototype.getIndex=function(){return this.state.index},AlgoliaSearchHelper.prototype.getCurrentPage=getCurrentPage,AlgoliaSearchHelper.prototype.getPage=getCurrentPage,AlgoliaSearchHelper.prototype.getTags=function(){return this.state.tagRefinements},AlgoliaSearchHelper.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},AlgoliaSearchHelper.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},AlgoliaSearchHelper.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},AlgoliaSearchHelper.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=h._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?h._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),o=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,o));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(e){this.emit("error",{error:e})}},AlgoliaSearchHelper.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=h._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})}},AlgoliaSearchHelper.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,o=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var o=t.getModifiedRecommendState(new l);return n.push({state:o,index:r,helper:t}),i=Array.prototype.concat.apply(i,o.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:o,results:t.lastRecommendResults}}),o._buildQueries(r,a)}),s=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),o);if(0!==s.length){if(s.length>0&&void 0===this.client.getRecommendations){console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");return}var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(s).then(this._dispatchRecommendResponse.bind(this,c,n,i)).catch(this._dispatchRecommendError.bind(this,c))}catch(e){this.emit("error",{error:e})}}},AlgoliaSearchHelper.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,o=e.helper,s=void 0!==r?i.splice(0,r):i;
1if(!t.index){o.emit("result",{results:null,state:t});return}if(s.length>0&&s[0].feedID){var c=s.map(function(e){var r=new p(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});o.lastResults=new p(t,[s[0]],n._searchResultsOptions),o.lastResults.feeds=c,void 0!==a&&(o.lastResults._rawContent=a)}else o.lastResults=new p(t,s,n._searchResultsOptions),void 0!==a&&(o.lastResults._rawContent=a);o.emit("result",{results:o.lastResults,state:t})})}},AlgoliaSearchHelper.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],o=n.results[t[0]];if(1===t.length){i[e]=o;return}i[e]=Object.assign({},o,{hits:m(r,t.map(function(e){return n.results[e].hits}))})});var o={};r.forEach(function(e){o[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;if(!e.index){r.emit("recommend:result",{results:null,state:t});return}r.lastRecommendResults=new f(t,o),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})})}},AlgoliaSearchHelper.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"))},AlgoliaSearchHelper.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},AlgoliaSearchHelper.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},AlgoliaSearchHelper.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},AlgoliaSearchHelper.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}))},AlgoliaSearchHelper.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}}))},AlgoliaSearchHelper.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},AlgoliaSearchHelper.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+y+")"),this.client=e),this},AlgoliaSearchHelper.prototype.getClient=function(){return this.client},AlgoliaSearchHelper.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},AlgoliaSearchHelper.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},AlgoliaSearchHelper.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=AlgoliaSearchHelper},74587:function(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},52344:function(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){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},94039:function(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(/^\\-/,"-")}}},7888:function(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]}}},69725:function(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}},7948:function(e){e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},82293:function(e,t,r){"use strict";var n=r(7888);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},[[],[]])}},14853:function(e){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},22686:function(e){"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},60185:function(e){"use strict";function isObjectOrArrayOrFunction(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){isObjectOrArrayOrFunction(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var n=arguments[t];isObjectOrArrayOrFunction(n)&&function _merge(e,t){if(e===t)return e;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&"__proto__"!==r&&"constructor"!==r){var n=t[r],i=e[r];(void 0===i||void 0!==n)&&(isObjectOrArrayOrFunction(i)&&isObjectOrArrayOrFunction(n)?e[r]=_merge(i,n):e[r]="object"==typeof n&&null!==n?_merge(Array.isArray(n)?[]:{},n):n)}return e}(e,n)}return e}},23034:function(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){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},{})}},90116:function(e){"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},49803:function(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}},42148:function(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})}},28023:function(e){"use strict";e.exports=function valToNumber(e){if("number"==typeof e)return e;if("string"==typeof e)return parseFloat(e);if(Array.isArray(e))return e.map(valToNumber);throw Error("The value should be a number, a parsable string or an array of those.")}},96394:function(e,t,r){"use strict";var n=r(60185);function sortObject(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var i={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:i._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var a=t.getHierarchicalFacetByName(n),o=t.getHierarchicalRefinement(n),s=t._getHierarchicalFacetSeparator(a);if(o.length>0&&o[0].split(s).length>1){var c=o[0].split(s).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:a.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(s)})},[]);c.forEach(function(n,o){var s=i._getDisjunctiveFacetSearchParams(t,n.attribute,0===o);function hasHierarchicalFacetFilter(e){return a.attributes.some(function(t){return t===e.split(":")[0]})}var u=(s.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!hasHierarchicalFacetFilter(e)});r.length>0&&e.push(r)}return"string"!=typeof t||hasHierarchicalFacetFilter(t)||e.push(t),e},[]),l=c[o-1];o>0?s.facetFilters=u.concat(l.attribute+":"+l.value):u.length>0?s.facetFilters=u:delete s.facetFilters,r.push({indexName:e,params:s})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:i._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)).sort(),r=i._getFacetFilters(e),a=i._getNumericFilters(e),o=i._getTagFilters(e),s={};return t.length>0&&(s.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(s.tagFilters=o),r.length>0&&(s.facetFilters=r),a.length>0&&(s.numericFilters=a),sortObject(n({},e.getQueryParams(),s))},_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(i._getHitsHierarchicalFacetsAttributes(e)).sort(),r=i._getFacetFilters(e),a=i._getNumericFilters(e),o=i._getTagFilters(e),s={};t.length>0&&(s.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(s.tagFilters=o),r.length>0&&(s.facetFilters=r),a.length>0&&(s.numericFilters=a);var c=e.getQueryParams();return delete c.highlightPreTag,delete c.highlightPostTag,delete c.index,sortObject(n({},c,s))},_getDisjunctiveFacetSearchParams:function(e,t,r){var a=i._getFacetFilters(e,t,r),o=i._getNumericFilters(e,t),s=i._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};s.length>0&&(c.tagFilters=s);var u=e.getHierarchicalFacetByName(t);return u?c.facets=i._getDisjunctiveHierarchicalFacetAttribute(e,u,r):c.facets=t,o.length>0&&(c.numericFilters=o),a.length>0&&(c.facetFilters=a),sortObject(n({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];
1return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.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 o=e.disjunctiveFacetsRefinements||{};Object.keys(o).sort().forEach(function(e){var r=o[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).sort().forEach(function(i){var a,o,c=(s[i]||[])[0];if(void 0!==c){var u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),f=e._getHierarchicalRootPath(u);if(t===i){if(-1===c.indexOf(l)||!f&&!0===r||f&&f.split(l).length===c.split(l).length)return;f?(o=f.split(l).length-1,c=f):(o=c.split(l).length-2,c=c.slice(0,c.lastIndexOf(l))),a=u.attributes[o]}else o=c.split(l).length-1,a=u.attributes[o];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,o=r.attributes.slice(0,a+1);return t.concat(o)},[])},_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 o=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,r,a){var o=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,s={facetQuery:t,facetName:e};return"number"==typeof r&&(s.maxFacetHits=r),sortObject(n({},i._getHitsSearchParams(o),s))}};e.exports=i},46801:function(e){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},97878:function(e,t,r){"use strict";var n=r(7888),i=r(7948);e.exports=function(e,t){var r,a,o={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(o[t.objectID]?o[t.objectID]={indexSum:o[t.objectID].indexSum+r,count:o[t.objectID].count+1}:o[t.objectID]={indexSum:r,count:1})})}),(r=t.length,a=[],Object.keys(o).forEach(function(e){o[e].count<2&&(o[e].indexSum+=100),a.push({objectID:e,avgOfIndices:o[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},[])}},24336:function(e){"use strict";e.exports="3.29.2"},25730:function(e,t,r){"use strict";var n=r(58612),i=r(1768),a=r(68928),o=r(59770);e.exports=o||n.call(a,i)},1768:function(e){"use strict";e.exports=Function.prototype.apply},68928:function(e){"use strict";e.exports=Function.prototype.call},40319:function(e,t,r){"use strict";var n=r(58612),i=r(14453),a=r(68928),o=r(25730);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return o(n,a,e)}},59770:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},17379:function(e,t,r){"use strict";var n=r(40210),i=r(40319),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}},96504:function(e,t,r){"use strict";var n,i=r(40319),a=r(27296);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!n&&a&&a(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?i([o.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},24429:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},53981:function(e){"use strict";e.exports=EvalError},81648:function(e){"use strict";e.exports=Error},24726:function(e){"use strict";e.exports=RangeError},26712:function(e){"use strict";e.exports=ReferenceError},33464:function(e){"use strict";e.exports=SyntaxError},14453:function(e){"use strict";e.exports=TypeError},43915:function(e){"use strict";e.exports=URIError},68892:function(e){"use strict";e.exports=Object},17648:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,concatty=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},slicy=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},joiny=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 n,i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw TypeError("Function.prototype.bind called on incompatible "+i);
1for(var a=slicy(arguments,1),o=r(0,i.length-a.length),s=[],c=0;c<o;c++)s[c]="$"+c;if(n=Function("binder","return function ("+joiny(s,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var t=i.apply(this,concatty(a,arguments));return Object(t)===t?t:this}return i.apply(e,concatty(a,arguments))}),i.prototype){var Empty=function(){};Empty.prototype=i.prototype,n.prototype=new Empty,Empty.prototype=null}return n}},58612:function(e,t,r){"use strict";var n=r(17648);e.exports=Function.prototype.bind||n},40210:function(e,t,r){"use strict";var n,i=r(68892),a=r(81648),o=r(53981),s=r(24726),c=r(26712),u=r(33464),l=r(14453),f=r(43915),h=r(59738),d=r(76329),p=r(52264),m=r(55730),y=r(20707),v=r(63862),R=r(29550),_=Function,getEvalledConstructor=function(e){try{return _('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(27296),b=r(24429),throwTypeError=function(){throw new l},x=S?function(){try{return arguments.callee,throwTypeError}catch(e){try{return S(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,w=r(41405)(),F=r(81618),P=r(68899),O=r(10443),j=r(1768),A=r(68928),E={},I="undefined"!=typeof Uint8Array&&F?F(Uint8Array):n,H={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&F?F([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":E,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":w&&F?F(F([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&w&&F?F(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&w&&F?F(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&F?F(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":x,"%TypedArray%":I,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":j,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":P,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":R,"%Reflect.getPrototypeOf%":O};if(F)try{null.error}catch(e){var T=F(F(e));H["%Error.prototype%"]=T}var doEval=function doEval(e){var t;if("%AsyncFunction%"===e)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var r=doEval("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=doEval("%AsyncGenerator%");n&&F&&(t=F(n.prototype))}return H[e]=t,t},k={__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"]},C=r(58612),D=r(48824),N=C.call(A,Array.prototype.concat),L=C.call(j,Array.prototype.splice),W=C.call(A,String.prototype.replace),U=C.call(A,String.prototype.slice),Q=C.call(A,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,stringToPath=function(e){var t=U(e,0,1),r=U(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 W(e,M,function(e,t,r,i){n[n.length]=r?W(i,B,"$1"):t||e}),n},getBaseIntrinsic=function(e,t){var r,n=e;if(D(k,n)&&(n="%"+(r=k[n])[0]+"%"),D(H,n)){var i=H[n];if(i===E&&(i=doEval(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===Q(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=stringToPath(e),n=r.length>0?r[0]:"",i=getBaseIntrinsic("%"+n+"%",t),a=i.name,o=i.value,s=!1,c=i.alias;c&&(n=c[0],L(r,N([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],p=U(d,0,1),m=U(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&&h||(s=!0),n+="."+d,D(H,a="%"+n+"%"))o=H[a];
vendor: 4,321 bytes, line 1
1else if(null!=o){if(!(d in o)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var y=S(o,d);o=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:o[d]}else h=D(o,d),o=o[d];h&&!s&&(H[a]=o)}}return o}},68899:function(e,t,r){"use strict";var n=r(68892);e.exports=n.getPrototypeOf||null},10443:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},81618:function(e,t,r){"use strict";var n=r(10443),i=r(68899),a=r(96504);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},40690:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},27296:function(e,t,r){"use strict";var n=r(40690);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},41405:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(55419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},55419:function(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}},48824:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=r(58612);e.exports=a.call(n,i)},59738:function(e){"use strict";e.exports=Math.abs},76329:function(e){"use strict";e.exports=Math.floor},43678:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},52264:function(e){"use strict";e.exports=Math.max},55730:function(e){"use strict";e.exports=Math.min},20707:function(e){"use strict";e.exports=Math.pow},63862:function(e){"use strict";e.exports=Math.round},29550:function(e,t,r){"use strict";var n=r(43678);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},70631:function(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,o=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="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,y=Function.prototype.toString,v=String.prototype.match,R=String.prototype.slice,_=String.prototype.replace,S=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,w=Array.prototype.concat,F=Array.prototype.join,P=Array.prototype.slice,O=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,H="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I?"object":"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-O(-e):O(e);
1if(n!==e){var i=String(n),a=R.call(t,i.length+1);return _.call(i,r,"$&_")+"."+_.call(_.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,r,"$&_")}var C=r(24654),D=C.custom,N=isSymbol(D)?D:null,L={__proto__:null,double:'"',single:"'"},W={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function wrapQuotes(e,t,r){var n=L[r.quoteStyle||t];return n+e+n}function canTrustToString(e){return!H||!("object"==typeof e&&(H in e||void 0!==e[H]))}function isArray(e){return"[object Array]"===toStr(e)&&canTrustToString(e)}function isRegExp(e){return"[object RegExp]"===toStr(e)&&canTrustToString(e)}function isSymbol(e){if(I)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 inspect_(e,t,n,i){var s=t||{};if(has(s,"quoteStyle")&&!has(L,s.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(has(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!has(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(s,"indent")&&null!==s.indent&&"	"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function inspectString(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength;return inspectString(R.call(e,0,t.maxStringLength),t)+"... "+r+" more character"+(r>1?"s":"")}var n=W[t.quoteStyle||"single"];return n.lastIndex=0,wrapQuotes(_.call(_.call(e,n,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",t)}(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var S=String(e);return m?addNumericSeparator(e,S):S}if("bigint"==typeof e){var x=String(e)+"n";return m?addNumericSeparator(e,x):x}var O=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=O&&O>0&&"object"==typeof e)return isArray(e)?"[Array]":"[Object]";var A=function(e,t){var r;if("	"===e.indent)r="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=F.call(Array(e.indent+1)," ")}return{base:r,prev:F.call(Array(t+1),r)}}(s,n);if(void 0===i)i=[];else if(indexOf(i,e)>=0)return"[Circular]";function inspect(e,t,r){if(t&&(i=P.call(i)).push(t),r){var a={depth:s.depth};return has(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),inspect_(e,a,n+1,i)}return inspect_(e,s,n+1,i)}if("function"==typeof e&&!isRegExp(e)){var D=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(e),U=arrObjKeys(e,inspect);return"[Function"+(D?": "+D:" (anonymous)")+"]"+(U.length>0?" { "+F.call(U,", ")+" }":"")}if(isSymbol(e)){var Q=I?_.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(e);return"object"!=typeof e||I?Q:markBoxed(Q)}if(e&&"object"==typeof e&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)){for(var M,B="<"+b.call(String(e.nodeName)),$=e.attributes||[],q=0;q<$.length;q++)B+=" "+$[q].name+"="+wrapQuotes((M=$[q].value,_.call(String(M),/"/g,"&quot;")),"double",s);return B+=">",e.childNodes&&e.childNodes.length&&(B+="..."),B+="</"+b.call(String(e.nodeName))+">"}if(isArray(e)){if(0===e.length)return"[]";var V=arrObjKeys(e,inspect);return A&&!function(e){for(var t=0;t<e.length;t++)if(indexOf(e[t],"\n")>=0)return!1;return!0}(V)?"["+indentedJoin(V,A)+"]":"[ "+F.call(V,", ")+" ]"}if("[object Error]"===toStr(e)&&canTrustToString(e)){var J=arrObjKeys(e,inspect);return"cause"in Error.prototype||!("cause"in e)||T.call(e,"cause")?0===J.length?"["+String(e)+"]":"{ ["+String(e)+"] "+F.call(J,", ")+" }":"{ ["+String(e)+"] "+F.call(w.call("[cause]: "+inspect(e.cause),J),", ")+" }"}if("object"==typeof e&&c){if(N&&"function"==typeof e[N]&&C)return C(e,{depth:O-n});if("symbol"!==c&&"function"==typeof e.inspect)return e.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}(e)){var K=[];return o&&o.call(e,function(t,r){K.push(inspect(r,e,!0)+" => "+inspect(t,e))}),collectionOf("Map",a.call(e),K,A)}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}(e)){var z=[];return l&&l.call(e,function(t){z.push(inspect(t,e))}),collectionOf("Set",u.call(e),z,A)}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 WeakMap}catch(e){}return!1}(e))return weakCollectionOf("WeakMap");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 WeakSet}catch(e){}return!1}(e))return weakCollectionOf("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(e))return weakCollectionOf("WeakRef");if("[object Number]"===toStr(e)&&canTrustToString(e))return markBoxed(inspect(Number(e)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(e))return markBoxed(inspect(j.call(e)));if("[object Boolean]"===toStr(e)&&canTrustToString(e))return markBoxed(p.call(e));if("[object String]"===toStr(e)&&canTrustToString(e))return markBoxed(inspect(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!("[object Date]"===toStr(e)&&canTrustToString(e))&&!isRegExp(e)){var G=arrObjKeys(e,inspect),Z=k?k(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",Y=!Z&&H&&Object(e)===e&&H in e?R.call(toStr(e),8,-1):X?"Object":"",ee=(Z||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Y||X?"["+F.call(w.call([],Y||[],X||[]),": ")+"] ":"");return 0===G.length?ee+"{}":A?ee+"{"+indentedJoin(G,A)+"}":ee+"{ "+F.call(G,", ")+" }"}return String(e)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return U.call(e,t)}function toStr(e){return m.call(e)}function indexOf(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 lowbyte(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":"")+S.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,r,n){return e+" ("+t+") {"+(n?indentedJoin(r,n):F.call(r,", "))+"}"}function indentedJoin(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+F.call(e,","+r)+"\n"+t.prev}function arrObjKeys(e,t){var r,n=isArray(e),i=[];if(n){i.length=e.length;for(var a=0;a<e.length;a++)i[a]=has(e,a)?t(e[a],e):""}var o="function"==typeof A?A(e):[];if(I){r={};for(var s=0;s<o.length;s++)r["$"+o[s]]=o[s]}for(var c in e)has(e,c)&&(!n||String(Number(c))!==c||!(c<e.length))&&(I&&r["$"+c]instanceof Symbol||(x.call(/[^\w$]/,c)?i.push(t(c,e)+": "+t(e[c],e)):i.push(c+": "+t(e[c],e))));if("function"==typeof A)for(var u=0;u<o.length;u++)T.call(e,o[u])&&i.push("["+t(o[u])+"]: "+t(e[o[u]],e));return i}},55798:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},80129:function(e,t,r){"use strict";var n=r(58261),i=r(55235),a=r(55798);e.exports={formats:a,parse:i,stringify:n}},55235:function(e,t,r){"use strict";var n=r(12769),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={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,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},parseArrayValue=function(e,t,r,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(n&&t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(",");a>-1;){if((i+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");a=e.indexOf(",",a+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},parseValues=function(e,t){var r={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=s.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==c?c+1:c);if(t.throwOnLimitExceeded&&void 0!==c&&u.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var l=-1,f=t.charset;if(t.charsetSentinel)for(h=0;h<u.length;++h)0===u[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[h]?f="utf-8":"utf8=%26%2310003%3B"===u[h]&&(f="iso-8859-1"),l=h,h=u.length);for(h=0;h<u.length;++h)if(h!==l){var h,d,p,m=u[h],y=m.indexOf("]="),v=-1===y?m.indexOf("="):y+1;if(-1===v?(d=t.decoder(m,o.decoder,f,"key"),p=t.strictNullHandling?null:""):null!==(d=t.decoder(m.slice(0,v),o.decoder,f,"key"))&&(p=n.maybeMap(parseArrayValue(m.slice(v+1),t,a(r[d])?r[d].length:0,-1===m.indexOf("[]=")),function(e){return t.decoder(e,o.decoder,f,"value")})),p&&t.interpretNumericEntities&&"iso-8859-1"===f&&(p=String(p).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>
1-1&&(p=a(p)?[p]:p),t.comma&&a(p)&&p.length>t.arrayLimit&&(p=n.combine([],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==d){var R=i.call(r,d);R&&("combine"===t.duplicates||m.indexOf("[]=")>-1)?r[d]=n.combine(r[d],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):R&&"last"!==t.duplicates||(r[d]=p)}}return r},parseObject=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var s=i?t:parseArrayValue(t,r,a),c=e.length-1;c>=0;--c){var u,l=e[c];if("[]"===l&&r.parseArrays)u=n.isOverflow(s)?s:r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,h=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(h,10),p=!isNaN(d)&&l!==h&&String(d)===h&&d>=0&&r.parseArrays;if(r.parseArrays||""!==h){if(p&&d<r.arrayLimit)(u=[])[d]=s;else if(p&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else p?(u[d]=s,n.markOverflow(u,d)):"__proto__"!==h&&(u[h]=s)}else u={0:s}}s=u}return s},splitKeyIntoSegments=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=[],a=r.indexOf("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&i.call(Object.prototype,o)&&!t.allowPrototypes)return;n[n.length]=o}for(var s=r.length,c=a,u=0;c>=0&&u<t.depth;){for(var l=1,f=c+1,h=-1;f<s&&h<0;){var d=r.charCodeAt(f);91===d?l+=1:93===d&&0==(l-=1)&&(h=f),f+=1}if(h<0)return n[n.length]="["+r.slice(c)+"]",n;var p=r.slice(c,h+1),m=p.slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,m)&&!t.allowPrototypes)return;n[n.length]=p,u+=1,c=r.indexOf("[",h+1)}if(c>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+r.slice(c)+"]"}return n},parseKeys=function(e,t,r,n){if(e){var i=splitKeyIntoSegments(e,r);if(i)return parseObject(i,t,r,n)}},normalizeParseOptions=function(e){if(!e)return o;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?o.charset:e.charset,r=void 0===e.duplicates?o.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||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:o.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=normalizeParseOptions(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?parseValues(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],u=parseKeys(c,i[c],r,"string"==typeof e);
1a=n.merge(a,u,r)}return!0===r.allowSparse?a:n.compact(a)}},58261:function(e,t,r){"use strict";var n=r(37478),i=r(12769),a=r(55798),o=Object.prototype.hasOwnProperty,s={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,pushToArray=function(e,t){u.apply(e,c(t)?t:[t])},l=Date.prototype.toISOString,f=a.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"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 l.call(e)},skipNulls:!1,strictNullHandling:!1},d={},stringify=function stringify(e,t,r,a,o,s,u,l,f,p,m,y,v,R,_,S,b,x){for(var w,F,P=e,O=x,j=0,A=!1;void 0!==(O=O.get(d))&&!A;){var E=O.get(e);if(j+=1,void 0!==E){if(E===j)throw RangeError("Cyclic object value");A=!0}void 0===O.get(d)&&(j=0)}if("function"==typeof p?P=p(t,P):P instanceof Date?P=v(P):"comma"===r&&c(P)&&(P=i.maybeMap(P,function(e){return e instanceof Date?v(e):e})),null===P){if(s)return _(f&&!S?f(t,h.encoder,b,"key",R):t);P=""}if("string"==typeof(w=P)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||i.isBuffer(P))return f?[_(S?t:f(t,h.encoder,b,"key",R))+"="+_(f(P,h.encoder,b,"value",R))]:[_(t)+"="+_(String(P))];var I=[];if(void 0===P)return I;if("comma"===r&&c(P))S&&f&&(P=i.maybeMap(P,function(e){return null==e?e:f(e)})),F=[{value:P.length>0?P.join(",")||null:void 0}];else if(c(p))F=p;else{var H=Object.keys(P);F=m?H.sort(m):H}var T=l?String(t).replace(/\./g,"%2E"):String(t),k=a&&c(P)&&1===P.length?T+"[]":T;if(o&&c(P)&&0===P.length)return k+"[]";for(var C=0;C<F.length;++C){var D=F[C],N="object"==typeof D&&D&&void 0!==D.value?D.value:P[D];if(!u||null!==N){var L=y&&l?String(D).replace(/\./g,"%2E"):String(D),W=c(P)?"function"==typeof r?r(k,L):k:k+(y?"."+L:"["+L+"]");x.set(e,j);var U=n();U.set(d,x),pushToArray(I,stringify(N,W,r,a,o,s,u,l,"comma"===r&&S&&c(P)?null:f,p,m,y,v,R,_,S,b,U))}}return I},normalizeStringifyOptions=function(e){if(!e)return h;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||h.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(!o.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],u=h.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.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||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:
1h.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,i=e,a=normalizeStringifyOptions(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var o=[];if("object"!=typeof i||null===i)return"";var u=s[a.arrayFormat],l="comma"===u&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var f=n(),h=0;h<r.length;++h){var d=r[h];if(null!=d){var p=i[d];a.skipNulls&&null===p||pushToArray(o,stringify(p,d,u,l,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 m=o.join(a.delimiter),y=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?y+="utf8=%26%2310003%3B"+a.delimiter:y+="utf8=%E2%9C%93"+a.delimiter),m.length>0?y+m:""}},12769:function(e,t,r){"use strict";var n=r(55798),i=r(37478),a=r(24429),o=Object.prototype.hasOwnProperty,s=Array.isArray,c=i(),markOverflow=function(e,t){return c.set(e,t),e},isOverflow=function(e){return c.has(e)},getMaxIndex=function(e){return c.get(e)},setMaxIndex=function(e,t){c.set(e,t)},u=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),compactQueue=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(s(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&(n[n.length]=r[i]);t.obj[t.prop]=n}}},arrayToObject=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},setProperty=function(e,t,r){"__proto__"===t&&a?a(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};e.exports={arrayToObject:arrayToObject,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return setProperty(e,r,t[r]),e},e)},combine:function(e,t,r,n,i){if(isOverflow(e)){if(i)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");var a=getMaxIndex(e)+1;return e[a]=t,setMaxIndex(e,a),e}var o=[].concat(e,t);if(o.length>r){if(i)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(o,{plainObjects:n}),o.length-1)}return o},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=i(),n=0;n<t.length;++n)for(var a=t[n],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var u=s[c],l=o[u];"object"!=typeof l||null===l||r.has(l)||(t[t.length]={obj:o,prop:u},r.set(l,!0))}return compactQueue(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 s="",c=0;c<o.length;c+=1024){var l=o.length>=1024?o.slice(c,c+1024):o;if(c+1024<o.length){var f=l.charCodeAt(l.length-1);f>=55296&&f<=56319&&(l=l.slice(0,-1),c-=1)}for(var h=[],d=0;d<l.length;++d){var p=l.charCodeAt(d);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===n.RFC1738&&(40===p||41===p)){h[h.length]=l.charAt(d);continue}if(p<128){h[h.length]=u[p];continue}if(p<2048){h[h.length]=u[192|p>>6]+u[128|63&p];continue}if(p<55296||p>=57344){h[h.length]=u[224|p>>12]+u[128|p>>6&63]+u[128|63&p];continue}d+=1,p=65536+((1023&p)<<10|1023&l.charCodeAt(d)),h[h.length]=u[240|p>>18]+u[128|p>>12&63]+u[128|p>>6&63]+u[128|63&p]}s+=h.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:isOverflow,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:markOverflow,maybeMap:function(e,t){if(s(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function merge(e,t,r){if(!t)return e;if("object"!=typeof t&&"function"!=typeof t){if(s(e)){var n=e.length;if(r&&"number"==typeof r.arrayLimit&&n>=r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e.concat(t),r),n)}e[n]=t}else if(!e||"object"!=typeof e)return[e,t];else if(isOverflow(e)){var i=getMaxIndex(e)+1;e[i]=t,setMaxIndex(e,i)}else{if(r&&r.strictMerge)return[e,t];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,t))&&(e[t]=!0)}return e}if(!e||"object"!=typeof e){if(isOverflow(t)){for(var a=Object.keys(t),c=r&&r.plainObjects?{__proto__:null,0:e}:{0:e},u=0;u<a.length;u++)c[parseInt(a[u],10)+1]=t[a[u]];return markOverflow(c,getMaxIndex(t)+1)}var l=[e].concat(t);if(r&&"number"==typeof r.arrayLimit&&l.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(l,r),l.length-1)}return l}var f=e;if(s(e)&&!s(t)&&(f=arrayToObject(e,r)),s(e)&&s(t)){if(t.forEach(function(t,n){if(o.c
1all(e,n)){var i=e[n];i&&"object"==typeof i&&t&&"object"==typeof t?e[n]=merge(i,t,r):e[e.length]=t}else e[n]=t}),r&&"number"==typeof r.arrayLimit&&e.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e,r),e.length-1)}return e}return Object.keys(t).reduce(function(e,n){var i=t[n];if(o.call(e,n)?setProperty(e,n,merge(e[n],i,r)):setProperty(e,n,i),isOverflow(t)&&!isOverflow(e)&&markOverflow(e,getMaxIndex(t)),isOverflow(e)){var a=parseInt(n,10);String(a)===n&&a>=0&&a>getMaxIndex(e)&&setMaxIndex(e,a)}return e},f)}}},35747:function(e,t,r){"use strict";var n=r(70631),i=r(14453),listGetNode=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},listGet=function(e,t){if(e){var r=listGetNode(e,t);return r&&r.value}},listSet=function(e,t,r){var n=listGetNode(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},listDelete=function(e,t){if(e)return listGetNode(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=listDelete(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return listGet(e,t)},has:function(t){var r;return!!(r=e)&&!!listGetNode(r,t)},set:function(t,r){e||(e={next:void 0}),listSet(e,t,r)}};return t}},23595:function(e,t,r){"use strict";var n=r(40210),i=r(17379),a=r(70631),o=r(14453),s=n("%Map%",!0),c=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(t){if(e){var r=f(e,t);return 0===h(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 s),u(e,t,r)}};return t}},69034:function(e,t,r){"use strict";var n=r(40210),i=r(17379),a=r(70631),o=r(23595),s=r(14453),c=n("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(o&&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?f(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)):o&&(t||(t=o()),t.set(r,n))}};return r}:o},37478:function(e,t,r){"use strict";var n=r(14453),i=r(70631),a=r(35747),o=r(23595),s=r(69034)||o||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e)){var r=e&&Object(e)===e?"the given object key":i(e);throw new n("Side channel does not contain "+r)}},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=s()),e.set(t,r)}};return t}},83:function(e,t,r){"use strict";/**
2 * @license React
3 * use-sync-external-store-shim.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var n=r(67294),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,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function checkIfSnapshotChanged(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="undefined"==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,u=n[1];return s(function(){i.value=r,i.getSnapshot=t,checkIfSnapshotChanged(i)&&u({inst:i})},[e,r,t]),o(function(){return checkIfSnapshotChanged(i)&&u({inst:i}),e(function(){checkIfSnapshotChanged(i)&&u({inst:i})})},[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},61688:function(e,t,r){"use strict";e.exports=r(83)}
9,72033:function(e,t,r){"use strict";function _array_like_to_array(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,{_:function(){return _array_like_to_array}})},21769:function(e,t,r){"use strict";function _array_with_holes(e){if(Array.isArray(e))return e}r.d(t,{_:function(){return _array_with_holes}})},75766:function(e,t,r){"use strict";function _define_property(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,{_:function(){return _define_property}})},43439:function(e,t,r){"use strict";function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{_:function(){return _iterable_to_array}})},14276:function(e,t,r){"use strict";function _non_iterable_rest(){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,{_:function(){return _non_iterable_rest}})},72253:function(e,t,r){"use strict";r.d(t,{_:function(){return _object_spread}});var n=r(75766);function _object_spread(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}},14932:function(e,t,r){"use strict";function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:function(){return _object_spread_props}})},47702:function(e,t,r){"use strict";function _object_without_properties(e,t){if(null==e)return{};var r,n,i,a={};if("undefined"!=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,{_:function(){return _object_without_properties}})},24043:function(e,t,r){"use strict";r.d(t,{_:function(){return _sliced_to_array}});var n=r(21769),i=r(14276),a=r(73270);function _sliced_to_array(e,t){return(0,n._)(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||(0,a._)(e,t)||(0,i._)()}},248:function(e,t,r){"use strict";r.d(t,{_:function(){return _to_consumable_array}});var n=r(72033),i=r(43439),a=r(73270);function _to_consumable_array(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.")}()}},88421:function(e,t,r){"use strict";function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:function(){return _type_of}})},73270:function(e,t,r){"use strict";r.d(t,{_:function(){return _unsupported_iterable_to_array}});var n=r(72033);function _unsupported_iterable_to_array(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);
9if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n._)(e,t)}}},87456:function(e,t,r){"use strict";function createDocumentationMessageGenerator(){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("")}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}r.d(t,{K:function(){return createDocumentationMessageGenerator}})},11069:function(e,t,r){"use strict";r.d(t,{dg:function(){return c},Rn:function(){return u},mY:function(){return escapeHits}});var n=r(75766);function _extends(){return(_extends=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 i=r(72253),a=r(14932),o=r(18139),s=r(7105),c={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},u={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function recursiveEscape(e){var t;return(0,s.P)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,a._)((0,i._)({},t),(0,n._)({},r,recursiveEscape(e[r])))},{}):Array.isArray(e)?e.map(recursiveEscape):(0,a._)((0,i._)({},e),{value:(t=e.value,(0,o.Y)(t).replace(RegExp(c.highlightPreTag,"g"),u.highlightPreTag).replace(RegExp(c.highlightPostTag,"g"),u.highlightPostTag))})}function escapeHits(e){return void 0===e.__escaped&&((e=e.map(function(e){!function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e);var t=_extends({},e);return t._highlightResult&&(t._highlightResult=recursiveEscape(t._highlightResult)),t._snippetResult&&(t._snippetResult=recursiveEscape(t._snippetResult)),t})).__escaped=!0),e}},18139:function(e,t,r){"use strict";r.d(t,{A:function(){return unescape},Y:function(){return escape}});var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,a=RegExp(i.source);function escape(e){return e&&a.test(e)?e.replace(i,function(e){return n[e]}):e}var o={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},s=/&(amp|quot|lt|gt|#39);/g,c=RegExp(s.source);function unescape(e){return e&&c.test(e)?e.replace(s,function(e){return o[e]}):e}},52339:function(e,t,r){"use strict";function isPrimitive(e){return e!==Object(e)}r.d(t,{X:function(){return function isEqual(e,t){if(e===t)return!0;if(isPrimitive(e)||isPrimitive(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;var r=!0,n=!1,i=void 0;try{for(var a,o=Object.keys(e)[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(!(s in t)||!isEqual(e[s],t[s]))return!1}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return!0}}})},3059:function(e,t,r){"use strict";r.d(t,{J:function(){return isIndexWidget}});var n=["ais.index","ais.feedContainer"];function isIndexWidget(e){return n.includes(e.$$type)}},7105:function(e,t,r){"use strict";r.d(t,{P:function(){return isPlainObject}});var n=r(88421);function isPlainObject(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}},82729:function(e,t,r){"use strict";r.d(t,{Z:function(){return mergeSearchParameters}});var n=r(72253),i=r(47702),mergeWithRest=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)}
9,mergeRuleContexts=function(e,t){var r=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t});return r.length>0?e.setQueryParameters({ruleContexts:r}):e},mergeSearchParameters=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,o,s,c,u,l;return mergeWithRest((l=mergeRuleContexts((i=(r=e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)})).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)}),u=(c=(s=(o=(a=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},i)).setQueryParameters({numericRefinements:(0,n._)({},a.numericRefinements,t.numericRefinements)})).setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},o.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)})).setQueryParameters({facetsExcludes:(0,n._)({},s.facetsExcludes,t.facetsExcludes)})).setQueryParameters({facetsRefinements:(0,n._)({},c.facetsRefinements,t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},u)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},l)),t)})}},11490:function(e,t,r){"use strict";function noop(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{Z:function(){return noop}})},34004:function(e,t,r){"use strict";function serializePayload(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{a:function(){return serializePayload}})},19443:function(e,t,r){"use strict";r.d(t,{p:function(){return InstantSearch_InstantSearch}});var n=r(47702),i=r(67294),a=r(95930),o=r(23130),s=r(72253),c=r(248);function _get_prototype_of(e){return(_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}var u=r(88421);function _class_call_check(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(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 _create_class(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}var l=r(75766);function _set_prototype_of(e,t){return(_set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var f=r(17331),h=r(8131),d=r(14932),p=r(24043);function createUUID(){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 m="4.107.0",y=r(34004),v="ais.usage.sessionId",R=null,_="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},S=r(3059);function createInitArgs(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 createRenderArgs(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 storeRenderState(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,d._)((0,s._)({},r.renderState),(0,l._)({},i,(0,s._)({},r.renderState[i],t)))}function serializeWidgetParams(e){var t=[];return Object.keys(e).forEach(function(r){var n=e[r];if(void 0!==n){var i=function(e){if(null==e)return null;var t=void 0===e?"undefined":(0,u._)(e);if("string"===t||"number"===t||"boolean"===t)return{value:String(e),type:t};if(Array.isArray(e)||"object"===t){var r=Array.isArray(e)?"array":"object";try{return{value:JSON.stringify(e),type:r}}catch(e){return{type:r}}}return"function"===t?{value:e.name,type:"function"}:null}(n);i?t.push((0,s._)({name:r},i)):t.push({name:r})}}),t}function safelyRunOnBrowser(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window:window})}function getAppIdAndApiKey(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]]}function find(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}var b=r(11490);function getAlgoliaAgent(e){return e.transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua}var x="2.17.2",w="https://cdn.jsdelivr.net/npm/search-insights@".concat(x,"/dist/search-insights.min.js"),F=["searchClient","
9insightsClient","initialUiState"];function createInsightsMiddleware(){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,o=e.$$automatic,l=void 0!==o&&o,f=t;t||null===t||safelyRunOnBrowser(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(f=t[r]),f||(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=x,t[r].shouldAddScript=!0),f=t[r])});var h=f||b.Z;return function(e){var t,i,o,f=e.instantSearchInstance,y=f.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});f.unuse.apply(f,(0,c._)(y));var x=(0,p._)(getAppIdAndApiKey(f.client),2),P=x[0],O=x[1],j=void 0,A=void 0,E=void 0,I=h.queue;Array.isArray(I)&&(A=(t=(0,p._)(["setUserToken","init"].map(function(e){return(0,p._)(find(I.slice().reverse(),function(t){return(0,p._)(t,1)[0]===e})||[],2)[1]}),2))[0],j=t[1]),h("getUserToken",null,function(e,t){E=normalizeUserToken(t)}),(r||!isModernInsightsClient(h))&&h("init",(0,s._)({appId:P,apiKey:O,partial:!0},r));var H=null;return{$$type:"ais.insights",$$internal:a,$$automatic:l,onStateChange:function(){},subscribe:function(){if(h.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=w,t.onerror=function(){f.emit("error",Error(e))},document.body.appendChild(t),h.shouldAddScript=!1}catch(t){h.shouldAddScript=!1,f.emit("error",Error(e))}}},started:function(){h("addAlgoliaAgent","insights-middleware"),o=f.mainHelper;var e,t,y,b,x,w,O,I,T,k,C,D=h.queue;Array.isArray(D)&&(A=(T=(0,p._)(["setUserToken","init"].map(function(e){return(0,p._)(find(D.slice().reverse(),function(t){return(0,p._)(t,1)[0]===e})||[],2)[1]}),2))[0],j=T[1]),y=(null===(t=f._initialResults)||void 0===t?void 0:null===(e=t[f.indexName])||void 0===e?void 0:e.state)||{},b=f.mainHelper.state,i={userToken:y.userToken||b.userToken,clickAnalytics:y.clickAnalytics||b.clickAnalytics},l||o.overrideStateWithoutTriggeringChangeEvent((0,d._)((0,s._)({},o.state),{clickAnalytics:!0})),a||f.scheduleSearch();var setUserTokenToSearch=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=normalizeUserToken(e);if(r){var n=o.state.userToken;t?applyToken():setTimeout(applyToken,0)}function applyToken(){o.overrideStateWithoutTriggeringChangeEvent((0,d._)((0,s._)({},o.state),{userToken:r})),n&&n!==e&&f.scheduleSearch()}};function setUserToken(e){setUserTokenToSearch(e,!0),h("setUserToken",e)}var N=void 0;N=function(e){if(("undefined"==typeof document?"undefined":(0,u._)(document))==="object"&&"string"==typeof document.cookie)for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}}("_ALGOLIA")||"anonymous-".concat(createUUID());var L=i.userToken;(null==r?void 0:r.userToken)&&(k=r.userToken),k?setUserToken(k):L?setUserToken(L):E?setUserToken(E):A?setUserToken(A):N&&(setUserToken(N),((null==r?void 0:r.useCookie)||(null==j?void 0:j.useCookie))&&(x=N,w=(null==r?void 0:r.cookieDuration)||(null==j?void 0:j.cookieDuration),(O=new Date).setTime(O.getTime()+(w||15552e6)),I="expires=".concat(O.toUTCString()),document.cookie="_ALGOLIA=".concat(x,";").concat(I,";path=/"))),h("onUserTokenChange",function(e){return setUserTokenToSearch(e,!0)},{immediate:!0});var W=h;isModernInsightsClient(h)&&(W=function(e,t){var r=(0,p._)(getAppIdAndApiKey(f.client),2);return h(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var U=new Set;f.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==C)&&(C=t.queryID,U.clear())}),f.sendEventToInsights=function(e){if(n)n(e,W);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"],l&&e.payload.algoliaSource.pu
9sh("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),W(e.insightsMethod,e.payload)}},safelyRunOnBrowser(function(){var e=function(){if(R)return R;try{var e=sessionStorage.getItem(v);if(e)return R=e;return R=createUUID(),sessionStorage.setItem(v,R),R}catch(e){return R=createUUID()}}(),sendStartEvent=function(){try{var t,r,n,i,a,u=Math.round(_()-f._createdAt);n={eventName:"__start__",algoliaAgent:getAlgoliaAgent(f.client),version:m,applicationId:P,performance:{bootstrapMs:u},widgets:[{type:"ais.instantSearch",params:f._initialOptions?serializeWidgetParams((t=f._initialOptions,r=(0,c._)(F),null==t?t:Object.keys(t).reduce(function(e,n){return r.indexOf(n)>=0||(e[n]=t[n]),e},{}))):[],children:function buildWidgetTree(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.mainIndex,n=createInitArgs(t,r,t._initialUiState);return e.map(function(e){var r={};if(e.getWidgetRenderState){var i=e.getWidgetRenderState(n);i&&i.widgetParams&&(r=i.widgetParams)}var a=serializeWidgetParams(r),o=(0,S.J)(e)?buildWidgetTree(e.getWidgets(),t,e):[];return{type:e.$$widgetType||e.$$type||"unknown",params:a,children:o}})}(f.mainIndex.getWidgets(),f)}]},a=null===(i=o.state)||void 0===i?void 0:i.userToken,W("sendEvents",[(0,s._)({eventType:"instantsearch",timestamp:Date.now(),sessionID:e,userToken:a?String(a):void 0},n)])}catch(e){}};f.once("render",sendStartEvent),H=function(){return f.removeListener("render",sendStartEvent)}})},unsubscribe:function(){H&&H(),h("onUserTokenChange",void 0),f.sendEventToInsights=b.Z,o&&i&&(o.overrideStateWithoutTriggeringChangeEvent((0,s._)({},o.state,i)),f.scheduleSearch())}}}}function isModernInsightsClient(e){var t=(0,p._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function normalizeUserToken(e){if(e)return"number"==typeof e?e.toString():e}var P=r(80129),setWindowTitle=function(e){e&&(window.document.title=e)},O=function(){function BrowserHistory(e){var t=this,r=e.windowTitle,n=e.writeDelay,i=e.createURL,a=e.parseURL,o=e.getLocation,s=e.start,c=e.dispose,u=e.push,f=e.cleanUrlOnDispose;_class_call_check(this,BrowserHistory),(0,l._)(this,"$$type","ais.browser"),(0,l._)(this,"windowTitle",void 0),(0,l._)(this,"writeDelay",void 0),(0,l._)(this,"_createURL",void 0),(0,l._)(this,"parseURL",void 0),(0,l._)(this,"getLocation",void 0),(0,l._)(this,"writeTimer",void 0),(0,l._)(this,"_onPopState",void 0),(0,l._)(this,"inPopState",!1),(0,l._)(this,"isDisposed",!1),(0,l._)(this,"latestAcknowledgedHistory",0),(0,l._)(this,"_start",void 0),(0,l._)(this,"_dispose",void 0),(0,l._)(this,"_push",void 0),(0,l._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=r,this.writeTimer=void 0,this.writeDelay=void 0===n?400:n,this._createURL=i,this.parseURL=a,this.getLocation=o,this._start=s,this._dispose=c,this._push=u,this._cleanUrlOnDispose=void 0===f||f,safelyRunOnBrowser(function(e){var r=e.window;setWindowTitle(t.windowTitle&&t.windowTitle(t.read())),t.latestAcknowledgedHistory=r.history.length})}return _create_class(BrowserHistory,[{key:"read",value:function(){return this.parseURL({qsModule:P,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;safelyRunOnBrowser(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(){setWindowTitle(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)})}},{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())},safelyRunOnBrowser(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:P,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,safelyRunOnBrowser(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 safelyRunOnBrowser(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})}}]),BrowserHistory}();function getIndexStateWithoutConfigure(e){return e.configure,(0,n._)(e,["configure"])}var j=r(52339),createRouterMiddleware=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?function(){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,o=n.port,s=void 0===o?"":o,c=n.pathname,u=n.hash,l=t.stringify(r),f=""===s?"":":".concat(s);return l?"".concat(i,"//").concat(a).concat(f).concat(c,"?").concat(l).concat(u):"".concat(i,"//").concat(a).concat(f).concat(c).concat(u)}:t,n=e.parseURL,i=e.writeDelay,a=e.windowTitle,o=e.getLocation,s=void 0===o?function(){return safelyRunOnBrowser(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.")}})}:o,c=e.start,u=e.dispose,l=e.push,f=e.cleanUrlOnDispose;return new O({createURL:r,parseURL:void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,writeDelay:void 0===i?400:i,windowTitle:a,getLocation:s,start:c,dispose:u,push:l,cleanUrlOnDispose:f})}():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,d._)((0,s._)({},t),(0,l._)({},r,getIndexStateWithoutConfigure(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,u._)(n))!=="object"||null===n?t:(0,d._)((0,s._)({},t),(0,l._)({},r,getIndexStateWithoutConfigure(n)))},{})}}:n,a=e.$$internal,o=void 0!==a&&a;return function(e){var t=e.instantSearchInstance;
9t._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,d._)((0,s._)({},t),(0,l._)({},r,e[r]))},n),o=i.stateToRoute(a);return r.createURL(o)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:o,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);void 0!==n&&(0,j.X)(n,a)||(r.write(a),n=a)},subscribe:function(){t._initialUiState=(0,s._)({},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)||void 0===e||e.call(r)},unsubscribe:function(){r.dispose()}}}},A=0,E=Promise.resolve();function defer(e){var t=null,r=!1,fn=function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];null===t&&(t=E.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,(0,c._)(i))}))};return fn.wait=function(){if(null===t)throw Error("The deferred function should be called before calling `wait()`");return t},fn.cancel=function(){null!==t&&(r=!0)},fn}function resolveSearchParameters(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var I=r(87456),H=r(82729),T=(0,I.K)({name:"index-widget"});function privateHelperSetState(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 getLocalWidgetsUiState(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,S.J)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function getLocalWidgetsSearchParameters(e,t){var r=t.initialSearchParameters,i=(0,n._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,S.J)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):t.getWidgetSearchParameters(e,i)},r)}function getLocalWidgetsRecommendParameters(e,t){var r=t.initialRecommendParameters,i=(0,n._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,S.J)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):e},r)}var index=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error(T("The `indexName` option is required."));var t=e.indexName,r=void 0===t?"":t,n=e.indexId,i=void 0===n?r:n,a=e.EXPERIMENTAL_isolated,o=void 0!==a&&a,u=[],f={},p=null,m=null,y=null,v=null,R=null,recomputeLocalRequestDependencies=function(){if(p){var e,t,r,n;r=(t=function getWidgetsRequestDependencies(e){return e.reduce(function(e,t){if((0,S.J)(t)){if(t._isolated)return e;var r=getWidgetsRequestDependencies(t.getWidgets());return{hasSearchWidget:e.hasSearchWidget||r.hasSearchWidget,hasRecommendWidget:e.hasRecommendWidget||r.hasRecommendWidget}}return"recommend"===t.dependsOn?(0,d._)((0,s._)({},e),{hasRecommendWidget:!0}):"none"===t.dependsOn?e:(0,d._)((0,s._)({},e),{hasSearchWidget:!0})},{hasSearchWidget:!1,hasRecommendWidget:!1})}((e=p).mainIndex.getWidgets())).hasSearchWidget,n=t.hasRecommendWidget,e._hasSearchWidget=r,e._hasRecommendWidget=n}};return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:o,getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return y},getResults:function(){return(null==v?void 0:v.lastResults)?(v.lastResults._state=y.state,v.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,S.J)(e)||void 0===e.$$id?this.getResults():(null==y?void 0:y.lastRecommendResults)?y.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return R},getScopedResults:function(){var e=this.getParent();return function resolveScopedResultsFromWidgets(e){return e.filter(S.J).reduce(function(e,t){return e.concat.apply(e,[{indexId:t.getIndexId(),results:t.getResults(),helper:t.getHelper()}].concat((0,c._)(resolveScopedResultsFromWidgets(t.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return o?null:m},createURL:function(e){return"function"==typeof e?p._createURL((0,l._)({},i,e(f))):p._createURL((0,l._)({},i,getLocalWidgetsUiState(u,{searchParameters:e,helper:y})))},scheduleLocalSearch:defer(function(){o&&(null==y||y.search())}),getWidgets:function(){return u},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(T("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(T("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){e.parent=t,(0,S.J)(e)||"recommend"===e.dependsOn&&(e.$$id=A++)}),u=u.concat(r),recomputeLocalRequestDependencies(),p&&r.length&&(privateHelperSetState(y,{state:getLocalWidgetsSearchParameters(u,{uiState:f,initialSearchParameters:y.state}),recommendState:getLocalWidgetsRecommendParameters(u,{uiState:f,initialRecommendParameters:y.recommendState}),_uiState:f}),r.forEach(function(e){e.getRenderState&&storeRenderState({render
9State:e.getRenderState(p.renderState[t.getIndexId()]||{},createInitArgs(p,t,p._initialUiState)),instantSearchInstance:p,parent:t})}),r.forEach(function(e){e.init&&e.init(createInitArgs(p,t,p._initialUiState))}),o?this.scheduleLocalSearch():p.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(T("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(T("The widget definition expects a `dispose` method."));if(u=u.filter(function(e){return -1===r.indexOf(e)}),r.forEach(function(e){e.parent=void 0}),recomputeLocalRequestDependencies(),p&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:y,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return _instanceof(n,h.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:y.state,cleanedRecommendState:y.recommendState}),i=n.cleanedSearchState,a=n.cleanedRecommendState,s=p.future.preserveSharedStateOnUnmount?getLocalWidgetsSearchParameters(u,{uiState:f,initialSearchParameters:new h.SearchParameters({index:this.getIndexName()})}):getLocalWidgetsSearchParameters(u,{uiState:getLocalWidgetsUiState(u,{searchParameters:i,helper:y}),initialSearchParameters:i});f=getLocalWidgetsUiState(u,{searchParameters:s,helper:y}),y.setState(s),y.recommendState=a,u.length&&(o?this.scheduleLocalSearch():p.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,s=e.parent,l=e.uiState;if(null===y){p=a,m=s,f=l[i]||{};var d=a.mainHelper,_=getLocalWidgetsSearchParameters(u,{uiState:f,initialSearchParameters:new h.SearchParameters({index:r})}),b=getLocalWidgetsRecommendParameters(u,{uiState:f,initialRecommendParameters:new h.RecommendParameters});(y=h(d.getClient(),_.index,_)).recommendState=b,y.search=function(){return o?(a.status="loading",n.render({instantSearchInstance:a}),a.compositionID?y.searchWithComposition():y.searchOnlyWithDerivedHelpers()):a.onStateChange?(a.onStateChange({uiState:a.mainIndex.getWidgetUiState({}),setUiState:function(e){return a.setUiState(e,!1)}}),d):d.search()},y.searchWithoutTriggeringOnStateChange=function(){return d.search()},y.searchForFacetValues=function(e,t,r,i){var a=H.Z.apply(void 0,[d.state].concat((0,c._)(resolveSearchParameters(n)))).setQueryParameters(i);return d.searchForFacetValues(e,t,r,a)};var x=r?y:h({},"__empty_index__",{});v=(o?x:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(s,d)).derive(function(){return H.Z.apply(void 0,[d.state].concat((0,c._)(resolveSearchParameters(n))))},function(){return n.getHelper().recommendState});var w=null===(t=a._initialResults)||void 0===t?void 0:t[this.getIndexId()];if(null==w?void 0:w.results){var F=new h.SearchResults(new h.SearchParameters(w.state),w.results);v.lastResults=F,y.lastResults=F}if(null==w?void 0:w.recommendResults){var P=new h.RecommendResults(new h.RecommendParameters({params:w.recommendResults.params}),w.recommendResults.results);v.lastRecommendResults=P,y.lastRecommendResults=P}y.on("change",function(e){e.isPageReset&&function resetPageFromWidgets(e){var t=e.filter(S.J);0!==t.length&&t.forEach(function(e){var t=e.getHelper();privateHelperSetState(t,{state:t.state.resetPage(),recommendState:t.recommendState,isPageReset:!0}),resetPageFromWidgets(e.getWidgets())})}(u)}),v.on("search",function(){a.scheduleStalledRender()}),v.on("result",function(e){var t=e.results;a.scheduleRender(),y.lastResults=t,R=null==t?void 0:t._state}),v.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),y.lastRecommendResults=t.results}),u.forEach(function(e){e.getRenderState&&storeRenderState({renderState:e.getRenderState(a.renderState[n.getIndexId()]||{},createInitArgs(a,n,l)),instantSearchInstance:a,parent:n})}),u.forEach(function(e){e.init&&e.init(createInitArgs(a,n,l))}),y.on("change",function(e){var t=e.state,r=e._uiState;f=getLocalWidgetsUiState(u,{searchParameters:t,helper:y},r||{}),a.onStateChange||a.onInternalStateChange()}),w&&a.scheduleRender(),recomputeLocalRequestDependencies()}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&R&&y.setState(R);var i=this.getResults()||(null==v?void 0:v.lastRecommendResults)||o&&!r?u:u.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})}
9)).forEach(function(e){e.getRenderState&&storeRenderState({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},createRenderArgs(n,t,e)),instantSearchInstance:n,parent:t})}),i.forEach(function(e){e.render&&e.render(createRenderArgs(n,t,e))})},dispose:function(){var e=this;u.forEach(function(t){t.dispose&&y&&t.dispose({helper:y,state:y.state,recommendState:y.recommendState,parent:e})}),p=null,m=null,null==y||y.removeAllListeners(),y=null,null==v||v.detach(),v=null},getWidgetUiState:function(e){return u.filter(S.J).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,d._)((0,s._)({},e),(0,l._)({},i,(0,s._)({},e[i],f))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return getLocalWidgetsSearchParameters(u,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){f=getLocalWidgetsUiState(u,{searchParameters:this.getHelper().state,helper:this.getHelper()},f)},setIndexUiState:function(e){var t="function"==typeof e?e(f):e;p.setUiState(function(e){return(0,d._)((0,s._)({},e),(0,l._)({},i,t))})}}},component=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName,i=r?"-".concat(r):"",a=n?"--".concat(n):"";return"".concat("ais","-").concat(e).concat(i).concat(a)}};function getPropertyByPath(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var k=r(11069),C=component("Highlight");function concatHighlightedParts(e){var t=k.Rn.highlightPreTag,r=k.Rn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var D=r(18139),N=new RegExp(/\w/i);function reverseHighlightedParts(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,o,c,u,l;return(0,d._)((0,s._)({},t),{isHighlighted:(c=e[r],u=null===(n=null===(a=e[r+1])||void 0===a?void 0:a.isHighlighted)||void 0===n||n,l=null===(i=null===(o=e[r-1])||void 0===o?void 0:o.isHighlighted)||void 0===i||i,N.test((0,D.A)(c.value))||l!==u?!c.isHighlighted:!l)})}):e.map(function(e){return(0,d._)((0,s._)({},e),{isHighlighted:!1})})}function getHighlightedParts(e){var t=k.Rn.highlightPostTag,r=k.Rn.highlightPreTag,n=e.split(r),i=n.shift(),a=i?[{value:i,isHighlighted:!1}]:[];return n.forEach(function(e){var r=e.split(t);a.push({value:r[0],isHighlighted:!0}),""!==r[1]&&a.push({value:r[1],isHighlighted:!1})}),a}var L=component("ReverseHighlight"),W=component("Snippet"),U=component("ReverseSnippet");function getServerResults(e){var t;return(null===(t=e.compositionFeedsResults)||void 0===t?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function serializeQueryParameters(e){var encode=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(t){var r;return encode("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r))?JSON.stringify(e[t]):e[t])}).join("&")}function setIndexHelperState(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(S.J).forEach(function(t){return setIndexHelperState(e,t)})}var Q=(0,I.K)({name:"instantsearch"});function defaultCreateURL(){return"#"}var M={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},B=function(e){function InstantSearch(e){_class_call_check(this,InstantSearch),t=_get_prototype_of(t=InstantSearch),i=(n=_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(this).constructor):t.apply(this,r))&&("object"===(0,u._)(n)||"function"==typeof n)?n:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this),(0,l._)(i,"client",void 0),(0,l._)(i,"indexName",void 0),(0,l._)(i,"compositionID",void 0),(0,l._)(i,"insightsClient",void 0),(0,l._)(i,"onStateChange",null),(0,l._)(i,"future",void 0),(0,l._)(i,"helper",void 0),(0,l._)(i,"mainHelper",void 0),(0,l._)(i,"mainIndex",void 0),(0,l._)(i,"started",void 0),(0,l._)(i,"templatesConfig",void 0),(0,l._)(i,"renderState",{}),(0,l._)(i,"_stalledSearchDelay",void 0),(0,l._)(i,"_searchStalledTimer",void 0),(0,l._)(i,"_initialUiState",void 0),(0,l._)(i,"_initialResults",void 0),(0,l._)(i,"_manuallyResetScheduleSearch",!1),(0,l._)(i,"_resetScheduleSearch",void 0),(0,l._)(i,"_createURL",void 0),(0,l._)(i,"_searchFunction",void 0),(0,l._)(i,"_mainHelperSearch",void 0),(0,l._)(i,"_hasSearchWidget",!1),(0,l._)(i,"_hasRecommendWidget",!1),(0,l._)(i,"_insights",void 0),(0,l._)(i,"_initialOptions",void 0),(0,l._)(i,"middleware",[]),(0,l._)(i,"sendEventToInsights",void 0),(0,l._)(i,"_createdAt",_()),(0,l._)(i,"status","idle"),(0,l._)(i,"error",void 0),(0,l._)(i,"scheduleSearch",defer(function(){i.started&&i.mainHelper.search()})),(0,l._)(i,"scheduleRender",defer(function(){var e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(null===(e=i.mainHelper)||void 0===e?void 0:e.hasPendingRequests())||(clearTimeout(i._searchStalledTimer),i._searchStalledTimer=null,t&&(i.status="idle",i.error=void 0)),i.mainIndex.render({instantSearchInstance:i}),i.emit("render")})),(0,l._)(i,"onInternalStateChange",defer(function(){var e=i.mainIndex.getWidgetUiState({});i.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),i.setMaxListeners(100);var t,r,n,i,a=e.indexName,o=e.compositionID,c=e.numberLocale,f=e.initialUiState,h=e.routing,p=void 0===h?null:h,v=e.insights,R=void 0===v?void 0:v,x=e.searchFunction,w=e.stalledSearchDelay,F=e.searchClient,P=void 0===F?null:F,O
9=e.insightsClient,j=void 0===O?null:O,A=e.onStateChange,E=e.future,I=void 0===E?(0,s._)({},M,e.future||{}):E;if(null===P)throw Error(Q("The `searchClient` option is required."));if("function"!=typeof P.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 P.addAlgoliaAgent&&P.addAlgoliaAgent("instantsearch.js (".concat(m,")")),j&&"function"!=typeof j)throw Error(Q("The `insightsClient` option should be a function."));if(i._initialOptions=e,i.client=P,i.future=I,i.insightsClient=j,i.indexName=void 0===a?"":a,i.compositionID=o,i.helper=null,i.mainHelper=null,i.mainIndex=index({indexName:i.compositionID||i.indexName}),i.onStateChange=void 0===A?null:A,i.started=!1,i.templatesConfig={helpers:{formatNumber:function(e,t){return Number(t(e)).toLocaleString(c)},highlight:function(e,t){try{var r,n,i,a,o,c,u,l,f,h=JSON.parse(e);return t((n=(r=(0,d._)((0,s._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(o._highlightResult,n)||{}).value,f=C({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(k.Rn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(k.Rn.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,o,c,u,l,f,h,p=JSON.parse(e);return t((n=(r=(0,d._)((0,s._)({},p),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(o._highlightResult,n)||{}).value,f=void 0===l?"":l,h=L({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),concatHighlightedParts(reverseHighlightedParts(getHighlightedParts(f))).replace(RegExp(k.Rn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(k.Rn.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,o,c,u,l,f,h=JSON.parse(e);return t((n=(r=(0,d._)((0,s._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(o._snippetResult,n)||{}).value,f=W({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(k.Rn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(k.Rn.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,o,c,u,l,f,h,p=JSON.parse(e);return t((n=(r=(0,d._)((0,s._)({},p),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(o._snippetResult,n)||{}).value,f=void 0===l?"":l,h=U({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),concatHighlightedParts(reverseHighlightedParts(getHighlightedParts(f))).replace(RegExp(k.Rn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(k.Rn.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,s._)({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":(0,u._)(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=(0,y.a)(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:{}},i._stalledSearchDelay=void 0===w?200:w,i._searchStalledTimer=null,i._createURL=defaultCreateURL,i._initialUiState=void 0===f?{}:f,i._initialResults=null,i._insights=R,x&&(i._searchFunction=x),i.sendEventToInsights=b.Z,p){var H="boolean"==typeof p?{}:p;H.$$internal=!0,i.use(createRouterMiddleware(H))}if(R){var T="boolean"==typeof R?{}:R;T.$$internal=!0,i.use(createInsightsMiddleware(T))}return safelyRunOnBrowser(function(e){var t,r;return(null===(r=e.window.navigator)||void 0===r?void 0:null===(t=r.userAgent)||void 0===t?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&i.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(){n.ua=getAlgoliaAgent(t.client),function extractWidgetPayload(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.mainIndex,i=createInitArgs(t,n,t._initialUiState);e.forEach(function(e){var n={};if(e.getWidgetRenderState){var a=e.getWidgetRenderState(i);a&&a.widgetParams&&(n=a.widgetParams)}var o=Object.keys(n).filter(function(e){return void 0!==n[e]});r.widgets.push({type:e.$$type,widgetType:e.$$widgetType,params:o}),(0,S.J)(e)&&extractWidgetPayload(e.getWidgets(),t,r,e)})}(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})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}(InstantSearch,e),_create_class(InstantSearch,[{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,s._)({$$type:"__unknown__",$$internal:!1,subscribe:b.Z,started:b.Z,unsubscribe:b.Z,onStateChange:b.Z},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});
9return 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(Q("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,S.J)(e)&&!e._isolated}))throw Error(Q("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(Q("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(Q("The `start` method has already been called once."));var t=this.mainHelper||h(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){var r=e._hasSearchWidget||e._hasRecommendWidget;return r&&(e.status="loading"),e.scheduleRender(!r),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(b.Z)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=h(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(!_instanceof(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(!e._hasSearchWidget&&!e._hasRecommendWidget),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.requestParams,o=getServerResults(n),c=o&&i?o.map(function(e,t){return(0,s._)({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:serializeQueryParameters((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=(0,p._)(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=getServerResults(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 o=Array.isArray(t)?t.map(function(e){return(0,d._)((0,s._)({},e),{params:serializeQueryParameters(e.params)})}):serializeQueryParameters(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[o].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,d._)((0,s._)({},e.cache),(0,l._)({},a,JSON.stringify({results:Object.keys(t).map(function(e){return getServerResults(t[e])})})))}}})(this.client,this._initialResults),n=this.mainHelper,a=Object.keys(i=this._initialResults).reduce(function(e,t){var r=i[t];return r.recommendResults?(0,s._)({},e,r.recommendResults.results):e},{}),n._recommendCache=a;var n,i,a,o=this.scheduleSearch;this.scheduleSearch=defer(b.Z),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=o}:defer(function(){e.scheduleSearch=o})()}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(createInsightsMiddleware({$$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)||void 0===e||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()}),this._initialOptions=null}},{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(Q("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){setIndexHelperState("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(setIndexHelperState(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(Q("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(Q("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),InstantSearch}(f),$=r(61688),q="7.40.0",V=r(19160),J=r(58336),K=r(37556),z=r(628),G=r(83454),Z=["react (".concat(i.version,")"),"react-instantsearch (".concat(q,")"),"react-instantsearch-core (".concat(q,")")],X="react-instantsearch-server (".concat(q,")");function addAlgoliaAgents(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEac
9h(function(t){e.addAlgoliaAgent(t)})}function InstantSearch_InstantSearch(e){var t=e.children,r=function(e){var t=(0,p._)((0,i.useReducer)(function(e){return e+1},0),2)[1],r=(0,J.a)(),n=(0,K.s)(),a=(0,z.P)().waitForResultsRef,o=null==n?void 0:n.initialResults,u=(0,i.useRef)(e),l=r||o||a,f=(0,i.useRef)(null);if((null==n?void 0:n.ssrSearchRef)&&(f=n.ssrSearchRef),null===f.current){var h,d,m=new B(e);m._schedule=function(e){m._schedule.queue.push(e),clearTimeout(m._schedule.timer),m._schedule.timer=setTimeout(function(){m._schedule.queue.forEach(function(e){e()}),m._schedule.queue=[]},0)},m._schedule.queue=[],l&&(m._initialResults=o||{},m._manuallyResetScheduleSearch=!0),addAlgoliaAgents(e.searchClient,(0,c._)(Z).concat([r&&X,(d="undefined"!=typeof window&&(null===(h=window.next)||void 0===h?void 0:h.version)||void(void 0!==G&&G.env))?"next.js (".concat(d,")"):null])),l&&m.start(),r&&r.notifyServer({search:m}),e.routing,f.current=m}var y,v=f.current,R=u.current;R.indexName!==e.indexName&&(v.helper.setIndex(e.indexName||"").search(),u.current=e),R.searchClient!==e.searchClient&&(addAlgoliaAgents(e.searchClient,(0,c._)(Z).concat([r&&X])),v.mainHelper.setClient(e.searchClient).search(),u.current=e),R.onStateChange!==e.onStateChange&&(v.onStateChange=e.onStateChange,u.current=e),R.searchFunction!==e.searchFunction&&(v._searchFunction=e.searchFunction,u.current=e),R.stalledSearchDelay!==e.stalledSearchDelay&&(v._stalledSearchDelay=null!==(y=e.stalledSearchDelay)&&void 0!==y?y:200,u.current=e),(0,V.J)(R.future,e.future)||(v.future=(0,s._)({},M,e.future),u.current=e);var _=(0,i.useRef)(null);return(0,$.useSyncExternalStore)((0,i.useCallback)(function(){var e=f.current;return null===_.current?e.started||(e.start(),t()):(clearTimeout(_.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),_.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return f.current},function(){return f.current})}((0,n._)(e,["children"]));return r.started?i.createElement(o.Z.Provider,{value:r},i.createElement(a.Z.Provider,{value:r.mainIndex},t,i.createElement(ResetScheduleSearch,{search:r}))):null}function ResetScheduleSearch(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}},95930:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=(0,r(67294).createContext)(null)},23130:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=(0,r(67294).createContext)(null)},19160:function(e,t,r){"use strict";r.d(t,{J:function(){return function dequal(e,t,r){var a,o;if((null==r?void 0:r(e,t))||e===t)return!0;if(e&&t&&(a=e.constructor)===t.constructor){if(a===Date)return e.getTime()===t.getTime();if(a===RegExp)return e.toString()===t.toString();if(a===Array){if((o=e.length)===t.length)for(;o--&&dequal(e[o],t[o],r););return -1===o}if(!a||(void 0===e?"undefined":(0,n._)(e))==="object"){for(a in o=0,e)if(i.call(e,a)&&++o&&!i.call(t,a)||!(a in t)||!dequal(e[a],t[a],r))return!1;return Object.keys(t).length===o}}return e!=e&&t!=t}}});var n=r(88421),i=Object.prototype.hasOwnProperty},37556:function(e,t,r){"use strict";r.d(t,{s:function(){return useInstantSearchSSRContext}});var n=r(67294),i=(0,n.createContext)(null);function useInstantSearchSSRContext(){return(0,n.useContext)(i)}},58336:function(e,t,r){"use strict";r.d(t,{a:function(){return useInstantSearchServerContext}});var n=r(67294),i=(0,n.createContext)(null);function useInstantSearchServerContext(){return(0,n.useContext)(i)}},628:function(e,t,r){"use strict";r.d(t,{P:function(){return useRSCContext}});var n=r(67294),i=(0,n.createContext)({countRef:{current:0},waitForResultsRef:null,resolveWaitForResultsRef:{current:null},ignoreMultipleHooksWarning:!1});function useRSCContext(){return(0,n.useContext)(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.