PageSourceSearch

https://o9solutions.com/_next/static/chunks/0d2e8b1.bq2-i.js?dpl=dpl_AVeXtSb3agyN2SGueJEkDzqTrJkK

js o9solutions.com collected 2026-10-02 03:14:33 UTC 209,439 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,231473,(e,t,r)=>{"use strict";t.exports=TypeError},787405,(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=o&&c&&"function"==typeof c.get?c.get:null,l=o&&Set.prototype.forEach,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,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,R=String.prototype.toUpperCase,x=String.prototype.toLowerCase,S=RegExp.prototype.test,j=Array.prototype.concat,w=Array.prototype.join,P=Array.prototype.slice,_=Math.floor,F="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A?"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 N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-_(-e):_(e);if(n!==e){var i=String(n),a=v.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var C={},H=C.custom,D=M(H)?H:null,L={__proto__:null,double:'"',single:"'"},W={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=L[r.quoteStyle||t];return n+e+n}function Q(e){return!I||!("object"==typeof e&&(I in e||void 0!==e[I]))}function $(e){return"[object Array]"===J(e)&&Q(e)}function q(e){return"[object RegExp]"===J(e)&&Q(e)}function M(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}t.exports=function t(r,n,i,o){var c,m,R,S,_,E=n||{};if(V(E,"quoteStyle")&&!V(L,E.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(E,"maxStringLength")&&("number"==typeof E.maxStringLength?E.maxStringLength<0&&E.maxStringLength!==1/0:null!==E.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var H=!V(E,"customInspect")||E.customInspect;if("boolean"!=typeof H&&"symbol"!==H)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(E,"indent")&&null!==E.indent&&"	"!==E.indent&&!(parseInt(E.indent,10)===E.indent&&E.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(E,"numericSeparator")&&"boolean"!=typeof E.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var B=E.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=W[r.quoteStyle||"single"];return i.lastIndex=0,U(b.call(b.call(t,i,"\\$1"),/[\x00-\x1f]/g,K),"single",r)}(r,E);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var et=String(r);return B?N(r,et):et}if("bigint"==typeof r){var er=String(r)+"n";return B?N(r,er):er}var en=void 0===E.depth?5:E.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof r)return $(r)?"[Array]":"[Object]";var ei=function(e,t){var r;if("	"===e.indent)r="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=w.call(Array(e.indent+1)," ")}return{base:r,prev:w.call(Array(t+1),r)}}(E,i);if(void 0===o)o=[];else if(z(o,r)>=0)return"[Circular]";function ea(e,r,n){if(r&&(o=P.call(o)).push(r),n){var a={depth:E.depth};return V(E,"quoteStyle")&&(a.quoteStyle=E.quoteStyle),t(e,a,i+1,o)}return t(e,E,i+1,o)}if("function"==typeof r&&!q(r)){var es=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(r),eo=ee(r,ea);return"[Function"+(es?": "+es:" (anonymous)")+"]"+(eo.length>0?" { "+w.call(eo,", ")+" }":"")}if(M(r)){var ec=A?b.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(r);return"object"!=typeof r||A?ec:G(ec)}if((eu=r)&&"object"==typeof eu&&("u">typeof HTMLElement&&eu instanceof HTMLElement||"string"==typeof eu.nodeName&&"function"==typeof eu.getAttribute)){for(var eu,el,ef="<"+x.call(String(r.nodeName)),eh=r.attributes||[],ed=0;ed<eh.length;ed++){ef+=" "+eh[ed].name+"="+U((el=eh[ed].value,b.call(String(el),/"/g,"&quot;")),"double",E)}return ef+=">",r.childNodes&&r.childNodes.length&&(ef+="..."),ef+="</"+x.call(String(r.nodeName))+">"}if($(r)){if(0===r.length)return"[]";var ep=ee(r,ea);return ei&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(ep)?"["+Z(ep,ei)+"]":"[ "+w.call(ep,", ")+" ]"}if("[object Error]"===J(c=r)&&Q(c)){var em=ee(r,ea);return"cause"in Error.prototype||!("cause"in r)||T.call(r,"cause")?0===em.length?"["+String(r)+"]":"{ ["+String(r)+"] "+w.call(em,", ")+" }":"{ ["+String(r)+"] "+w.call(j.call("[cause]: "+ea(r.cause),em),", ")+" }"}if("object"==typeof r&&H){if(D&&"function"==typeof r[D]&&C)return C(r,{depth:en-i});else if("symbol"!==H&&"function"==typeof r.inspect)return r.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}(r)){var eg=[];return s&&s.call(r,function(e,t){eg.push(ea(t,r,!0)+" => "+ea(e,r))}),X("Map",a.call(r),eg,ei)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(r)){var ey=[];return l&&l.call(r,function(e){ey.push(ea(e,r))}),X("Set",u.call(r),ey,ei)}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}(r))return Y("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}(r))return Y("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(r))return Y("WeakRef");if("[object Number]"===J(m=r)&&Q(m))return G(ea(Number(r)));if(function(e){if(!e||"object"!=typeof e||!F)return!1;try{return F.call(e),!0}catch(e){}return!1}(r))return G(ea(F.call(r)));if("[object Boolean]"===J(R=r)&&Q(R))return G(p.call(r));if("[object String]"===J(S=r)&&Q(S))return G(ea(String(r)));if("u">typeof window&&r===window)return"{ [object Window] }";if("u">typeof globalThis&&r===globalThis||r===e.g)return"{ [object globalThis] }";if(!("[object Date]"===J(_=r)&&Q(_))&&!q(r)){var ev=ee(r,ea),eb=k?k(r)===Object.prototype:r instanceof Object||r.constructor===Object,eR=r instanceof Object?"":"null prototype",ex=!eb&&I&&Object(r)===r&&I in r?v.call(J(r),8,-1):eR?"Object":"",eS=(eb||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(ex||eR?"["+w.call(j.call([],ex||[],eR||[]),": ")+"] ":"");return 0===ev.length?eS+"{}":ei?eS+"{"+Z(ev,ei)+"}":eS+"{ "+w.call(ev,", ")+" }"}return String(r)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return B.call(e,t)}function J(e){return m.call(e)}function z(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 K(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":"")+R.call(t.toString(16))}function G(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):w.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+w.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=$(e),i=[];if(n){i.length=e.length;for(var a=0;a<e.length;a++)i[a]=V(e,a)?t(e[a],e):""}var s="function"==typeof E?E(e):[];if(A){r={};for(var o=0;o<s.length;o++)r["$"+s[o]]=s[o]}for(var c in e)if(V(e,c)&&(!n||String(Number(c))!==c||!(c<e.length)))if(A&&r["$"+c]instanceof Symbol)continue;else S.call(/[^\w$]/,c)?i.push(t(c,e)+": "+t(e[c],e)):i.push(c+": "+t(e[c],e));if("function"==typeof E)for(var u=0;u<s.length;u++)T.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}},174353,(e,t,r)=>{"use strict";var n=e.r(787405),i=e.r(231473),a=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n},s=function(e,t){if(e){var r=a(e,t);return r&&r.value}},o=function(e,t,r){var n=a(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},c=function(e,t){if(e)return a(e,t,!0)};t.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=c(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return s(e,t)},has:function(t){var r;return!!(r=e)&&!!a(r,t)},set:function(t,r){e||(e={next:void 0}),o(e,t,r)}};return t}},314174,(e,t,r)=>{"use strict";
1t.exports=Object},892715,(e,t,r)=>{"use strict";t.exports=Error},607829,(e,t,r)=>{"use strict";t.exports=EvalError},498493,(e,t,r)=>{"use strict";t.exports=RangeError},167914,(e,t,r)=>{"use strict";t.exports=ReferenceError},26857,(e,t,r)=>{"use strict";t.exports=SyntaxError},991878,(e,t,r)=>{"use strict";t.exports=URIError},978866,(e,t,r)=>{"use strict";t.exports=Math.abs},365335,(e,t,r)=>{"use strict";t.exports=Math.floor},922083,(e,t,r)=>{"use strict";t.exports=Math.max},640465,(e,t,r)=>{"use strict";t.exports=Math.min},18849,(e,t,r)=>{"use strict";t.exports=Math.pow},97988,(e,t,r)=>{"use strict";t.exports=Math.round},636469,(e,t,r)=>{"use strict";t.exports=Number.isNaN||function(e){return e!=e}},366205,(e,t,r)=>{"use strict";var n=e.r(636469);t.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},484153,(e,t,r)=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},83585,(e,t,r)=>{"use strict";var n=e.r(484153);if(n)try{n([],"length")}catch(e){n=null}t.exports=n},393155,(e,t,r)=>{"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}t.exports=n},199260,(e,t,r)=>{"use strict";t.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}},811880,(e,t,r)=>{"use strict";var n="u">typeof Symbol&&Symbol,i=e.r(199260);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},277146,(e,t,r)=>{"use strict";t.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},818991,(e,t,r)=>{"use strict";t.exports=e.r(314174).getPrototypeOf||null},992819,(e,t,r)=>{"use strict";var n=Object.prototype.toString,i=Math.max,a=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},s=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},o=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};t.exports=function(e){var t,r=this;if("function"!=typeof r||"[object Function]"!==n.apply(r))throw TypeError("Function.prototype.bind called on incompatible "+r);for(var c=s(arguments,1),u=i(0,r.length-c.length),l=[],f=0;f<u;f++)l[f]="$"+f;if(t=Function("binder","return function ("+o(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof t){var n=r.apply(this,a(c,arguments));return Object(n)===n?n:this}return r.apply(e,a(c,arguments))}),r.prototype){var h=function(){};h.prototype=r.prototype,t.prototype=new h,h.prototype=null}return t}},78387,(e,t,r)=>{"use strict";var n=e.r(992819);t.exports=Function.prototype.bind||n},487957,(e,t,r)=>{"use strict";t.exports=Function.prototype.call},996077,(e,t,r)=>{"use strict";t.exports=Function.prototype.apply},628403,(e,t,r)=>{"use strict";t.exports="u">typeof Reflect&&Reflect&&Reflect.apply},510938,(e,t,r)=>{"use strict";var n=e.r(78387),i=e.r(996077),a=e.r(487957);t.exports=e.r(628403)||n.call(a,i)},954767,(e,t,r)=>{"use strict";var n=e.r(78387),i=e.r(231473),a=e.r(487957),s=e.r(510938);t.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return s(n,a,e)}},905408,(e,t,r)=>{"use strict";var n,i=e.r(954767),a=e.r(83585);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!n&&a&&a(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof c&&function(e){return c(null==e?e:o(e))}},211915,(e,t,r)=>{"use strict";var n=e.r(277146),i=e.r(818991),a=e.r(905408);t.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},137714,(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;t.exports=e.r(78387).call(n,i)},343473,(e,t,r)=>{"use strict";var n=e.r(314174),i=e.r(892715),a=e.r(607829),s=e.r(498493),o=e.r(167914),c=e.r(26857),u=e.r(231473),l=e.r(991878),f=e.r(978866),h=e.r(365335),d=e.r(922083),p=e.r(640465),m=e.r(18849),g=e.r(97988),y=e.r(366205),v=Function,b=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},R=e.r(83585),x=e.r(393155),S=function(){throw new u},j=R?function(){try{return arguments.callee,S}catch(e){try{return R(arguments,"callee").get}catch(e){return S}}}():S,w=e.r(811880)(),P=e.r(211915),_=e.r(818991),F=e.r(277146),E=e.r(996077),O=e.r(487957),A={},I="u">typeof Uint8Array&&P?P(Uint8Array):void 0,T={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":w&&P?P([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"u"<typeof Atomics?void 0:Atomics,"%BigInt%":"u"<typeof BigInt?void 0:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?void 0:Float16Array,"%Float32Array%":"u"<typeof Float32Array?void 0:Float32Array,"%Float64Array%":"u"<typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":"u"<typeof Int8Array?void 0:Int8Array,"%Int16Array%":"u"<typeof Int16Array?void 0:Int16Array,"%Int32Array%":"u"<typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":w&&P?P(P([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"u"<typeof Map?void 0:Map,"%MapIteratorPrototype%":"u">typeof Map&&w&&P?P(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?void 0:Promise,"%Proxy%":"u"<typeof Proxy?void 0:Proxy,"%RangeError%":s,"%ReferenceError%":o,"%Reflect%":"u"<typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?void 0:Set,"%SetIteratorPrototype%":"u">typeof Set&&w&&P?P(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&P?P(""[Symbol.iterator]()):void 0,"%Symbol%":w?Symbol:void 0,"%SyntaxError%":c,"%ThrowTypeError%":j,"%TypedArray%":I,"%TypeError%":u,"%Uint8Array%":"u"<typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?void 0:Uint32Array,"%URIError%":l,"%WeakMap%":"u"<typeof WeakMap?void 0:WeakMap,"%WeakRef%":"u"<typeof WeakRef?void 0:WeakRef,"%WeakSet%":"u"<typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":E,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":_,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":F};if(P)try{null.error}catch(e){var k=P(P(e));T["%Error.prototype%"]=k}var N=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&P&&(r=P(i.prototype))}return T[t]=r,r},C={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=e.r(78387),D=e.r(137714),L=H.call(O,Array.prototype.concat),W=H.call(E,Array.prototype.splice),U=H.call(O,String.prototype.replace),Q=H.call(O,String.prototype.slice),$=H.call(O,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,B=function(e){var t=Q(e,0,1),r=Q(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return U(e,q,function(e,t,r,i){n[n.length]=r?U(i,M,"$1"):t||e}),n},V=function(e,t){var r,n=e;if(D(C,n)&&(n="%"+(r=C[n])[0]+"%"),D(T,n)){var i=T[n];if(i===A&&(i=N(n)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=B(e),n=r.length>0?r[0]:"",i=V("%"+n+"%",t),a=i.name,s=i.value,o=!1,l=i.alias;l&&(n=l[0],W(r,L([0,1],l)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],p=Q(d,0,1),m=Q(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&h||(o=!0),n+="."+d,D(T,a="%"+n+"%"))s=T[a];else if(null!=s){if(!(d in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(R&&f+1>=r.length){var g=R(s,d);s=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[d]}else h=D(s,d),s=s[d];h&&!o&&(T[a]=s)}}return s}},795081,(e,t,r)=>{"use strict";var n=e.r(343473),i=e.r(954767),a=i([n("%String.prototype.indexOf%")]);t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}},975251,(e,t,r)=>{"use strict";var n=e.r(343473),i=e.r(795081),a=e.r(787405),s=e.r(231473),o=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);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(t){if(e){var r=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 o),u(e,t,r)}};return t}},720719,(e,t,r)=>{"use strict";var n=e.r(343473),i=e.r(795081),a=e.r(787405),s=e.r(975251),o=e.r(231473),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);t.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(s&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?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)):s&&(t||(t=s()),t.set(r,n))}};return r}:s},168251,(e,t,r)=>{"use strict";var n=e.r(231473),i=e.r(787405),a=e.r(174353),s=e.r(975251),o=e.r(720719)||s||a;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=o()),e.set(t,r)}};return t}},742959,(e,t,r)=>{"use strict";var n=String.prototype.replace,i=/%20/g,a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:a}},356562,(e,t,r)=>{"use strict";var n=e.r(742959),i=e.r(168251),a=Object.prototype.hasOwnProperty,s=Array.isArray,o=i(),c=function(e,t){return o.set(e,t),e},u=function(e){return o.has(e)},l=function(e){return o.get(e)},f=function(e,t){o.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),d=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}}},p=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};t.exports={arrayToObject:p,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(u(e)){var i=l(e)+1;return e[i]=t,f(e,i),e}var a=[].concat(e,t);return a.length>r?c(p(a,{plainObjects:n}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),o=0;o<s.length;++o){var c=s[o],u=a[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t[t.length]={obj:a,prop:c},r[r.length]=u)}return d(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");
1if("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 s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",c=0;c<s.length;c+=1024){for(var u=s.length>=1024?s.slice(c,c+1024):s,l=[],f=0;f<u.length;++f){var d=u.charCodeAt(f);if(45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===n.RFC1738&&(40===d||41===d)){l[l.length]=u.charAt(f);continue}if(d<128){l[l.length]=h[d];continue}if(d<2048){l[l.length]=h[192|d>>6]+h[128|63&d];continue}if(d<55296||d>=57344){l[l.length]=h[224|d>>12]+h[128|d>>6&63]+h[128|63&d];continue}f+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(f)),l[l.length]=h[240|d>>18]+h[128|d>>12&63]+h[128|d>>6&63]+h[128|63&d]}o+=l.join("")}return o},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,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 e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(s(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>n.arrayLimit)return c(p(t.concat(r),n),i);t[i]=r}else if(!t||"object"!=typeof t)return[t,r];else if(u(t)){var o=l(t)+1;t[o]=r,f(t,o)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(u(r)){for(var h=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<h.length;m++)d[parseInt(h[m],10)+1]=r[h[m]];return c(d,l(r)+1)}var g=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&g.length>n.arrayLimit?c(p(g,n),g.length-1):g}var y=t;return(s(t)&&!s(r)&&(y=p(t,n)),s(t)&&s(r))?(r.forEach(function(r,i){if(a.call(t,i)){var s=t[i];s&&"object"==typeof s&&r&&"object"==typeof r?t[i]=e(s,r,n):t[t.length]=r}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var s=r[i];if(a.call(t,i)?t[i]=e(t[i],s,n):t[i]=s,u(r)&&!u(t)&&c(t,l(r)),u(t)){var o=parseInt(i,10);String(o)===i&&o>=0&&o>l(t)&&f(t,o)}return t},y)}}},173357,(e,t,r)=>{"use strict";var n=e.r(168251),i=e.r(356562),a=e.r(742959),s=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,h=a.default,d={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:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,r,a,s,o,u,f,h,m,g,y,v,b,R,x,S,j,w){for(var P,_,F=t,E=w,O=0,A=!1;void 0!==(E=E.get(p))&&!A;){var I=E.get(t);if(O+=1,void 0!==I)if(I===O)throw RangeError("Cyclic object value");else A=!0;void 0===E.get(p)&&(O=0)}if("function"==typeof g?F=g(r,F):F instanceof Date?F=b(F):"comma"===a&&c(F)&&(F=i.maybeMap(F,function(e){return e instanceof Date?b(e):e})),null===F){if(u)return x(m&&!S?m(r,d.encoder,j,"key",R):r);F=""}if("string"==typeof(P=F)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||i.isBuffer(F))return m?[x(S?r:m(r,d.encoder,j,"key",R))+"="+x(m(F,d.encoder,j,"value",R))]:[x(r)+"="+x(String(F))];var T=[];if(void 0===F)return T;if("comma"===a&&c(F))S&&m&&(F=i.maybeMap(F,function(e){return null==e?e:m(e)})),_=[{value:F.length>0?F.join(",")||null:void 0}];else if(c(g))_=g;else{var k=Object.keys(F);_=y?k.sort(y):k}var N=h?String(r).replace(/\./g,"%2E"):String(r),C=s&&c(F)&&1===F.length?N+"[]":N;if(o&&c(F)&&0===F.length)return C+"[]";for(var H=0;H<_.length;++H){var D=_[H],L="object"==typeof D&&D&&void 0!==D.value?D.value:F[D];if(!f||null!==L){var W=v&&h?String(D).replace(/\./g,"%2E"):String(D),U=c(F)?"function"==typeof a?a(C,W):C:C+(v?"."+W:"["+W+"]");w.set(t,O);var Q=n();Q.set(p,w),l(T,e(L,U,a,s,o,u,f,h,"comma"===a&&S&&c(F)?null:m,g,y,v,b,R,x,S,j,Q))}}return T},g=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],u=d.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),t=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};t.exports=function(e,t){var r,i=e,a=g(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var s=[];if("object"!=typeof i||null===i)return"";var u=o[a.arrayFormat],f="comma"===u&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var h=n(),d=0;d<r.length;++d){var p=r[d];if(null!=p){var y=i[p];a.skipNulls&&null===y||l(s,m(y,p,u,f,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,h))}}var v=s.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B"+a.delimiter:b+="utf8=%E2%9C%93"+a.delimiter),v.length>0?b+v:""}},981719,(e,t,r)=>{"use strict";var n=e.r(356562),i=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==u?u+1:u);if(t.throwOnLimitExceeded&&void 0!==u&&l.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var f=-1,h=t.charset;if(t.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?h="utf-8":"utf8=%26%2310003%3B"===l[d]&&(h="iso-8859-1"),f=d,d=l.length);for(d=0;d<l.length;++d)if(d!==f){var d,p,m,g=l[d],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(p=t.decoder(g,s.decoder,h,"key"),m=t.strictNullHandling?null:""):null!==(p=t.decoder(g.slice(0,v),s.decoder,h,"key"))&&(m=n.maybeMap(o(g.slice(v+1),t,a(r[p])?r[p].length:0),function(e){return t.decoder(e,s.decoder,h,"value")}
1)),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=String(m).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(m=a(m)?[m]:m),t.comma&&a(m)&&m.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");m=n.combine([],m,t.arrayLimit,t.plainObjects)}if(null!==p){var b=i.call(r,p);b&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?r[p]=n.combine(r[p],m,t.arrayLimit,t.plainObjects):b&&"last"!==t.duplicates||(r[p]=m)}}return r},u=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var s=e.slice(0,-1).join("");a=Array.isArray(t)&&t[s]?t[s].length:0}for(var c=i?t:o(t,r,a),u=e.length-1;u>=0;--u){var l,f=e[u];if("[]"===f&&r.parseArrays)l=n.isOverflow(c)?c:r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var h="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,p=parseInt(d,10),m=!isNaN(p)&&f!==d&&String(p)===d&&p>=0&&r.parseArrays;if(r.parseArrays||""!==d)if(m&&p<r.arrayLimit)(l=[])[p]=c;else if(m&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else m?(l[p]=c,n.markOverflow(l,p)):"__proto__"!==d&&(l[d]=c);else l={0:c}}c=l}return c},l=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("["),s=a>=0?r.slice(0,a):r;if(s){if(!t.plainObjects&&i.call(Object.prototype,s)&&!t.allowPrototypes)return;n[n.length]=s}for(var o=r.length,c=a,u=0;c>=0&&u<t.depth;){for(var l=1,f=c+1,h=-1;f<o&&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},f=function(e,t,r,n){if(e){var i=l(e,r);if(i)return u(i,t,r,n)}},h=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,r=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:s.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};t.exports=function(e,t){var r=h(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?c(e,r):e,a=r.plainObjects?{__proto__:null}:{},s=Object.keys(i),o=0;o<s.length;++o){var u=s[o],l=f(u,i[u],r,"string"==typeof e);
1a=n.merge(a,l,r)}return!0===r.allowSparse?a:n.compact(a)}},206551,(e,t,r)=>{"use strict";var n=e.r(173357),i=e.r(981719);t.exports={formats:e.r(742959),parse:i,stringify:n}},912064,(e,t,r)=>{"use strict";t.exports="3.29.1"},106824,(e,t,r)=>{function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}t.exports=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.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},n.prototype.emit=function(e){var t,r,n,s,o,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(r=this._events[e]))return!1;if(i(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:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(a(r))for(o=0,s=Array.prototype.slice.call(arguments,1),n=(c=r.slice()).length;o<n;o++)c[o].apply(this,s);return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(r=void 0===this._maxListeners?n.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},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var r,n,s,o;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(r=this._events[e]).length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(o=s;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;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},n.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(i(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},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},658110,(e,t,r)=>{"use strict";t.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},871751,(e,t,r)=>{"use strict";var n=e.r(106824);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}e.r(658110)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},t.exports=i},518781,(e,t,r)=>{"use strict";
1t.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},221387,(e,t,r)=>{"use strict";function n(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}t.exports=function(e){n(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var i=arguments[t];n(i)&&function e(t,r){if(t===r)return t;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&"__proto__"!==i&&"constructor"!==i){var a=r[i],s=t[i];(void 0===s||void 0!==a)&&(n(s)&&n(a)?t[i]=e(s,a):t[i]="object"==typeof a&&null!==a?e(Array.isArray(a)?[]:{},a):a)}return t}(e,i)}return e}},227878,(e,t,r)=>{"use strict";t.exports=function(e){return e&&Object.keys(e).length>0}},543261,(e,t,r)=>{"use strict";t.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}},573705,(e,t,r)=>{"use strict";function n(e){e=e||{},this.params=e.params||[]}n.prototype={constructor:n,addParams:function(e){var t=this.params.slice();return t.push(e),new n({params:t})},removeParams:function(e){return new n({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})}},t.exports=n},949873,(e,t,r)=>{"use strict";function n(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]})}n.prototype={constructor:n},t.exports=n},94050,(e,t,r)=>{"use strict";var n=e.r(221387);function i(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var a={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),o=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(o).length>1){var c=s[0].split(o).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(o)})},[]);c.forEach(function(n,s){var o=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function u(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(o.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!u(e)});r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e},[]),f=c[s-1];s>0?o.facetFilters=l.concat(f.attribute+":"+f.value):l.length>0?o.facetFilters=l:delete o.facetFilters,r.push({indexName:e,params:o})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:a._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};return t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s),i(n({},e.getQueryParams(),c))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t})).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s);var u=e.getQueryParams();return delete u.highlightPreTag,delete u.highlightPostTag,delete u.index,i(n({},u,c))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=a._getFacetFilters(e,t,r),o=a._getNumericFilters(e,t),c=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return l?u.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,r):u.facets=t,o.length>0&&(u.numericFilters=o),s.length>0&&(u.facetFilters=s),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];
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 s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(i){var a,s,c=(o[i]||[])[0];if(void 0!==c){var u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),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?(s=f.split(l).length-1,c=f):(s=c.split(l).length-2,c=c.slice(0,c.lastIndexOf(l))),a=u.attributes[s]}else s=c.split(l).length-1,a=u.attributes[s];a&&n.push([a+":"+c])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var o=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,c={facetQuery:t,facetName:e};return"number"==typeof r&&(c.maxFacetHits=r),i(n({},a._getHitsSearchParams(o),c))}};t.exports=a},178744,(e,t,r)=>{"use strict";t.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},{})}},658198,(e,t,r)=>{"use strict";t.exports=function(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}}},850744,(e,t,r)=>{"use strict";t.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},97208,(e,t,r)=>{"use strict";t.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},8704,(e,t,r)=>{"use strict";t.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},140513,(e,t,r)=>{"use strict";var n=e.r(178744),i=e.r(227878),a=e.r(543261),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],o={};return o[t]=a,n(o,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,function(e,r){return t===r});var n=""+r;return s.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return a(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce(function(i,a){var s=e[a]||[],o=s.filter(function(e){return!t(e,a,r)});return o.length!==s.length&&(n=!0),i[a]=o,i},{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}};t.exports=s},339665,(e,t,r)=>{"use strict";var n=e.r(178744),i=e.r(658198),a=e.r(850744),s=e.r(221387),o=e.r(227878),c=e.r(543261),u=e.r(97208),l=e.r(8704),f=e.r(140513);function h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return h(t[r],e)}):e===t}function d(e){var t=e?d._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is 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!==d.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function p(e){var t=parseFloat(e);return isFinite(t)?t:null}d.PARAMETERS=Object.keys(new d),d._parseNumbers=function(e){if(e instanceof d)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);isNaN(i)?t[r]=n:isFinite(i)?t[r]=i:t[r]=null}else"number"!=typeof n||isFinite(n)||(t[r]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return s(e,t)},d.make=function(e){var t=new d(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},d.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&o(r.numericRefinements)?Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):o(e.numericRefinements)&&r.numericFilters?Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},d.prototype={constructor:d,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements: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=s({},this.numericRefinements);return i[e]=s({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&h(n.val,u(r))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return c(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var a=r[i],s={};return Object.keys(a=a||{}
vendor: 8,277 bytes, line 1
1).forEach(function(r){var n=a[r]||[],o=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||o.push(t)}),o.length!==n.length&&(t=!0),s[r]=o}),n[i]=s,n},{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return 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,a=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!a)return a;var s=u(r),o=void 0!==(n=this.numericRefinements[e][t],i(n,function(e){return h(e,s)}));return a&&o},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;
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=d.validate(this,e);if(t)throw t;var r=this,n=d._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),a=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?c(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},t.exports=d},939241,(e,t,r)=>{"use strict";t.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},210591,(e,t,r)=>{"use strict";t.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}},237113,(e,t,r)=>{"use strict";var n=e.r(658198);t.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},[[],[]])}},717642,(e,t,r)=>{"use strict";t.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,i=t[r];void 0!==i&&i>=n&&(void 0!==e[r]&&delete e[r],e[r]=i)}),e},{})}},326080,(e,t,r)=>{"use strict";t.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})}},148379,(e,t,r)=>{"use strict";t.exports=function(e){return function(t,r){var n,u,l,f,h,d=e.hierarchicalFacets[r],p=e.hierarchicalFacetsRefinements[d.name]&&e.hierarchicalFacetsRefinements[d.name][0]||"",m=e._getHierarchicalFacetSeparator(d),g=e._getHierarchicalRootPath(d),y=e._getHierarchicalShowParentLevel(d),v=a(e._getHierarchicalFacetSortBy(d)),b=t.every(function(e){return e.exhaustive}),R=(n=v,u=m,l=g,f=y,h=p,function(e,t,r){var a=e;if(r>0){var d=0;for(a=e;d<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),d++}if(a){var p=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r,n,i,s,o;return t=e[0],r=a.path||l,n=h,i=u,s=l,o=f,(!s||0===t.indexOf(s)&&s!==t)&&(!s&&-1===t.indexOf(i)||s&&t.split(i).length-s.split(i).length==1||-1===t.indexOf(i)&&-1===n.indexOf(i)||0===n.indexOf(t)||0===t.indexOf(r+i)&&(o||0===t.indexOf(n)))});a.data=s(p.map(function(e){var r,n,i,a,s,l,f=e[0];return r=e[1],n=f,i=u,a=c(h),s=t.exhaustive,{name:(l=n.split(i))[l.length-1].trim(),path:n,escapedValue:o(n),count:r,isRefined:a===n||0===a.indexOf(n+i),exhaustive:s,data:null}}),n[0],n[1])}return e}),x=t;return g&&(x=t.slice(g.split(m).length)),x.reduce(R,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:b,data:null})}};var n=e.r(518781),i=e.r(658198),a=e.r(237113),s=e.r(326080),o=n.escapeFacetValue,c=n.unescapeFacetValue},656485,(e,t,r)=>{"use strict";var n=e.r(939241),i=e.r(178744),a=e.r(518781),s=e.r(658198),o=e.r(210591),c=e.r(237113),u=e.r(717642),l=e.r(326080),f=a.escapeFacetValue,h=a.unescapeFacetValue,d=e.r(148379);function p(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function m(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var a=t[0]||{};this._rawResults=t;var c=this;
1Object.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(),g=p(e.facets),y=p(e.disjunctiveFacets),v=1,b=a.facets||{};Object.keys(b).forEach(function(t){var r=b[t],n=(l=e.hierarchicalFacets,s(l,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(n){var i=n.attributes.indexOf(t),u=o(e.hierarchicalFacets,function(e){return e.name===n.name});c.hierarchicalFacets[u][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,f,h=-1!==e.disjunctiveFacets.indexOf(t),d=-1!==e.facets.indexOf(t);h&&(f=y[t],c.disjunctiveFacets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(c.disjunctiveFacets[f],a.facets_stats,t)),d&&(f=g[t],c.facets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(c.facets[f],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),f.forEach(function(r){var n=t[v],s=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(s).forEach(function(t){var r,f=s[t];if(l){r=o(e.hierarchicalFacets,function(e){return e.name===l.name});var d=o(c.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===d)return;c.hierarchicalFacets[r][d].data=c.persistHierarchicalRootCount?u(c.hierarchicalFacets[r][d].data,f):i(f,c.hierarchicalFacets[r][d].data)}else{r=y[t];var p=a.facets&&a.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:u(p,f),exhaustive:n.exhaustiveFacetsCount},m(c.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!c.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(h(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),v++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(a).length<2||t.slice(v).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var u=r[t],l=o(e.hierarchicalFacets,function(e){return e.name===n.name}),f=o(c.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==f){var h={};if(s.length>0&&!c.persistHierarchicalRootCount){var d=s[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)}}),v++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];c.facets[n]={name:t,data:b[t],exhaustive:a.exhaustiveFacetsCount},r.forEach(function(e){c.facets[n]=c.facets[n]||{name:t},c.facets[n].data=c.facets[n].data||{},c.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(d(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function y(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function v(e,t,r,n,i){var a=s(i,function(e){return e.name===r}),o=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:o,exhaustive:a&&a.exhaustive||!1}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r,n=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=s(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=f(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=s(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=f(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var a=s(e.hierarchicalFacets,r);if(!a)return a;var o=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(o),u=h(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(o.rootPath)&&(u=u.replace(o.rootPath+c,""));var l=u.split(c);return l.unshift(t),function e(t,r,n){t.isRefined=t.name===(r[n]&&r[n].trim()),t.data&&t.data.forEach(function(t){e(t,r,n+1)})}(a,l,0),a}}(this,e);if(n){var a=i(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;return r=Array.isArray(n)?[e]:o._state.getHierarchicalFacetByName(n.name).attributes,function e(t,r,n,a){if(a=a||0,Array.isArray(r))return t(r,n[a]);if(!r.data||0===r.data.length)return r;var s=r.data.map(function(r){return e(t,r,n,a+1)});return i({data:t(s,n[a])},r)}(function(e,t){var r,n,i,s,u,f,h,d=o.renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&d)return n=[],i=[],s=d.hide||[],u=(d.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=s.indexOf(t)>-1;r||void 0===u[t]?r||i.push(e):n[u[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(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,g.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)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(v(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(v(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(v(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,o,c,u,l,f,h,d,p,m,g;r.push((a=e,o=n,c=i,u=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(o),f=a._getHierarchicalFacetSeparator(l),h=c.split(f),d=s(u,function(e){return e.name===o}),m=(p=h.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},d))&&p.count||0,g=p&&p.exhaustive||!1,{type:"hierarchical",attributeName:o,name:p&&p.path||"",count:m,exhaustive:g}))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},t.exports=g},962816,(e,t,r)=>{t.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},685762,(e,t,r)=>{"use strict";var n=e.r(658198),i=e.r(962816);t.exports=function(e,t){var r,a,s={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(s[t.objectID]?s[t.objectID]={indexSum:s[t.objectID].indexSum+r,count:s[t.objectID].count+1}:s[t.objectID]={indexSum:r,count:1})})}),(r=t.length,a=[],Object.keys(s).forEach(function(e){s[e].count<2&&(s[e].indexSum+=100),a.push({objectID:e,avgOfIndices:s[e].indexSum/r})}),a.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})).reduce(function(e,r){var a=n(i(t),function(e){return e.objectID===r.objectID});return a?e.concat(a):e},[])}},372516,(e,t,r)=>{"use strict";var n=e.r(106824),i=e.r(871751),a=e.r(518781).escapeFacetValue,s=e.r(658110),o=e.r(221387),c=e.r(227878),u=e.r(543261),l=e.r(573705),f=e.r(949873),h=e.r(94050),d=e.r(339665),p=e.r(656485),m=e.r(685762),g=e.r(912064);function y(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=d.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function v(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function b(){return this.state.page}s(y,n),y.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},y.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},y.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},y.prototype.recommend=function(){return this._recommend(),this},y.prototype.getQuery=function(){var e=this.state;return h._getHitsSearchParams(e)},y.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=h._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new p(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}):this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new p(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},y.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(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 s=this.client.initIndex(n.index);if("function"!=typeof s.findAnswers)throw Error(a);return s.findAnswers(n.query,e.queryLanguages,i)},y.prototype.searchForFacetValues=function(e,t,r,n){var i,s="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,o="function"==typeof this.client.initIndex;if(!s&&!o&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(n||{}),u=c.isDisjunctiveFacet(e),l=h.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var f=this;s?i=this.client.searchForFacetValues([{indexName:c.index,params:l}]):o?i=this.client.initIndex(c.index).searchForFacetValues(l):(delete l.facetName,i=this.client.search([{type:"facet",facet:e,indexName:c.index,params:l}]).then(function(e){return e.results[0]}
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})},y.prototype.searchForCompositionFacetValues=function(e,t,r,n){if("function"!=typeof this.client.searchForFacetValues)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i,s=this.state.setQueryParameters(n||{}),o=s.isDisjunctiveFacet(e);this._currentNbQueries++;var c=this;return i=this.client.searchForFacetValues({compositionID:s.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:h._getCompositionHitsSearchParams(s)}}}),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),i.then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=a(t.value),t.isRefined=o?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},y.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},y.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},y.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},y.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},y.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},y.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},y.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},y.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},y.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},y.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},y.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},y.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},y.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},y.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},y.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},y.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},y.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},y.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},y.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},y.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},y.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},y.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParam
vendor: 4,059 bytes, line 1
1s(e)}),this},y.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},y.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},y.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},y.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},y.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},y.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},y.prototype.setCurrentPage=v,y.prototype.setPage=v,y.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},y.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},y.prototype.setState=function(e){return this._change({state:d.make(e),isPageReset:!1}),this},y.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new d(e),this},y.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))},y.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},y.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},y.prototype.hasTag=function(e){return this.state.isTagRefined(e)},y.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},y.prototype.getIndex=function(){return this.state.index},y.prototype.getCurrentPage=b,y.prototype.getPage=b,y.prototype.getTags=function(){return this.state.tagRefinements},y.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},y.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},y.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},y.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),s=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));
1try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(e){this.emit("error",{error:e})}},y.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})}},y.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var a=this._recommendCache,s=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var s=t.getModifiedRecommendState(new l);return n.push({state:s,index:r,helper:t}),i=Array.prototype.concat.apply(i,s.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:s,results:t.lastRecommendResults}}),s._buildQueries(r,a)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),s);if(0!==o.length){if(o.length>0&&void 0===this.client.getRecommendations)return void console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,c,n,i)).catch(this._dispatchRecommendError.bind(this,c))}catch(e){this.emit("error",{error:e})}}},y.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=r.results.slice(),a=Object.keys(r).reduce(function(e,t){return"results"!==t&&(e[t]=r[t]),e},{});Object.keys(a).length<=0&&(a=void 0),e.forEach(function(e){var t=e.state,r=e.queriesCount,s=e.helper,o=void 0!==r?i.splice(0,r):i;if(!t.index)return void s.emit("result",{results:null,state:t});if(o.length>0&&o[0].feedID){var c=o.map(function(e){var r=new p(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});s.lastResults=new p(t,[o[0]],n._searchResultsOptions),s.lastResults.feeds=c,void 0!==a&&(s.lastResults._rawContent=a)}else s.lastResults=new p(t,o,n._searchResultsOptions),void 0!==a&&(s.lastResults._rawContent=a);s.emit("result",{results:s.lastResults,state:t})})}},y.prototype._dispatchRecommendResponse=function(e,t,r,n){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty");var i=this._recommendCache,a={};r.filter(function(e){return void 0===i[e]}).forEach(function(e,t){a[e]||(a[e]=[]),a[e].push(t)}),Object.keys(a).forEach(function(e){var t=a[e],s=n.results[t[0]];if(1===t.length){i[e]=s;return}i[e]=Object.assign({},s,{hits:m(r,t.map(function(e){return n.results[e].hits}))})});var s={};r.forEach(function(e){s[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;e.index?(r.lastRecommendResults=new f(t,s),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})):r.emit("recommend:result",{results:null,state:t})})}},y.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"))},y.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryId
1Received,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},y.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},y.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},y.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}))},y.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}}))},y.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},y.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},y.prototype.getClient=function(){return this.client},y.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},y.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},y.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},t.exports=y},425896,(e,t,r)=>{"use strict";var n=e.r(372516),i=e.r(573705),a=e.r(949873),s=e.r(339665),o=e.r(656485);function c(e,t,r,i){return new n(e,t,r,i)}c.version=e.r(912064),c.AlgoliaSearchHelper=n,c.SearchParameters=s,c.RecommendParameters=i,c.SearchResults=o,c.RecommendResults=a,t.exports=c},158180,(e,t,r)=>{"use strict";var n=e.r(973608),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return o(function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})},[e,r,t]),s(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},765472,(e,t,r)=>{"use strict";t.exports=e.r(158180)},20694,e=>{"use strict";var t=e.i(42588),r=e.i(189490),n=e.i(146410),i=e.i(88593),a=e.i(750630),s=e.i(75635);function o(e={serializable:!0}){let t={};return{get(r,n,i={miss:()=>Promise.resolve()}){let a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);let s=n();return s.then(e=>i.miss(e)).then(()=>s)},set:(r,n)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function c(e,t="up"){let r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>12e4},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=12e4}}}var u=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},l=class extends u{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},f=class extends l{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",e,"RetryError")}},h=class extends l{status;constructor(e,t,r,n="ApiError"){super(e,r,n),this.status=t}},d=class extends u{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},p=class extends h{error;constructor(e,t,r,n){super(e,t,n,"DetailedApiError"),this.error=r}};function m(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}var g="5.52.1";function y(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function v(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 b(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x=e.i(206551);function S(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"u"<typeof window?t():e({window:window})}var j=function(e){e&&(window.document.title=e)},w=function(){function e(t){var r=this,n=t.windowTitle,i=t.writeDelay,a=t.createURL,s=t.parseURL,o=t.getLocation,c=t.start,u=t.dispose,l=t.push,f=t.cleanUrlOnDispose;y(this,e),R(this,"$$type","ais.browser"),R(this,"windowTitle",void 0),R(this,"writeDelay",void 0),R(this,"_createURL",void 0),R(this,"parseURL",void 0),R(this,"getLocation",void 0),R(this,"writeTimer",void 0),R(this,"_onPopState",void 0),R(this,"inPopState",!1),R(this,"isDisposed",!1),R(this,"latestAcknowledgedHistory",0),R(this,"_start",void 0),R(this,"_dispose",void 0),R(this,"_push",void 0),R(this,"_cleanUrlOnDispose",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=void 0===i?400:i,this._createURL=a,this.parseURL=s,this.getLocation=o,this._start=c,this._dispose=u,this._push=l,this._cleanUrlOnDispose=void 0===f||f,S(function(e){var t=e.window;j(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return b(e,[{key:"read",value:function(){return this.parseURL({qsModule:x.default,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;S(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(){j(a),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,a||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}}
1,{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},S(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:x.default,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,S(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 S(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&i&&e!==n.location.href})}}]),e}();function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,a=n.hostname,s=n.port,o=void 0===s?"":s,c=n.pathname,u=n.hash,l=t.stringify(r),f=""===o?"":":".concat(o);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=void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=e.windowTitle,o=e.getLocation;return new w({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:s,getLocation:void 0===o?function(){return S(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,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}let _=e=>[{id:"production",label:e?.filter_sort_featured||"",value:"production"},{id:"production_date_desc",label:e?.filter_sort_new||"",value:"production_date_desc"},{id:"production_name_desc",label:"name sort",value:"production_name_desc"}],F={default:function(e,t){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let{compression:r,...n}={};return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...i}){let a=function(e,t,r="WithinHeaders"){let n={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?n:{},queryParameters:()=>"WithinQueryParameters"===r?n:{}}}(e,t,r),s=function({hosts:e,hostsCache:t,baseHeaders:r,logger:n,baseQueryParameters:i,algoliaAgent:a,timeouts:s,requester:o,requestsCache:u,responsesCache:l,compress:g,compression:y}){async function v(e){let r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(c(e))))),n=r.filter(e=>e.isUp()),i=r.filter(e=>e.isTimedOut()),a=[...n,...i];return{hosts:a.length>0?a:e,getTimeout:(e,t)=>(0===i.length&&0===e?1:i.length+3+e)*t}}async function b(u,l,b){var R,x;let S,j,w=[],P=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data))return JSON.stringify(Array.isArray(e.data)?e.data:{...e.data,...t.data})}(u,l),_=(R=u.headers,x=l.headers,S={Accept:"application/json",...r,...R,...x},j={},Object.keys(S).forEach(e=>{let t=S[e];j[e.toLowerCase()]=t}),j),F="gzip"===y&&void 0!==P&&P.length>750&&("POST"===u.method||"PUT"===u.method);F&&void 0===g&&n.info("Compression is disabled because no compress method is available.");let E=F&&void 0!==g,O=E?await g(P):P;E&&(_["content-encoding"]="gzip");let A="GET"===u.method?{...u.data,...l.data}:{},I={...i,...u.queryParameters,...A};if(a.value&&(I["x-algolia-agent"]=a.value),l&&l.queryParameters)for(let e of Object.keys(l.queryParameters))l.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(l.queryParameters[e])?I[e]=l.queryParameters[e].toString():I[e]=l.queryParameters[e];let T=0,k=async(e,r)=>{var i,a;let g,y,v=e.pop();if(void 0===v)throw new f(w.map(e=>m(e)));let R={...s,...l.timeouts},x={data:O,headers:_,method:u.method,url:(a=u.path,g=Object.keys(i=I).filter(e=>void 0!==i[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(i[e])?i[e].join(","):i[e]).replace(/\+/g,"%20")}`).join("&"),y=`${v.protocol}://${v.url}${v.port?`:${v.port}`:""}/${"/"===a.charAt(0)?a.substring(1):a}`,g.length&&(y+=`?${g}`),y),connectTimeout:r(T,R.connect),responseTimeout:r(T,b?R.read:R.write)},S=t=>{let r={request:x,response:t,host:v,triesLeft:e.length};return w.push(r),r},j=await o.send(x);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(j)){let i=S(j);return j.isTimedOut&&T++,n.info("Retryable failure",m(i)),await t.set(v,c(v,j.isTimedOut?"timed out":"down")),k(e,r)}if(function({status:e}){return 2==~~(e/100)}(j)){try{return JSON.parse(j.content)}catch(e){throw new d(e.message,j)}}throw S(j),function({content:e,status:t},r){try{let n=JSON.parse(e);if("error"in n)return new p(n.message,t,n.error,r);return new h(n.message,t,r)}catch{}return new h(e,t,r)}(j,w)},N=e.filter(e=>"readWrite"===e.accept||(b?"read"===e.accept:"write"===e.accept)),C=await v(N);return k([...C.hosts].reverse(),C.getTimeout)}return{hostsCache:t,requester:o,timeouts:s,logger:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:i,hosts:e,request:function(e,t={}){let n=e.useReadTransporter||"GET"===e.method;if(!0!==(t.cacheable||e.cacheable))return b(e,t,n);let a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return l.get(a,()=>u.get(a,()=>u.set(a,b(e,t,n)).then(e=>Promise.all([u.delete(a),e]),e=>Promise.all([u.delete(a),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>l.set(a,e)})},requestsCache:u,responsesCache:l}}({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}
1])),...i,algoliaAgent:function({algoliaAgents:e,client:t,version:r}){let n,i=(n={value:`Algolia for JavaScript (${r})`,add(e){let t=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===n.value.indexOf(t)&&(n.value=`${n.value}${t}`),n}}).add({segment:t,version:r});return e.forEach(e=>i.add(e)),i}({algoliaAgents:n,client:"Lite",version:g}),baseHeaders:{"content-type":"text/plain",...a.headers(),...i.baseHeaders},baseQueryParameters:{...a.queryParameters(),...i.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},customPost({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let i="/{path}".replace("{path}",e);return s.request({method:"POST",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");let r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return s.request(r,t)},search(e,t){if(e&&Array.isArray(e)&&(e={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!e)throw Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw Error("Parameter `searchMethodParams.requests` is required when calling `search`.");let r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return s.request(r,t)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()},requester:{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>r.setRequestHeader(t,e.headers[t]));let n=(e,n)=>setTimeout(()=>{r.abort(),t({status:0,content:n,isTimedOut:!0})},e),i=n(e.connectTimeout,"Connection timeout"),a;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===a&&(clearTimeout(i),a=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(i),clearTimeout(a),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(i),clearTimeout(a),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:function e(t){let r=[...t.caches],n=r.shift();return void 0===n?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,r.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(t,i,a={miss:()=>Promise.resolve()})=>n.get(t,i,a).catch(()=>e({caches:r}).get(t,i,a)),set:(t,i)=>n.set(t,i).catch(()=>e({caches:r}).set(t,i)),delete:t=>n.delete(t).catch(()=>e({caches:r}).delete(t)),clear:()=>n.clear().catch(()=>e({caches:r}).clear())}}({caches:[function(e){let t,r=`algolia-client-js-${e.key}`;function n(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function i(){return JSON.parse(n().getItem(r)||"{}")}function a(e){n().setItem(r,JSON.stringify(e))}return{get:(t,r,n={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>{let r,n;return r=e.timeToLive?1e3*e.timeToLive:null,a(n=Object.fromEntries(Object.entries(i()).filter(([,e])=>void 0!==e.timestamp))),r&&a(Object.fromEntries(Object.entries(n).filter(([,e])=>{let t=new Date().getTime();return!(e.timestamp+r<t)}))),i()[JSON.stringify(t)]}).then(e=>Promise.all([e?e.value:r(),void 0!==e])).then(([e,t])=>Promise.all([e,t||n.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve().then(()=>{let a=i();return a[JSON.stringify(e)]={timestamp:new Date().getTime(),value:t},n().setItem(r,JSON.stringify(a)),t}),delete:e=>Promise.resolve().then(()=>{let t=i();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{n().removeItem(r)})}}({key:`${g}-${e}`}),o()]}),...n})}("9JBK1GU8N1","b0279261887639b7ad004348639bb056")},E=()=>
1[{id:5,attribute:"lang",type:"short-list",slug:"lang",preProcess:e=>(0,a.isLanguageCode)(e)?(0,a.getLanguage)(e).name:e},{id:0,attribute:"post_type",type:"short-list",slug:"type",preProcess:e=>(0,s.mapPostType)(e)},{id:1,attribute:"taxonomies.solution_category.name",type:"list",slug:"solution"},{id:2,attribute:"taxonomies.industry_category.name",type:"list",slug:"industry"},{id:4,attribute:"taxonomies.collection.name",type:"list",slug:"collection"},{id:3,attribute:"taxonomies.category.name",type:"list",slug:"category"},{id:6,attribute:"taxonomies.company_tag.name",type:"list",slug:"company_tag"},{id:7,attribute:"taxonomies.region.name",type:"list",slug:"company_region"}];function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){R(e,t,r[t])})}return e}function A(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var I=e.i(425896);function T(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function k(e){if((void 0===e?"undefined":T(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}function N(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){var t;return"https://www.algolia.com/doc/api-reference/widgets/"+e.name+"/js/"+(void 0!==(t=e.connector)&&t?"#connector":"")}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}function C(e,t){if(null==e)return{};var r,n,i=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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(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}function H(e){return e.filter(function(e,t,r){return r.indexOf(e)===t})}var D=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=C(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)},L=function(e,t){var r=H([].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e},W=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,n,i,a,s,o,c,u;return D((u=L((r=e.setQueryParameters({hierarchicalFacetsRefinements:O({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)}),n=r.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},r.hierarchicalFacets)}),i=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},n),a=i.setQueryParameters({numericRefinements:O({},i.numericRefinements,t.numericRefinements)}),s=a.setQueryParameters({disjunctiveFacetsRefinements:O({},a.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)}),o=s.setQueryParameters({facetsExcludes:O({},s.facetsExcludes,t.facetsExcludes)}),c=o.setQueryParameters({facetsRefinements:O({},o.facetsRefinements,t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},c)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},u)),t)})};function U(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}var Q=N({name:"configure",connector:!0});function $(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return A(O({},e),R({},t,void 0))},{}))}var q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return function(r){if(!r||!k(r.searchParameters))throw Error(Q("The `searchParameters` option expects an object."));var n={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return t(),$(n,r)},getRenderState:function(e,t){var r,n=this.getWidgetRenderState(t);return A(O({},e),{configure:A(O({},n),{widgetParams:A(O({},n.widgetParams),{searchParameters:W(new I.default.SearchParameters(null==(r=e.configure)?void 0:r.widgetParams.searchParameters),new I.default.SearchParameters(n.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return n.refine||(n.refine=function(e){var n=W($(t.state,r),new I.default.SearchParameters(e));r.searchParameters=e,t.setState(n).search()}),{refine:n.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var n=t.uiState;return W(e,new I.default.SearchParameters(O({},n.configure,r.searchParameters)))},getWidgetUiState:function(e){return A(O({},e),{configure:O({},e.configure,r.searchParameters)})}}}};function M(e){if(Array.isArray(e))return e}
1function B(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(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}function J(e,t){if(e){if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(e,t)}}function z(e,t){return M(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||J(e,t)||B()}function K(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var G=e.i(973608),Y=Object.prototype.hasOwnProperty;function X(e,t,r){var n,i;if((null==r?void 0:r(e,t))||e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&X(e[i],t[i],r););return -1===i}if(!n||(void 0===e?"undefined":T(e))==="object"){for(n in i=0,e)if(Y.call(e,n)&&++i&&!Y.call(t,n)||!(n in t)||!X(e[n],t[n],r))return!1;return Object.keys(t).length===i}}return e!=e&&t!=t}function Z(e){var t,r,n;return new I.default.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(r=e.page)?r:0,hitsPerPage:null!=(n=e.hitsPerPage)?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function ee(e){var t=e.getHelper(),r=e.getResults()||Z(t.state),n=e.getScopedResults().map(function(t){var n=t.indexId===e.getIndexId()?r:Z(t.helper.state);return A(O({},t),{results:t.results||n})});return{results:r,scopedResults:n,recommendResults:t.lastRecommendResults}}var et=(0,G.createContext)(null);function er(e,t){if(!e)throw Error("Invariant failed")}function en(){var e=(0,G.useContext)(et);return er(null!==e),e}var ei=(0,G.createContext)(null);function ea(){var e=(0,G.useContext)(ei);return er(null!==e),e}var es=(0,G.createContext)(null);function eo(){return(0,G.useContext)(es)}var ec=(0,G.createContext)(null);function eu(){return(0,G.useContext)(ec)}function el(e){var t=z((0,G.useState)(function(){return e}),2),r=t[0],n=t[1];return X(r,e)||n(e),r}var ef=G.use,eh="u">typeof window?G.useLayoutEffect:G.useEffect,ed=(0,G.createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1});function ep(){return(0,G.useContext)(ed)}function em(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=M(t=[r,n])||K(t)||J(t)||B(),a=i[0],s=z(i.slice(1),1)[0],o=void 0===s?{}:s,c=o.skipSuspense,u=C(o,["skipSuspense"]),l=eo(),f=eu(),h=ea(),d=en(),p=el(void 0===a?{}:a),m=el(u),g=(0,G.useRef)(!0),y=(0,G.useRef)(null),v=(0,G.useRef)(h.status),b=(0,G.useMemo)(function(){return O({},e(function(e,t){if(t){g.current=!0;return}if(g.current){var r=e.instantSearchInstance;e.widgetParams;var n=C(e,["instantSearchInstance","widgetParams"]);X(n,y.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===v.current||(S(n),y.current=n,v.current=r.status)}},function(){g.current=!1})(p),m)},[e,p,m]),R=z((0,G.useState)(function(){if(b.getWidgetRenderState){var e,t=d.getHelper(),r=d.getWidgetUiState({})[d.getIndexId()];t.state=(null==(e=b.getWidgetSearchParameters)?void 0:e.call(b,t.state,{uiState:r}))||t.state;var n=ee(d),i=n.results,a=n.scopedResults,s=n.recommendResults,o=b.getWidgetRenderState({helper:t,parent:d,instantSearchInstance:h,results:"recommend"===b.dependsOn&&s&&f?s[f.recommendIdx.current++]:i,scopedResults:a,state:t.state,renderState:h.renderState,templatesConfig:h.templatesConfig,createURL:d.createURL,searchMetadata:{isSearchStalled:"stalled"===h.status},status:h.status,error:h.error});return o.widgetParams,C(o,["widgetParams"])}return{}}),2),x=R[0],S=R[1];return!function(e){var t,r,n,i=e.widget,a=e.parentIndex,s=e.props,o=e.shouldSsr,c=e.skipSuspense,u=ep(),l=u.waitForResultsRef,f=u.countRef;u.ignoreMultipleHooksWarning;var h=(0,G.useRef)(s);(0,G.useEffect)(function(){h.current=s},[s]);var d=(0,G.useRef)(i);(0,G.useEffect)(function(){d.current=i},[i]);var p=(0,G.useRef)(null),m=o&&!a.getWidgets().includes(i),g=ea();eh(function(){var e=d.current;return p.current?(clearTimeout(p.current),X(s,h.current)||(a.removeWidgets([e]),a.addWidgets([i]))):o||a.addWidgets([i]),function(){p.current=setTimeout(function(){g._schedule(function(){g._preventWidgetCleanup||a.removeWidgets([e])})})}},[a,i,o,g,s]),(m||(null==l||null==(t=l.current)?void 0:t.status)==="pending")&&a.addWidgets([i]),(null==l?void 0:l.current)&&!c&&(ef(l.current),"ais.dynamicWidgets"!==i.$$type&&"ais.feeds"!==i.$$type&&(null==(n=g.helper)?void 0:n.lastResults)&&ef(l.current)),(null==l||null==(r=l.current)?void 0:r.status)==="fulfilled"&&(f.current+=1)}({widget:b,parentIndex:d,props:p,shouldSsr:!!l,skipSuspense:void 0!==c&&c}),x}function eg(e){return em(q,{searchParameters:O({},e)},{$$widgetType:"ais.configure"}),null}function ey(e){return function(e){if(Array.isArray(e))return V(e)}(e)||K(e)||J(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.")}()}function ev(e){return(ev=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eb=function(){return!!e})()}
1function eR(e,t){return(eR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ex(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var eS=e.i(106824);function ej(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 ew(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}var eP="2.17.2",e_="https://cdn.jsdelivr.net/npm/search-insights@".concat(eP,"/dist/search-insights.min.js");function eF(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=void 0!==i&&i,s=e.$$automatic,o=void 0!==s&&s,c=t;t||null===t||S(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(c=t[r]),c||(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=eP,t[r].shouldAddScript=!0),c=t[r])});var u=c||U;return function(e){var t,i,s,c=e.instantSearchInstance,l=c.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});c.unuse.apply(c,ey(l));var f=z(ej(c.client),2),h=f[0],d=f[1],p=void 0,m=void 0,g=void 0,y=u.queue;return Array.isArray(y)&&(m=(t=z(["setUserToken","init"].map(function(e){return z(ew(y.slice().reverse(),function(t){return z(t,1)[0]===e})||[],2)[1]}),2))[0],p=t[1]),u("getUserToken",null,function(e,t){g=eO(t)}),(r||!eE(u))&&u("init",O({appId:h,apiKey:d,partial:!0},r)),{$$type:"ais.insights",$$internal:a,$$automatic:o,onStateChange:function(){},subscribe:function(){if(u.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=e_,t.onerror=function(){c.emit("error",Error(e))},document.body.appendChild(t),u.shouldAddScript=!1}catch(t){u.shouldAddScript=!1,c.emit("error",Error(e))}}},started:function(){u("addAlgoliaAgent","insights-middleware"),s=c.mainHelper;var e,t,l,f,h,d,y,v,b,R,x,S,j=u.queue;Array.isArray(j)&&(m=(R=z(["setUserToken","init"].map(function(e){return z(ew(j.slice().reverse(),function(t){return z(t,1)[0]===e})||[],2)[1]}),2))[0],p=R[1]),f=(null==(l=(e=c)._initialResults)||null==(t=l[e.indexName])?void 0:t.state)||{},h=e.mainHelper.state,i={userToken:f.userToken||h.userToken,clickAnalytics:f.clickAnalytics||h.clickAnalytics},o||s.overrideStateWithoutTriggeringChangeEvent(A(O({},s.state),{clickAnalytics:!0})),a||c.scheduleSearch();var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=eO(e);if(r){var n=s.state.userToken;t?i():setTimeout(i,0)}function i(){s.overrideStateWithoutTriggeringChangeEvent(A(O({},s.state),{userToken:r})),n&&n!==e&&c.scheduleSearch()}};function P(e){w(e,!0),u("setUserToken",e)}var _=void 0,F=function(){if(("u"<typeof document?"undefined":T(document))==="object"&&"string"==typeof document.cookie)for(var e="".concat("_ALGOLIA","="),t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}}();_=F||"anonymous-".concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));var E=i.userToken;(null==r?void 0:r.userToken)&&(x=r.userToken),x?P(x):E?P(E):g?P(g):m?P(m):_&&(P(_),((null==r?void 0:r.useCookie)||(null==p?void 0:p.useCookie))&&(d=_,y=(null==r?void 0:r.cookieDuration)||(null==p?void 0:p.cookieDuration),(v=new Date).setTime(v.getTime()+(y||15552e6)),b="expires=".concat(v.toUTCString()),document.cookie="_ALGOLIA=".concat(d,";").concat(b,";path=/"))),u("onUserTokenChange",function(e){return w(e,!0)},{immediate:!0});var I=u;eE(u)&&(I=function(e,t){var r=z(ej(c.client),2);return u(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var k=new Set;c.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==S)&&(S=t.queryID,k.clear())}),c.sendEventToInsights=function(e){if(n)n(e,I);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter(function(e){return!k.has(e)});if(0===r.length)return;r.forEach(function(e){return k.add(e)}),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],o&&e.payload.algoliaSource.pu
1sh("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),I(e.insightsMethod,e.payload)}}},unsubscribe:function(){u("onUserTokenChange",void 0),c.sendEventToInsights=U,s&&i&&(s.overrideStateWithoutTriggeringChangeEvent(O({},s.state,i)),c.scheduleSearch())}}}}function eE(e){var t=z((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function eO(e){if(e)return"number"==typeof e?e.toString():e}var eA=["ais.index","ais.feedContainer"];function eI(e){return eA.includes(e.$$type)}function eT(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 ek(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 eN(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=A(O({},r.renderState),R({},i,O({},r.renderState[i],t)))}function eC(e){return e.configure,C(e,["configure"])}function eH(e){return e!==Object(e)}var eD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?P():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return A(O({},t),R({},r,eC(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":T(n))!=="object"||null===n?t:A(O({},t),R({},r,eC(n)))},{})}}:n,a=e.$$internal,s=void 0!==a&&a;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var n=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),a=Object.keys(e).reduce(function(t,r){return A(O({},t),R({},r,e[r]))},n),s=i.stateToRoute(a);return r.createURL(s)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);(void 0===n||!function e(t,r){if(t===r)return!0;if(eH(t)||eH(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;var n=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(t)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var c=s.value;if(!(c in r)||!e(t[c],r[c]))return!1}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return!0}(n,a))&&(r.write(a),n=a)},subscribe:function(){t._initialUiState=O({},a,i.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null==(e=r.start)||e.call(r)},unsubscribe:function(){r.dispose()}}}},eL=0,eW=Promise.resolve();function eU(e){var t=null,r=!1,n=function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];null===t&&(t=eW.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,ey(i))}))};return n.wait=function(){if(null===t)throw Error("The deferred function should be called before calling `wait()`");return t},n.cancel=function(){null!==t&&(r=!0)},n}function eQ(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var e$=N({name:"index-widget"});function eq(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 eM(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!eI(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function eB(e,t){var r=t.initialSearchParameters,n=C(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||eI(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function eV(e,t){var r=t.initialRecommendParameters,n=C(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!eI(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}var eJ=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error(e$("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,s=void 0!==a&&a,o=[],c={},u=null,l=null,f=null,h=null,d=null,p=!1,m=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:s,getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return f},getResults:function(){return(null==h?void 0:h.lastResults)?(h.lastResults._state=f.state,h.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||eI(e)||void 0===e.$$id?this.getResults():(null==f?void 0:f.lastRecommendResults)?f.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return d},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(eI).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat(ey(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return s?null:l},createURL:function(e){return"function"==typeof e?u._createURL(R({},i,e(c))):u._createURL(R({},i,eM(o,{searchParameters:e,helper:f})))},scheduleLocalSearch:eU(function(){s&&(null==f||f.search())}),getWidgets:function(){return o},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(e$("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(e$("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){(e.parent=t,!eI(e))&&(u&&"recommend"===e.dependsOn?u._hasRecommendWidget=!0:u?u._hasSearchWidget=!0:"recommend"===e.dependsOn?p=!0:m=!0,"recommend"===e.dependsOn&&(e.$$id=eL++))}),o=o.concat(r),u&&r.length&&(eq(f,{state:eB(o,{uiState:c,initialSearchParameters:f.state}),recommendState:eV(o,{uiState:c,initialRecommendParameters:f.recommendState}),_uiState:c}),r.forEach(function(e){e.getRenderState&&eN({renderState:e.getRenderState(u.renderState[t.getIndexId()]||{},eT(u,t,u._initialUiState)),instantSearchInstance:u,parent:t})}),r.forEach(function(e){e.init&&e.init(eT(u,t,u._initialUiState))}),s?this.scheduleLocalSearch():u.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(e$("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(e$("The widget definition expects a `dispose` method."));if((o=o.filter(function(e){return -1===r.indexOf(e)}
1)).forEach(function(e){e.parent=void 0,eI(e)||(u&&"recommend"===e.dependsOn?u._hasRecommendWidget=!0:u?u._hasSearchWidget=!0:"recommend"===e.dependsOn?p=!0:m=!0)}),u&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:f,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return ex(n,I.default.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:f.state,cleanedRecommendState:f.recommendState}),i=n.cleanedSearchState,a=n.cleanedRecommendState,l=u.future.preserveSharedStateOnUnmount?eB(o,{uiState:c,initialSearchParameters:new I.default.SearchParameters({index:this.getIndexName()})}):eB(o,{uiState:eM(o,{searchParameters:i,helper:f}),initialSearchParameters:i});c=eM(o,{searchParameters:l,helper:f}),f.setState(l),f.recommendState=a,o.length&&(s?this.scheduleLocalSearch():u.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,g=e.parent,y=e.uiState;if(null===f){u=a,l=g,c=y[i]||{};var v=a.mainHelper,b=eB(o,{uiState:c,initialSearchParameters:new I.default.SearchParameters({index:r})}),R=eV(o,{uiState:c,initialRecommendParameters:new I.default.RecommendParameters});(f=(0,I.default)(v.getClient(),b.index,b)).recommendState=R,f.search=function(){return s?(a.status="loading",n.render({instantSearchInstance:a}),a.compositionID?f.searchWithComposition():f.searchOnlyWithDerivedHelpers()):a.onStateChange?(a.onStateChange({uiState:a.mainIndex.getWidgetUiState({}),setUiState:function(e){return a.setUiState(e,!1)}}),v):v.search()},f.searchWithoutTriggeringOnStateChange=function(){return v.search()},f.searchForFacetValues=function(e,t,r,i){var a=W.apply(void 0,[v.state].concat(ey(eQ(n)))).setQueryParameters(i);return v.searchForFacetValues(e,t,r,a)};var x=r?f:(0,I.default)({},"__empty_index__",{});h=(s?x:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(g,v)).derive(function(){return W.apply(void 0,[v.state].concat(ey(eQ(n))))},function(){return n.getHelper().recommendState});var S=null==(t=a._initialResults)?void 0:t[this.getIndexId()];if(null==S?void 0:S.results){var j=new I.default.SearchResults(new I.default.SearchParameters(S.state),S.results);h.lastResults=j,f.lastResults=j}if(null==S?void 0:S.recommendResults){var w=new I.default.RecommendResults(new I.default.RecommendParameters({params:S.recommendResults.params}),S.recommendResults.results);h.lastRecommendResults=w,f.lastRecommendResults=w}f.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(eI);0!==r.length&&r.forEach(function(t){var r=t.getHelper();eq(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}),e(t.getWidgets())})}(o)}),h.on("search",function(){a.scheduleStalledRender()}),h.on("result",function(e){var t=e.results;a.scheduleRender(),f.lastResults=t,d=null==t?void 0:t._state}),h.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),f.lastRecommendResults=t.results}),o.forEach(function(e){e.getRenderState&&eN({renderState:e.getRenderState(a.renderState[n.getIndexId()]||{},eT(a,n,y)),instantSearchInstance:a,parent:n})}),o.forEach(function(e){e.init&&e.init(eT(a,n,y))}),f.on("change",function(e){var t=e.state,r=e._uiState;c=eM(o,{searchParameters:t,helper:f},r||{}),a.onStateChange||a.onInternalStateChange()}),S&&a.scheduleRender(),p&&(a._hasRecommendWidget=!0),m&&(a._hasSearchWidget=!0)}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&d&&f.setState(d);var i=this.getResults()||(null==h?void 0:h.lastRecommendResults)||s&&!r?o:o.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})})).forEach(function(e){e.getRenderState&&eN({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},ek(n,t,e)),instantSearchInstance:n,parent:t})}
1),i.forEach(function(e){e.render&&e.render(ek(n,t,e))})},dispose:function(){var e=this;o.forEach(function(t){t.dispose&&f&&t.dispose({helper:f,state:f.state,recommendState:f.recommendState,parent:e})}),u=null,l=null,null==f||f.removeAllListeners(),f=null,null==h||h.detach(),h=null},getWidgetUiState:function(e){return o.filter(eI).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},A(O({},e),R({},i,O({},e[i],c))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return eB(o,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){c=eM(o,{searchParameters:this.getHelper().state,helper:this.getHelper()},c)},setIndexUiState:function(e){var t="function"==typeof e?e(c):e;u.setUiState(function(e){return A(O({},e),R({},i,t))})}}},ez=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName;return"".concat("ais","-").concat(e).concat(r?"-".concat(r):"").concat(n?"--".concat(n):"")}};function eK(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}function eG(){return(eG=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 eY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eX=/[&<>"']/g,eZ=RegExp(eX.source),e0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},e1=/&(amp|quot|lt|gt|#39);/g,e2=RegExp(e1.source),e3={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},e8="<mark>",e4="</mark>";function e5(e){return(e&&eZ.test(e)?e.replace(eX,function(e){return eY[e]}):e).replace(RegExp(e3.highlightPreTag,"g"),e8).replace(RegExp(e3.highlightPostTag,"g"),e4)}function e6(e){return k(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return A(O({},t),R({},r,e6(e[r])))},{}):Array.isArray(e)?e.map(e6):A(O({},e),{value:e5(e.value)})}var e7=ez("Highlight");function e9(e){return e.map(function(e){return e.isHighlighted?e8+e.value+e4:e.value}).join("")}var te=new RegExp(/\w/i);function tt(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,s,o,c;return A(O({},t),{isHighlighted:(a=e[r],s=(null==(n=e[r+1])?void 0:n.isHighlighted)||!0,o=(null==(i=e[r-1])?void 0:i.isHighlighted)||!0,te.test((c=a.value)&&e2.test(c)?c.replace(e1,function(e){return e0[e]}):c)||o!==s?!a.isHighlighted:!o)})}):e.map(function(e){return A(O({},e),{isHighlighted:!1})})}function tr(e){var t=e.split(e8),r=t.shift(),n=r?[{value:r,isHighlighted:!1}]:[];return t.forEach(function(e){var t=e.split(e4);n.push({value:t[0],isHighlighted:!0}),""!==t[1]&&n.push({value:t[1],isHighlighted:!1})}),n}var tn=ez("ReverseHighlight"),ti=ez("Snippet"),ta=ez("ReverseSnippet");function ts(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function to(e){var t;return(null==(t=e.compositionFeedsResults)?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function tc(e){var t=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})};return Object.keys(e).map(function(r){var n;return t("%s=%s",r,(n=e[r],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n))?JSON.stringify(e[r]):e[r])}).join("&")}function tu(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(eI).forEach(function(t){return tu(e,t)})}var tl=N({name:"instantsearch"});function tf(){return"#"}var th={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},td=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){y(this,t),R(r=function(e,t){t=ev(t);var r=eb()?Reflect.construct(t,[],ev(e).constructor):t.apply(e,void 0);if(r&&("object"===T(r)||"function"==typeof r))return r;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t),"client",void 0),R(r,"indexName",void 0),R(r,"compositionID",void 0),R(r,"insightsClient",void 0),R(r,"onStateChange",null),R(r,"future",void 0),R(r,"helper",void 0),R(r,"mainHelper",void 0),R(r,"mainIndex",void 0),R(r,"started",void 0),R(r,"templatesConfig",void 0),R(r,"render
1State",{}),R(r,"_stalledSearchDelay",void 0),R(r,"_searchStalledTimer",void 0),R(r,"_initialUiState",void 0),R(r,"_initialResults",void 0),R(r,"_manuallyResetScheduleSearch",!1),R(r,"_resetScheduleSearch",void 0),R(r,"_createURL",void 0),R(r,"_searchFunction",void 0),R(r,"_mainHelperSearch",void 0),R(r,"_hasSearchWidget",!1),R(r,"_hasRecommendWidget",!1),R(r,"_insights",void 0),R(r,"middleware",[]),R(r,"sendEventToInsights",void 0),R(r,"status","idle"),R(r,"error",void 0),R(r,"scheduleSearch",eU(function(){r.started&&r.mainHelper.search()})),R(r,"scheduleRender",eU(function(){var e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(null==(e=r.mainHelper)?void 0:e.hasPendingRequests())||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,t&&(r.status="idle",r.error=void 0)),r.mainIndex.render({instantSearchInstance:r}),r.emit("render")})),R(r,"onInternalStateChange",eU(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var r,n=e.indexName,i=e.compositionID,a=e.numberLocale,s=e.initialUiState,o=e.routing,c=void 0===o?null:o,u=e.insights,l=void 0===u?void 0:u,f=e.searchFunction,h=e.stalledSearchDelay,d=e.searchClient,p=void 0===d?null:d,m=e.insightsClient,g=void 0===m?null:m,v=e.onStateChange,b=e.future,x=void 0===b?O({},th,e.future||{}):b;if(null===p)throw Error(tl("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("4.98.0",")")),g&&"function"!=typeof g)throw Error(tl("The `insightsClient` option should be a function."));if(r.client=p,r.future=x,r.insightsClient=g,r.indexName=void 0===n?"":n,r.compositionID=i,r.helper=null,r.mainHelper=null,r.mainIndex=eJ({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===v?null:v,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;return r=Number(t(e)),r.toLocaleString(a)},highlight:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=A(O({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(eK(s._highlightResult,n)||{}).value,l=e7({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===u?"":u).replace(RegExp(e8,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(e4,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=A(O({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(eK(s._highlightResult,n)||{}).value,l=tn({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),e9(tt(tr(void 0===u?"":u))).replace(RegExp(e8,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(e4,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n  The reverseHighlight helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=A(O({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(eK(s._snippetResult,n)||{}).value,l=ti({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===u?"":u).replace(RegExp(e8,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(e4,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=A(O({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasse
1s,c=void 0===o?{}:o,u=(eK(s._snippetResult,n)||{}).value,l=ta({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),e9(tt(tr(void 0===u?"":u))).replace(RegExp(e8,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(e4,"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=O({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":T(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=ts(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},r._stalledSearchDelay=void 0===h?200:h,r._searchStalledTimer=null,r._createURL=tf,r._initialUiState=void 0===s?{}:s,r._initialResults=null,r._insights=l,f&&(r._searchFunction=f),r.sendEventToInsights=U,c){var j="boolean"==typeof c?{}:c;j.$$internal=!0,r.use(eD(j))}if(l){var w="boolean"==typeof l?{}:l;w.$$internal=!0,r.use(eF(w))}return S(function(e){var t,r;return(null==(r=e.window.navigator)||null==(t=r.userAgent)?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&r.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.$$internal,r=void 0!==t&&t;return function(e){var t=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),a=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var e;n.ua=(e=t.client).transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function e(t,r,n){var i=eT(r,r.mainIndex,r._initialUiState);t.forEach(function(t){var a={};if(t.getWidgetRenderState){var s=t.getWidgetRenderState(i);s&&s.widgetParams&&(a=s.widgetParams)}var o=Object.keys(a).filter(function(e){return void 0!==a[e]});n.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:o}),eI(t)&&e(t.getWidgets(),r,n)})}(t.mainIndex.getWidgets(),t,n),t.middleware.forEach(function(e){return n.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(n),a.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}({$$internal:!0})),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eR(t,e),b(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.map(function(t){var r=O({$$type:"__unknown__",$$internal:!1,subscribe:U,started:U,unsubscribe:U,onStateChange:U},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,ey(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(tl("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&eI(e)&&!e._isolated}))throw Error(tl("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(tl("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(tl("The `start` method has already been called once."));var t=this.mainHelper||(0,I.default)(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(U)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=(0,I.default)(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(!ex(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!1),e.emit("error",r)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce(function(e,r){var n=t[r],i=n.state,a=n.requestParam
1s,s=to(n),o=s&&i?s.map(function(e,t){return O({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:tc((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=z(t.split("="),2),n=r[0],i=r[1];return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(o)},[])],n=Object.keys(t).reduce(function(e,r){var n=to(t[r]);return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var s=Array.isArray(t)?t.map(function(e){return A(O({},e),{params:tc(e.params)})}):tc(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[s].concat(ey(n))},function(){return i.apply(void 0,[t].concat(ey(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=A(O({},e.cache),R({},a,JSON.stringify({results:Object.keys(t).map(function(e){return to(t[e])})})))}}}(this.client,this._initialResults),this.mainHelper._recommendCache=Object.keys(n=this._initialResults).reduce(function(e,t){var r=n[t];return r.recommendResults?O({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=eU(U),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:eU(function(){e.scheduleSearch=i})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),void 0===this._insights&&t.derivedHelpers[0].once("result",function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return null==t?void 0:t._automaticInsights})&&e.use(eF({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null==(e=this.mainHelper)||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!this.mainHelper)throw Error(tl("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){tu("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(tu(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(tl("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(tl("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(eS.default),tp=e.i(765472),tm="7.33.0",tg=["react (".concat(G.version,")"),"react-instantsearch (".concat(tm,")"),"react-instantsearch-core (".concat(tm,")")],ty="react-instantsearch-server (".concat(tm,")");function tv(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function tb(e){var t=e.children,r=function(e){var t=z((0,G.useReducer)(function(e){return e+1},0),2)[1],r=eo(),n=eu(),a=ep().waitForResultsRef,s=null==n?void 0:n.initialResults,o=(0,G.useRef)(e),c=r||s||a,u=(0,G.useRef)(null);if((null==n?void 0:n.ssrSearchRef)&&(u=n.ssrSearchRef),null===u.current){var l,f,h,d=new td(e);d._schedule=function(e){d._schedule.queue.push(e),clearTimeout(d._schedule.timer),d._schedule.timer=setTimeout(function(){d._schedule.queue.forEach(function(e){e()}),d._schedule.queue=[]},0)},d._schedule.queue=[],c&&(d._initialResults=s||{},d._manuallyResetScheduleSearch=!0),tv(e.searchClient,ey(tg).concat([r&&ty,(h="u">typeof window&&(null==(l=window.next)?void 0:l.version)||(void 0!==i.default?null==(f=i.default.env)?void 0:f.NEXT_RUNTIME:void 0))?"next.js (".concat(h,")"):null])),c&&d.start(),r&&r.notifyServer({search:d}
1),e.routing,u.current=d}var p,m=u.current,g=o.current;g.indexName!==e.indexName&&(m.helper.setIndex(e.indexName||"").search(),o.current=e),g.searchClient!==e.searchClient&&(tv(e.searchClient,ey(tg).concat([r&&ty])),m.mainHelper.setClient(e.searchClient).search(),o.current=e),g.onStateChange!==e.onStateChange&&(m.onStateChange=e.onStateChange,o.current=e),g.searchFunction!==e.searchFunction&&(m._searchFunction=e.searchFunction,o.current=e),g.stalledSearchDelay!==e.stalledSearchDelay&&(m._stalledSearchDelay=null!=(p=e.stalledSearchDelay)?p:200,o.current=e),X(g.future,e.future)||(m.future=O({},th,e.future),o.current=e);var y=(0,G.useRef)(null);return(0,tp.useSyncExternalStore)((0,G.useCallback)(function(){var e=u.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return u.current},function(){return u.current})}(C(e,["children"]));return r.started?G.default.createElement(ei.Provider,{value:r},G.default.createElement(et.Provider,{value:r.mainIndex},t,G.default.createElement(tR,{search:r}))):null}function tR(e){var t=e.search;return(0,G.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}var tx=e.i(23780),tS=e.i(153256),tj=e.i(830523),tw=e.i(312775),tP=e.i(296506);function t_(e){let n,i,a=(0,r.c)(5),{open:s,onClose:o}=e;return a[0]!==o||a[1]!==s?(n=s&&(0,t.jsx)(tP.m.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 w-full h-full bg-black/50",role:"button",onClick:o}),a[0]=o,a[1]=s,a[2]=n):n=a[2],a[3]!==n?(i=(0,t.jsx)(tj.default,{children:(0,t.jsx)(tw.AnimatePresence,{initial:!1,children:n})}),a[3]=n,a[4]=i):i=a[4],i}var tF=e.i(903068),tE=e.i(728433),tO=e.i(733752);function tA(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}var tI=N({name:"refinement-list",connector:!0}),tT=["isRefined","count:desc","name:asc"],tk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return tA(e,tI()),function(r){var n,i,a,s=r||{},o=s.attribute,c=s.operator,u=void 0===c?"or":c,l=s.limit,f=void 0===l?10:l,h=s.showMore,d=void 0!==h&&h,p=s.showMoreLimit,m=void 0===p?20:p,g=s.sortBy,y=void 0===g?tT:g,v=s.escapeFacetValues,b=void 0===v||v,x=s.transformItems,S=void 0===x?function(e){return e}:x;if(!o)throw Error(tI("The `attribute` option is required."));if(!/^(and|or)$/.test(u))throw Error(tI('The `operator` must one of: `"and"`, `"or"` (got "'.concat(u,'").')));if(!0===d&&m<=f)throw Error(tI("`showMoreLimit` should be greater than `limit`."));var j=function(e){var t=e.name,r=e.escapedValue;return A(O({},C(e,["name","escapedValue"])),{value:r,label:t,highlighted:t})},w=[],P=!0,_=!1,F=function(){};function E(){F()}var I=function(){return function(){}};return{$$type:"ais.refinementList",init:function(t){e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return A(O({},e),{refinementList:A(O({},e.refinementList),R({},o,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(t){var s=this,c=t.results,u=t.state,l=t.createURL,h=t.instantSearchInstance,p=t.helper,g=[],v=[];if(a&&i&&I||(x=(R={instantSearchInstance:h,helper:p,attribute:o,widgetType:this.$$type}).instantSearchInstance,k=R.helper,N=R.attribute,H=R.widgetType,a=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=z(r,4),a=i[1],s=i[2],o=i[3],c=z(r[0].split(":"),2),u=c[0],l=c[1],f="string"==typeof N?N:N(a);1===r.length&&"object"===T(r[0])?x.sendEventToInsights(r[0]):"click"===u&&r.length>=2&&r.length<=4&&((k.state.isHierarchicalFacet(f)?k.state.isHierarchicalFacetRefined(f,a):k.state.isConjunctiveFacet(f)?k.state.isFacetRefined(f,a):k.state.isDisjunctiveFacetRefined(f,a))||x.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:H,eventType:u,eventModifier:l,payload:O({eventName:void 0===s?"Filter Applied":s,index:(null==(e=k.lastResults)?void 0:e.index)||k.state.index,filters:["".concat(f,":").concat(a)]},void 0===o?{}:o),attribute:f}))},i=function(e){a("click:internal",e),p.toggleFacetRefinement(o,e).search()},D=this,I=function(t){return function(r){var i=t.instantSearchInstance,a=t.results;if(""===r&&w)e(A(O({},D.getWidgetRenderState(A(O({},t),{results:n}))),{instantSearchInstance:i}),!1);else{var s={highlightPreTag:b?e3.highlightPreTag:e8,highlightPostTag:b?e3.highlightPostTag:e4};p.searchForFacetValues(o,r,Math.min(_?m:f,100),s).then(function(r){var s=S((b?r.facetHits.map(function(e){return A(O({},e),{highlighted:e5(e.highlighted)})}):r.facetHits).map(function(e){var t=e.escapedValue,r=e.value;return A(O({},C(e,["escapedValue","value"])),{value:t,label:r})}),{results:a});e(A(O({},D.getWidgetRenderState(A(O({},t),{results:n}))),{items:s,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:i}),!1)})}}}),c){var R,x,k,N,H,D,L,W=c.getFacetValues(o,{sortBy:y,facetOrdering:y===tT});g=S((v=W&&Array.isArray(W)?W:[]).slice(0,_?m:f).map(j),{results:c});var U=u.maxValuesPerFacet,Q=_?m:f;P=U>Q?v.length<=Q:v.length<Q,n=c,w=g,t.results&&(L=this,F=function(){_=!_,L.render(t)})}var $=I&&I(t),q=_&&w.length>f,M=d&&!P;return{createURL:function(e){return l(function(t){return s.getWidgetUiState(t,{searchParameters:u.resetPage().toggleFacetRefinement(o,e),helper:p})})},items:g,refine:i,searchForItems:$,isFromSearch:!1,canRefine:g.length>0,widgetParams:r,isShowingMore:_,canToggleShowMore:q||M,toggleShowMore:E,sendEvent:a,hasExhaustiveItems:P}},dispose:function(e){var r=e.state;t();var n=r.setQueryParameter("maxValuesPerFacet",void 0);return"and"===u?n.removeFacet(o):n.removeDisjunctiveFacet(o)},getWidgetUiState:function(e,t){var r,n,i=t.searchParameters,a="or"===u?i.getDisjunctiveRefinements(o):i.getConjunctiveRefinements(o);return r=A(O({},e),{refinementList:A(O({},e.refinementList),R({},o,a))}),n=o,r.refinementList&&(r.refinementList[n]&&0!==r.refinementList[n].length||delete r.refinementList[n],0===Object.keys(r.refinementList).length&&delete r.refinementList),r},getWidgetSearchParameters:function(e,t){var r=t.uiState,n="or"===u;if(e.isHierarchicalFacet(o)||n&&e.isConjunctiveFacet(o)||!n&&e.isDisjunctiveFacet(o))return e;var i=r.refinementList&&r.refinementList[o],a=n?e.addDisjunctiveFacet(o).removeDisjunctiveFacetRefinement(o):e.addFacet(o).removeFacetRefinement(o),s=Math.max(a.maxValuesPerFacet||0,d?m:f),c=a.setQueryParameter("maxValuesPerFacet",s);if(!i){var l=n?"disjunctiveFacetsRefinements":"facetsRefinements";return c.setQueryParameters(R({},l,A(O({}
1,c[l]),R({},o,[]))))}return i.reduce(function(e,t){return n?e.addDisjunctiveFacetRefinement(o,t):e.addFacetRefinement(o,t)},c)}}}},tN=e.i(185222),tC=e.i(897173);function tH(e){let n,i,a,s,o,c,u,l,f=(0,r.c)(24),{attribute:h,title:d,preProcess:p,id:m,type:g,hidden:y}=e;f[0]===Symbol.for("react.memo_cache_sentinel")?(n=["name:desc"],f[0]=n):n=f[0],f[1]!==h?(i={attribute:h,operator:"or",sortBy:n,limit:100},f[1]=h,f[2]=i):i=f[2];let{items:v,refine:b}=em(tk,i,void 0);if(0===v.length)return null;let R=`accordion-item-${m}`,x=y&&"hidden";f[3]!==x?(a=(0,tC.cn)(x),f[3]=x,f[4]=a):a=f[4],f[5]!==d?(s=(0,t.jsx)(tN.AccordionTriggerCN,{animation:"none",className:"flex flex-row items-center h-12 bg-background-muted pl-4 pr-2 justify-between",children:(0,t.jsx)(tE.default,{as:"p",html:d,classes:"text-primary font-mono text-sm"})}),f[5]=d,f[6]=s):s=f[6];let S="short-list"===g&&"flex-row flex-wrap";if(f[7]!==S?(o=(0,tC.cn)("flex flex-col w-full gap-2",S),f[7]=S,f[8]=o):o=f[8],f[9]!==v||f[10]!==p||f[11]!==b){let e;f[13]!==p||f[14]!==b?(e=e=>{let r=e.label;return p&&(r=p(e.label)||""),(0,t.jsxs)("li",{className:"select-none flex gap-1 flex-row items-center duration-200 **:duration-200 justify-center w-max px-1.5 h-[25px] group cursor-pointer border border-transparent data-[refined=false]:hover:bg-primary data-[refined=true]:border-primary",role:"button",onClick:()=>b(e.value),"data-refined":e.isRefined,title:r,children:[(0,t.jsx)(tE.default,{as:"p",html:`${r} (${e.count})`,classes:"line-clamp-1 leading-none text-sm text-primary-muted group-data-[refined=true]:text-primary group-data-[refined=false]:group-hover:text-background capitalize"}),e.isRefined&&(0,t.jsx)(tO.default,{className:"fill-primary size-4"})]},e.value)},f[13]=p,f[14]=b,f[15]=e):e=f[15],c=v.map(e),f[9]=v,f[10]=p,f[11]=b,f[12]=c}else c=f[12];return f[16]!==o||f[17]!==c?(u=(0,t.jsx)(tN.AccordionContentCN,{className:"bg-background-muted h-full pt-0 pb-3 pl-4 pr-2 max-h-[30dvh] overflow-y-auto overflow-x-hidden",children:(0,t.jsx)("ul",{className:o,children:c})}),f[16]=o,f[17]=c,f[18]=u):u=f[18],f[19]!==R||f[20]!==a||f[21]!==s||f[22]!==u?(l=(0,t.jsxs)(tN.AccordionItemCN,{animation:"none",value:R,className:a,children:[s,u]}),f[19]=R,f[20]=a,f[21]=s,f[22]=u,f[23]=l):l=f[23],l}function tD(e,t,r,n){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s={type:t,attribute:r,name:n,escapedValue:"number"==typeof n&&n<0||"string"==typeof n?String(n).replace(/^-/,"\\-"):n},o=ew(a,function(e){return e.name===r});if("hierarchical"===t){for(var c=function(e){o=o&&o.data&&ew(Object.keys(o.data).map(f(o.data)),function(t){return t.name===l[e]})},u=e.getHierarchicalFacetByName(r),l=n.split(u.separator),f=function(e){return function(t){return e[t]}},h=0;void 0!==o&&h<l.length;++h)c(h);i=o&&o.count}else i=o&&o.data&&o.data[s.name];return void 0!==i&&(s.count=i),o&&void 0!==o.exhaustive&&(s.exhaustive=o.exhaustive),s}function tL(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e||{},i=[],a=t.facetsRefinements,s=void 0===a?{}:a,o=t.facetsExcludes,c=void 0===o?{}:o,u=t.disjunctiveFacetsRefinements,l=void 0===u?{}:u,f=t.hierarchicalFacetsRefinements,h=void 0===f?{}:f,d=t.numericRefinements,p=void 0===d?{}:d,m=t.tagRefinements;return Object.keys(s).forEach(function(e){s[e].forEach(function(r){i.push(tD(t,"facet",e,r,n.facets))})}),Object.keys(c).forEach(function(e){c[e].forEach(function(t){i.push({type:"exclude",attribute:e,name:t,exclude:!0})})}),Object.keys(l).forEach(function(e){l[e].forEach(function(r){i.push(tD(t,"disjunctive",e,"string"==typeof r?r.replace(/^\\-/,"-"):r,n.disjunctiveFacets))})}),Object.keys(h).forEach(function(e){h[e].forEach(function(r){i.push(tD(t,"hierarchical",e,r,n.hierarchicalFacets))})}),Object.keys(p).forEach(function(e){var t=p[e];Object.keys(t).forEach(function(r){var n=t[r];(Array.isArray(n)?n:[n]).forEach(function(t){i.push({type:"numeric",attribute:e,name:"".concat(t),numericValue:t,operator:r})})})}),(void 0===m?[]:m).forEach(function(e){i.push({type:"tag",attribute:"_tags",name:e})}),r&&t.query&&t.query.trim()&&i.push({attribute:"query",type:"query",name:t.query,query:t.query}),i}function tW(e){var t=e.helper,r=e.attributesToClear,n=void 0===r?[]:r,
1i=t.state.setPage(0);return i=n.reduce(function(e,t){return i.isNumericRefined(t)?e.removeNumericRefinement(t):i.isHierarchicalFacet(t)?e.removeHierarchicalFacetRefinement(t):i.isDisjunctiveFacet(t)?e.removeDisjunctiveFacetRefinement(t):i.isConjunctiveFacet(t)?e.removeFacetRefinement(t):e},i),-1!==n.indexOf("query")&&(i=i.setQuery("")),i}var tU=N({name:"clear-refinements",connector:!0}),tQ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return tA(e,tU()),function(r){var n=r||{},i=n.includedAttributes,a=void 0===i?[]:i,s=n.excludedAttributes,o=void 0===s?["query"]:s,c=n.transformItems,u=void 0===c?function(e){return e}:c;if(r&&r.includedAttributes&&r.excludedAttributes)throw Error(tU("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var l={refine:U,createURL:function(){return""},attributesToClear:[]},f=function(){return l.refine()},h=function(){return l.createURL()};return{$$type:"ais.clearRefinements",init:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(){t()},getRenderState:function(e,t){return A(O({},e),{clearRefinements:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.createURL,n=e.scopedResults,i=e.results;l.attributesToClear=n.reduce(function(e,t){var r,n,s,c,l,f,h;return e.concat((n=(r={scopedResult:t,includedAttributes:a,excludedAttributes:o,transformItems:u,results:i}).scopedResult,s=r.includedAttributes,c=r.excludedAttributes,l=r.transformItems,f=r.results,h=-1!==s.indexOf("query")||-1===c.indexOf("query"),{helper:n.helper,items:l(H(tL(n.results,n.helper.state,h).map(function(e){return e.attribute}).filter(function(e){return 0===s.length||-1!==s.indexOf(e)}).filter(function(e){return"query"===e&&h||-1===c.indexOf(e)})),{results:f})}))},[]),l.refine=function(){l.attributesToClear.forEach(function(e){var t=e.helper,r=e.items;t.setState(tW({helper:t,attributesToClear:r})).search()})},l.createURL=function(){return t(W.apply(void 0,ey(l.attributesToClear.map(function(e){return tW({helper:e.helper,attributesToClear:e.items})}))))};var s=l.attributesToClear.some(function(e){return e.items.length>0});return{canRefine:s,hasRefinements:s,refine:f,createURL:h,widgetParams:r}}}}},t$=e.i(183168);function tq(e){let n,i,a,s,o,c,u,l,f,h,d,p,m,g,y,v,b,R,x,S,j,w,P=(0,r.c)(45),{facets:_}=e,[F,E]=(0,G.useState)(!1),{locale:O}=(0,G.useContext)(tx.PageContext),{refine:A}=em(tQ,void 0,void 0),I=O.dictionary?.filter_clear||"",T=O.dictionary?.filter_modal_title||"",k=O.dictionary?.filter_button||"";P[0]===Symbol.for("react.memo_cache_sentinel")?(n={animate:tB},P[0]=n):n=P[0];let N=n;P[1]!==F?(i=e=>{if(e.ctrlKey&&"s"===e.key||e.ctrlKey&&"S"===e.key){e.preventDefault(),E(!F);return}if("Escape"===e.key||"Backspace"===e.key||e.ctrlKey&&"z"===e.key||e.ctrlKey&&"Z"===e.key){F&&E(!1);return}},P[1]=F,P[2]=i):i=P[2];let C=i;return P[3]!==C?(a=()=>(document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}),s=[C],P[3]=C,P[4]=a,P[5]=s):(a=P[4],s=P[5]),(0,G.useEffect)(a,s),P[6]!==F?(o=()=>E(!F),P[6]=F,P[7]=o):o=P[7],P[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(tF.default,{className:"size-3.5 fill-inherit"}),P[8]=c):c=P[8],P[9]!==k?(u=(0,t.jsxs)("div",{className:"flex flex-row items-center justify-center gap-2",children:[k,c]}),P[9]=k,P[10]=u):u=P[10],P[11]!==F||P[12]!==o||P[13]!==u?(l=(0,t.jsx)(tS.default,{variant:"secondary",active:F,size:"small",onClick:o,classes:"px-2.5!",dataType:"filters-options-trigger",children:u}),P[11]=F,P[12]=o,P[13]=u,P[14]=l):l=P[14],P[15]===Symbol.for("react.memo_cache_sentinel")?(f=()=>E(!1),P[15]=f):f=P[15],P[16]!==F?(h=(0,t.jsx)(t_,{open:F,onClose:f}),P[16]=F,P[17]=h):h=P[17],P[18]===Symbol.for("react.memo_cache_sentinel")?(d={translateY:"300%"},P[18]=d):d=P[18],P[19]===Symbol.for("react.memo_cache_sentinel")?(p={duration:.5,ease:[.22,.31,0,1]},P[19]=p):p=P[19],P[20]!==T?(m=(0,t.jsx)(tE.default,{as:"p",html:T,classes:"text-primary font-mono text-sm"}),P[20]=T,P[21]=m):m=P[21],P[22]!==A?(g=()=>{A(),E(!1)},P[22]=A,P[23]=g):g=P[23],P[24]!==I?(y=(0,t.jsx)(tE.default,{as:"span",html:I,classes:"font-mono text-sm text-primary"}),P[24]=I,P[25]=y):y=P[25],P[26]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(t$.default,{name:"bin",className:"fill-primary size-4"}),P[26]=v):v=P[26],P[27]!==g||P[28]!==y?(b=(0,t.jsxs)("button",{className:"flex flex-row gap-1",onClick:g,children:[y,v]}),P[27]=g,P[28]=y,P[29]=b):b=P[29],P[30]!==m||P[31]!==b?(R=(0,t.jsxs)("div",{className:"bg-background-muted flex h-12 flex-row items-center justify-between pl-4 pr-2",children:[m,b]}),P[30]=m,P[31]=b,P[32]=R):R=P[32],P[33]!==_?(x=_.map(tM),P[33]=_,P[34]=x):x=P[34],P[35]!==x?(S=(0,t.jsx)(tN.AccordionCN,{type:"single",collapsible:!0,defaultValue:"accordion-item-0",className:"flex flex-col gap-1",children:x}),P[35]=x,P[36]=S):S=P[36],P[37]!==F||P[38]!==R||P[39]!==S?(j=(0,t.jsx)(tj.default,{children:(0,t.jsxs)(tP.m.div,{className:"prevent-scroll fixed bottom-0 left-2 z-50 flex w-[calc(100%-16px)] flex-col gap-1 md:bottom-6 md:left-4 md:w-full md:max-w-[402px] lg:bottom-16 lg:left-12",initial:d,transition:p,animate:"animate",variants:N,custom:F,"data-open":F,children:[R,S]})}),P[37]=F,P[38]=R,P[39]=S,P[40]=j):j=P[40],P[41]!==j||P[42]!==l||P[43]!==h?(w=(0,t.jsxs)("div",{children:[l,h,j]}),P[41]=j,P[42]=l,P[43]=h,P[44]=w):w=P[44],w}function tM(e){return(0,t.jsx)(tH,{...e},e.slug)}function tB(e){return{translateY:e?"0":"300%"}}var tV=e.i(117423),tJ=e.i(274476);function tz(e){var t=e.helper,r=e.widgetType;e.methodName;var n=e.args,i=e.instantSearchInstance;if(1===n.length&&"object"===T(n[0]))return[n[0]];var a=z(n[0].split(":"),2),s=a[0],o=a[1],c=n[1],u=n[2],l=n[3]||{};if(!c||("click"===s||"conversion"===s)&&!u)return[];var f=Array.isArray(c)?c:[c];if(0===f.length)return[];var h=f[0].__queryID,d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);
1n++)r.push(e.slice(n*t,(n+1)*t));return r}(f),p=d.map(function(e){return e.map(function(e){return e.objectID})}),m=d.map(function(e){return e.map(function(e){return e.__position})});return"view"===s?"idle"!==i.status?[]:d.map(function(e,n){var i;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:s,payload:O({eventName:u||"Hits Viewed",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,objectIDs:p[n]},l),hits:e,eventModifier:o}}):"click"===s?d.map(function(e,n){var i;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:s,payload:O({eventName:u||"Hit Clicked",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,queryID:h,objectIDs:p[n],positions:m[n]},l),hits:e,eventModifier:o}}):"conversion"===s?d.map(function(e,n){var i;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:s,payload:O({eventName:u||"Hit Converted",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,queryID:h,objectIDs:p[n]},l),hits:e,eventModifier:o}}):[]}var tK=N({name:"hits",connector:!0}),tG=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return tA(e,tK()),function(r){var n,i,a=r||{},s=a.escapeHTML,o=void 0===s||s,c=a.transformItems,u=void 0===c?function(e){return e}:c;return{$$type:"ais.hits",init:function(t){e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e(A(O({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return A(O({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,a,s,c,l,f,h,d,p,m,g,y,v,b,R,x,S,j,w,P=e.results,_=e.helper,F=e.instantSearchInstance;if(n||(a=(t={instantSearchInstance:F,helper:_,widgetType:this.$$type}).instantSearchInstance,s=t.helper,c=t.widgetType,l={},f=void 0,n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];tz({widgetType:c,helper:s,methodName:"sendEvent",args:t,instantSearchInstance:a}).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&l[e.eventType]||(l[e.eventType]=!0,a.sendEventToInsights(e))}),clearTimeout(f),f=setTimeout(function(){l={}},0)}),i||(d=(h={helper:_,widgetType:this.$$type,instantSearchInstance:F}).helper,p=h.widgetType,m=h.instantSearchInstance,i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=tz({widgetType:p,helper:d,methodName:"bindEvent",args:t,instantSearchInstance:m});return n.length?"data-insights-event=".concat(ts(n)):""}),!P)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:n,bindEvent:i,widgetParams:r};o&&P.hits.length>0&&(void 0===(g=P.hits).__escaped&&((g=g.map(function(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=eG({},e);return r._highlightResult&&(r._highlightResult=e6(r._highlightResult)),r._snippetResult&&(r._snippetResult=e6(r._snippetResult)),r})).__escaped=!0),P.hits=g);var E=u((y=P.hits,v=P.page,b=P.hitsPerPage,R=y.map(function(e,t){return A(O({},e),{__position:b*v+t+1})}),(x=P.queryID)?R.map(function(e){return A(O({},e),{__queryID:x})}):R),{results:P}),I=null==(w=P.renderingContent)||null==(j=w.widgets)||null==(S=j.banners)?void 0:S[0];return{hits:E,items:E,results:P,banner:I,sendEvent:n,bindEvent:i,widgetParams:r}},dispose:function(e){var r=e.state;return(t(),o)?r.setQueryParameters(Object.keys(e3).reduce(function(e,t){return A(O({},e),R({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return o?e.setQueryParameters(e3):e}}}};function tY(e){let n,i,a,s,o,c=(0,r.c)(15),{image:u,type:l,title:f,tag:h}=e;c[0]!==u||c[1]!==l?(n=u&&(0,t.jsx)("div",{className:(0,tC.cn)("company"===l&&"aspect-widescreen flex justify-center items-center border border-background-muted"),children:(0,t.jsx)(tJ.default,{...u,alt:u.alt,aspectRatio:"aspect-widescreen",scale:"company"!==l?"cover":"contain",classes:(0,tC.cn)("company"===l&&"w-3/5 h-3/5")})}),c[0]=u,c[1]=l,c[2]=n):n=c[2],c[3]!==h||c[4]!==l?(i="company"!==l&&(0,t.jsx)(tE.default,{html:`[${h}]`,as:"span",classes:"text-primary text-left font-mono text-xs"}),c[3]=h,c[4]=l,c[5]=i):i=c[5];let d=f||"",p="company"===l&&"text-xs font-mono";return c[6]!==p?(a=(0,tC.cn)("text-base line-clamp-3 text-left",p),c[6]=p,c[7]=a):a=c[7],c[8]!==d||c[9]!==a?(s=(0,t.jsx)(tE.default,{html:d,as:"h3",classes:a}),c[8]=d,c[9]=a,c[10]=s):s=c[10],c[11]!==n||c[12]!==i||c[13]!==s?(o=(0,t.jsxs)("div",{className:"flex flex-col justify-start h-full w-full gap-3",children:[n,i,s]}),c[11]=n,c[12]=i,c[13]=s,c[14]=o):o=c[14],o}
1function tX(){let e,n=(0,r.c)(5),{items:i,sendEvent:a}=em(tG,void 0,void 0);if(n[0]!==i||n[1]!==a){let r;n[3]!==a?(r=e=>{let r=(0,s.mapPost)(e);return(0,t.jsx)("div",{className:"col-span-full lg:col-span-3",children:(0,t.jsx)(tV.default,{url:r.url,onClick:()=>{a("click",e,"hit clicked")},children:(0,t.jsx)(tY,{...r})})},e.objectID)},n[3]=a,n[4]=r):r=n[4],e=i.map(r),n[0]=i,n[1]=a,n[2]=e}else e=n[2];return e}var tZ=N({name:"stats",connector:!0}),t0=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return tA(e,tZ()),function(r){return{$$type:"ais.stats",init:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(){t()},getRenderState:function(e,t){return A(O({},e),{stats:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.state;return t?{hitsPerPage:t.hitsPerPage,nbHits:t.nbHits,nbSortedHits:t.nbSortedHits,areHitsSorted:void 0!==t.appliedRelevancyStrictness&&t.appliedRelevancyStrictness>0&&t.nbSortedHits!==t.nbHits,nbPages:t.nbPages,page:t.page,processingTimeMS:t.processingTimeMS,query:t.query,widgetParams:r}:{hitsPerPage:n.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:n.page||0,processingTimeMS:-1,query:n.query||"",widgetParams:r}}}}};function t1(){let e,n=(0,r.c)(2),{nbHits:i}=em(t0,void 0,void 0),{locale:a}=(0,G.useContext)(tx.PageContext),s=a.dictionary?.filter_results||"",o=`${i} ${s}`;return n[0]!==o?(e=(0,t.jsx)("div",{className:"col-span-2 lg:col-span-7 flex items-center",children:(0,t.jsx)(tE.default,{as:"p",html:o,classes:"font-mono text-sm text-primary"})}),n[0]=o,n[1]=e):e=n[1],e}var t2=e.i(415141);function t3(e){var t=e.start,r=void 0===t?0:t,n=e.end,i=e.step,a=void 0===i?1:i,s=0===a?1:a;return ey(Array(Math.round((n-r)/s))).map(function(e,t){return r+t*s})}var t8=function(){function e(t){y(this,e),R(this,"currentPage",void 0),R(this,"total",void 0),R(this,"padding",void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return b(e,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,r=this.padding;if(0===e)return[0];var n=this.nbPagesDisplayed(r,e);if(n===e)return t3({end:e});var i=this.calculatePaddingLeft(t,r,e,n),a=n-i;return t3({start:t-i,end:t+a})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,r,n){return e<=t?e:e>=r-t?n-(r-e):t}},{key:"isLastPage",value:function(){return this.currentPage>=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),e}(),t4=N({name:"pagination",connector:!0}),t5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return tA(e,t4()),function(r){var n=r||{},i=n.totalPages,a=n.padding,s=new t8({currentPage:0,total:0,padding:void 0===a?3:a}),o={};return{$$type:"ais.pagination",init:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("page",void 0)},getWidgetUiState:function(e,t){var r=t.searchParameters.page||0;return r?A(O({},e),{page:r+1}):e},getWidgetSearchParameters:function(e,t){var r=t.uiState,n=r.page?r.page-1:0;return e.setQueryParameter("page",n)},getWidgetRenderState:function(e){var t,n=e.results,a=e.helper,c=e.state,u=e.createURL;o.refine||(o.refine=function(e){a.setPage(e),a.search()}),o.createURL||(o.createURL=function(e){return u(function(t){return A(O({},t),{page:e+1})})});var l=c.page||0,f=(t=(n||{nbPages:0}).nbPages,void 0!==i?Math.min(i,t):t);return s.currentPage=l,s.total=f,{createURL:o.createURL,refine:o.refine,canRefine:f>1,currentRefinement:l,nbHits:(null==n?void 0:n.nbHits)||0,nbPages:f,pages:n?s.pages():[],isFirstPage:s.isFirstPage(),isLastPage:s.isLastPage(),widgetParams:r}},getRenderState:function(e,t){return A(O({},e),{pagination:this.getWidgetRenderState(t)})}}}};function t6(){let e,n,i,a,s,o,c,u,l,f,h,d,p,m,g,y,v,b,R=(0,r.c)(58);R[0]===Symbol.for("react.memo_cache_sentinel")?(e={padding:1},R[0]=e):e=R[0];let{pages:x,refine:S,currentRefinement:j,isFirstPage:w,isLastPage:P,nbPages:_,createURL:F}=em(t5,e,void 0),{locale:E}=(0,G.useContext)(tx.PageContext),O=E.dictionary?.next||"",A=E.dictionary?.previous||"",I=w&&"cursor-not-allowed";R[1]!==I?(n=(0,tC.cn)(I),R[1]=I,R[2]=n):n=R[2];let T=j-1;if(R[3]!==F||R[4]!==T?(i=F(T),R[3]=F,R[4]=T,R[5]=i):i=R[5],R[6]!==j||R[7]!==S?(a=()=>S(j-1),R[6]=j,R[7]=S,R[8]=a):a=R[8],R[9]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(t$.default,{name:"arrow-left",className:"group-data-[first=true]:fill-primary-muted fill-primary w-4 h-4"}),R[9]=s):s=R[9],R[10]!==A?(o=(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:A},className:"font-mono text-primary text-base group-data-[first=true]:text-primary-muted"}),R[10]=A,R[11]=o):o=R[11],R[12]!==w||R[13]!==i||R[14]!==a||R[15]!==o?(c=(0,t.jsxs)(t2.default,{href:i,onClick:a,className:"flex flex-row px-2 justify-start h-10 center items-center gap-2 group data-[first=true]:pointer-events-none","aria-disabled":w,"data-first":w,prefetch:!0,children:[s,o]}),R[12]=w,R[13]=i,R[14]=a,R[15]=o,R[16]=c):c=R[16],R[17]!==n||R[18]!==c?(u=(0,t.jsx)("li",{className:n,children:c}),R[17]=n,R[18]=c,R[19]=u):u=R[19],R[20]!==F||R[21]!==j||R[22]!==x||R[23]!==S){let e;R[25]!==F||R[26]!==j||R[27]!==S?(e=e=>(0,t.jsx)("li",{children:(0,t.jsx)(t2.default,{href:F(e),onClick:()=>S(e),className:"flex justify-center items-center w-10 h-10 group",prefetch:!0,children:(0,t.jsx)("span",{className:(0,tC.cn)("leading-none text-base text-primary-muted font-mono group-hover:text-primary group-focus:text-primary",e===j&&"text-primary"),children:e+1})})},e),R[25]=F,R[26]=j,R[27]=S,R[28]=e):e=R[28],l=x.map(e),R[20]=F,R[21]=j,R[22]=x,R[23]=S,R[24]=l}else l=R[24];R[29]!==F||R[30]!==j||R[31]!==_||R[32]!==S?(f=_>j+3&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"justify-center items-center w-10 h-10 group cursor-not-allowed font-mono text-base text-primary-muted hidden md:flex",children:"..."}),(0,t.jsx)("li",{children:(0,t.jsx)(t2.default,{href:F(_-1),onClick:()=>S(_-1),className:"justify-center items-center w-10 h-10 group hidden md:flex",prefetch:!0,children:(0,t.jsx)("span",{className:(0,tC.cn)("leading-none text-base text-primary-muted font-mono group-hover:text-primary group-focus:text-primary"),children:_})})})]}),R[29]=F,R[30]=j,R[31]=_,R[32]=S,R[33]=f):f=R[33];let k=P&&"cursor-not-allowed";R[34]!==k?(h=(0,tC.cn)(k),R[34]=k,R[35]=h):h=R[35];let N=j+1;return R[36]!==F||R[37]!==N?(d=F(N),R[36]=F,R[37]=N,R[38]=d):d=R[38],R[39]!==j||R[40]!==S?(p=()=>S(j+1),R[39]=j,R[40]=S,R[41]=p):p=R[41],R[42]!==O?(m=(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:O},className:"font-mono text-primary text-base group-data-[last=true]:text-primary-muted"}),R[42]=O,R[43]=m):m=R[43],R[44]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)(t$.default,{name:"arrow-right",className:"group-data-[last=true]:fill-primary-muted fill-primary w-4 h-4"}),R[44]=g):g=R[44],R[45]!==P||R[46]!==d||R[47]!==p||R[48]!==m?(y=(0,t.jsxs)(t2.default,{href:d,onClick:p,className:"flex flex-row px-2 justify-start h-10 center items-center gap-2 group data-[last=true]:pointer-events-none","aria-disabled":P,"data-last":P,prefetch:!0,children:[m,g]}),R[45]=P,R[46]=d,R[47]=p,R[48]=m,R[49]=y):y=R[49],R[50]!==h||R[51]!==y?(v=(0,t.jsx)("li",{className:h,children:y}),R[50]=h,R[51]=y,R[52]=v):v=R[52],R[53]!==l||R[54]!==f||R[55]!==v||R[56]!==u?(b=(0,t.jsxs)("ul",{className:"col-span-full flex flex-row justify-center items-center",children:[u,l,f,v]}),R[53]=l,R[54]=f,R[55]=v,R[56]=u,R[57]=b):b=R[57],b}var t7=N({name:"current-refinements",connector:!0}),t9=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return tA(e,t7()),function(r){if((r||{}).includedAttributes&&(r||{}).excludedAttributes)throw Error(t7("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var n=r||{},i=n.includedAttributes,a=n.excludedAttributes,s=void 0===a?["query"]:a,o=n.transformItems,c=void 0===o?function(e){return e}:o;return{$$type:"ais.currentRefinements",init:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(){t()},getRenderState:function(e,t){return A(O({},e),{currentRefinements:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.scopedResults,a=e.createURL,o=e.helper,u=t?n.reduce(function(e,r){return e.concat(c(re({results:r.results,helper:r.helper,indexId:r.indexId,includedAttributes:i,excludedAttributes:s}),{results:t}))},[]):c(re({results:null,helper:o,indexId:o.state.index,includedAttributes:i,excludedAttributes:s}),{results:t});return{items:u,canRefine:u.length>0,refine:function(e){return rr(o,e)},createURL:function(e){return a(rt(o.state,e))},widgetParams:r}}}}};function re(e){var t=e.results,r=e.helper,n=e.indexId,i=e.includedAttributes,a=e.excludedAttributes,s=-1!==(i||[]).indexOf("query")||-1===(a||[]).indexOf("query"),o=i?function(e){return -1!==i.indexOf(e.attribute)}:function(e){return -1===a.indexOf(e.attribute)},c=tL(t,r.state,s).map(rn).filter(o);return c.reduce(function(e,t){return ey(e.filter(function(e){return e.attribute!==t.attribute})).concat([{indexName:r.state.index,indexId:n,attribute:t.attribute,label:t.attribute,refinements:c.filter(function(e){return e.attribute===t.attribute}).sort(function(e,t){return"numeric"===e.type?e.value-t.value:0}),refine:function(e){return rr(r,e)}}])},[])}function rt(e,t){switch(e=e.resetPage(),t.type){case"facet":return e.removeFacetRefinement(t.attribute,String(t.value));case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,String(t.value));case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,String(t.value));case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,String(t.value));case"tag":return e.removeTagRefinement(String(t.value));case"query":return e.setQueryParameter("query","");default:return e}}function rr(e,t){e.setState(rt(e.state,t)).search()}
1function rn(e){var t,r="numeric"===(t=e).type?Number(t.name):"escapedValue"in t?t.escapedValue:t.name,n=e.operator?"".concat(function(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,i={attribute:e.attribute,type:e.type,value:r,label:n};return void 0!==e.operator&&(i.operator=e.operator),void 0!==e.count&&(i.count=e.count),void 0!==e.exhaustive&&(i.exhaustive=e.exhaustive),i}var ri=N({name:"search-box",connector:!0}),ra=function(e,t){return t(e)},rs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;return tA(e,ri()),function(r){var n,i,a=(r||{}).queryHook,s=void 0===a?ra:a;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(A(O({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return A(O({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,a=e.instantSearchInstance,o=e.state;return n||(n=function(e){s(e,function(e){return t.setQuery(e).search()})},i=function(){t.setQuery("").search()}),{query:o.query||"",refine:n,clear:i,widgetParams:r,isSearchStalled:"stalled"===a.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:A(O({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}};function ro(e){let n,i,a,s,o,c,u,l,f,h,d=(0,r.c)(50),{suggestions:p,facets:m}=e,{refine:g}=em(rs,void 0,void 0),{items:y,refine:v}=em(t9,void 0,void 0),{refine:b}=em(tQ,void 0,void 0),R=(0,G.useRef)(null),{locale:x}=(0,G.useContext)(tx.PageContext),S=x.dictionary?.filter_input_placeholder||"",j=x.dictionary?.filter_clear||"",w=x.dictionary?.filter_more||"",[P,_]=(0,G.useState)("");if(d[0]!==b||d[1]!==j||d[2]!==v||d[3]!==m||d[4]!==P||d[5]!==y||d[6]!==w||d[7]!==S||d[8]!==g||d[9]!==p){let e,r,l,f,h,x,F,E;d[17]!==m?(e=e=>{let t=m.find(t=>t.attribute===e.attribute);return e.refinements.map(e=>{let r=e.label;return t?.preProcess&&(r=t.preProcess(e.label)||""),{...e,label:r}})},d[17]=m,d[18]=e):e=d[18];let O=y.map(e).flat(1),A=O.length-3;d[19]!==g?(r=e=>{_(e),g(e)},d[19]=g,d[20]=r):r=d[20];let I=r;c="flex w-full flex-col overflow-hidden pb-16 pt-8 md:pt-10",d[21]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{e.preventDefault(),e.stopPropagation(),R.current?.blur()},d[21]=l):l=d[21],d[22]!==I?(f=e=>{e.preventDefault(),e.stopPropagation(),I(""),R.current?.focus()},d[22]=I,d[23]=f):f=d[23],d[24]!==I?(h=e=>{I(e.currentTarget.value)},d[24]=I,d[25]=h):h=d[25],d[26]===Symbol.for("react.memo_cache_sentinel")?(x=(0,tC.cn)("border-b-primary peer h-12 w-full border-b duration-300","text-primary text-xl lg:text-2xl","placeholder:text-secondary placeholder:font-book placeholder:text-xl lg:placeholder:text-2xl","placeholder-shown:border-b-secondary","outline-none focus:outline-none active:outline-none"),d[26]=x):x=d[26],d[27]!==P||d[28]!==S||d[29]!==h?(F=(0,t.jsx)("input",{ref:R,autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",placeholder:S,spellCheck:!1,maxLength:512,type:"search",value:P,autoFocus:!0,onChange:h,className:x}),d[27]=P,d[28]=S,d[29]=h,d[30]=F):F=d[30],d[31]!==P||d[32]!==I?(E=(0,t.jsx)(tw.AnimatePresence,{children:""!==P?(0,t.jsx)("button",{className:"bg-background absolute right-0",onClick:()=>I(""),title:"clear search",children:(0,t.jsx)(t$.default,{name:"close",className:"fill-primary size-6.5 peer-placeholder-shown:fill-secondary duration-300"},"close-icon")}):(0,t.jsx)(t$.default,{name:"search",className:"fill-primary peer-placeholder-shown:fill-secondary absolute right-0 size-6 duration-300"},"search-icon")}),d[31]=P,d[32]=I,d[33]=E):E=d[33],d[34]!==F||d[35]!==E||d[36]!==f?(u=(0,t.jsxs)("form",{action:"",role:"search",noValidate:!0,onSubmit:l,onReset:f,className:"relative flex items-center",children:[F,E]}
1),d[34]=F,d[35]=E,d[36]=f,d[37]=u):u=d[37],o="relative mt-4 flex min-h-[28px] max-w-full flex-row items-center justify-start overflow-hidden",n=tw.AnimatePresence,i=!1,a="wait",s=y.length>0?(0,t.jsxs)(tP.m.div,{className:"flex w-full flex-row flex-wrap items-center justify-start gap-3",initial:{translateY:"-150%"},animate:{translateY:0},exit:{translateY:"-150%"},transition:{duration:.35,ease:[.22,.31,0,1]},layout:!0,children:[(0,t.jsxs)("button",{className:"mr-0.5 mt-0.5 flex flex-col gap-0.5 self-start md:hidden",onClick:()=>b(),children:[(0,t.jsx)(tE.default,{as:"span",html:j,classes:"font-mono text-sm text-primary"}),(0,t.jsx)("div",{className:"bg-primary h-px w-full"})]}),(0,t.jsx)(tw.AnimatePresence,{initial:!1,mode:"popLayout",children:O.slice(0,3).map(e=>(0,t.jsxs)(tP.m.button,{onClick:()=>v(e),className:"border-primary bg-background flex h-[28px] w-max select-none flex-row items-center justify-center gap-1 border px-1.5 duration-200",initial:{translateY:"-150%",opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:"-150%",opacity:0}
1,transition:{duration:.35,ease:[.22,.31,0,1]},layout:!0,children:[(0,t.jsx)(tE.default,{as:"span",classes:"text-primary text-base line-clamp-1 capitalize whitespace-nowrap",html:e.label}),(0,t.jsx)(t$.default,{name:"close",className:"fill-primary size-4.5 mt-0.5"})]},e.label))}),(0,t.jsx)(tw.AnimatePresence,{children:A>=1&&(0,t.jsx)(tP.m.div,{initial:{translateY:"-150%",opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:"-150%",opacity:0},transition:{duration:.35,ease:[.22,.31,0,1]},layout:!0,children:(0,t.jsx)(tE.default,{html:`[${A} ${w}]`,as:"span",classes:"text-sm font-mono mt-0.5"})})}),(0,t.jsxs)("button",{className:"ml-auto mt-0.5 hidden flex-col gap-0.5 self-start md:flex",onClick:()=>b(),children:[(0,t.jsx)(tE.default,{as:"span",html:j,classes:"font-mono text-sm text-primary"}),(0,t.jsx)("div",{className:"bg-primary h-px w-full"})]})]},"filters"):p&&p.length>0&&(0,t.jsxs)(tP.m.div,{className:"flex flex-row flex-wrap items-center justify-start gap-2",initial:{translateY:"-150%"},animate:{translateY:0},exit:{translateY:"-150%"},transition:{duration:.35,ease:[.22,.31,0,1]},layout:!0,children:[(0,t.jsx)(tE.default,{html:"suggestions",as:"p",classes:"font-mono text-sm text-secondary leading-none mt-0.5 mr-2"}),p.map((e,r)=>(0,t.jsxs)("button",{className:"text-secondary hover:text-primary focus:text-primary text-base duration-200",onClick:()=>I(e.title||""),children:[(0,t.jsx)(tE.default,{as:"span",html:e.title||"",classes:"text-inherit whitespace-nowrap"}),r<p.length-1&&","]},e.title))]},"suggestions"),d[0]=b,d[1]=j,d[2]=v,d[3]=m,d[4]=P,d[5]=y,d[6]=w,d[7]=S,d[8]=g,d[9]=p,d[10]=n,d[11]=i,d[12]=a,d[13]=s,d[14]=o,d[15]=c,d[16]=u}else n=d[10],i=d[11],a=d[12],s=d[13],o=d[14],c=d[15],u=d[16];return d[38]!==n||d[39]!==i||d[40]!==a||d[41]!==s?(l=(0,t.jsx)(n,{initial:i,mode:a,children:s}),d[38]=n,d[39]=i,d[40]=a,d[41]=s,d[42]=l):l=d[42],d[43]!==o||d[44]!==l?(f=(0,t.jsx)("div",{className:o,children:l}),d[43]=o,d[44]=l,d[45]=f):f=d[45],d[46]!==c||d[47]!==u||d[48]!==f?(h=(0,t.jsxs)("div",{className:c,children:[u,f]}),d[46]=c,d[47]=u,d[48]=f,d[49]=h):h=d[49],h}var rc=e.i(649258);function ru(){let e,n,i,a=(0,r.c)(7),{results:s}=function(){var e,t,r,n,i,a,s,o,c,u,l,f,h,d,p,m,g,y,v=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catchError,b=ea(),R=(e=ea(),r=(t=en()).getIndexId(),i=(n=z((0,G.useState)(function(){return e.getUiState()}),2))[0],a=n[1],s=i[r],c=(o=z((0,G.useState)(function(){return e.renderState}),2))[0],u=o[1],l=c[r]||{},f=(0,G.useCallback)(function(t){e.setUiState(t)},[e]),h=(0,G.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,G.useEffect)(function(){function t(){a(e.getUiState()),u(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}},[e]),{uiState:i,setUiState:f,indexUiState:s,setIndexUiState:h,renderState:c,indexRenderState:l}),x=R.uiState,S=R.setUiState,j=R.indexUiState,w=R.setIndexUiState,P=R.renderState,_=R.indexRenderState,F=(d=ea(),p=en(),g=(m=z((0,G.useState)(function(){var e=ee(p);return{results:e.results,scopedResults:e.scopedResults}}),2))[0],y=m[1],(0,G.useEffect)(function(){function e(){var e=p.getResults();if(null!==e)y({results:e,scopedResults:p.getScopedResults()});else if(0===d.mainIndex.getIndexName().length){var t=d.mainIndex.getWidgets().find(eI);t&&y({results:ee(p).results,scopedResults:t.getScopedResults()})}}return d.addListener("render",e),e(),function(){d.removeListener("render",e)}},[d,p]),g),E=F.results,O=F.scopedResults,A=(0,G.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return b.use.apply(b,ey(t)),function(){b.unuse.apply(b,ey(t))}},[b]),I=(0,G.useCallback)(function(){b.refresh()},[b]);return eh(function(){if(v){var e=function(){};return b.addListener("error",e),function(){return b.removeListener("error",e)}}return function(){}},[b,v]),{results:E,scopedResults:O,uiState:x,setUiState:S,indexUiState:j,setIndexUiState:w,renderState:P,indexRenderState:_,addMiddlewares:A,refresh:I,status:b.status,error:b.error}}(),{locale:o}=(0,G.useContext)(tx.PageContext),c=o.dictionary?.search_no_results_title||"",u=o.dictionary?.search_no_results_paragraph||"";return s.__isArtificial||s.nbHits>0?null:(a[0]!==c?(e=(0,t.jsx)(tE.default,{html:c,as:"h2",classes:"text-4xl lg:text-5xl"}),a[0]=c,a[1]=e):e=a[1],a[2]!==u?(n=(0,t.jsx)(tE.default,{html:u,as:"p"}),a[2]=u,a[3]=n):n=a[3],a[4]!==e||a[5]!==n?(i=(0,t.jsxs)("div",{className:"col-span-full flex flex-col justify-center items-center mt-8 mb-6 gap-3",children:[e,n]}),a[4]=e,a[5]=n,a[6]=i):i=a[6],i)}e.s(["default",0,function(e){let i,a,s,o,c,u,l,f,h,d,p,m,g,y,v=(0,r.c)(33),{id:b,name:R,classes:x}=e,{filter:S,suggestions:j,facets:w,index:O}=e,A=void 0===O?"production":O,{locale:I}=(0,G.useContext)(tx.PageContext);v[0]!==w?(i=E().map(e=>{let t=w.find(t=>t.attribute===e.attribute);return{...e,title:t?t.title:"",hidden:!t}}),v[0]=w,v[1]=i):i=v[1];let T=i;if(v[2]!==A){let e;e=_(null).find(e=>e.id===A)?.value||"production",a={router:P({createURL({qsModule:e,location:t,routeState:r}){let n=`${t.protocol}//${t.host}${t.pathname}`,i={};r.q&&"string"==typeof r.q&&(i.q=encodeURIComponent(r.q));let a=Object.fromEntries(Object.entries(e.parse(t.search.slice(1))).filter(([e])=>!Object.keys(r).includes(e)&&e.startsWith("utm_")));
1E().forEach(e=>{let t=r[e.slug];t&&Array.isArray(t)&&(i[e.slug]=t.map(e=>encodeURIComponent(e.replaceAll(" ","-"))))}),r.page&&"number"==typeof r.page&&(i.page=r.page);let s=e.stringify({...i,...a},{addQueryPrefix:!0,arrayFormat:"repeat"});return`${n}${s}`},parseURL({qsModule:e,location:t}){let r=e.parse(t.search.slice(1)),n=[];E().forEach(e=>{let t=r[e.slug];t&&(Array.isArray(t)?n.push({[e.slug]:t.map(e=>decodeURIComponent(e.replaceAll("-"," ")))}):"type"===e.slug?n.push({[e.slug]:[t].map(e=>decodeURIComponent(e))}):n.push({[e.slug]:[t].map(e=>decodeURIComponent(e.replaceAll("-"," ")))}))});let i=Object.assign({},{},...n);return{q:decodeURIComponent("string"==typeof r.q?r.q:""),page:r.page,...i}}}),stateMapping:{stateToRoute:t=>{let r=t?.[e]||{},n=E().map(e=>({[e.slug]:r?.refinementList?.[e.attribute]||[]}));return Object.assign({},{q:r?.query||"",page:r?.page},...n)},routeToState:t=>{let r=Object.assign({},{},...E().map(e=>({[e.attribute]:t[e.slug]})));return{[e]:{query:"string"==typeof t.q?t.q:void 0,page:t.page,refinementList:r}}}}},v[2]=A,v[3]=a}else a=v[3];let k=a;return v[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("div",{className:"col-span-full flex justify-center items-center pt-8 md:pt-13 w-full absolute",children:(0,t.jsx)(rc.default,{size:"lg"})}),v[4]=s):s=v[4],v[5]!==A||v[6]!==I.dictionary?(o=_(I.dictionary).find(e=>e.id===A)?.value||"production",v[5]=A,v[6]=I.dictionary,v[7]=o):o=v[7],v[8]===Symbol.for("react.memo_cache_sentinel")?(c={preserveSharedStateOnUnmount:!0,persistHierarchicalRootCount:!0},v[8]=c):c=v[8],v[9]!==S?(u=(0,t.jsx)(eg,{hitsPerPage:28,filters:S}),v[9]=S,v[10]=u):u=v[10],v[11]!==T||v[12]!==j?(l=(0,t.jsx)("div",{className:"col-span-full row-1 min-h-0",children:(0,t.jsx)(ro,{suggestions:j,facets:T})}),v[11]=T,v[12]=j,v[13]=l):l=v[13],v[14]!==T?(f=(0,t.jsx)("div",{className:"flex flex-row gap-2",children:(0,t.jsx)(tq,{facets:T})}),v[14]=T,v[15]=f):f=v[15],v[16]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(t1,{}),v[16]=h):h=v[16],v[17]!==f?(d=(0,t.jsxs)("div",{className:"col-span-full row-2 h-max flex flex-row-reverse lg:flex-row justify-between min-h-0",children:[f,h]}),v[17]=f,v[18]=d):d=v[18],v[19]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsxs)("div",{className:"col-span-full row-3 grid-setup gap-y-6 lg:gap-y-8 mt-6 min-h-0",children:[(0,t.jsx)(tX,{}),(0,t.jsx)(ru,{}),(0,t.jsx)(t6,{})]}),v[19]=p):p=v[19],v[20]!==d||v[21]!==l?(m=(0,t.jsxs)("div",{className:"col-span-full w-full h-min grid-setup relative bg-background",children:[l,d,p]}),v[20]=d,v[21]=l,v[22]=m):m=v[22],v[23]!==k||v[24]!==m||v[25]!==o||v[26]!==u?(g=(0,t.jsxs)(tb,{searchClient:F.default,indexName:o,insights:!0,routing:k,future:c,children:[u,m]}),v[23]=k,v[24]=m,v[25]=o,v[26]=u,v[27]=g):g=v[27],v[28]!==x||v[29]!==b||v[30]!==R||v[31]!==g?(y=(0,t.jsxs)(n.default,{id:b,name:R,externalClasses:x,classes:"min-h-dvh",children:[s,g]}),v[28]=x,v[29]=b,v[30]=R,v[31]=g,v[32]=y):y=v[32],y}],20694)}]);

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.