PageSourceSearch

https://docs.transcend.io/_next/static/chunks/1563-9717fb22d4433ec8.js?dpl=dpl_92sWMyUr7jyDBj4744XDsDSQLvii

js transcend.io collected 2026-09-24 07:59:01 UTC 499,312 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1563],{105:(e,t,r)=>{"use strict";var n=r(86133);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},1403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return o}});let n=r(24966)._(r(61377)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(n.urlQueryToSearchParams(u)));let l=e.search||u&&"?"+u||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||i.test(a))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),""+a+c+(o=o.replace(/[?#]/g,encodeURIComponent))+(l=l.replace("#","%23"))+s}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return a(e)}},1474:(e,t,r)=>{"use strict";var n=r(34498),i=r(50942);e.exports=function(e,t){var r,a,o={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(o[t.objectID]?o[t.objectID]={indexSum:o[t.objectID].indexSum+r,count:o[t.objectID].count+1}:o[t.objectID]={indexSum:r,count:1})})}),(r=t.length,a=[],Object.keys(o).forEach(function(e){o[e].count<2&&(o[e].indexSum+=100),a.push({objectID:e,avgOfIndices:o[e].indexSum/r})}),a.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})).reduce(function(e,r){var a=n(i(t),function(e){return e.objectID===r.objectID});return a?e.concat(a):e},[])}},1538:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(58076),i=globalThis?.document?n.useLayoutEffect:()=>{}},1554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},1745:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{j:()=>function e(t,r,a){var o,s;if(null!=a&&a(t,r)||t===r)return!0;if(t&&r&&(o=t.constructor)===r.constructor){if(o===Date)return t.getTime()===r.getTime();if(o===RegExp)return t.toString()===r.toString();if(o===Array){if((s=t.length)===r.length)for(;s--&&e(t[s],r[s],a););return -1===s}if(!o||"object"===n(t)){for(o in s=0,t)if(i.call(t,o)&&++s&&!i.call(r,o)||!(o in r)||!e(t[o],r[o],a))return!1;return Object.keys(r).length===s}}return t!=t&&r!=r}});var i=Object.prototype.hasOwnProperty},1792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let n=r(78325),i=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function o(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):i.test(e)}},1949:(e,t,r)=>{"use strict";r.d(t,{J:()=>f});
1var n=r(58076),i=r(65672),a=r(77242),o=r(85619),s=r(28867),u=r(6631);function c(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 l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(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 f(){var e,t,r,d,f,h,p,m,g,y,v,b,w,P,S,E,R,_,O,j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},x=j.catchError,T=(0,i.I)(),I=(e=(0,i.I)(),r=(t=(0,u.R)()).getIndexId(),f=(d=l((0,n.useState)(function(){return e.getUiState()}),2))[0],h=d[1],p=f[r],g=(m=l((0,n.useState)(function(){return e.renderState}),2))[0],y=m[1],v=g[r]||{},b=(0,n.useCallback)(function(t){e.setUiState(t)},[e]),w=(0,n.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,n.useEffect)(function(){function t(){h(e.getUiState()),y(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}},[e]),{uiState:f,setUiState:b,indexUiState:p,setIndexUiState:w,renderState:g,indexRenderState:v}),C=I.uiState,A=I.setUiState,q=I.indexUiState,D=I.setIndexUiState,N=I.renderState,k=I.indexRenderState,F=(P=(0,i.I)(),S=(0,u.R)(),_=(R=function(e){if(Array.isArray(e))return e}(E=(0,n.useState)(function(){var e=(0,s.J)(S);return{results:e.results,scopedResults:e.scopedResults}}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{a=(r=r.call(e)).next,!1;for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(E,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(E,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],O=R[1],(0,n.useEffect)(function(){function e(){var e=S.getResults();if(null!==e)O({results:e,scopedResults:S.getScopedResults()});else if(0===P.mainIndex.getIndexName().length){var t=P.mainIndex.getWidgets().find(o.l);t&&O({results:(0,s.J)(S).results,scopedResults:t.getScopedResults()})}}return P.addListener("render",e),e(),function(){P.removeListener("render",e)}},[P,S]),_),L=F.results,U=F.scopedResults,M=(0,n.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return T.use.apply(T,t),function(){T.unuse.apply(T,t)}},[T]),H=(0,n.useCallback)(function(){T.refresh()},[T]);return(0,a.E)(function(){if(x){var e=function(){};return T.addListener("error",e),function(){return T.removeListener("error",e)}}return function(){}},[T,x]),{results:L,scopedResults:U,uiState:C,setUiState:A,indexUiState:q,setIndexUiState:D,renderState:N,indexRenderState:k,addMiddlewares:M,refresh:H,status:T.status,error:T.error}}},2708:(e,t,r)=>{"use strict";function n(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}r.d(t,{E:()=>n})},2872:(e,t,r)=>{"use strict";r.d(t,{w:()=>eg});var n={};r.r(n),r.d(n,{abtestingV3Client:()=>q,apiClientVersion:()=>C});var i={};r.r(i),r.d(i,{abtestingClient:()=>k,apiClientVersion:()=>D});var a={};r.r(a),r.d(a,{analyticsClient:()=>U,apiClientVersion:()=>F});var o={};r.r(o),r.d(o,{apiClientVersion:()=>M,insightsClient:()=>W});var s={};r.r(s),r.d(s,{apiClientVersion:()=>B,personalizationClient:()=>Q});var u={};r.r(u),r.d(u,{apiClientVersion:()=>G,querySuggestionsClient:()=>K});var c={};r.r(c),r.d(c,{apiClientVersion:()=>V,searchClient:()=>X});var l={};r.r(l),r.d(l,{apiClientVersion:()=>J,ingestionClient:()=>er,isOnDemandTrigger:()=>Z,isScheduleTrigger:()=>ee,isSubscriptionTrigger:()=>et});var d={};r.r(d),r.d(d,{apiClientVersion:()=>en,monitoringClient:()=>ei});var f={};function h(){return{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;
1r.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)})}}}function p(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(()=>(!function(){let t=e.timeToLive?1e3*e.timeToLive:null,r=Object.fromEntries(Object.entries(i()).filter(([,e])=>void 0!==e.timestamp));a(r),t&&a(Object.fromEntries(Object.entries(r).filter(([,e])=>{let r=new Date().getTime();return!(e.timestamp+t<r)})))}(),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)})}}function m(e){let t=[...e.caches],r=t.shift();return void 0===r?{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:(e,n,i={miss:()=>Promise.resolve()})=>r.get(e,n,i).catch(()=>m({caches:t}).get(e,n,i)),set:(e,n)=>r.set(e,n).catch(()=>m({caches:t}).set(e,n)),delete:e=>r.delete(e).catch(()=>m({caches:t}).delete(e)),clear:()=>r.clear().catch(()=>m({caches:t}).clear())}}function g(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 o=n();return o.then(e=>i.miss(e)).then(()=>o)},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 y(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:{}}}function v({func:e,validate:t,aggregator:r,error:n,timeout:i=()=>0}){let a=o=>new Promise((s,u)=>{e(o).then(async e=>(r&&await r(e),await t(e))?s(e):n&&await n.validate(e)?u(Error(await n.message(e))):setTimeout(()=>{a(e).then(s).catch(u)},await i())).catch(e=>{u(e)})});return a()}function b({algoliaAgents:e,client:t,version:r}){let n=(function(e){let t={value:`Algolia for JavaScript (${e})`,add(e){let r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t})(r).add({segment:t,version:r});return e.forEach(e=>n.add(e)),n}function w(){return{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()}}function P(e,t="up"){let r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>12e4},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=12e4}}}r.r(f),r.d(f,{apiClientVersion:()=>ea,recommendClient:()=>eo});var S=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},E=class extends S{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},R=class extends E{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")}}
1,_=class extends E{status;constructor(e,t,r,n="ApiError"){super(e,r,n),this.status=t}},O=class extends S{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},j=class extends _{error;constructor(e,t,r,n){super(e,t,n,"DetailedApiError"),this.error=r}};function x(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}function T(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function I({hosts:e,hostsCache:t,baseHeaders:r,logger:n,baseQueryParameters:i,algoliaAgent:a,timeouts:o,requester:s,requestsCache:u,responsesCache:c}){async function l(e){let r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(P(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 d(u,c,f=!0){let h=[],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,c),m=function(e,t,r){let n={Accept:"application/json",...e,...t,...r},i={};return Object.keys(n).forEach(e=>{let t=n[e];i[e.toLowerCase()]=t}),i}(r,u.headers,c.headers),g="GET"===u.method?{...u.data,...c.data}:{},y={...i,...u.queryParameters,...g};if(a.value&&(y["x-algolia-agent"]=a.value),c&&c.queryParameters)for(let e of Object.keys(c.queryParameters))c.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(c.queryParameters[e])?y[e]=c.queryParameters[e].toString():y[e]=c.queryParameters[e];let v=0,b=async(e,r)=>{let i=e.pop();if(void 0===i)throw new R(h.map(e=>T(e)));let a={...o,...c.timeouts},l={data:p,headers:m,method:u.method,url:function(e,t,r){var n;let i=Object.keys(n=r).filter(e=>void 0!==n[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(n[e])?n[e].join(","):n[e]).replace(/\+/g,"%20")}`).join("&"),a=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return i.length&&(a+=`?${i}`),a}(i,u.path,y),connectTimeout:r(v,a.connect),responseTimeout:r(v,f?a.read:a.write)},d=t=>{let r={request:l,response:t,host:i,triesLeft:e.length};return h.push(r),r},g=await s.send(l);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)}(g)){let a=d(g);return g.isTimedOut&&v++,n.info("Retryable failure",T(a)),await t.set(i,P(i,g.isTimedOut?"timed out":"down")),b(e,r)}if(function({status:e}){return 2==~~(e/100)}(g))try{return JSON.parse(g.content)}catch(e){throw new O(e.message,g)}throw d(g),function({content:e,status:t},r){try{let n=JSON.parse(e);if("error"in n)return new j(n.message,t,n.error,r);return new _(n.message,t,r)}catch{}return new _(e,t,r)}(g,h)},w=e.filter(e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept)),S=await l(w);return b([...S.hosts].reverse(),S.getTimeout)}return{hostsCache:t,requester:s,timeouts:o,logger:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:i,hosts:e,request:function(e,t={}){let n=e.useReadTransporter||"GET"===e.method;if(!n)return d(e,t,n);let a=()=>d(e,t);if(!0!==(t.cacheable||e.cacheable))return a();let o={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return c.get(o,()=>u.get(o,()=>u.set(o,a()).then(e=>Promise.all([u.delete(o),e]),e=>Promise.all([u.delete(o),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>c.set(o,e)})},requestsCache:u,responsesCache:c}}var C="1.8.0",A=["de","us"];function q(e,t,r,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!A.includes(r)))throw Error(`\`region\` must be one of the following: ${A.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=y(e,t,r),s=I({hosts:[{url:i?"analytics.{region}.algolia.com".replace("{region}",i):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:b({algoliaAgents:n,client:"AbtestingV3",version:C}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.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},addABTests(e,t){if(!e)throw Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.metrics)throw Error("Parameter `addABTestsRequest.metrics` is required when calling `addABTests`.");if(!e.endAt)throw Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");return s.request({method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e},t)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return s.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return s.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `deleteABTest`.");let r="/3/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},estimateABTest(e,t){if(!e)throw Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");return s.request({method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e},t)},getABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `getABTest`.");let r="/3/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getTimeseries({id:e,startDate:t,endDate:r,metric:n},i){if(!e)throw Error("Parameter `id` is required when calling `getTimeseries`.");let a="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),o={};return void 0!==t&&(o.startDate=t.toString()),void 0!==r&&(o.endDate=r.toString()),void 0!==n&&(o.metric=n.toString()),s.request({method:"GET",path:a,queryParameters:o,headers:{}},i)},listABTests({offset:e,limit:t,indexPrefix:r,indexSuffix:n,direction:i}={},a){let o={};return void 0!==e&&(o.offset=e.toString()),void 0!==t&&(o.limit=t.toString()),void 0!==r&&(o.indexPrefix=r.toString()),void 0!==n&&(o.indexSuffix=n.toString()),void 0!==i&&(o.direction=i.toString()),s.request({method:"GET",path:"/3/abtests",queryParameters:o,headers:{}},a)},scheduleABTest(e,t){if(!e)throw Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.metrics)throw Error("Parameter `scheduleABTestsRequest.metrics` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");return s.request({method:"POST",path:"/3/abtests/schedule",queryParameters:{},headers:{},data:e},t)},stopABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `stopABTest`.");let r="/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return s.request({method:"POST",path:r,queryParameters:{},headers:{}},t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${C}-${e}`}),g()]}),...n})}var D="5.42.0",N=["de","us"];function k(e,t,r,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!N.includes(r)))throw Error(`\`region\` must be one of the following: ${N.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=y(e,t,r),s=I({hosts:[{url:i?"analytics.{region}.algolia.com".replace("{region}",i):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:b({algoliaAgents:n,client:"Abtesting",version:D}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.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},addABTests(e,t){if(!e)throw Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.endAt)throw Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");return s.request({method:"POST",path:"/2/abtests",queryParameters:{},headers:{},data:e},t)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return s.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return s.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `deleteABTest`.");let r="/2/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},estimateABTest(e,t){if(!e)throw Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");return s.request({method:"POST",path:"/2/abtests/estimate",queryParameters:{},headers:{},data:e},t)},getABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `getABTest`.");let r="/2/abtests/{id}".replace("{id}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},listABTests({offset:e,limit:t,indexPrefix:r,indexSuffix:n}={},i){let a={};return void 0!==e&&(a.offset=e.toString()),void 0!==t&&(a.limit=t.toString()),void 0!==r&&(a.indexPrefix=r.toString()),void 0!==n&&(a.indexSuffix=n.toString()),s.request({method:"GET",path:"/2/abtests",queryParameters:a,headers:{}},i)},scheduleABTest(e,t){if(!e)throw Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");return s.request({method:"POST",path:"/2/abtests/schedule",queryParameters:{},headers:{},data:e},t)},stopABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `stopABTest`.");let r="/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return s.request({method:"POST",path:r,queryParameters:{},headers:{}},t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${D}-${e}`}),g()]}),...n})}var F="5.42.0",L=["de","us"];function U(e,t,r,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!L.includes(r)))throw Error(`\`region\` must be one of the following: ${L.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=y(e,t,r),s=I({hosts:[{url:i?"analytics.{region}.algolia.com".replace("{region}",i):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:b({algoliaAgents:n,client:"Analytics",version:F}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.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},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return s.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return s.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},getAddToCartRate({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getAddToC
1artRate`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/conversions/addToCartRate",queryParameters:a,headers:{}},i)},getAverageClickPosition({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getAverageClickPosition`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/clicks/averageClickPosition",queryParameters:a,headers:{}},i)},getClickPositions({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getClickPositions`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/clicks/positions",queryParameters:a,headers:{}},i)},getClickThroughRate({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getClickThroughRate`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/clicks/clickThroughRate",queryParameters:a,headers:{}},i)},getConversionRate({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getConversionRate`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/conversions/conversionRate",queryParameters:a,headers:{}},i)},getNoClickRate({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getNoClickRate`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/searches/noClickRate",queryParameters:a,headers:{}},i)},getNoResultsRate({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getNoResultsRate`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/searches/noResultRate",queryParameters:a,headers:{}},i)},getPurchaseRate({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getPurchaseRate`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/conversions/purchaseRate",queryParameters:a,headers:{}},i)},getRevenue({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getRevenue`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/conversions/revenue",queryParameters:a,headers:{}},i)},getSearchesCount({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getSearchesCount`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/searches/count",queryParameters:a,headers:{}},i)},getSearchesNoClicks({index:e,startDate:t,endDate:r,limit:n,offset:i,tags:a},o){if(!e)throw Error("Parameter `index` is required when calling `getSearchesNoClicks`.");let u={};return void 0!==e&&(u.index=e.toString()),void 0!==t&&(u.startDate=t.toString()),void 0!==r&&(u.endDate=r.toString()),void 0!==n&&(u.limit=n.toString()),void 0!==i&&(u.offset=i.toString()),void 0!==a&&(u.tags=a.toString()),s.request({method:"GET",path:"/2/searches/noClicks",queryParameters:u,headers:{}},o)},getSearchesNoResults({index:e,startDate:t,endDate:r,limit:n,offset:i,tags:a},o){if(!e)throw Error("Parameter `index` is required when calling `getSearchesNoResults`.");let u={};return void 0!==e&&(u.index=e.toString()),void 0!==t&&(u.startDate=t.toString()),void 0!==r&&(u.endDate=r.toString()),void 0!==n&&(u.limit=n.toString()),void 0!==i&&(u.offset=i.toString()),void 0!==a&&(u.tags=a.toString()),s.request({method:"GET",path:"/2/searches/noResults",queryParameters:u,headers:{}},o)},getStatus({index:e},t){if(!e)throw Error("Parameter `index` is required when calling `getStatus`.");let r={};return void 0!==e&&(r.index=e.toString()),s.request({method:"GET",path:"/2/status",queryParameters:r,headers:{}},t)},getTopCountries({index:e,startDate:t,endDate:r,limit:n,offset:i,tags:a},o){if(!e)throw Error("Parameter `index` is required when calling `getTopCountries`.");let u={};return void 0!==e&&(u.index=e.toString()),void 0!==t&&(u.startDate=t.toString()),void 0!==r&&(u.endDate=r.toString()),void 0!==n&&(u.limit=n.toString()),void 0!==i&&(u.offset=i.toString()),void 0!==a&&(u.tags=a.toString()),s.request({method:"GET",path:"/2/countries",queryParameters:u,headers:{}},o)},getTopFilterAttributes({index:e,search:t,startDate:r,endDate:n,limit:i,offset:a,tags:o},u){if(!e)throw Error("Parameter `index` is required when calling `getTopFilterAttributes`.");let c={};return void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==n&&(c.endDate=n.toString()),void 0!==i&&(c.limit=i.toString()),void 0!==a&&(c.offset=a.toString()),void 0!==o&&(c.tags=o.toString()),s.request({method:"GET",path:"/2/filters",queryParameters:c,headers:{}},u)},getTopFilterForAttribute({attribute:e,index:t,search:r,startDate:n,endDate:i,limit:a,offset:o,tags:u},c){if(!e)throw Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!t)throw Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");let l="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),d={};return void 0!==t&&(d.index=t.toString()),void 0!==r&&(d.search=r.toString()),void 0!==n&&(d.startDate=n.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==a&&(d.limit=a.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==u&&(d.tags=u.toString()),s.request({method:"GET",path:l,queryParameters:d,headers:{}},c)},getTopFiltersNoResults({index:e,search:t,startDate:r,endDate:n,limit:i,offset:a,tags:o},u){if(!e)throw Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");let c={};return void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==n&&(c.endDate=n.toString()),void 0!==i&&(c.limit=i.toString()),void 0!==a&&(c.offset=a.toString()),void 0!==o&&(c.tags=o.toString()),s.request({method:"GET",path:"/2/filters/noResults",queryParameters:c,headers:{}},u)},getTopHits({index:e,search:t,clickAnalytics:r,revenueAnalytics:n,startDate:i,endDate:a,limit:o,offset:u,tags:c}
1,l){if(!e)throw Error("Parameter `index` is required when calling `getTopHits`.");let d={};return void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==r&&(d.clickAnalytics=r.toString()),void 0!==n&&(d.revenueAnalytics=n.toString()),void 0!==i&&(d.startDate=i.toString()),void 0!==a&&(d.endDate=a.toString()),void 0!==o&&(d.limit=o.toString()),void 0!==u&&(d.offset=u.toString()),void 0!==c&&(d.tags=c.toString()),s.request({method:"GET",path:"/2/hits",queryParameters:d,headers:{}},l)},getTopSearches({index:e,clickAnalytics:t,revenueAnalytics:r,startDate:n,endDate:i,orderBy:a,direction:o,limit:u,offset:c,tags:l},d){if(!e)throw Error("Parameter `index` is required when calling `getTopSearches`.");let f={};return void 0!==e&&(f.index=e.toString()),void 0!==t&&(f.clickAnalytics=t.toString()),void 0!==r&&(f.revenueAnalytics=r.toString()),void 0!==n&&(f.startDate=n.toString()),void 0!==i&&(f.endDate=i.toString()),void 0!==a&&(f.orderBy=a.toString()),void 0!==o&&(f.direction=o.toString()),void 0!==u&&(f.limit=u.toString()),void 0!==c&&(f.offset=c.toString()),void 0!==l&&(f.tags=l.toString()),s.request({method:"GET",path:"/2/searches",queryParameters:f,headers:{}},d)},getUsersCount({index:e,startDate:t,endDate:r,tags:n},i){if(!e)throw Error("Parameter `index` is required when calling `getUsersCount`.");let a={};return void 0!==e&&(a.index=e.toString()),void 0!==t&&(a.startDate=t.toString()),void 0!==r&&(a.endDate=r.toString()),void 0!==n&&(a.tags=n.toString()),s.request({method:"GET",path:"/2/users/count",queryParameters:a,headers:{}},i)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${F}-${e}`}),g()]}),...n})}var M="5.42.0",H=["de","us"];function W(e,t,r,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!H.includes(r)))throw Error(`\`region\` must be one of the following: ${H.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=y(e,t,r),s=I({hosts:[{url:i?"insights.{region}.algolia.io".replace("{region}",i):"insights.algolia.io",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:b({algoliaAgents:n,client:"Insights",version:M}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.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},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return s.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return s.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteUserToken({userToken:e},t){if(!e)throw Error("Parameter `userToken` is required when calling `deleteUserToken`.");let r="/1/usertokens/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},pushEvents(e,t){if(!e)throw Error("Parameter `insightsEvents` is required when calling `pushEvents`.");if(!e.events)throw Error("Parameter `insightsEvents.events` is required when calling `pushEvents`.");return s.request({method:"POST",path:"/1/events",queryParameters:{},headers:{},data:e},t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${M}-${e}`}),g()]}),...n})}var B="5.42.0",$=["eu","us"];function Q(e,t,r,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(!r||r&&("string"!=typeof r||!$.includes(r)))throw Error(`\`region\` is required and must be one of the following: ${$.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=y(e,t,r),s=I({hosts:[{url:"personalization.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}],...a,algoliaAgent:b({algoliaAgents:n,client:"Personalization",version:B}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.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},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return s.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return s.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteUserProfile({userToken:e},t){if(!e)throw Error("Parameter `userToken` is required when calling `deleteUserProfile`.");let r="/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},getPersonalizationStrategy:e=>s.request({method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}},e),getUserTokenProfile({userToken:e},t){if(!e)throw Error("Parameter `userToken` is required when calling `getUserTokenProfile`.");let r="/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},setPersonalizationStrategy(e,t){if(!e)throw Error("Parameter `personalizationStrategyParams` is required when calling `setPersonalizationStrategy`.");if(!e.eventsScoring)throw Error("Parameter `personalizationStrategyParams.eventsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.facetsScoring)throw Error("Parameter `personalizationStrategyParams.facetsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.personalizationImpact)throw Error("Parameter `personalizationStrategyParams.personalizationImpact` is required when calling `setPersonalizationStrategy`.");return s.request({method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e},t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${B}-${e}`}),g()]}),...n})}var G="5.42.0",z=["eu","us"];function K(e,t,r,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(!r||r&&("string"!=typeof r||!z.includes(r)))throw Error(`\`region\` is required and must be one of the following: ${z.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=y(e,t,r),s=I({hosts:[{url:"query-suggestions.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}],...a,algoliaAgent:b({algoliaAgents:n,client:"QuerySuggestions",version:G}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.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},createConfig(e,t){if(!e)throw Error("Parameter `configurationWithIndex` is required when calling `createConfig`.");return s.request({method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e},t)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return s.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return s.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteConfig({indexName:e},t){if(!e)throw Error("Parameter `indexName` is required when calling `deleteConfig`.");let r="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},getAllConfigs:e=>s.request({method:"GET",path:"/1/configs",queryParameters:{},headers:{}},e),getConfig({indexName:e},t){if(!e)throw Error("Parameter `indexName` is required when calling `getConfig`.");let r="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getConfigStatus({indexName:e},t){if(!e)throw Error("Parameter `indexName` is required when calling `getConfigStatus`.");let r="/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getLogFile({indexName:e},t){if(!e)throw Error("Parameter `indexName` is required when calling `getLogFile`.");let r="/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},updateConfig({indexName:e,configuration:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `updateConfig`.");if(!t)throw Error("Parameter `configuration` is required when calling `updateConfig`.");if(!t.sourceIndices)throw Error("Parameter `configuration.sourceIndices` is required when calling `updateConfig`.");let n="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return s.request({method:"PUT",path:n,queryParameters:{},headers:{},data:t},r)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${G}-${e}`}),g()]}),...n})}var V="5.42.0";function X(e,t,r){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...i}){let a=y(e,t,r),o=I({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(x([{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"}])),...i,algoliaAgent:b({algoliaAgents:n,client:"Search",version:V}),baseHeaders:{"content-type":"text/plain",...a.headers(),...i.baseHeaders},baseQueryParameters:{...a.queryParameters(),...i.baseQueryParameters}});return{transporter:o,appId:e,apiKey:t,clearCache:()=>Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(()=>void 0),get _ua(){return o.algoliaAgent.value},addAlgoliaAgent(e,t){o.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?o.baseQueryParameters["x-algolia-api-key"]=e:o.baseHeaders["x-algolia-api-key"]=e},waitForTask({indexName:e,taskID:t,maxRetries:r=50,timeout:n=e=>Math.min(200*e,5e3)},i){let a=0;return v({func:()=>this.getTask({indexName:e,taskID:t},i),validate:e=>"published"===e.status,aggregator:()=>a+=1,error:{validate:()=>a>=r,message:()=>`The maximum number of retries exceeded. (${a}/${r})`},timeout:()=>n(a)})},waitForAppTask({taskID:e,maxRetries:t=50,timeout:r=e=>Math.min(200*e,5e3)},n){let i=0;return v({func:()=>this.getAppTask({taskID:e},n),validate:e=>"published"===e.status,aggregator:()=>i+=1,error:{validate:()=>i>=t,message:()=>`The maximum number of retries exceeded. (${i}/${t})`},timeout:()=>r(i)})},waitForApiKey({operation:e,key:t,apiKey:r,maxRetries:n=50,timeout:i=e=>Math.min(200*e,5e3)},a){let o=0,s={aggregator:()=>o+=1,error:{validate:()=>
1o>=n,message:()=>`The maximum number of retries exceeded. (${o}/${n})`},timeout:()=>i(o)};if("update"===e){if(!r)throw Error("`apiKey` is required when waiting for an `update` operation.");return v({...s,func:()=>this.getApiKey({key:t},a),validate:e=>{for(let t of Object.keys(r)){let n=r[t],i=e[t];if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length||n.some((e,t)=>e!==i[t]))return!1}else if(n!==i)return!1}return!0}})}return v({...s,func:()=>this.getApiKey({key:t},a).catch(e=>{if(404!==e.status)throw e}),validate:t=>"add"===e?void 0!==t:void 0===t})},browseObjects({indexName:e,browseParams:t,...r},n){return v({func:r=>this.browse({indexName:e,browseParams:{cursor:r?r.cursor:void 0,hitsPerPage:1e3,...t}},n),validate:e=>void 0===e.cursor,...r})},browseRules({indexName:e,searchRulesParams:t,...r},n){let i={...t,hitsPerPage:t?.hitsPerPage||1e3};return v({func:t=>this.searchRules({indexName:e,searchRulesParams:{...i,page:t?t.page+1:i.page||0}},n),validate:e=>e.hits.length<i.hitsPerPage,...r})},browseSynonyms({indexName:e,searchSynonymsParams:t,...r},n){let i={...t,page:t?.page||0,hitsPerPage:1e3};return v({func:t=>{let r=this.searchSynonyms({indexName:e,searchSynonymsParams:{...i,page:i.page}},n);return i.page+=1,r},validate:e=>e.hits.length<i.hitsPerPage,...r})},async chunkedBatch({indexName:e,objects:t,action:r="addObject",waitForTasks:n,batchSize:i=1e3},a){let o=[],s=[];for(let[n,u]of t.entries())o.push({action:r,body:u}),(o.length===i||n===t.length-1)&&(s.push(await this.batch({indexName:e,batchWriteParams:{requests:o}},a)),o=[]);if(n)for(let t of s)await this.waitForTask({indexName:e,taskID:t.taskID});return s},async saveObjects({indexName:e,objects:t,waitForTasks:r,batchSize:n},i){return await this.chunkedBatch({indexName:e,objects:t,action:"addObject",waitForTasks:r,batchSize:n},i)},async deleteObjects({indexName:e,objectIDs:t,waitForTasks:r,batchSize:n},i){return await this.chunkedBatch({indexName:e,objects:t.map(e=>({objectID:e})),action:"deleteObject",waitForTasks:r,batchSize:n},i)},async partialUpdateObjects({indexName:e,objects:t,createIfNotExists:r,waitForTasks:n,batchSize:i},a){return await this.chunkedBatch({indexName:e,objects:t,action:r?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:i,waitForTasks:n},a)},async replaceAllObjects({indexName:e,objects:t,batchSize:r,scopes:n},i){let a=Math.floor(1e6*Math.random())+1e5,o=`${e}_tmp_${a}`;void 0===n&&(n=["settings","rules","synonyms"]);try{let a=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:o,scope:n}},i),s=await this.chunkedBatch({indexName:o,objects:t,waitForTasks:!0,batchSize:r},i);await this.waitForTask({indexName:o,taskID:a.taskID}),a=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:o,scope:n}},i),await this.waitForTask({indexName:o,taskID:a.taskID});let u=await this.operationIndex({indexName:o,operationIndexParams:{operation:"move",destination:e}},i);return await this.waitForTask({indexName:o,taskID:u.taskID}),{copyOperationResponse:a,batchResponses:s,moveOperationResponse:u}}catch(e){throw await this.deleteIndex({indexName:o}),e}},async indexExists({indexName:e}
1){try{await this.getSettings({indexName:e})}catch(e){if(e instanceof _&&404===e.status)return!1;throw e}return!0},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},addApiKey(e,t){if(!e)throw Error("Parameter `apiKey` is required when calling `addApiKey`.");if(!e.acl)throw Error("Parameter `apiKey.acl` is required when calling `addApiKey`.");return o.request({method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:e},t)},addOrUpdateObject({indexName:e,objectID:t,body:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `addOrUpdateObject`.");if(!t)throw Error("Parameter `objectID` is required when calling `addOrUpdateObject`.");if(!r)throw Error("Parameter `body` is required when calling `addOrUpdateObject`.");let i="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"PUT",path:i,queryParameters:{},headers:{},data:r},n)},appendSource(e,t){if(!e)throw Error("Parameter `source` is required when calling `appendSource`.");if(!e.source)throw Error("Parameter `source.source` is required when calling `appendSource`.");return o.request({method:"POST",path:"/1/security/sources/append",queryParameters:{},headers:{},data:e},t)},assignUserId({xAlgoliaUserID:e,assignUserIdParams:t},r){if(!e)throw Error("Parameter `xAlgoliaUserID` is required when calling `assignUserId`.");if(!t)throw Error("Parameter `assignUserIdParams` is required when calling `assignUserId`.");if(!t.cluster)throw Error("Parameter `assignUserIdParams.cluster` is required when calling `assignUserId`.");let n={};return void 0!==e&&(n["X-Algolia-User-ID"]=e.toString()),o.request({method:"POST",path:"/1/clusters/mapping",queryParameters:{},headers:n,data:t},r)},batch({indexName:e,batchWriteParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `batch`.");if(!t)throw Error("Parameter `batchWriteParams` is required when calling `batch`.");if(!t.requests)throw Error("Parameter `batchWriteParams.requests` is required when calling `batch`.");let n="/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t},r)},batchAssignUserIds({xAlgoliaUserID:e,batchAssignUserIdsParams:t},r){if(!e)throw Error("Parameter `xAlgoliaUserID` is required when calling `batchAssignUserIds`.");if(!t)throw Error("Parameter `batchAssignUserIdsParams` is required when calling `batchAssignUserIds`.");if(!t.cluster)throw Error("Parameter `batchAssignUserIdsParams.cluster` is required when calling `batchAssignUserIds`.");if(!t.users)throw Error("Parameter `batchAssignUserIdsParams.users` is required when calling `batchAssignUserIds`.");let n={};return void 0!==e&&(n["X-Algolia-User-ID"]=e.toString()),o.request({method:"POST",path:"/1/clusters/mapping/batch",queryParameters:{},headers:n,data:t},r)},batchDictionaryEntries({dictionaryName:e,batchDictionaryEntriesParams:t},r){if(!e)throw Error("Parameter `dictionaryName` is required when calling `batchDictionaryEntries`.");if(!t)throw Error("Parameter `batchDictionaryEntriesParams` is required when calling `batchDictionaryEntries`.");if(!t.requests)throw Error("Parameter `batchDictionaryEntriesParams.requests` is required when calling `batchDictionaryEntries`.");let n="/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t},r)},browse({indexName:e,browseParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `browse`.");let n="/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0},r)},clearObjects({indexName:e},t){if(!e)throw Error("Parameter `indexName` is required when calling `clearObjects`.");let r="/1/indexes/{indexName}/clear".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:r,queryParameters:{},headers:{}},t)},clearRules({indexName:e,forwardToReplicas:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `clearRules`.");let n="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(e)),i={};return void 0!==t&&(i.forwardToReplicas=t.toString()),o.request({method:"POST",path:n,queryParameters:i,headers:{}},r)},clearSynonyms({indexName:e,forwardToReplicas:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `clearSynonyms`.");let n="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(e)),i={};return void 0!==t&&(i.forwardToReplicas=t.toString()),o.request({method:"POST",path:n,queryParameters:i,headers:{}},r)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return o.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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 o.request({method:"POST",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return o.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteApiKey({key:e},t){if(!e)throw Error("Parameter `key` is required when calling `deleteApiKey`.");let r="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteBy({indexName:e,deleteByParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `deleteBy`.");if(!t)throw Error("Parameter `deleteByParams` is required when calling `deleteBy`.");let n="/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t},r)},deleteIndex({indexName:e},t){if(!e)throw Error("Parameter `indexName` is required when calling `deleteIndex`.");let r="/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e));return o.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteObject({indexName:e,objectID:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `deleteObject`.");if(!t)throw Error("Parameter `objectID` is required when calling `deleteObject`.");let n="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"DELETE",path:n,queryParameters:{},headers:{}},r)},deleteRule({indexName:e,objectID:t,forwardToReplicas:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `deleteRule`.");if(!t)throw Error("Parameter `objectID` is required when calling `deleteRule`.");let i="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),a={};return void 0!==r&&(a.forwardToReplicas=r.toString()),o.request({method:"DELETE",path:i,queryParameters:a,headers:{}},n)},deleteSource({source:e},t){if(!e)throw Error("Parameter `source` is required when calling `deleteSource`.");let r="/1/security/sources/{source}".replace("{source}",encodeURIComponent(e));return o.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteSynonym({indexName:e,objectID:t,forwardToReplicas:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `deleteSynonym`.");if(!t)throw Error("Parameter `objectID` is required when calling `deleteSynonym`.");let i="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),a={};return void 0!==r&&(a.forwardToReplicas=r.toString()),o.request({method:"DELETE",path:i,queryParameters:a,headers:{}},n)},getApiKey({key:e},t){if(!e)throw Error("Parameter `key` is required when calling `getApiKey`.");let r="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getAppTask({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `getAppTask`.");let r="/1/task/{taskID}".replace("{taskID}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getDictionaryLanguages:e=>o.request({method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}},e),getDictionarySettings:e=>o.request({method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}},e),getLogs({offset:e,length:t,indexName:r,type:n}={},i){let a={};return void 0!==e&&(a.offset=e.toString()),void 0!==t&&(a.length=t.toString()),void 0!==r&&(a.indexName=r.toString()),void 0!==n&&(a.type=n.toString()),o.request({method:"GET",path:"/1/logs",queryParameters:a,headers:{}},i)},getObject({indexName:e,objectID:t,attributesToRetrieve:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `getObject`.");if(!t)throw Error("Parameter `objectID` is required when calling `getObject`.");let i="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),a={};return void 0!==r&&(a.attributesToRetrieve=r.toString()),o.request({method:"GET",path:i,queryParameters:a,headers:{}},n)},getObjects(e,t){if(!e)throw Error("Parameter `getObjectsParams` is required when calling `getObjects`.");if(!e.requests)throw Error("Parameter `getObjectsParams.requests` is required when calling `getObjects`.");return o.request({method:"POST",path:"/1/indexes/*/objects",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0},t)},getRule({indexName:e,objectID:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `getRule`.");if(!t)throw Error("Parameter `objectID` is required when calling `getRule`.");let n="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"GET",path:n,queryParameters:{},headers:{}},r)},getSettings({indexName:e,getVersion:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `getSettings`.");let n="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),i={};return void 0!==t&&(i.getVersion=t.toString()),o.request({method:"GET",path:n,queryParameters:i,headers:{}},r)},getSources:e=>o.request({method:"GET",path:"/1/security/sources",queryParameters:{},headers:{}},e),getSynonym({indexName:e,objectID:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `getSynonym`.");if(!t)throw Error("Parameter `objectID` is required when calling `getSynonym`.");let n="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return o.request({method:"GET",path:n,queryParameters:{},headers:{}},r)},getTask({indexName:e,taskID:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `getTask`.");if(!t)throw Error("Parameter `taskID` is required when calling `getTask`.");let n="/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{taskID}",encodeURIComponent(t));return o.request({method:"GET",path:n,queryParameters:{},headers:{}},r)},getTopUserIds:e=>o.request({method:"GET",path:"/1/clusters/mapping/top",queryParameters:{},headers:{}},e),getUserId({userID:e},t){if(!e)throw Error("Parameter `userID` is required when calling `getUserId`.");let r="/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},hasPendingMappings({getClusters:e}={},t){let r={};return void 0!==e&&(r.getClusters=e.toString()),o.request({method:"GET",path:"/1/clusters/mapping/pending",queryParameters:r,headers:{}},t)},listApiKeys:e=>o.request({method:"GET",path:"/1/keys",queryParameters:{},headers:{}}
1,e),listClusters:e=>o.request({method:"GET",path:"/1/clusters",queryParameters:{},headers:{}},e),listIndices({page:e,hitsPerPage:t}={},r){let n={};return void 0!==e&&(n.page=e.toString()),void 0!==t&&(n.hitsPerPage=t.toString()),o.request({method:"GET",path:"/1/indexes",queryParameters:n,headers:{}},r)},listUserIds({page:e,hitsPerPage:t}={},r){let n={};return void 0!==e&&(n.page=e.toString()),void 0!==t&&(n.hitsPerPage=t.toString()),o.request({method:"GET",path:"/1/clusters/mapping",queryParameters:n,headers:{}},r)},multipleBatch(e,t){if(!e)throw Error("Parameter `batchParams` is required when calling `multipleBatch`.");if(!e.requests)throw Error("Parameter `batchParams.requests` is required when calling `multipleBatch`.");return o.request({method:"POST",path:"/1/indexes/*/batch",queryParameters:{},headers:{},data:e},t)},operationIndex({indexName:e,operationIndexParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `operationIndex`.");if(!t)throw Error("Parameter `operationIndexParams` is required when calling `operationIndex`.");if(!t.operation)throw Error("Parameter `operationIndexParams.operation` is required when calling `operationIndex`.");if(!t.destination)throw Error("Parameter `operationIndexParams.destination` is required when calling `operationIndex`.");let n="/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t},r)},partialUpdateObject({indexName:e,objectID:t,attributesToUpdate:r,createIfNotExists:n},i){if(!e)throw Error("Parameter `indexName` is required when calling `partialUpdateObject`.");if(!t)throw Error("Parameter `objectID` is required when calling `partialUpdateObject`.");if(!r)throw Error("Parameter `attributesToUpdate` is required when calling `partialUpdateObject`.");let a="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==n&&(s.createIfNotExists=n.toString()),o.request({method:"POST",path:a,queryParameters:s,headers:{},data:r},i)},removeUserId({userID:e},t){if(!e)throw Error("Parameter `userID` is required when calling `removeUserId`.");let r="/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e));return o.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},replaceSources({source:e},t){if(!e)throw Error("Parameter `source` is required when calling `replaceSources`.");return o.request({method:"PUT",path:"/1/security/sources",queryParameters:{},headers:{},data:e},t)},restoreApiKey({key:e},t){if(!e)throw Error("Parameter `key` is required when calling `restoreApiKey`.");let r="/1/keys/{key}/restore".replace("{key}",encodeURIComponent(e));return o.request({method:"POST",path:r,queryParameters:{},headers:{}},t)},saveObject({indexName:e,body:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `saveObject`.");if(!t)throw Error("Parameter `body` is required when calling `saveObject`.");let n="/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t},r)},saveRule({indexName:e,objectID:t,rule:r,forwardToReplicas:n},i){if(!e)throw Error("Parameter `indexName` is required when calling `saveRule`.");if(!t)throw Error("Parameter `objectID` is required when calling `saveRule`.");if(!r)throw Error("Parameter `rule` is required when calling `saveRule`.");if(!r.objectID)throw Error("Parameter `rule.objectID` is required when calling `saveRule`.");if(!r.consequence)throw Error("Parameter `rule.consequence` is required when calling `saveRule`.");let a="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==n&&(s.forwardToReplicas=n.toString()),o.request({method:"PUT",path:a,queryParameters:s,headers:{},data:r},i)},saveRules({indexName:e,rules:t,forwardToReplicas:r,clearExistingRules:n},i){if(!e)throw Error("Parameter `indexName` is required when calling `saveRules`.");if(!t)throw Error("Parameter `rules` is required when calling `saveRules`.");let a="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==r&&(s.forwardToReplicas=r.toString()),void 0!==n&&(s.clearExistingRules=n.toString()),o.request({method:"POST",path:a,queryParameters:s,headers:{},data:t},i)},saveSynonym({indexName:e,objectID:t,synonymHit:r,forwardToReplicas:n},i){if(!e)throw Error("Parameter `indexName` is required when calling `saveSynonym`.");if(!t)throw Error("Parameter `objectID` is required when calling `saveSynonym`.");if(!r)throw Error("Parameter `synonymHit` is required when calling `saveSynonym`.");if(!r.objectID)throw Error("Parameter `synonymHit.objectID` is required when calling `saveSynonym`.");if(!r.type)throw Error("Parameter `synonymHit.type` is required when calling `saveSynonym`.");let a="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==n&&(s.forwardToReplicas=n.toString()),o.request({method:"PUT",path:a,queryParameters:s,headers:{},data:r},i)},saveSynonyms({indexName:e,synonymHit:t,forwardToReplicas:r,replaceExistingSynonyms:n},i){if(!e)throw Error("Parameter `indexName` is required when calling `saveSynonyms`.");if(!t)throw Error("Parameter `synonymHit` is required when calling `saveSynonyms`.");let a="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==r&&(s.forwardToReplicas=r.toString()),void 0!==n&&(s.replaceExistingSynonyms=n.toString()),o.request({method:"POST",path:a,queryParameters:s,headers:{},data:t},i)},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 o.request(r,t)},searchDictionaryEntries({dictionaryName:e,searchDictionaryEntriesParams:t},r){if(!e)throw Error("Parameter `dictionaryName` is required when calling `searchDictionaryEntries`.");if(!t)throw Error("Parameter `searchDictionaryEntriesParams` is required when calling `searchDictionaryEntries`.");if(!t.query)throw Error("Parameter `searchDictionaryEntriesParams.query` is required when calling `searchDictionaryEntries`.");let n="/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t,useReadTransporter:!0,cacheable:!0},r)},searchForFacetValues({indexName:e,facetName:t,searchForFacetValuesRequest:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `searchForFacetValues`.");if(!t)throw Error("Parameter `facetName` is required when calling `searchForFacetValues`.");let i="/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(e)).replace("{facetName}",encodeURIComponent(t));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0},n)},searchRules({indexName:e,searchRulesParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `searchRules`.");let n="/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},r)},searchSingleIndex({indexName:e,searchParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `searchSingleIndex`.");let n="/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},r)},searchSynonyms({indexName:e,searchSynonymsParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `searchSynonyms`.");let n="/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(e));return o.request({method:"POST",path:n,queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0},r)},searchUserIds(e,t){if(!e)throw Error("Parameter `searchUserIdsParams` is required when calling `searchUserIds`.");if(!e.query)throw Error("Parameter `searchUserIdsParams.query` is required when calling `searchUserIds`.");return o.request({method:"POST",path:"/1/clusters/mapping/search",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0},t)},setDictionarySettings(e,t){if(!e)throw Error("Parameter `dictionarySettingsParams` is required when calling `setDictionarySettings`.");if(!e.disableStandardEntries)throw Error("Parameter `dictionarySettingsParams.disableStandardEntries` is required when calling `setDictionarySettings`.");return o.request({method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:e},t)},setSettings({indexName:e,indexSettings:t,forwardToReplicas:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `setSettings`.");if(!t)throw Error("Parameter `indexSettings` is required when calling `setSettings`.");let i="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),a={};return void 0!==r&&(a.forwardToReplicas=r.toString()),o.request({method:"PUT",path:i,queryParameters:a,headers:{},data:t},n)},updateApiKey({key:e,apiKey:t},r){if(!e)throw Error("Parameter `key` is required when calling `updateApiKey`.");if(!t)throw Error("Parameter `apiKey` is required when calling `updateApiKey`.");if(!t.acl)throw Error("Parameter `apiKey.acl` is required when calling `updateApiKey`.");let n="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return o.request({method:"PUT",path:n,queryParameters:{},headers:{},data:t},r)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${V}-${e}`}),g()]}),...r})}var J="1.42.0",Y=["eu","us"];function Z(e){return"onDemand"===e.type}function ee(e){return"schedule"===e.type}function et(e){return"subscription"===e.type}function er(e,t,r,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");if(!r||r&&("string"!=typeof r||!Y.includes(r)))throw Error(`\`region\` is required and must be one of the following: ${Y.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=y(e,t,r),s=I({hosts:[{url:"data.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}],...a,algoliaAgent:b({algoliaAgents:n,client:"Ingestion",version:J}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.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},async chunkedPush({indexName:e,objects:t,action:r="addObject",waitForTasks:n,batchSize:i=1e3,referenceIndexName:a},o){let s=[],u=0,c=[],l=Math.floor(i/10)||i;for(let[d,f]of t.entries())if(s.push(f),(s.length===i||d===t.length-1)&&(c.push(await this.push({indexName:e,pushTaskPayload:{action:r,records:s},referenceIndexName:a},o)),s=[]),n&&c.length>0&&(c.length%l==0||d===t.length-1)){for(let e of c.slice(u,u+l)){if(!e.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");let t=0;await v({func:async()=>
1{if(void 0===e.eventID||!e.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:e.runID,eventID:e.eventID}).catch(e=>{if(404!==e.status)throw e})},validate:e=>void 0!==e,aggregator:()=>t+=1,error:{validate:()=>t>=50,message:()=>`The maximum number of retries exceeded. (${t}/50)`},timeout:()=>Math.min(500*t,5e3)})}u+=l}return c},createAuthentication(e,t){if(!e)throw Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");return s.request({method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e},t)},createDestination(e,t){if(!e)throw Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");return s.request({method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e},t)},createSource(e,t){if(!e)throw Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw Error("Parameter `sourceCreate.name` is required when calling `createSource`.");return s.request({method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e},t)},createTask(e,t){if(!e)throw Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.action)throw Error("Parameter `taskCreate.action` is required when calling `createTask`.");return s.request({method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e},t)},createTaskV1(e,t){if(!e)throw Error("Parameter `taskCreate` is required when calling `createTaskV1`.");if(!e.sourceID)throw Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");if(!e.destinationID)throw Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");if(!e.trigger)throw Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");if(!e.action)throw Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");return s.request({method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e},t)},createTransformation(e,t){if(!e)throw Error("Parameter `transformationCreate` is required when calling `createTransformation`.");if(!e.name)throw Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");return s.request({method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e},t)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return s.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return s.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return s.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteAuthentication({authenticationID:e},t){if(!e)throw Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");let r="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteDestination({destinationID:e},t){if(!e)throw Error("Parameter `destinationID` is required when calling `deleteDestination`.");let r="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteSource({sourceID:e},t){if(!e)throw Error("Parameter `sourceID` is required when calling `deleteSource`.");let r="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteTask({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `deleteTask`.");let r="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteTaskV1({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `deleteTaskV1`.");let r="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteTransformation({transformationID:e},t){if(!e)throw Error("Parameter `transformationID` is required when calling `deleteTransformation`.");let r="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},disableTask({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `disableTask`.");let r="/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:r,queryParameters:{},headers:{}},t)},disableTaskV1({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `disableTaskV1`.");let r="/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:r,queryParameters:{},headers:{}},t)},enableTask({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `enableTask`.");let r="/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:r,queryParameters:{},headers:{}},t)},enableTaskV1({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `enableTaskV1`.");let r="/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:r,queryParameters:{},headers:{}},t)},getAuthentication({authenticationID:e},t){if(!e)throw Error("Parameter `authenticationID` is required when calling `getAuthentication`.");let r="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getDestination({destinationID:e},t){if(!e)throw Error("Parameter `destinationID` is required when calling `getDestination`.");let r="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getEvent({runID:e,eventID:t},r){if(!e)throw Error("Parameter `runID` is required when calling `getEvent`.");if(!t)throw Error("Parameter `eventID` is required when calling `getEvent`.");let n="/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t));return s.request({method:"GET",path:n,queryParameters:{},headers:{}},r)},getRun({runID:e},t){if(!e)throw Error("Parameter `runID` is required when calling `getRun`.");let r="/1/runs/{runID}".replace("{runID}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getSource({sourceID:e},t){if(!e)throw Error("Parameter `sourceID` is required when calling `getSource`.");let r="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getTask({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `getTask`.");let r="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getTaskV1({taskID:e},t){if(!e)throw Error("Parameter `taskID` is required when calling `getTaskV1`.");let r="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getTransformation({transformationID:e},t){if(!e)throw Error("Parameter `transformationID` is required when calling `getTransformation`.");let r="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},listAuthentications({itemsPerPage:e,page:t,type:r,platform:n,sort:i,order:a}={},o){let u={};return void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.type=r.toString()),void 0!==n&&(u.platform=n.toString()),void 0!==i&&(u.sort=i.toString()),void 0!==a&&(u.order=a.toString()),s.request({method:"GET",path:"/1/authentications",queryParameters:u,headers:{}},o)},listDestinations({itemsPerPage:e,page:t,type:r,authenticationID:n,transformationID:i,sort:a,order:o}={},u){let c={};return void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==n&&(c.authenticationID=n.toString()),void 0!==i&&(c.transformationID=i.toString()),void 0!==a&&(c.sort=a.toString()),void 0!==o&&(c.order=o.toString()),s.request({method:"GET",path:"/1/destinations",queryParameters:c,headers:{}},u)},listEvents({runID:e,itemsPerPage:t,page:r,status:n,type:i,sort:
1a,order:o,startDate:u,endDate:c},l){if(!e)throw Error("Parameter `runID` is required when calling `listEvents`.");let d="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),f={};return void 0!==t&&(f.itemsPerPage=t.toString()),void 0!==r&&(f.page=r.toString()),void 0!==n&&(f.status=n.toString()),void 0!==i&&(f.type=i.toString()),void 0!==a&&(f.sort=a.toString()),void 0!==o&&(f.order=o.toString()),void 0!==u&&(f.startDate=u.toString()),void 0!==c&&(f.endDate=c.toString()),s.request({method:"GET",path:d,queryParameters:f,headers:{}},l)},listRuns({itemsPerPage:e,page:t,status:r,type:n,taskID:i,sort:a,order:o,startDate:u,endDate:c}={},l){let d={};return void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.status=r.toString()),void 0!==n&&(d.type=n.toString()),void 0!==i&&(d.taskID=i.toString()),void 0!==a&&(d.sort=a.toString()),void 0!==o&&(d.order=o.toString()),void 0!==u&&(d.startDate=u.toString()),void 0!==c&&(d.endDate=c.toString()),s.request({method:"GET",path:"/1/runs",queryParameters:d,headers:{}},l)},listSources({itemsPerPage:e,page:t,type:r,authenticationID:n,sort:i,order:a}={},o){let u={};return void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.type=r.toString()),void 0!==n&&(u.authenticationID=n.toString()),void 0!==i&&(u.sort=i.toString()),void 0!==a&&(u.order=a.toString()),s.request({method:"GET",path:"/1/sources",queryParameters:u,headers:{}},o)},listTasks({itemsPerPage:e,page:t,action:r,enabled:n,sourceID:i,sourceType:a,destinationID:o,triggerType:u,withEmailNotifications:c,sort:l,order:d}={},f){let h={};return void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==t&&(h.page=t.toString()),void 0!==r&&(h.action=r.toString()),void 0!==n&&(h.enabled=n.toString()),void 0!==i&&(h.sourceID=i.toString()),void 0!==a&&(h.sourceType=a.toString()),void 0!==o&&(h.destinationID=o.toString()),void 0!==u&&(h.triggerType=u.toString()),void 0!==c&&(h.withEmailNotifications=c.toString()),void 0!==l&&(h.sort=l.toString()),void 0!==d&&(h.order=d.toString()),s.request({method:"GET",path:"/2/tasks",queryParameters:h,headers:{}},f)},listTasksV1({itemsPerPage:e,page:t,action:r,enabled:n,sourceID:i,destinationID:a,triggerType:o,sort:u,order:c}={},l){let d={};return void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.action=r.toString()),void 0!==n&&(d.enabled=n.toString()),void 0!==i&&(d.sourceID=i.toString()),void 0!==a&&(d.destinationID=a.toString()),void 0!==o&&(d.triggerType=o.toString()),void 0!==u&&(d.sort=u.toString()),void 0!==c&&(d.order=c.toString()),s.request({method:"GET",path:"/1/tasks",queryParameters:d,headers:{}},l)},listTransformations({itemsPerPage:e,page:t,sort:r,order:n,type:i}={},a){let o={};return void 0!==e&&(o.itemsPerPage=e.toString()),void 0!==t&&(o.page=t.toString()),void 0!==r&&(o.sort=r.toString()),void 0!==n&&(o.order=n.toString()),void 0!==i&&(o.type=i.toString()),s.request({method:"GET",path:"/1/transformations",queryParameters:o,headers:{}},a)},push({indexName:e,pushTaskPayload:t,watch:r,referenceIndexName:n},i){if(!e)throw Error("Parameter `indexName` is required when calling `push`.");if(!t)throw Error("Parameter `pushTaskPayload` is required when calling `push`.");if(!t.action)throw Error("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!t.records)throw Error("Parameter `pushTaskPayload.records` is required when calling `push`.");let a="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),o={};return void 0!==r&&(o.watch=r.toString()),void 0!==n&&(o.referenceIndexName=n.toString()),i={timeouts:{connect:18e4,read:18e4,write:18e4,...i?.timeouts}},s.request({method:"POST",path:a,queryParameters:o,headers:{},data:t},i)},pushTask({taskID:e,pushTaskPayload:t,watch:r},n){if(!e)throw Error("Parameter `taskID` is required when calling `pushTask`.");if(!t)throw Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");if(!t.action)throw Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");if(!t.records)throw Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");let i="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),a={};return void 0!==r&&(a.watch=r.toString()),n={timeouts:{connect:18e4,read:18e4,write:18e4,...n?.timeouts}},s.request({method:"POST",path:i,queryParameters:a,headers:{},data:t},n)},replaceTask({taskID:e,taskReplace:t},r){if(!e)throw Error("Parameter `taskID` is required when calling `replaceTask`.");if(!t)throw Error("Parameter `taskReplace` is required when calling `replaceTask`.");if(!t.destinationID)throw Error("Parameter `taskReplace.destinationID` is required when calling `replaceTask`.");if(!t.action)throw Error("Parameter `taskReplace.action` is required when calling `replaceTask`.");let n="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PUT",path:n,queryParameters:{},headers:{},data:t},r)},runSource({sourceID:e,runSourcePayload:t},r){if(!e)throw Error("Parameter `sourceID` is required when calling `runSource`.");let n="/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"POST",path:n,queryParameters:{},headers:{},data:t||{}},r)},runTask({taskID:e,runTaskPayload:t},r){if(!e)throw Error("Parameter `taskID` is required when calling `runTask`.");let n="/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return s.request({method:"POST",path:n,queryParameters:{},headers:{},data:t||{}},r)},runTaskV1({taskID:e,runTaskPayload:t},r){if(!e)throw Error("Parameter `taskID` is required when calling `runTaskV1`.");let n="/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return s.request({method:"POST",path:n,queryParameters:{},headers:{},data:t||{}},r)},searchAuthentications(e,t){if(!e)throw Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");return s.request({method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e},t)},searchDestinations(e,t){if(!e)throw Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");return s.request({method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e},t)},searchSources(e,t){if(!e)throw Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");return s.request({method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e},t)},searchTasks(e,t){if(!e)throw Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");return s.request({method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e},t)},searchTasksV1(e,t){if(!e)throw Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");if(!e.taskIDs)throw Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");return s.request({method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e},t)},searchTransformations(e,t){if(!e)throw Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");if(!e.transformationIDs)throw Error("Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.");return s.request({method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e},t)},triggerDockerSourceDiscover({sourceID:e},t){if(!e)throw Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");let r="/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e));return t={timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},s.request({method:"POST",path:r,queryParameters:{},headers:{}},t)},tryTransformation(e,t){if(!e)throw Error("Parameter `transformationTry` is required when calling `tryTransformation`.");if(!e.sampleRecord)throw Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");return s.request({method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e},t)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:t},r){if(!e)throw Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");if(!t)throw Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");if(!t.sampleRecord)throw Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.");let n="/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"POST",path:n,queryParameters:{},headers:{},data:t},r)},updateAuthentication({authenticationID:e,authenticationUpdate:t},r){if(!e)throw Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!t)throw Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");let n="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return s.request({method:"PATCH",path:n,queryParameters:{},headers:{},data:t},r)},updateDestination({destinationID:e,destinationUpdate:t},r){if(!e)throw Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!t)throw Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");let n="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return s.request({method:"PATCH",path:n,queryParameters:{},headers:{},data:t},r)},updateSource({sourceID:e,sourceUpdate:t},r){if(!e)throw Error("Parameter `sourceID` is required when calling `updateSource`.");if(!t)throw Error("Parameter `sourceUpdate` is required when calling `updateSource`.");let n="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return s.request({method:"PATCH",path:n,queryParameters:{},headers:{},data:t},r)},updateTask({taskID:e,taskUpdate:t},r){if(!e)throw Error("Parameter `taskID` is required when calling `updateTask`.");
1if(!t)throw Error("Parameter `taskUpdate` is required when calling `updateTask`.");let n="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PATCH",path:n,queryParameters:{},headers:{},data:t},r)},updateTaskV1({taskID:e,taskUpdate:t},r){if(!e)throw Error("Parameter `taskID` is required when calling `updateTaskV1`.");if(!t)throw Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");let n="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return s.request({method:"PATCH",path:n,queryParameters:{},headers:{},data:t},r)},updateTransformation({transformationID:e,transformationCreate:t},r){if(!e)throw Error("Parameter `transformationID` is required when calling `updateTransformation`.");if(!t)throw Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");if(!t.name)throw Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");let n="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return s.request({method:"PUT",path:n,queryParameters:{},headers:{},data:t},r)},validateSource:(e,t)=>(t={timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},s.request({method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}},t)),validateSourceBeforeUpdate({sourceID:e,sourceUpdate:t},r){if(!e)throw Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!t)throw Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");let n="/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e));return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},s.request({method:"POST",path:n,queryParameters:{},headers:{},data:t},r)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:25e3,read:25e3,write:25e3},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${J}-${e}`}),g()]}),...n})}var en="1.42.0";function ei(e,t,r){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...i}){let a=y(e,t,r),o=I({hosts:[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}],...i,algoliaAgent:b({algoliaAgents:n,client:"Monitoring",version:en}),baseHeaders:{"content-type":"text/plain",...a.headers(),...i.baseHeaders},baseQueryParameters:{...a.queryParameters(),...i.baseQueryParameters}});return{transporter:o,appId:e,apiKey:t,clearCache:()=>Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(()=>void 0),get _ua(){return o.algoliaAgent.value},addAlgoliaAgent(e,t){o.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?o.baseQueryParameters["x-algolia-api-key"]=e:o.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return o.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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 o.request({method:"POST",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return o.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},getClusterIncidents({clusters:e},t){if(!e)throw Error("Parameter `clusters` is required when calling `getClusterIncidents`.");let r="/1/incidents/{clusters}
1".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getClusterStatus({clusters:e},t){if(!e)throw Error("Parameter `clusters` is required when calling `getClusterStatus`.");let r="/1/status/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getIncidents:e=>o.request({method:"GET",path:"/1/incidents",queryParameters:{},headers:{}},e),getIndexingTime({clusters:e},t){if(!e)throw Error("Parameter `clusters` is required when calling `getIndexingTime`.");let r="/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getLatency({clusters:e},t){if(!e)throw Error("Parameter `clusters` is required when calling `getLatency`.");let r="/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getMetrics({metric:e,period:t},r){if(!e)throw Error("Parameter `metric` is required when calling `getMetrics`.");if(!t)throw Error("Parameter `period` is required when calling `getMetrics`.");let n="/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(e)).replace("{period}",encodeURIComponent(t));return o.request({method:"GET",path:n,queryParameters:{},headers:{}},r)},getReachability({clusters:e},t){if(!e)throw Error("Parameter `clusters` is required when calling `getReachability`.");let r="/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(e));return o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getServers:e=>o.request({method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}},e),getStatus:e=>o.request({method:"GET",path:"/1/status",queryParameters:{},headers:{}},e)}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${en}-${e}`}),g()]}),...r})}var ea="5.42.0";function eo(e,t,r){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...i}){let a=y(e,t,r),o=I({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(x([{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"}])),...i,algoliaAgent:b({algoliaAgents:n,client:"Recommend",version:ea}),baseHeaders:{"content-type":"text/plain",...a.headers(),...i.baseHeaders},baseQueryParameters:{...a.queryParameters(),...i.baseQueryParameters}});return{transporter:o,appId:e,apiKey:t,clearCache:()=>Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(()=>void 0),get _ua(){return o.algoliaAgent.value},addAlgoliaAgent(e,t){o.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?o.baseQueryParameters["x-algolia-api-key"]=e:o.baseHeaders["x-algolia-api-key"]=e},batchRecommendRules({indexName:e,model:t,recommendRule:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `batchRecommendRules`.");if(!t)throw Error("Parameter `model` is required when calling `batchRecommendRules`.");let i="/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:r||{}},n)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let n="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:n,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let n="/{path}".replace("{path}",e);return o.request({method:"GET",path:n,queryParameters:t||{},headers:{}},r)},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 o.request({method:"POST",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let i="/{path}".replace("{path}",e);return o.request({method:"PUT",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},deleteRecommendRule({indexName:e,model:t,objectID:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `deleteRecommendRule`.");if(!t)throw Error("Parameter `model` is required when calling `deleteRecommendRule`.");if(!r)throw Error("Parameter `objectID` is required when calling `deleteRecommendRule`.");let i="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(r));return o.request({method:"DELETE",path:i,queryParameters:{},headers:{}},n)},getRecommendRule({indexName:e,model:t,objectID:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `getRecommendRule`.");if(!t)throw Error("Parameter `model` is required when calling `getRecommendRule`.");if(!r)throw Error("Parameter `objectID` is required when calling `getRecommendRule`.");let i="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(r));return o.request({method:"GET",path:i,queryParameters:{},headers:{}},n)},getRecommendStatus({indexName:e,model:t,taskID:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `getRecommendStatus`.");if(!t)throw Error("Parameter `model` is required when calling `getRecommendStatus`.");if(!r)throw Error("Parameter `taskID` is required when calling `getRecommendStatus`.");let i="/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{taskID}",encodeURIComponent(r));return o.request({method:"GET",path:i,queryParameters:{},headers:{}},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 o.request(r,t)},searchRecommendRules({indexName:e,model:t,searchRecommendRulesParams:r},n){if(!e)throw Error("Parameter `indexName` is required when calling `searchRecommendRules`.");if(!t)throw Error("Parameter `model` is required when calling `searchRecommendRules`.");let i="/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0},n)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:w(),requester:h(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:g(),requestsCache:g({serializable:!1}),hostsCache:m({caches:[p({key:`${ea}-${e}`}),g()]}),...r})}var es=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,ec=Object.getOwnPropertyNames,el=Object.prototype.hasOwnProperty,ed=(e,t)=>{for(var r in t)es(e,r,{get:t[r],enumerable:!0})},ef=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of ec(t))el.call(e,i)||i===r||es(e,i,{get:()=>t[i],enumerable:!(n=eu(t,i))||n.enumerable});return e},eh=(e,t,r)=>(ef(e,t,"default"),r&&ef(r,t,"default")),ep={};ed(ep,{algoliasearch:()=>eg,apiClientVersion:()=>V});var em={};function eg(e,t,r){let n;if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let i=X(e,t,r);if(r?.transformation){if(!r.transformation.region)throw Error("`region` must be provided when leveraging the transformation pipeline");n=er(e,t,r.transformation.region,r)}return{...i,async saveObjectsWithTransformation({indexName:e,objects:t,waitForTasks:i},a){if(!n)throw Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!r?.transformation?.region)throw Error("`region` must be provided when leveraging the transformation pipeline");return n.chunkedPush({indexName:e,objects:t,action:"addObject",waitForTasks:i},a)},async partialUpdateObjectsWithTransformation({indexName:e,objects:t,createIfNotExists:i,waitForTasks:a},o){if(!n)throw Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!r?.transformation?.region)throw Error("`region` must be provided when leveraging the transformation pipeline");return n.chunkedPush({indexName:e,objects:t,action:i?"partialUpdateObject":"partialUpdateObjectNoCreate",waitForTasks:a},o)}
1,async replaceAllObjectsWithTransformation({indexName:e,objects:t,batchSize:i,scopes:a},o){if(!n)throw Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!r?.transformation?.region)throw Error("`region` must be provided when leveraging the transformation pipeline");let s=Math.floor(1e6*Math.random())+1e5,u=`${e}_tmp_${s}`;void 0===a&&(a=["settings","rules","synonyms"]);try{let r=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:u,scope:a}},o),s=await n.chunkedPush({indexName:u,objects:t,waitForTasks:!0,batchSize:i,referenceIndexName:e},o);await this.waitForTask({indexName:u,taskID:r.taskID}),r=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:u,scope:a}},o),await this.waitForTask({indexName:u,taskID:r.taskID});let c=await this.operationIndex({indexName:u,operationIndexParams:{operation:"move",destination:e}},o);return await this.waitForTask({indexName:u,taskID:c.taskID}),{copyOperationResponse:r,watchResponses:s,moveOperationResponse:c}}catch(e){throw await this.deleteIndex({indexName:u}),e}},get _ua(){return i.transporter.algoliaAgent.value},initAbtesting:r=>k(r.appId||e,r.apiKey||t,r.region,r.options),initAbtestingV3:r=>q(r.appId||e,r.apiKey||t,r.region,r.options),initAnalytics:r=>U(r.appId||e,r.apiKey||t,r.region,r.options),initIngestion:r=>er(r.appId||e,r.apiKey||t,r.region,r.options),initInsights:r=>W(r.appId||e,r.apiKey||t,r.region,r.options),initMonitoring:(r={})=>ei(r.appId||e,r.apiKey||t,r.options),initPersonalization:r=>Q(r.appId||e,r.apiKey||t,r.region,r.options),initQuerySuggestions:r=>K(r.appId||e,r.apiKey||t,r.region,r.options),initRecommend:(r={})=>eo(r.appId||e,r.apiKey||t,r.options)}}ed(em,{apiClientVersion:()=>V}),eh(em,n),eh(em,i),eh(em,a),eh(em,o),eh(em,s),eh(em,u),eh(em,c),eh(em,l),eh(em,d),eh(em,f),eh(ep,em)},3733:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(59866).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},4197:()=>{},4681:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return u},getLocationOrigin:function(){return o},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return c},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return l},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>i.test(e);function o(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=o();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function l(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n)throw Object.defineProperty(Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
1class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},4863:(e,t,r)=>{"use strict";r.d(t,{G:()=>u});var n=r(93794),i=r(52039),a=r(54913),o=["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"],s=r(58076),u=function(e){var t=e.createElement,r=e.Fragment,s=function(e){var r=e.classNames,n=e.children,i=e.highlightedTagName,a=e.isHighlighted,o=e.nonHighlightedTagName;return t(a?i:o,{className:a?r.highlighted:r.nonHighlighted},n)};return function(e){var u=e.parts,c=e.highlightedTagName,l=void 0===c?"mark":c,d=e.nonHighlightedTagName,f=void 0===d?"span":d,h=e.separator,p=void 0===h?", ":h,m=e.className,g=e.classNames,y=void 0===g?{}:g,v=(0,i.A)(e,o);return t("span",(0,n.A)({},v,{className:(0,a.cx)(y.root,m)}),u.map(function(e,n){var i=n===u.length-1;return t(r,{key:n},e.map(function(e,r){return t(s,{key:r,classNames:y,highlightedTagName:l,nonHighlightedTagName:f,isHighlighted:e.isHighlighted},e.value)}),!i&&t("span",{className:y.separator},p))}))}}({createElement:s.createElement,Fragment:s.Fragment})},5525:(e,t,r)=>{"use strict";r.d(t,{W:()=>v});var n=r(64265),i=r(63425),a=r(36499);function o(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 s(e){var t,r=e.start,n=void 0===r?0:r,i=e.end,a=e.step,s=void 0===a?1:a,u=0===s?1:s;return((function(e){if(Array.isArray(e))return o(e)})(t=Array(Math.round((i-n)/u)))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,void 0);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,t){return n+t*u})}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:String(t)}var d=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");c(this,"currentPage",void 0),c(this,"total",void 0),c(this,"padding",void 0),this.currentPage=e.currentPage,this.total=e.total,this.padding=e.padding}return 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 s({end:e});var i=this.calculatePaddingLeft(t,r,e,n),a=n-i;return s({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}}],function(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,l(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?h(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var m=(0,n.V)({name:"pagination",connector:!0});let g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.l;return(0,a.t)(e,m()),function(r){var n=r||{},i=n.totalPages,a=n.padding,o=new d({currentPage:0,total:0,padding:void 0===a?3:a}),s={};return{$$type:"ais.pagination",init:function(t){var r=t.instantSearchInstance;e(p(p({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(p(p({},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?p(p({},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,u=e.state,c=e.createURL;s.refine||(s.refine=function(e){a.setPage(e),a.search()}),s.createURL||(s.createURL=function(e){return c(function(t){return p(p({},t),{},{page:e+1})})});var l=u.page||0,d=(t=(n||{nbPages:0}).nbPages,void 0!==i?Math.min(i,t):t);return o.currentPage=l,o.total=d,{createURL:s.createURL,refine:s.refine,canRefine:d>1,currentRefinement:l,nbHits:(null==n?void 0:n.nbHits)||0,nbPages:d,pages:n?o.pages():[],isFirstPage:o.isFirstPage(),isLastPage:o.isLastPage(),widgetParams:r}},getRenderState:function(e,t){return p(p({},e),{},{pagination:this.getWidgetRenderState(t)})}}}};var y=r(39855);function v(e,t){return(0,y.Z)(g,e,t)}},5532:(e,t,r)=>{"use strict";var n=r(41422),i=r(9413),a=r(19058),o=r(34498),s=r(72502),u=r(12418),c=r(76056),l=r(72918),d=a.escapeFacetValue,f=a.unescapeFacetValue,h=r(29698);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 u=this;Object.keys(a).forEach(function(e){u[e]=a[e]});var l=i(r,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){u[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 d=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,o(l,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(n){var i=n.attributes.indexOf(t),c=s(e.hierarchicalFacets,function(e){return e.name===n.name});u.hierarchicalFacets[c][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,d,f=-1!==e.disjunctiveFacets.indexOf(t),h=-1!==e.facets.indexOf(t);f&&(d=y[t],u.disjunctiveFacets[d]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(u.disjunctiveFacets[d],a.facets_stats,t)),h&&(d=g[t],u.facets[d]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(u.facets[d],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),d.forEach(function(r){var n=t[v],o=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(o).forEach(function(t){var r,d=o[t];if(l){r=s(e.hierarchicalFacets,function(e){return e.name===l.name});var h=s(u.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===h)return;u.hierarchicalFacets[r][h].data=u.persistHierarchicalRootCount?c(u.hierarchicalFacets[r][h].data,d):i(d,u.hierarchicalFacets[r][h].data)}else{r=y[t];var p=a.facets&&a.facets[t]||{};u.disjunctiveFacets[r]={name:t,data:c(p,d),exhaustive:n.exhaustiveFacetsCount},m(u.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!u.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(f(n))>-1&&(u.disjunctiveFacets[r].data[n]=0)})}}),v++}
1),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),o=e.getHierarchicalRefinement(r);0===o.length||o[0].split(a).length<2||t.slice(v).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var c=r[t],l=s(e.hierarchicalFacets,function(e){return e.name===n.name}),d=s(u.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==d){var f={};if(o.length>0&&!u.persistHierarchicalRootCount){var h=o[0].split(a)[0];f[h]=u.hierarchicalFacets[l][d].data[h]}u.hierarchicalFacets[l][d].data=i(f,c,u.hierarchicalFacets[l][d].data)}}),v++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];u.facets[n]={name:t,data:b[t],exhaustive:a.exhaustiveFacetsCount},r.forEach(function(e){u.facets[n]=u.facets[n]||{name:t},u.facets[n].data=u.facets[n].data||{},u.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(h(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function y(e,t){var r=o(e,function(e){return e.name===t});return r&&r.stats}function v(e,t,r,n,i){var a=o(i,function(e){return e.name===r}),s=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:s,exhaustive:a&&a.exhaustive||!1}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return o(this.facets,t)||o(this.disjunctiveFacets,t)||o(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=o(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=d(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=o(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=d(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var a=o(e.hierarchicalFacets,r);if(!a)return a;var s=e._state.getHierarchicalFacetByName(t),u=e._state._getHierarchicalFacetSeparator(s),c=f(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(s.rootPath)&&(c=c.replace(s.rootPath+u,""));var l=c.split(u);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)}),s=this;return r=Array.isArray(n)?[e]:s._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 o=r.data.map(function(r){return e(t,r,n,a+1)});return i({data:t(o,n[a])},r)}(function(e,t){if(a.facetOrdering){var r,n,i,o,c,d,f,h=s.renderingContent&&s.renderingContent.facetOrdering&&s.renderingContent.facetOrdering.values&&s.renderingContent.facetOrdering.values[t];if(h)return i=[],o=[],c=h.hide||[],d=(h.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=c.indexOf(t)>-1;r||void 0===d[t]?r||o.push(e):i[d[t]]=e}),i=i.filter(function(e){return e}),"hidden"===(f=h.sortRemainingBy)?i:(n="alpha"===f?[["path","name"],["asc","asc"]]:[["count"],["desc"]],i.concat(l(o,n[0],n[1])))}if(Array.isArray(a.sortBy)){var p=u(a.sortBy,g.DEFAULT_SORT);return l(e,p[0],p[1])}if("function"==typeof a.sortBy)return r=a.sortBy,e.sort(r);throw Error("options.sortBy is optional but if defined it must be either an array of string (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].forEac
1h(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,s,u,c,l,d,f,h,p,m,g;r.push((a=e,s=n,u=i,c=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(s),d=a._getHierarchicalFacetSeparator(l),f=u.split(d),h=o(c,function(e){return e.name===s}),m=(p=f.reduce(function(e,t){var r=e&&o(e.data,function(e){return e.name===t});return void 0!==r?r:e},h))&&p.count||0,g=p&&p.exhaustive||!1,{type:"hierarchical",attributeName:s,name:p&&p.path||"",count:m,exhaustive:g}))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},e.exports=g},6631:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(58076),i=r(38706),a=r(40567);function o(){var e=(0,n.useContext)(i.m);return(0,a.V)(null!==e,"The <Index> component must be used within <InstantSearch>."),e}},6822:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(58076),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},7236:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(58076);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},7700:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},8608:(e,t,r)=>{"use strict";r.d(t,{V:()=>h});var n=r(64265),i=r(63425),a=r(36499);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=(0,n.V)({name:"search-box",connector:!0}),l=function(e,t){return t(e)};let d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.l;return(0,a.t)(e,c()),function(r){var n,i,a=(r||{}).queryHook,o=void 0===a?l:a;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e(u(u({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(u(u({},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 u(u({},e),{},{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,a=e.instantSearchInstance,s=e.state;return n||(n=function(e){o(e,function(e){return t.setQuery(e).search()})},i=function(){t.setQuery("").search()}),{query:s.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:u(u({},e),{},{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}};var f=r(39855);function h(e,t){return(0,f.Z)(d,e,t)}},9148:(e,t,r)=>{"use strict";r.d(t,{ZU:()=>P,S6:()=>K,YO:()=>er,zM:()=>G,wk:()=>ee,V2:()=>b,D_:()=>S,E$:()=>ef,ZE:()=>Y,eu:()=>X,ch:()=>H,ai:()=>Q,Ik:()=>eb,OH:()=>eo,g1:()=>eu,Yd:()=>ey,Yj:()=>$,kX:()=>w,PV:()=>ep,NW:()=>ei,Vx:()=>W,KC:()=>el,L5:()=>B});var n,i=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};function a(e,t,r,n,i,a,o,s,u){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return r(t(e));case 4:return n(r(t(e)));case 5:return i(n(r(t(e))));case 6:return a(i(n(r(t(e)))));case 7:return o(a(i(n(r(t(e))))));case 8:return s(o(a(i(n(r(t(e)))))));case 9:return u(s(o(a(i(n(r(t(e))))))));default:for(var c=arguments[0],l=1;l<arguments.length;l++)c=arguments[l](c);return c}}var o=function(e,t){var r="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?t.apply(this,e):function(r){return t.apply(void 0,i([r],e,!1))}}};function s(e){return function(t,r){return e.map(t,function(){return r})}}Object.prototype.hasOwnProperty;var u=function(e){return{_tag:"Right",right:e}},c=o(2,function(e,t){return p(e)?e:t(e.right)}),l=function(e,t){return a(e,f(t))},d="Either",f=function(e){return function(t){return p(t)?t:u(e(t.right))}},h={URI:d,map:l};o(2,s(h)),s(h);var p=function(e){return"Left"===e._tag};n=0;var m=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},y=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},v=function(e){return{_tag:"Left",left:e}},b=function(e,t,r){return v([{value:e,context:t,message:r}])},w=u,P=function(){function e(e,t,r,n){this.name=e,this.is=t,this.validate=r,this.encode=n,this.decode=this.decode.bind(this)}return e.prototype.pipe=function(t,r){var n=this;return void 0===r&&(r="pipe(".concat(this.name,", ").concat(t.name,")")),new e(r,t.is,function(e,r){var i=n.validate(e,r);return p(i)?i:t.validate(i.right,r)},this.encode===S&&t.encode===S?S:function(e){return n.encode(t.encode(e))})},e.prototype.asDecoder=function(){return this},e.prototype.asEncoder=function(){return this},e.prototype.decode=function(e){return this.validate(e,[{key:"",type:this,actual:e}])},e}(),S=function(e){return e};function E(e,t,r,n){for(var i=e.length,a=Array(i+1),o=0;o<i;o++)a[o]=e[o];return a[i]={key:t,type:r,actual:n},a}function R(e,t){for(var r=t.length,n=0;n<r;n++)e.push(t[n])}var _=Object.prototype.hasOwnProperty;function O(e){return Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t].name)}).join(", ")}function j(e){for(var t=0;t<e.length;t++)if(e[t].encode!==S)return!1;return!0}function x(e){return"{ ".concat(O(e)," }")}function T(e){return"Partial<".concat(e,">")}function I(e,t){for(var r=Object.keys(e),n=r.length,i=!1,a={},o=0;o<n;o++){var s=r[o];t.is(s)?a[s]=e[s]:i=!0}return i?a:e}function C(e,t){for(var r=!0,n=!0,i=!K.is(e),a=0;a<t.length;a++){var o=t[a];o!==e&&(r=!1),K.is(o)&&(n=!1)}if(r)return e;if(n)return t[t.length-1];for(var s={},u=0;u<t.length;u++){var o=t[u];for(var c in o)(!_.call(s,c)||i||o[c]!==e[c])&&(s[c]=o[c])}return s}function A(e,t){for(var r=Object.getOwnPropertyNames(e),n=!1,i={},a=0;a<r.length;a++){var o=r[a];_.call(t,o)?i[o]=e[o]:n=!0}return n?i:e}var q={};function D(e,t){for(var r=[],n=0;n<e.length;n++){var i=e[n];-1!==t.indexOf(i)&&r.push(i)}return r}function N(e){return"AnyType"===e._tag}function k(e){return"LiteralType"===e._tag}function F(e){return"InterfaceType"===e._tag}function L(e){return"UnionType"===e._tag}var U=[];function M(e){if(-1!==U.indexOf(e))return q;if(F(e)||"StrictType"===e._tag){var t=q;for(var r in e.props){var n=e.props[r];k(n)&&(t===q&&(t={}),t[r]=[n.value])}return t}if("ExactType"===e._tag||"RefinementType"===e._tag||"ReadonlyType"===e._tag)return M(e.type);if("IntersectionType"===e._tag)return e.types.reduce(function(e,t){var r=M(t);if(e===q)return r;if(r===q)return e;var n=Object.assign({},e);for(var i in r)if(_.call(e,i)){var a=D(e[i],r[i]);if(a.length>0)n[i]=a;else{n=q;break}}else n[i]=r[i];return n},q);if(L(e))return e.types.slice(1).reduce(function(e,t){var r=M(t);if(e===q||r===q)return q;var n=q;for(var i in e)_.call(r,i)&&0===D(e[i],r[i]).length&&(n===q&&(n={}),n[i]=e[i].concat(r[i]));return n},M(e.types[0]));else if("RecursiveType"===e._tag){U.push(e);var i=M(e.type);return U.pop(),i}return q}var H=new(function(e){function t(){var t=e.call(this,"null",function(e){return null===e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="NullType",t}return m(t,e),t}(P)),W=new(function(e){function t(){var t=e.call(this,"undefined",function(e){return void 0===e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="UndefinedType",t}return m(t,e),t}(P));new(function(e){function t(){var t=e.call(this,"void",W.is,W.validate,S)||this;return t._tag="VoidType",t}return m(t,e),t}(P));var B=new(function(e){function t(){var t=e.call(this,"unknown",function(e){return!0},w,S)||this;return t._tag="UnknownType",t}return m(t,e),t}(P)),$=new(function(e){function t(){var t=e.call(this,"string",function(e){return"string"==typeof e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;
1return t._tag="StringType",t}return m(t,e),t}(P)),Q=new(function(e){function t(){var t=e.call(this,"number",function(e){return"number"==typeof e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="NumberType",t}return m(t,e),t}(P));new(function(e){function t(){var t=e.call(this,"bigint",function(e){return"bigint"==typeof e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="BigIntType",t}return m(t,e),t}(P));var G=new(function(e){function t(){var t=e.call(this,"boolean",function(e){return"boolean"==typeof e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="BooleanType",t}return m(t,e),t}(P)),z=new(function(e){function t(){var t=e.call(this,"UnknownArray",Array.isArray,function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="AnyArrayType",t}return m(t,e),t}(P)),K=new(function(e){function t(){var t=e.call(this,"UnknownRecord",function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="AnyDictionaryType",t}return m(t,e),t}(P)),V=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.value=a,o._tag="LiteralType",o}return m(t,e),t}(P);function X(e,t){void 0===t&&(t=JSON.stringify(e));var r=function(t){return t===e};return new V(t,r,function(t,n){return r(t)?w(e):b(t,n)},S,e)}var J=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.keys=a,o._tag="KeyofType",o}return m(t,e),t}(P);function Y(e,t){void 0===t&&(t=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(" | "));var r=function(t){return $.is(t)&&_.call(e,t)};return new J(t,r,function(e,t){return r(e)?w(e):b(e,t)},S,e)}var Z=function(e){function t(t,r,n,i,a,o){var s=e.call(this,t,r,n,i)||this;return s.type=a,s.predicate=o,s._tag="RefinementType",s}return m(t,e),t}(P);function ee(e,t,r){return ey(e,t,r)}ey(Q,function(e){return Number.isInteger(e)},"Int"),Object.defineProperty(function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.runDefinition=a,o._tag="RecursiveType",o}return m(t,e),t}(P).prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var et=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.type=a,o._tag="ArrayType",o}return m(t,e),t}(P);function er(e,t){return void 0===t&&(t="Array<".concat(e.name,">")),new et(t,function(t){return z.is(t)&&t.every(e.is)},function(t,r){var n=z.validate(t,r);if(p(n))return n;for(var i=n.right,a=i.length,o=i,s=[],u=0;u<a;u++){var c=i[u],l=e.validate(c,E(r,String(u),e,c));if(p(l))R(s,l.left);else{var d=l.right;d!==c&&(o===i&&(o=i.slice()),o[u]=d)}}return s.length>0?v(s):w(o)},e.encode===S?S:function(t){return t.map(e.encode)},e)}var en=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.props=a,o._tag="InterfaceType",o}return m(t,e),t}(P);function ei(e,t){void 0===t&&(t=x(e));var r=Object.keys(e),n=r.map(function(t){return e[t]}),i=r.length;return new en(t,function(e){if(K.is(e)){for(var t=0;t<i;t++){var a=r[t],o=e[a];if(void 0===o&&!_.call(e,a)||!n[t].is(o))return!1}return!0}return!1},function(e,t){var a=K.validate(e,t);if(p(a))return a;for(var o=a.right,s=o,u=[],c=0;c<i;c++){var l=r[c],d=s[l],f=n[c],h=f.validate(d,E(t,l,f,d));if(p(h))R(u,h.left);else{var m=h.right;m===d&&(void 0!==m||_.call(s,l))||(s===o&&(s=g({},o)),s[l]=m)}}return u.length>0?v(u):w(s)},j(n)?S:function(e){for(var t=g({},e),a=0;a<i;a++){var o=r[a],s=n[a].encode;s!==S&&(t[o]=s(e[o]))}return t},e)}var ea=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.props=a,o._tag="PartialType",o}return m(t,e),t}(P);function eo(e,t){void 0===t&&(t=T(x(e)));var r=Object.keys(e),n=r.map(function(t){return e[t]}),i=r.length;return new ea(t,function(t){if(K.is(t)){for(var n=0;n<i;n++){var a=r[n],o=t[a];if(void 0!==o&&!e[a].is(o))return!1}return!0}return!1},function(t,n){var a=K.validate(t,n);if(p(a))return a;for(var o=a.right,s=o,u=[],c=0;c<i;c++){var l=r[c],d=s[l],f=e[l],h=f.validate(d,E(n,l,f,d));if(p(h))void 0!==d&&R(u,h.left);else{var m=h.right;m!==d&&(s===o&&(s=g({},o)),s[l]=m)}}return u.length>0?v(u):w(s)},j(n)?S:function(e){for(var t=g({},e),a=0;a<i;a++){var o=r[a],s=e[o];void 0!==s&&(t[o]=n[a].encode(s))}return t},e)}var es=function(e){function t(t,r,n,i,a,o){var s=e.call(this,t,r,n,i)||this;return s.domain=a,s.codomain=o,s._tag="DictionaryType",s}return m(t,e),t}(P);function eu(e,t,r){var n,i=function e(t){var r;if(k(t)){var n=t.value;if($.is(n))return(r={})[n]=null,r}else if("KeyofType"===t._tag)return t.keys;else if(L(t)){var i=t.types.map(function(t){return e(t)});return i.some(W.is)?void 0:Object.assign.apply(Object,y([{}],i,!1))}}(e);return i?function(e,t,r,n){void 0===n&&(n="{ [K in ".concat(t.name,"]: ").concat(r.name," }"));for(var i=e.length,a={},o=0;o<i;o++)a[e[o]]=r;var s=em(a,n);return new es(n,function(e){return s.is(e)}
1,s.validate,s.encode,t,r)}(Object.keys(i),e,t,r):(void 0===(n=r)&&(n="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),new es(n,function(r){return K.is(r)?Object.keys(r).every(function(n){return!e.is(n)||t.is(r[n])}):N(t)&&Array.isArray(r)},function(r,n){if(K.is(r)){for(var i={},a=[],o=Object.keys(r),s=o.length,u=!1,c=0;c<s;c++){var l=o[c],d=r[l],f=e.validate(l,E(n,l,e,l));if(p(f))u=!0;else{var h=f.right;u=u||h!==l,l=h;var m=t.validate(d,E(n,l,t,d));if(p(m))R(a,m.left);else{var g=m.right;u=u||g!==d,i[l]=g}}}return a.length>0?v(a):w(u?i:r)}return N(t)&&Array.isArray(r)?w(r):b(r,n)},e.encode===S&&t.encode===S?function(t){return I(t,e)}:function(r){for(var n={},i=Object.keys(I(r,e)),a=i.length,o=0;o<a;o++){var s=i[o];n[String(e.encode(s))]=t.encode(r[s])}return n},e,t))}var ec=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.types=a,o._tag="UnionType",o}return m(t,e),t}(P);function el(e,t){void 0===t&&(t="("+e.map(function(e){return e.name}).join(" | ")+")");var r=function(e){for(var t=M(e[0]),r=Object.keys(t),n=e.length,i=0;i<r.length;i++){var a=function(r){for(var i=t[r].slice(),a=[t[r]],o=1;o<n;o++){var s=M(e[o])[r];if(void 0===s||s.some(function(e){return -1!==i.indexOf(e)}))return"continue-keys";i.push.apply(i,s),a.push(s)}return{value:[r,a]}}(r[i]);if("object"==typeof a)return a.value;if("continue-keys"===a)continue}}(e);if(void 0===r||!(e.length>0))return new ec(t,function(t){return e.some(function(e){return e.is(t)})},function(t,r){for(var n=[],i=0;i<e.length;i++){var a=e[i],o=a.validate(t,E(r,String(i),a,t));if(!p(o))return w(o.right);R(n,o.left)}return v(n)},j(e)?S:function(r){for(var n=0;n<e.length;n++){var i=e[n];if(i.is(r))return i.encode(r)}throw Error("no codec found to encode value in union type ".concat(t))},e);var n=r[0],i=r[1],a=i.length,o=function(e){for(var t=0;t<a;t++)if(-1!==i[t].indexOf(e))return t};return new ev(t,function(t){if(K.is(t)){var r=o(t[n]);return void 0!==r&&e[r].is(t)}return!1},function(t,r){var i=K.validate(t,r);if(p(i))return i;var a=i.right,s=o(a[n]);if(void 0===s)return b(t,r);var u=e[s];return u.validate(a,E(r,String(s),u,a))},j(e)?S:function(r){var i=o(r[n]);if(void 0!==i)return e[i].encode(r);throw Error("no codec found to encode value in union codec ".concat(t))},e,n)}var ed=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.types=a,o._tag="IntersectionType",o}return m(t,e),t}(P);function ef(e,t){void 0===t&&(t="(".concat(e.map(function(e){return e.name}).join(" & "),")"));var r=e.length;return new ed(t,function(t){return e.every(function(e){return e.is(t)})},0===e.length?w:function(t,n){for(var i=[],a=[],o=0;o<r;o++){var s=e[o],u=s.validate(t,E(n,String(o),s,t));p(u)?R(a,u.left):i.push(u.right)}return a.length>0?v(a):w(C(t,i))},0===e.length?S:function(t){return C(t,e.map(function(e){return e.encode(t)}))},e)}var eh=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.types=a,o._tag="TupleType",o}return m(t,e),t}(P);function ep(e,t){void 0===t&&(t="[".concat(e.map(function(e){return e.name}).join(", "),"]"));var r=e.length;return new eh(t,function(t){return z.is(t)&&t.length===r&&e.every(function(e,r){return e.is(t[r])})},function(t,n){var i=z.validate(t,n);if(p(i))return i;for(var a=i.right,o=a.length>r?a.slice(0,r):a,s=[],u=0;u<r;u++){var c=a[u],l=e[u],d=l.validate(c,E(n,String(u),l,c));if(p(d))R(s,d.left);else{var f=d.right;f!==c&&(o===a&&(o=a.slice()),o[u]=f)}}return s.length>0?v(s):w(o)},j(e)?S:function(t){return e.map(function(e,r){return e.encode(t[r])})},e)}!function(e){m(function(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.type=a,o._tag="ReadonlyType",o},e)}(P),function(e){m(function(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.type=a,o._tag="ReadonlyArrayType",o},e)}(P);var em=function(e,t){return function(e,t){void 0===t&&(t=F(e)?"{| ".concat(O(e.props)," |}"):"PartialType"===e._tag?T("{| ".concat(O(e.props)," |}")):"Exact<".concat(e.name,">"));var r=function e(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return e(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,r){return Object.assign(t,e(r))},{})}}(e);return new eg(t,e.is,function(t,n){var i=K.validate(t,n);if(p(i))return i;var a=e.validate(t,n);return p(a)?a:u(A(a.right,r))},function(t){return e.encode(A(t,r))},e)}(ei(e),t)},eg=function(e){function t(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;return o.type=a,o._tag="ExactType",o}return m(t,e),t}(P);function ey(e,t,r){return void 0===r&&(r="(".concat(e.name," | ").concat(t.displayName||t.name||"<function".concat(t.length,">"),")")),new Z(r,function(r){return e.is(r)&&t(r)},function(r,n){var i=e.validate(r,n);if(p(i))return i;var a=i.right;return t(a)?w(a):b(a,n)},e.encode,e,t)}new(function(e){function t(){var t=e.call(this,"Function",function(e){return"function"==typeof e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="FunctionType",t}return m(t,e),t}(P)),new(function(e){function t(){var t=e.call(this,"never",function(e){return!1},function(e,t){return b(e,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return m(t,e),t}(P)),new(function(e){function t(){var t=e.call(this,"any",function(e){return!0},w,S)||this;return t._tag="AnyType",t}return m(t,e),t}(P)),ey(Q,Number.isInteger,"Integer");var ev=function(e){function t(t,r,n,i,a,o){var s=e.call(this,t,r,n,i,a)||this;return s.tag=o,s}return m(t,e),t}(ec),eb=new(function(e){function t(){var t=e.call(this,"object",function(e){return null!==e&&"object"==typeof e},function(e,r){return t.is(e)?w(e):b(e,r)},S)||this;return t._tag="ObjectType",t}return m(t,e),t}(P));!function(e){m(function(t,r,n,i,a){var o=e.call(this,t,r,n,i)||this;
1return o.props=a,o._tag="StrictType",o},e)}(P)},9276:(e,t,r)=>{"use strict";var n=r(20338),i=r(62875),a=r(19058).escapeFacetValue,o=r(96621),s=r(24159),u=r(42334),c=r(7700),l=r(58276),d=r(62864),f=r(73507),h=r(65400),p=r(5532),m=r(1474),g=r(65649);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=h.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}o(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 f._getHitsSearchParams(e)},y.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=f._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new p(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}):this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new p(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},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=s({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(f._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(a);var o=this.client.initIndex(n.index);if("function"!=typeof o.findAnswers)throw Error(a);return o.findAnswers(n.query,e.queryLanguages,i)},y.prototype.searchForFacetValues=function(e,t,r,n){var i,o="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,s="function"==typeof this.client.initIndex;if(!o&&!s&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var u=this.state.setQueryParameters(n||{}),c=u.isDisjunctiveFacet(e),l=f.getSearchForFacetQuery(e,t,r,u);this._currentNbQueries++;var d=this;o?i=this.client.searchForFacetValues([{indexName:u.index,params:l}]):s?i=this.client.initIndex(u.index).searchForFacetValues(l):(delete l.facetName,i=this.client.search([{type:"facet",facet:e,indexName:u.index,params:l}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:u,facet:e,query:t});var h=this.lastResults&&this.lastResults.index===u.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 d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEac
1h(function(r,n){if(h.indexOf(r.value)>-1)return void t.facetHits.splice(n,1);r.escapedValue=a(r.value),r.isRefined=c?u.isDisjunctiveFacetRefined(e,r.escapedValue):u.isFacetRefined(e,r.escapedValue)}),t},function(e){throw d._currentNbQueries--,0===d._currentNbQueries&&d.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,o=this.state.setQueryParameters(n||{}),s=o.isDisjunctiveFacet(e);this._currentNbQueries++;var u=this;return i=this.client.searchForFacetValues({compositionID:o.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:f._getCompositionHitsSearchParams(o)}}}),this.emit("searchForFacetValues",{state:o,facet:e,query:t}),i.then(function(t){return u._currentNbQueries--,0===u._currentNbQueries&&u.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=a(t.value),t.isRefined=s?o.isDisjunctiveFacetRefined(e,t.escapedValue):o.isFacetRefined(e,t.escapedValue)}),t},function(e){throw u._currentNbQueries--,0===u._currentNbQueries&&u.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:h.make(e),isPageReset:!1}),this},y.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new h(e),this},y.prototype.hasRefinements=function(e){return!!u(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=f._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?f._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),a=Array.prototype.concat.apply(n,i),o=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,o));
1try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,o)).catch(this._dispatchAlgoliaError.bind(this,o))}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=f._getCompositionQueries(n);return t.push({state:n,queriesCount:i.length,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,o=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var o=t.getModifiedRecommendState(new l);return n.push({state:o,index:r,helper:t}),i=Array.prototype.concat.apply(i,o.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:o,results:t.lastRecommendResults}}),o._buildQueries(r,a)}),s=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),o);if(0!==s.length){if(s.length>0&&void 0===this.client.getRecommendations)return void console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");var u=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(s).then(this._dispatchRecommendResponse.bind(this,u,n,i)).catch(this._dispatchRecommendError.bind(this,u))}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,o=e.helper,s=i.splice(0,r);if(!t.index)return void o.emit("result",{results:null,state:t});o.lastResults=new p(t,s,n._searchResultsOptions),void 0!==a&&(o.lastResults._rawContent=a),o.emit("result",{results:o.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],o=n.results[t[0]];if(1===t.length){i[e]=o;return}i[e]=Object.assign({},o,{hits:m(r,t.map(function(e){return n.results[e].hits}))})});var o={};r.forEach(function(e){o[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;if(!e.index)return void r.emit("recommend:result",{results:null,state:t});r.lastRecommendResults=new d(t,o),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,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._lastRecommendQueryIdReceived,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;
1t!==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},e.exports=y},9413:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},10074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(84420);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return u}}),r(31540);let n=r(97294),i=r(1554),a=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u(e,t){var r,u;let c,l,d,{src:f,sizes:h,unoptimized:p=!1,priority:m=!1,loading:g,className:y,quality:v,width:b,height:w,fill:P=!1,style:S,overrideSrc:E,onLoad:R,onLoadingComplete:_,placeholder:O="empty",blurDataURL:j,fetchPriority:x,decoding:T="async",layout:I,objectFit:C,objectPosition:A,lazyBoundary:q,lazyRoot:D,...N}=e,{imgConf:k,showAltText:F,blurComplete:L,defaultLoader:U}=t,M=k||i.imageConfigDefault;if("allSizes"in M)c=M;else{let e=[...M.deviceSizes,...M.imageSizes].sort((e,t)=>e-t),t=M.deviceSizes.sort((e,t)=>e-t),n=null==(r=M.qualities)?void 0:r.sort((e,t)=>e-t);c={...M,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let H=N.loader||U;delete N.loader,delete N.srcSet;let W="__next_img_default"in H;if(W){if("custom"===c.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=H;H=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(P=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(S={...S,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!h&&(h=t)}let B="",$=s(b),Q=s(w);if((u=f)&&"object"==typeof u&&(o(u)||void 0!==u.src)){let e=o(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,
1configurable:!0});if(l=e.blurWidth,d=e.blurHeight,j=j||e.blurDataURL,B=e.src,!P)if($||Q){if($&&!Q){let t=$/e.width;Q=Math.round(e.height*t)}else if(!$&&Q){let t=Q/e.height;$=Math.round(e.width*t)}}else $=e.width,Q=e.height}let G=!m&&("lazy"===g||void 0===g);(!(f="string"==typeof f?f:B)||f.startsWith("data:")||f.startsWith("blob:"))&&(p=!0,G=!1),c.unoptimized&&(p=!0),W&&!c.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(p=!0);let z=s(v),K=Object.assign(P?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:A}:{},F?{}:{color:"transparent"},S),V=L||"empty"===O?null:"blur"===O?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:$,heightInt:Q,blurWidth:l,blurHeight:d,blurDataURL:j||"",objectFit:K.objectFit})+'")':'url("'+O+'")',X=a.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,J=V?{backgroundSize:X,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:V}:{},Y=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:a,sizes:o,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),l=u.length-1;return{sizes:o||"w"!==c?o:"100vw",srcSet:u.map((e,n)=>s({config:t,src:r,quality:a,width:e})+" "+("w"===c?e:n+1)+c).join(", "),src:s({config:t,src:r,quality:a,width:u[l]})}}({config:c,src:f,unoptimized:p,width:$,quality:z,sizes:h,loader:H});return{props:{...N,loading:G?"lazy":g,fetchPriority:x,width:$,height:Q,decoding:T,className:y,style:{...K,...J},sizes:Y.sizes,srcSet:Y.srcSet,src:E||Y.src},meta:{unoptimized:p,priority:m,placeholder:O,fill:P}}}},11458:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let n=r(4681),i=r(17921);function a(e){let{re:t,groups:r}=e;return(0,i.safeRouteMatcher)(e=>{let i=t.exec(e);if(!i)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},o={};for(let[e,t]of Object.entries(r)){let r=i[t.pos];void 0!==r&&(t.repeat?o[e]=r.split("/").map(e=>a(e)):o[e]=a(r))}return o})}},12418:(e,t,r)=>{"use strict";var n=r(34498);e.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),a=n(r,function(e){return e[0]===i[0]});return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1])):(e[0].push(a[0]),e[1].push(a[1])),e},[[],[]])}},13755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let i=r.get(t);i||(i=t.map(e=>e.toLowerCase()),r.set(t,i));let a=e.split("/",2);if(!a[1])return{pathname:e};let o=a[1].toLowerCase(),s=i.indexOf(o);return s<0?{pathname:e}:(n=t[s],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},13896:(e,t,r)=>{"use strict";r.d(t,{f:()=>p});var n=r(2708),i=r(27430),a=r(63844),o=r(58076),s=r(54913),u=r(4863),c=["classNames"];function l(){return(l=Object.assign?Object.assign.bind():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)}function d(e){var t=e.classNames,r=void 0===t?{}:t,n=function(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}(e,c);return o.createElement(u.G,l({classNames:{root:(0,s.cx)("ais-Highlight",r.root),highlighted:(0,s.cx)("ais-Highlight-highlighted",r.highlighted),nonHighlighted:(0,s.cx)("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:(0,s.cx)("ais-Highlight-separator",r.separator)}},n))}var f=["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"];
1function h(){return(h=Object.assign?Object.assign.bind():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)}function p(e){var t=e.hit,r=e.attribute,s=e.highlightedTagName,u=e.nonHighlightedTagName,c=e.separator,l=function(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}(e,f),p=(0,n.E)(t._highlightResult,r)||[],m=(Array.isArray(p)?p:[p]).map(function(e){return(0,i.I)((0,a.x)(e.value||""))});return o.createElement(d,h({},l,{parts:m,highlightedTagName:s,nonHighlightedTagName:u,separator:c}))}},14172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(15124),i=r(24465);function a(e,t,r,a){if(!t||t===r)return e;let o=e.toLowerCase();return!a&&((0,i.pathHasPrefix)(o,"/api")||(0,i.pathHasPrefix)(o,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},14368:(e,t,r)=>{"use strict";e.exports=r(34939).style},14860:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(38899),i=r.n(n)},14960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},14984:(e,t,r)=>{"use strict";r.d(t,{bm:()=>e3,UC:()=>e1,VY:()=>e8,hJ:()=>e0,ZL:()=>eZ,bL:()=>eJ,hE:()=>e2,l9:()=>eY});var n,i,a=r(58076),o=r(62881),s=r(80191),u=r(34663),c=r(89180),l=r(78820),d=r(87087),f=r(21952),h=r(7236),p=r(46928),m="focusScope.autoFocusOnMount",g="focusScope.autoFocusOnUnmount",y={bubbles:!1,cancelable:!0},v=a.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...u}=e,[c,l]=a.useState(null),d=(0,h.c)(i),v=(0,h.c)(o),E=a.useRef(null),R=(0,s.s)(t,e=>l(e)),_=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(n){let e=function(e){if(_.paused||!c)return;let t=e.target;c.contains(t)?E.current=t:P(E.current,{select:!0})},t=function(e){if(_.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||P(E.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&P(c)});return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,c,_.paused]),a.useEffect(()=>{if(c){S.add(_);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(m,y);c.addEventListener(m,d),c.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(P(n,{select:t}),document.activeElement!==r)return}(b(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&P(c))}return()=>{c.removeEventListener(m,d),setTimeout(()=>{let t=new CustomEvent(g,y);c.addEventListener(g,v),c.dispatchEvent(t),t.defaultPrevented||P(null!=e?e:document.body,{select:!0}),c.removeEventListener(g,v),S.remove(_)},0)}}},[c,d,v,_]);let O=a.useCallback(e=>{if(!r&&!n||_.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,a]=function(e){let t=b(e);return[w(t,e),w(t.reverse(),e)]}(t);n&&a?e.shiftKey||i!==a?e.shiftKey&&i===n&&(e.preventDefault(),r&&P(a,{select:!0})):(e.preventDefault(),r&&P(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,_.paused]);return(0,p.jsx)(f.sG.div,{tabIndex:-1,...u,ref:R,onKeyDown:O})});function b(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function w(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function P(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}v.displayName="FocusScope";var S=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=E(e,t)).unshift(t)},remove(t){var r;null==(r=(e=E(e,t))[0])||r.resume()}}}();function E(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var R=r(21883),_=r(75145),O=0;function j(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}var x=r(24204),T="right-scroll-bar-position",I="width-before-scroll-bar",C=r(80960),A=(0,r(81051).f)(),q=function(){},D=a.forwardRef(function(e,t){var r=a.useRef(null),n=a.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),i=n[0],o=n[1],s=e.forwardProps,u=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,b=e.gapMode,w=(0,x.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(0,C.S)([r,t]),S=(0,x.Cl)((0,x.Cl)({},w),i);return a.createElement(a.Fragment,null,d&&a.createElement(h,{sideCar:A,removeScrollBar:l,shards:f,noRelative:p,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!y,lockRef:r,gapMode:b}),s?a.cloneElement(a.Children.only(u),(0,x.Cl)((0,x.Cl)({},S),{ref:P})):a.createElement(void 0===v?"div":v,(0,x.Cl)({},S,{className:c,ref:P}),u))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},D.classNames={fullWidth:I,zeroRight:T};var N=function(e){var t=e.sideCar,r=(0,x.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,(0,x.Cl)({},r))};N.isSideCarExport=!0;var k=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||r.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F=function(){var e=k();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},L=function(){var e=F();return function(t){return e(t.styles,t.dynamic),null}},U={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||"",10)||0},H=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[M(r),M(n),M(i)]},W=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return U;var t=H(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},B=L(),$="data-scroll-locked",Q=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat($,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(T," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(I," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(T," .").concat(T," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(I," .").concat(I," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat($,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},G=function(){var e=parseInt(document.body.getAttribute($)||"0",10);return isFinite(e)?e:0},z=function(){a.useEffect(function(){return document.body.setAttribute($,(G()+1).toString()),function(){var e=G()-1;e<=0?document.body.removeAttribute($):document.body.setAttribute($,e.toString())}},[])},K=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;z();var o=a.useMemo(function(){return W(i)},[i]);return a.createElement(B,{styles:Q(o,!t,i,r?"":"!important")})},V=!1;if("undefined"!=typeof window)try{var X=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",X,X),window.removeEventListener("test",X,X)}catch(e){V=!1}var J=!!V&&{passive:!1},Y=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},Z=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ee(e,n)){var i=et(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ee=function(e,t){return"v"===e?Y(t,"overflowY"):Y(t,"overflowX")},et=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},er=function(e,t,r,n,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*n,u=r.target,c=t.contains(u),l=!1,d=s>0,f=0,h=0;
1do{if(!u)break;var p=et(e,u),m=p[0],g=p[1]-p[2]-o*m;(m||g)&&ee(e,u)&&(f+=g,h+=m);var y=u.parentNode;u=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(i&&1>Math.abs(f)||!i&&s>f)?l=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(l=!0),l},en=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ei=function(e){return[e.deltaX,e.deltaY]},ea=function(e){return e&&"current"in e?e.current:e},eo=0,es=[];let eu=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),i=a.useState(eo++)[0],o=a.useState(L)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,x.fX)([e.lockRef.current],(e.shards||[]).map(ea),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,a=en(e),o=r.current,u="deltaX"in e?e.deltaX:o[0]-a[0],c="deltaY"in e?e.deltaY:o[1]-a[1],l=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=Z(d,l);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=Z(d,l)),!f)return!1;if(!n.current&&"changedTouches"in e&&(u||c)&&(n.current=i),!i)return!0;var h=n.current||i;return er(h,t,e,"h"===h?u:c,!0)},[]),c=a.useCallback(function(e){if(es.length&&es[es.length-1]===o){var r="deltaY"in e?ei(e):en(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(s.current.shards||[]).map(ea).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),l=a.useCallback(function(e,r,n,i){var a={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=a.useCallback(function(e){r.current=en(e),n.current=void 0},[]),f=a.useCallback(function(t){l(t.type,ei(t),t.target,u(t,e.lockRef.current))},[]),h=a.useCallback(function(t){l(t.type,en(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return es.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,J),document.addEventListener("touchmove",c,J),document.addEventListener("touchstart",d,J),function(){es=es.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,J),document.removeEventListener("touchmove",c,J),document.removeEventListener("touchstart",d,J)}},[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?a.createElement(K,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},A.useMedium(n),N);var ec=a.forwardRef(function(e,t){return a.createElement(D,(0,x.Cl)({},e,{ref:t,sideCar:eu}))});ec.classNames=D.classNames;var el=new WeakMap,ed=new WeakMap,ef={},eh=0,ep=function(e){return e&&(e.host||ep(e.parentNode))},em=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=ep(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ef[r]||(ef[r]=new WeakMap);var a=ef[r],o=[],s=new Set,u=new Set(i),c=function(e){!e||s.has(e)||(s.add(e),c(e.parentNode))};i.forEach(c);var l=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))l(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,u=(el.get(e)||0)+1,c=(a.get(e)||0)+1;el.set(e,u),a.set(e,c),o.push(e),1===u&&i&&ed.set(e,!0),1===c&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return l(t),s.clear(),eh++,function(){o.forEach(function(e){var t=el.get(e)-1,i=a.get(e)-1;el.set(e,t),a.set(e,i),t||(ed.has(e)||e.removeAttribute(n),ed.delete(e)),i||e.removeAttribute(r)}),--eh||(el=new WeakMap,el=new WeakMap,ed=new WeakMap,ef={})}},eg=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),em(n,i,r,"aria-hidden")):function(){return null}},ey=r(70703),ev="Dialog",[eb,ew]=(0,u.A)(ev),[eP,eS]=eb(ev),eE=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,u=a.useRef(null),d=a.useRef(null),[f,h]=(0,l.i)({prop:n,defaultProp:null!=i&&i,onChange:o,caller:ev});return(0,p.jsx)(eP,{scope:t,triggerRef:u,contentRef:d,contentId:(0,c.B)(),titleId:(0,c.B)(),descriptionId:(0,c.B)(),open:f,onOpenChange:h,onOpenToggle:a.useCallback(()=>h(e=>!e),[h]),modal:s,children:r})};eE.displayName=ev;var eR="DialogTrigger",e_=a.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,i=eS(eR,r),a=(0,s.s)(t,i.triggerRef);return(0,p.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eQ(i.open),...n,ref:a,onClick:(0,o.mK)(e.onClick,i.onOpenToggle)})});e_.displayName=eR;var eO="DialogPortal",[ej,ex]=eb(eO,{forceMount:void 0}),eT=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=eS(eO,t);return(0,p.jsx)(ej,{scope:t,forceMount:r,children:a.Children.map(n,e=>(0,p.jsx)(_.C,{present:r||o.open,children:(0,p.jsx)(R.Z,{asChild:!0,container:i,children:e})}))})};eT.displayName=eO;var eI="DialogOverlay",eC=a.forwardRef((e,t)=>{let r=ex(eI,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=eS(eI,e.__scopeDialog);return a.modal?(0,p.jsx)(_.C,{present:n||a.open,children:(0,p.jsx)(eq,{...i,ref:t})}):null});eC.displayName=eI;var eA=(0,ey.TL)("DialogOverlay.RemoveScroll"),eq=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eS(eI,r);return(0,p.jsx)(ec,{as:eA,allowPinchZoom:!0,shards:[i.contentRef],children:(0,p.jsx)(f.sG.div,{"data-state":eQ(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),eD="DialogContent",eN=a.forwardRef((e,t)=>{let r=ex(eD,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=eS(eD,e.__scopeDialog);return(0,p.jsx)(_.C,{present:n||a.open,children:a.modal?(0,p.jsx)(ek,{...i,ref:t}):(0,p.jsx)(eF,{...i,ref:t})})});eN.displayName=eD;var ek=a.forwardRef((e,t)=>{let r=eS(eD,e.__scopeDialog),n=a.useRef(null),i=(0,s.s)(t,r.contentRef,n);return a.useEffect(()=>{let e=n.current;if(e)return eg(e)},[]),(0,p.jsx)(eL,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),eF=a.forwardRef((e,t)=>{let r=eS(eD,e.__scopeDialog),n=a.useRef(!1),i=a.useRef(!1);return(0,p.jsx)(eL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,o;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(n.current||null==(o=r.triggerRef.current)||o.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{var a,o;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let s=t.target;(null==(o=r.triggerRef.current)?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eL=a.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...u}=e,c=eS(eD,r),l=a.useRef(null),f=(0,s.s)(t,l);return a.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:j()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:j()),O++,()=>{1===O&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),O--}},[]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(v,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,p.jsx)(d.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eQ(c.open),...u,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(eV,{titleId:c.titleId}),(0,p.jsx)(eX,{contentRef:l,descriptionId:c.descriptionId})]})]})}),eU="DialogTitle",eM=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eS(eU,r);return(0,p.jsx)(f.sG.h2,{id:i.titleId,...n,ref:t})});eM.displayName=eU;var eH="DialogDescription",eW=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eS(eH,r);return(0,p.jsx)(f.sG.p,{id:i.descriptionId,...n,ref:t})});eW.displayName=eH;var eB="DialogClose",e$=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eS(eB,r);return(0,p.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})});function eQ(e){return e?"open":"closed"}e$.displayName=eB;var eG="DialogTitleWarning",[ez,eK]=(0,u.q)(eG,{contentName:eD,titleName:eU,docsSlug:"dialog"}),eV=e=>{let{titleId:t}=e,r=eK(eG),n="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return a.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},eX=e=>{let{contentRef:t,descriptionId:r}=e,n=eK("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(n.contentName,"}.");return a.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(i))},[i,t,r]),null},eJ=eE,eY=e_,eZ=eT,e0=eC,e1=eN,e2=eM,e8=eW,e3=e$},17921:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{safeCompile:function(){return o},safePathToRegexp:function(){return a},safeRegexpToFunction:function(){return s},safeRouteMatcher:function(){return u}});let n=r(18534),i=r(85604);function a(e,t,r){if("string"!=typeof e)return(0,n.pathToRegexp)(e,t,r);let a=(0,i.hasAdjacentParameterIssues)(e),o=a?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,n.pathToRegexp)(o,t,r)}catch(o){if(!a)try{let a=(0,i.normalizeAdjacentParameters)(e);return(0,n.pathToRegexp)(a,t,r)}catch(e){}throw o}}function o(e,t){let r=(0,i.hasAdjacentParameterIssues)(e),a=r?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,n.compile)(a,t)}catch(a){if(!r)try{let r=(0,i.normalizeAdjacentParameters)(e);return(0,n.compile)(r,t)}catch(e){}throw a}}function s(e,t){let r=(0,n.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,i.stripParameterSeparators)(t.params)}}}function u(e){return t=>{let r=e(t);return!!r&&(0,i.stripParameterSeparators)(r)}}},18534:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var i="",a=r+1;a<e.length;){var o=e.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){i+=e[a++];continue}break}if(!i)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=a;continue}if("("===n){var s=1,u="",a=r+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){u+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));u+=e[a++]}if(s)throw TypeError("Unbalanced pattern at ".concat(r));if(!u)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,o=t.delimiter,s=void 0===o?"/#?":o,u=[],c=0,l=0,d="",f=function(e){if(l<r.length&&r[l].type===e)return r[l++].value},h=function(e){var t=f(e);if(void 0!==t)return t;var n=r[l],i=n.type,a=n.index;throw TypeError("Unexpected ".concat(i," at ").concat(a,", expected ").concat(e))},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<s.length;t++){var r=s[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=u[u.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(i(s),"]+?"):"(?:(?!".concat(i(r),")[^").concat(i(s),"])+?")};l<r.length;){var y=f("CHAR"),v=f("NAME"),b=f("PATTERN");if(v||b){var w=y||"";-1===a.indexOf(w)&&(d+=w,w=""),d&&(u.push(d),d=""),u.push({name:v||c++,prefix:w,suffix:"",pattern:b||g(w),modifier:f("MODIFIER")||""});continue}var P=y||f("ESCAPED_CHAR");if(P){d+=P;continue}if(d&&(u.push(d),d=""),f("OPEN")){var w=p(),S=f("NAME")||"",E=f("PATTERN")||"",R=p();h("CLOSE"),u.push({name:S||(E?c++:""),pattern:S&&!E?g(w):E,prefix:w,suffix:R,modifier:f("MODIFIER")||""});continue}h("END")}return u}function r(e,t){void 0===t&&(t={});var r=a(t),n=t.encode,i=void 0===n?function(e){return e}:n,o=t.validate,s=void 0===o||o,u=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var a=e[n];if("string"==typeof a){r+=a;continue}var o=t?t[a.name]:void 0,c="?"===a.modifier||"*"===a.modifier,l="*"===a.modifier||"+"===a.modifier;if(Array.isArray(o)){if(!l)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===o.length){if(c)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var d=0;d<o.length;d++){var f=i(o[d],a);if(s&&!u[n].test(f))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(f,'"'));r+=a.prefix+f+a.suffix}continue}if("string"==typeof o||"number"==typeof o){var f=i(String(o),a);if(s&&!u[n].test(f))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(f,'"'));r+=a.prefix+f+a.suffix;continue}if(!c){var h=l?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(h))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,i=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var a=n[0],o=n.index,s=Object.create(null),u=1;u<n.length;u++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?s[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return i(e,r)}):s[r.name]=i(n[e],r)}}(u);return{path:a,index:o,params:s}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function o(e,t,r){void 0===r&&(r={});for(var n=r.strict,o=void 0!==n&&n,s=r.start,u=r.end,c=r.encode,l=void 0===c?function(e){return e}:c,d=r.delimiter,f=r.endsWith,h="[".concat(i(void 0===f?"":f),"]|$"),p="[".concat(i(void 0===d?"/#?":d),"]"),m=void 0===s||s?"^":"",g=0;g<e.length;g++){var y=e[g];if("string"==typeof y)m+=i(l(y));
1else{var v=i(l(y.prefix)),b=i(l(y.suffix));if(y.pattern)if(t&&t.push(y),v||b)if("+"===y.modifier||"*"===y.modifier){var w="*"===y.modifier?"?":"";m+="(?:".concat(v,"((?:").concat(y.pattern,")(?:").concat(b).concat(v,"(?:").concat(y.pattern,"))*)").concat(b,")").concat(w)}else m+="(?:".concat(v,"(").concat(y.pattern,")").concat(b,")").concat(y.modifier);else{if("+"===y.modifier||"*"===y.modifier)throw TypeError('Can not repeat "'.concat(y.name,'" without a prefix and suffix'));m+="(".concat(y.pattern,")").concat(y.modifier)}else m+="(?:".concat(v).concat(b,")").concat(y.modifier)}}if(void 0===u||u)o||(m+="".concat(p,"?")),m+=r.endsWith?"(?=".concat(h,")"):"$";else{var P=e[e.length-1],S="string"==typeof P?p.indexOf(P[P.length-1])>-1:void 0===P;o||(m+="(?:".concat(p,"(?=").concat(h,"))?")),S||(m+="(?=".concat(p,"|").concat(h,")"))}return new RegExp(m,a(r))}function s(t,r,n){if(t instanceof RegExp){var i;if(!r)return t;for(var u=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,l=u.exec(t.source);l;)r.push({name:l[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),l=u.exec(t.source);return t}return Array.isArray(t)?(i=t.map(function(e){return s(e,r,n).source}),new RegExp("(?:".concat(i.join("|"),")"),a(n))):o(e(t,n),r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,n){return r(e(t,n),n)},t.tokensToFunction=r,t.match=function(e,t){var r=[];return n(s(e,r,t),r,t)},t.regexpToFunction=n,t.tokensToRegexp=o,t.pathToRegexp=s})(),e.exports=t})()},18586:(e,t,r)=>{"use strict";r.d(t,{jH:()=>a});var n=r(58076);r(46928);var i=n.createContext(void 0);function a(e){let t=n.useContext(i);return e||t||"ltr"}},19058:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},20338:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,a,o,s,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var c=Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(void 0===(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),i.apply(this,o)}else if(n(i))for(s=0,o=Array.prototype.slice.call(arguments,1),a=(u=i.slice()).length;s<a;s++)u[s].apply(this,o);return!0},t.prototype.addListener=function(e,i){var a;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(a=void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,a,o,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(i=this._events[e]).length,a=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit
1("removeListener",e,t);else if(n(i)){for(s=o;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){a=s;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},20746:(e,t,r)=>{"use strict";var n=r(98359);r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},21883:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(58076),i=r(109),a=r(21952),o=r(1538),s=r(46928),u=n.forwardRef((e,t)=>{var r,u;let{container:c,...l}=e,[d,f]=n.useState(!1);(0,o.N)(()=>f(!0),[]);let h=c||d&&(null==(u=globalThis)||null==(r=u.document)?void 0:r.body);return h?i.createPortal((0,s.jsx)(a.sG.div,{...l,ref:t}),h):null});u.displayName="Portal"},21952:(e,t,r)=>{"use strict";r.d(t,{hO:()=>u,sG:()=>s});var n=r(58076),i=r(109),a=r(70703),o=r(46928),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,a.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:t,{...a,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function u(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},24159:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){t(e)||(e={});for(var r=1,n=arguments.length;r<n;r++){var i=arguments[r];t(i)&&function e(r,n){if(r===n)return r;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i&&"constructor"!==i){var a=n[i],o=r[i];(void 0===o||void 0!==a)&&(t(o)&&t(a)?r[i]=e(o,a):r[i]="object"==typeof a&&null!==a?e(Array.isArray(a)?[]:{},a):a)}return r}(e,i)}return e}},24627:(e,t,r)=>{"use strict";var n=r(29447),i=r(73798),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=String.prototype.split,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,i,a,o,c,d,f,p,m,g,y,v,b){var w,P,S=t;if("function"==typeof d?S=d(r,S):S instanceof Date?S=m(S):"comma"===i&&s(S)&&(S=n.maybeMap(S,function(e){return e instanceof Date?m(e):e})),null===S){if(a)return c&&!v?c(r,h.encoder,b,"key",g):r;S=""}if("string"==typeof(w=S)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||n.isBuffer(S)){if(c){var E=v?r:c(r,h.encoder,b,"key",g);if("comma"===i&&v){for(var R=u.call(String(S),","),_="",O=0;O<R.length;++O)_+=(0===O?"":",")+y(c(R[O],h.encoder,b,"value",g));return[y(E)+"="+_]}return[y(E)+"="+y(c(S,h.encoder,b,"value",g))]}return[y(r)+"="+y(String(S))]}var j=[];if(void 0===S)return j;if("comma"===i&&s(S))P=[{value:S.length>0?S.join(",")||null:void 0}];else if(s(d))P=d;else{var x=Object.keys(S);P=f?x.sort(f):x}for(var T=0;T<P.length;++T){var I=P[T],C="object"==typeof I&&void 0!==I.value?I.value:S[I];o&&null===C||l(j,e(C,s(S)?"function"==typeof i?i(r,I):r:r+(p?"."+I:"["+I+"]"),i,a,o,c,d,f,p,m,g,y,v,b))}return j},m=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=h.filter;return("function"==typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,n,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):s(a.filter)&&(r=a.filter);var u=[];
1if("object"!=typeof i||null===i)return"";n=t&&t.arrayFormat in o?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var c=o[n];r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var d=0;d<r.length;++d){var f=r[d];a.skipNulls&&null===i[f]||l(u,p(i[f],f,c,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset))}var h=u.join(a.delimiter),g=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),h.length>0?g+h:""}},24636:(e,t,r)=>{"use strict";r.d(t,{i3:()=>eo,UC:()=>ea,ZL:()=>ei,bL:()=>er,l9:()=>en});var n,i=r(58076),a=r(62881),o=r(34663),s=r(78820),u=r(80191),c=r(9737),l=r(15811),d=r(21952),f=r(46928),h=i.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...a}=e;return(0,f.jsx)(d.sG.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});h.displayName="Arrow";var p=r(7236),m=r(1538),g=r(81880),y="Popper",[v,b]=(0,o.A)(y),[w,P]=v(y),S=e=>{let{__scopePopper:t,children:r}=e,[n,a]=i.useState(null);return(0,f.jsx)(w,{scope:t,anchor:n,onAnchorChange:a,children:r})};S.displayName=y;var E="PopperAnchor",R=i.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...a}=e,o=P(E,r),s=i.useRef(null),c=(0,u.s)(t,s),l=i.useRef(null);return i.useEffect(()=>{let e=l.current;l.current=(null==n?void 0:n.current)||s.current,e!==l.current&&o.onAnchorChange(l.current)}),n?null:(0,f.jsx)(d.sG.div,{...a,ref:c})});R.displayName=E;var _="PopperContent",[O,j]=v(_),x=i.forwardRef((e,t)=>{var r,n,a,o,s,h,y,v;let{__scopePopper:b,side:w="bottom",sideOffset:S=0,align:E="center",alignOffset:R=0,arrowPadding:j=0,avoidCollisions:x=!0,collisionBoundary:T=[],collisionPadding:I=0,sticky:C="partial",hideWhenDetached:N=!1,updatePositionStrategy:k="optimized",onPlaced:F,...L}=e,U=P(_,b),[M,H]=i.useState(null),W=(0,u.s)(t,e=>H(e)),[B,$]=i.useState(null),Q=(0,g.X)(B),G=null!=(y=null==Q?void 0:Q.width)?y:0,z=null!=(v=null==Q?void 0:Q.height)?v:0,K="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},V=Array.isArray(T)?T:[T],X=V.length>0,J={padding:K,boundary:V.filter(A),altBoundary:X},{refs:Y,floatingStyles:Z,placement:ee,isPositioned:et,middlewareData:er}=(0,c.we)({strategy:"fixed",placement:w+("center"!==E?"-"+E:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.ll)(...t,{animationFrame:"always"===k})},elements:{reference:U.anchor},middleware:[(0,c.cY)({mainAxis:S+z,alignmentAxis:R}),x&&(0,c.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,c.ER)():void 0,...J}),x&&(0,c.UU)({...J}),(0,c.Ej)({...J,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:a,height:o}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),B&&(0,c.UE)({element:B,padding:j}),q({arrowWidth:G,arrowHeight:z}),N&&(0,c.jD)({strategy:"referenceHidden",...J})]}),[en,ei]=D(ee),ea=(0,p.c)(F);(0,m.N)(()=>{et&&(null==ea||ea())},[et,ea]);let eo=null==(r=er.arrow)?void 0:r.x,es=null==(n=er.arrow)?void 0:n.y,eu=(null==(a=er.arrow)?void 0:a.centerOffset)!==0,[ec,el]=i.useState();return(0,m.N)(()=>{M&&el(window.getComputedStyle(M).zIndex)},[M]),(0,f.jsx)("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:et?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null==(o=er.transformOrigin)?void 0:o.x,null==(s=er.transformOrigin)?void 0:s.y].join(" "),...(null==(h=er.hide)?void 0:h.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(O,{scope:b,placedSide:en,onArrowChange:$,arrowX:eo,arrowY:es,shouldHideArrow:eu,children:(0,f.jsx)(d.sG.div,{"data-side":en,"data-align":ei,...L,ref:W,style:{...L.style,animation:et?void 0:"none"}})})})});x.displayName=_;var T="PopperArrow",I={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},C=i.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=j(T,r),a=I[i.placedSide];return(0,f.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(h,{...n,ref:t,style:{...n.style,display:"block"}})})});function A(e){return null!==e}C.displayName=T;var q=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,a,o;let{placement:s,rects:u,middlewareData:c}=t,l=(null==(r=c.arrow)?void 0:r.centerOffset)!==0,d=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[h,p]=D(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!=(a=null==(n=c.arrow)?void 0:n.x)?a:0)+d/2,y=(null!=(o=null==(i=c.arrow)?void 0:i.y)?o:0)+f/2,v="",b="";return"bottom"===h?(v=l?m:"".concat(g,"px"),b="".concat(-f,"px")):"top"===h?(v=l?m:"".concat(g,"px"),b="".concat(u.floating.height+f,"px")):"right"===h?(v="".concat(-f,"px"),b=l?m:"".concat(y,"px")):"left"===h&&(v="".concat(u.floating.width+f,"px"),b=l?m:"".concat(y,"px")),{data:{x:v,y:b}}}});function D(e){let[t,r="center"]=e.split("-");return[t,r]}var N=r(21883),k=r(75145),F=r(87087),L="HoverCard",[U,M]=(0,o.A)(L,[b]),H=b(),[W,B]=U(L),$=e=>{let{__scopeHoverCard:t,children:r,open:n,defaultOpen:a,onOpenChange:o,openDelay:u=700,closeDelay:c=300}=e,l=H(t),d=i.useRef(0),h=i.useRef(0),p=i.useRef(!1),m=i.useRef(!1),[g,y]=(0,s.i)({prop:n,defaultProp:null!=a&&a,onChange:o,caller:L}),v=i.useCallback(()=>{clearTimeout(h.current),d.current=window.setTimeout(()=>y(!0),u)},[u,y]),b=i.useCallback(()=>{clearTimeout(d.current),p.current||m.current||(h.current=window.setTimeout(()=>y(!1),c))},[c,y]),w=i.useCallback(()=>y(!1),[y]);return i.useEffect(()=>()=>{clearTimeout(d.current),clearTimeout(h.current)},[]),(0,f.jsx)(W,{scope:t,open:g,onOpenChange:y,onOpen:v,onClose:b,onDismiss:w,hasSelectionRef:p,isPointerDownOnContentRef:m,children:(0,f.jsx)(S,{...l,children:r})})};$.displayName=L;var Q="HoverCardTrigger",G=i.forwardRef((e,t)=>{let{__scopeHoverCard:r,...n}=e,i=B(Q,r),o=H(r);return(0,f.jsx)(R,{asChild:!0,...o,children:(0,f.jsx)(d.sG.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:(0,a.mK)(e.onPointerEnter,et(i.onOpen)),onPointerLeave:(0,a.mK)(e.onPointerLeave,et(i.onClose)),onFocus:(0,a.mK)(e.onFocus,i.onOpen),onBlur:(0,a.mK)(e.onBlur,i.onClose),onTouchStart:(0,a.mK)(e.onTouchStart,e=>e.preventDefault())})})});G.displayName=Q;var z="HoverCardPortal",[K,V]=U(z,{forceMount:void 0}),X=e=>{let{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,a=B(z,t);return(0,f.jsx)(K,{scope:t,forceMount:r,children:(0,f.jsx)(k.C,{present:r||a.open,children:(0,f.jsx)(N.Z,{asChild:!0,container:i,children:n})})})};X.displayName=z;var J="HoverCardContent",Y=i.forwardRef((e,t)=>{let r=V(J,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,o=B(J,e.__scopeHoverCard);return(0,f.jsx)(k.C,{present:n||o.open,children:(0,f.jsx)(Z,{"data-state":o.open?"open":"closed",...i,onPointerEnter:(0,a.mK)(e.onPointerEnter,et(o.onOpen)),onPointerLeave:(0,a.mK)(e.onPointerLeave,et(o.onClose)),ref:t})})});Y.displayName=J;var Z=i.forwardRef((e,t)=>{let{__scopeHoverCard:r,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,...d}=e,h=B(J,r),p=H(r),m=i.useRef(null),g=(0,u.s)(t,m),[y,v]=i.useState(!1);return i.useEffect(()=>{if(y){let e=document.body;return n=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=n,e.style.webkitUserSelect=n}}},[y]),i.useEffect(()=>{if(m.current){let e=()=>{v(!1),h.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;
1(null==(e=document.getSelection())?void 0:e.toString())!==""&&(h.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),h.hasSelectionRef.current=!1,h.isPointerDownOnContentRef.current=!1}}},[h.isPointerDownOnContentRef,h.hasSelectionRef]),i.useEffect(()=>{m.current&&(function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(m.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,f.jsx)(F.qW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:(0,a.mK)(c,e=>{e.preventDefault()}),onDismiss:h.onDismiss,children:(0,f.jsx)(x,{...p,...d,onPointerDown:(0,a.mK)(d.onPointerDown,e=>{e.currentTarget.contains(e.target)&&v(!0),h.hasSelectionRef.current=!1,h.isPointerDownOnContentRef.current=!0}),ref:g,style:{...d.style,userSelect:y?"text":void 0,WebkitUserSelect:y?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),ee=i.forwardRef((e,t)=>{let{__scopeHoverCard:r,...n}=e,i=H(r);return(0,f.jsx)(C,{...i,...n,ref:t})});function et(e){return t=>"touch"===t.pointerType?void 0:e()}ee.displayName="HoverCardArrow";var er=$,en=G,ei=X,ea=Y,eo=ee},24740:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},25262:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(58076),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},25342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(39445)._(r(58076)),i=r(1554),a=n.default.createContext(i.imageConfigDefault)},26169:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>n})},26177:(e,t,r)=>{"use strict";var n=r(9413),i=r(42334),a=r(7700),o={addRefinement:function(e,t,r){if(o.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],s={};return s[t]=a,n(s,e)},removeRefinement:function(e,t,r){if(void 0===r)return o.clearRefinement(e,function(e,r){return t===r});var n=""+r;return o.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw Error("toggleRefinement should be used with a value");return o.isRefined(e,t,r)?o.removeRefinement(e,t,r):o.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return a(e,[t]);if("function"==typeof t){var n=!1,o=Object.keys(e).reduce(function(i,a){var o=e[a]||[],s=o.filter(function(e){return!t(e,a,r)});return s.length!==o.length&&(n=!0),i[a]=s,i},{});return n?o:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}};e.exports=o},27430:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(68543);function i(e){var t=n.sn.highlightPostTag,r=n.sn.highlightPreTag,i=e.split(r),a=i.shift(),o=a?[{value:a,isHighlighted:!1}]:[];return i.forEach(function(e){var r=e.split(t);o.push({value:r[0],isHighlighted:!0}),""!==r[1]&&o.push({value:r[1],isHighlighted:!1})}),o}},27510:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},27558:(e,t,r)=>{"use strict";function n(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(98087);return n(Array.isArray(t)?t.join("; "):t)}}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getCookieParser",{enumerable:!0,get:function(){return n}})},27833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return g},getClientBuildManifest:function(){return p},isAssetError:function(){return l},markAssetError:function(){return c}}),r(39445),r(49022);let n=r(74129),i=r(47876),a=r(71954),o=r(59443);function s(e,t,r){let n,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function c(e){return Object.defineProperty(e,u,{})}function l(e){return e&&u in e}let d=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function h(e,t,r){return new Promise((n,a)=>{let o=!1;e.then(e=>{o=!0,n(e)}).catch(a),(0,i.requestIdleCallback)(()=>setTimeout(()=>{o||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):h(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,c(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function m(e,t){return p().then(r=>{if(!(t in r))throw c(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let i=r[t].map(t=>e+"/_next/"+(0,o.encodeURIPath)(t));return{scripts:i.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:i.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function g(e){let t=new Map,r=new Map,n=new Map,a=new Map;function o(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(c(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function u(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: "+e),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw c(e)})),t}return{whenEntrypoint:e=>s(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})}
1,loadRoute(r,n){return s(r,a,()=>{let i;return h(m(e,r).then(e=>{let{scripts:n,css:i}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(o)),Promise.all(i.map(u))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,c(Object.defineProperty(Error("Route did not complete loading: "+r),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==i?void 0:i())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():m(e,t).then(e=>Promise.all(d?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,i)=>{let a='\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>i(c(Object.defineProperty(Error("Failed to prefetch: "+t),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,i.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28867:(e,t,r)=>{"use strict";r.d(t,{J:()=>u});var n=r(90964);function i(e){var t,r,i;return new n.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(r=e.page)?r:0,hitsPerPage:null!=(i=e.hitsPerPage)?i:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){var t=e.getHelper(),r=e.getResults()||i(t.state),n=e.getScopedResults().map(function(t){var n=t.indexId===e.getIndexId()?r:i(t.helper.state);return s(s({},t),{},{results:t.results||n})});return{results:r,scopedResults:n,recommendResults:t.lastRecommendResults}}},29276:(e,t,r)=>{"use strict";r.d(t,{u:()=>O});var n=r(64265),i=r(63425),a=r(36499),o=r(26169);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(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 l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var t,r=e.helper,n=e.widgetType,i=(e.methodName,e.args),a=e.instantSearchInstance;if(1===i.length&&"object"===l(i[0]))return[i[0]];var o=function(e){if(Array.isArray(e))return e}(t=i[0].split(":"))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{a=(r=r.call(e)).next,!1;for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],d=o[1],f=i[1],h=i[2],p=i[3]||{};if(!f||("click"===s||"conversion"===s)&&!h)return[];var m=Array.isArray(f)?f:[f];if(0===m.length)return[];var g=m[0].__queryID,y=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);n++)r.push(e.slice(n*t,(n+1)*t));return r}(m),v=y.map(function(e){return e.map(function(e){return e.objectID})}),b=y.map(function(e){return e.map(function(e){return e.__position})});return"view"===s?"idle"!==a.status?[]:y.map(function(e,t){var i;return{insightsMethod:"viewedObjectIDs",widgetType:n,eventType:s,payload:u({eventName:h||"Hits Viewed",index:(null==(i=r.lastResults)?void 0:i.index)||r.state.index,objectIDs:v[t]},p),hits:e,eventModifier:d}}):"click"===s?y.map(function(e,t){var i;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:n,eventType:s,payload:u({eventName:h||"Hit Clicked",index:(null==(i=r.lastResults)?void 0:i.index)||r.state.index,queryID:g,objectIDs:v[t],positions:b[t]},p),hits:e,eventModifier:d}}):"conversion"===s?y.map(function(e,t){var i;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:n,eventType:s,payload:u({eventName:h||"Hit Converted",index:(null==(i=r.lastResults)?void 0:i.index)||r.state.index,queryID:g,objectIDs:v[t]},p),hits:e,eventModifier:d}}):[]}var f=r(68543);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=h(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function S(e,t,r){var n;return(n=function(e,t){if("object"!=b(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=b(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==b(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=(0,n.V)({name:"hits",connector:!0});let R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.l;return(0,a.t)(e,E()),function(r){var n,i,a=r||{},s=a.escapeHTML,u=void 0===s||s,c=a.transformItems,l=void 0===c?function(e){return e}:c;return{$$type:"ais.hits",init:function(t){e(P(P({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e(P(P({},r),{},{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return P(P({},e),{},{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,a,s,c,h,p,g,y,b,w,P,S,E,R,_,O,j,x,T=e.results,I=e.helper,C=e.instantSearchInstance;if(n||(a=(t={instantSearchInstance:C,helper:I,widgetType:this.$$type}).instantSearchInstance,s=t.helper,c=t.widgetType,h={},p=void 0,n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d({widgetType:c,helper:s,methodName:"sendEvent",args:t,instantSearchInstance:a}).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&h[e.eventType]||(h[e.eventType]=!0,a.sendEventToInsights(e))}),clearTimeout(p),p=setTimeout(function(){h={}},0)}),i||(y=(g={helper:I,widgetType:this.$$type,instantSearchInstance:C}).helper,b=g.widgetType,w=g.instantSearchInstance,i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=d({widgetType:b,helper:y,methodName:"bindEvent",args:t,instantSearchInstance:w});return n.length?"data-insights-event=".concat((0,o.h)(n)):""}),!T)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:n,bindEvent:i,widgetParams:r};u&&T.hits.length>0&&(T.hits=(0,f.S8)(T.hits));var A=l((P=T.hits,S=T.page,E=T.hitsPerPage,R=P.map(function(e,t){return m(m({},e),{},{__position:E*S+t+1})}),(_=T.queryID)?R.map(function(e){return v(v({},e),{},{__queryID:_})}):R),{results:T}),q=null==(O=T.renderingContent)||null==(j=O.widgets)||null==(x=j.banners)?void 0:x[0];return{hits:A,items:A,results:T,banner:q,sendEvent:n,bindEvent:i,widgetParams:r}},dispose:function(e){var r=e.state;return(t(),u)?r.setQueryParameters(Object.keys(f.FU).reduce(function(e,t){return P(P({},e),{},S({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return u?e.setQueryParameters(f.FU):e}}}};var _=r(39855);function O(e,t){return(0,_.Z)(R,e,t)}},29447:(e,t,r)=>{"use strict";var n=r(73798),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},u=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],o=Object.keys(a),u=0;u<o.length;++u){var c=o[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return s(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 u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);if(45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||a===n.RFC1738&&(40===l||41===l)){u+=s.charAt(c);continue}if(l<128){u+=o[l];continue}if(l<2048){u+=o[192|l>>6]+o[128|63&l];continue}if(l<55296||l>=57344){u+=o[224|l>>12]+o[128|l>>6&63]+o[128|63&l];continue}c+=1,u+=o[240|(l=65536+((1023&l)<<10|1023&s.charCodeAt(c)))>>18]+o[128|l>>12&63]+o[128|l>>6&63]+o[128|63&l]}return u},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(a(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return(a(t)&&!a(r)&&(o=u(t,n)),a(t)&&a(r))?(r.forEach(function(r,a){if(i.call(t,a)){var o=t[a];o&&"object"==typeof o&&r&&"object"==typeof r?t[a]=e(o,r,n):t.push(r)}else t[a]=r}),t):Object.keys(r).reduce(function(t,a){var o=r[a];return i.call(t,a)?t[a]=e(t[a],o,n):t[a]=o,t},o)}}},29698:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n,c,l,d,f,h=e.hierarchicalFacets[r],p=e.hierarchicalFacetsRefinements[h.name]&&e.hierarchicalFacetsRefinements[h.name][0]||"",m=e._getHierarchicalFacetSeparator(h),g=e._getHierarchicalRootPath(h),y=e._getHierarchicalShowParentLevel(h),v=a(e._getHierarchicalFacetSortBy(h)),b=t.every(function(e){return e.exhaustive}),w=(n=v,c=m,l=g,d=y,f=p,function(e,t,r){var a=e;if(r>0){var h=0;for(a=e;h<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),h++}if(a){var p=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r,n,i,o,s;return t=e[0],r=a.path||l,n=f,i=c,o=l,s=d,(!o||0===t.indexOf(o)&&o!==t)&&(!o&&-1===t.indexOf(i)||o&&t.split(i).length-o.split(i).length==1||-1===t.indexOf(i)&&-1===n.indexOf(i)||0===n.indexOf(t)||0===t.indexOf(r+i)&&(s||0===t.indexOf(n)))});a.data=o(p.map(function(e){var r,n,i,a,o,l,d=e[0];return r=e[1],n=d,i=c,a=u(f),o=t.exhaustive,{name:(l=n.split(i))[l.length-1].trim(),path:n,escapedValue:s(n),count:r,isRefined:a===n||0===a.indexOf(n+i),exhaustive:o,data:null}}),n[0],n[1])}return e}),P=t;return g&&(P=t.slice(g.split(m).length)),P.reduce(w,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:b,data:null})}};var n=r(19058),i=r(34498),a=r(12418),o=r(72918),s=n.escapeFacetValue,u=n.unescapeFacetValue},31727:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(90964),i=r(64265),a=r(63425),o=r(44468),s=r(79593);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){var n;return(n=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,i.V)({name:"configure",connector:!0});function h(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return l(l({},e),{},d({},t,void 0))},{}))}let p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.l;return function(r){if(!r||!(0,o.Q)(r.searchParameters))throw Error(f("The `searchParameters` option expects an object."));var i={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e(l(l({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(l(l({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return t(),h(n,r)},getRenderState:function(e,t){var r,i=this.getWidgetRenderState(t);return l(l({},e),{},{configure:l(l({},i),{},{widgetParams:l(l({},i.widgetParams),{},{searchParameters:(0,s.p)(new n.SearchParameters(null==(r=e.configure)?void 0:r.widgetParams.searchParameters),new n.SearchParameters(i.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return i.refine||(i.refine=function(e){var i=h(t.state,r),a=(0,s.p)(i,new n.SearchParameters(e));r.searchParameters=e,t.setState(a).search()}),{refine:i.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var i=t.uiState;return(0,s.p)(e,new n.SearchParameters(l(l({},i.configure),r.searchParameters)))},getWidgetUiState:function(e){return l(l({},e),{},{configure:l(l({},e.configure),r.searchParameters)})}}}};var m=r(39855);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){var t,r;return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),r={$$widgetType:"ais.configure"},(0,m.Z)(p,{searchParameters:t},r),null}},33375:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},34498:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}}},34499:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(61881),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34663:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,q:()=>a});var n=r(58076),i=r(46928);function a(e,t){let r=n.createContext(t),a=e=>{let{children:t,...a}=e,o=n.useMemo(()=>a,Object.values(a));return(0,i.jsx)(r.Provider,{value:o,children:t})};return a.displayName=e+"Provider",[a,function(i){let a=n.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return a.scopeName=e,[function(t,a){let o=n.createContext(a),s=r.length;r=[...r,a];let u=t=>{let{scope:r,children:a,...u}=t,c=r?.[e]?.[s]||o,l=n.useMemo(()=>u,Object.values(u));return(0,i.jsx)(c.Provider,{value:l,children:a})};return u.displayName=t+"Provider",[u,function(r,i){let u=i?.[e]?.[s]||o,c=n.useContext(u);if(c)return c;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(a,...t)]}},34939:(e,t,r)=>{"use strict";var n=r(37811);r(4197);var i=r(58076),a=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),o=void 0!==n&&n.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,a=void 0===i?o:i;c(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var u="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=u?u.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(s(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(s(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(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)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var l=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+l(e+"-"+r)),d[n]}function h(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=n||new u({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),n&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=a,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=f(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return h(i,e)}):[h(i,t)]}}return{styleId:f(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);function g(){return new p}m.displayName="StyleSheetContext";var y=a.default.useInsertionEffect||a.default.useLayoutEffect,v="undefined"!=typeof window?g():void 0;function b(e){var t=v||i.useContext(m);return t&&("undefined"==typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.StyleRegistry=function(e){var t=e.registry,r=e.children,n=i.useContext(m),o=i.useState(function(){return n||t||g()})[0];return a.default.createElement(m.Provider,{value:o},r)},t.createStyleRegistry=g,t.style=b},35463:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r){var i,a;if(t===r)return!0;
1if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((a=t.length)===r.length)for(;a--&&e(t[a],r[a]););return -1===a}if(!i||"object"==typeof t){for(i in a=0,t)if(n.call(t,i)&&++a&&!n.call(r,i)||!(i in r)||!e(t[i],r[i]))return!1;return Object.keys(r).length===a}}return t!=t&&r!=r}});var n=Object.prototype.hasOwnProperty},35882:(e,t,r)=>{"use strict";var n=r(24627),i=r(70146);e.exports={formats:r(73798),parse:i,stringify:n}},36499:(e,t,r)=>{"use strict";function n(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}r.d(t,{t:()=>n})},36559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseUrl",{enumerable:!0,get:function(){return a}});let n=r(61377),i=r(55570);function a(e){if(e.startsWith("/"))return(0,i.parseRelativeUrl)(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:t.search,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},37974:(e,t,r)=>{var n=r(13422);e.exports=r(33776)(function(e,t,r){n(e,r,t)})},38706:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n=(0,r(58076).createContext)(null)},38801:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(59866).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},38899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getImageProps:function(){return s}});let n=r(39445),i=r(11317),a=r(63365),o=n._(r(77535));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=a.Image},39310:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(e[t]||[]).slice().map(e=>{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},39804:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let i=r[n];if("query"===i){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let i=r[n];if(!t.query.hasOwnProperty(i)||e.query[i]!==t.query[i])return!1}}else if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},39855:(e,t,r)=>{"use strict";r.d(t,{Z:()=>R});var n=r(58076),i=r.t(n,2),a=r(1745),o=r(28867),s=r(6631),u=r(65672),c=r(25262),l=r(6822);function d(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 f(e){var t,r=function(e){if(Array.isArray(e))return e}(t=(0,n.useState)(function(){return e}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{a=(r=r.call(e)).next,!1;for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return d(e,2);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=r[0],o=r[1];return(0,a.j)(i,e)||o(e),i}var h=i.use,p=r(77242),m=r(83343);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=["skipSuspense"],v=["instantSearchInstance","widgetParams"],b=["widgetParams"];function w(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 P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function E(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 R(e){var t,r,i,d,g,P,R,_,O,j,x,T,I,C,A,q,D,N,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},L=F.skipSuspense,U=E(F,y),M=(0,c.r)(),H=(0,l.m)(),W=(0,u.I)(),B=(0,s.R)(),$=f(k),Q=f(U),G=(0,n.useRef)(!0),z=(0,n.useRef)(null),K=(0,n.useRef)(W.status),V=(0,n.useMemo)(function(){return S(S({},e(function(e,t){if(t){G.current=!0;return}if(G.current){var r=e.instantSearchInstance,n=(e.widgetParams,E(e,v));(0,a.j)(n,z.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===K.current||(Y(n),z.current=n,K.current=r.status)}},function(){G.current=!1})($)),Q)},[e,$,Q]),X=function(e){if(Array.isArray(e))return e}(t=(0,n.useState)(function(){if(V.getWidgetRenderState){var e,t=B.getHelper(),r=B.getWidgetUiState({})[B.getIndexId()];t.state=(null==(e=V.getWidgetSearchParameters)?void 0:e.call(V,t.state,{uiState:r}))||t.state;var n=(0,o.J)(B),i=n.results,a=n.scopedResults,s=n.recommendResults,u=V.getWidgetRenderState({helper:t,parent:B,instantSearchInstance:W,results:"recommend"===V.dependsOn&&s&&H?s[H.recommendIdx.current++]:i,scopedResults:a,state:t.state,renderState:W.renderState,templatesConfig:W.templatesConfig,createURL:B.createURL,searchMetadata:{isSearchStalled:"stalled"===W.status},status:W.status,error:W.error});return u.widgetParams,E(u,b)}return{}}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{a=(r=r.call(e)).next,!1;for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return w(e,2);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),J=X[0],Y=X[1];return P=(r={widget:V,parentIndex:B,props:$,shouldSsr:!!M,skipSuspense:void 0!==L&&L}).widget,R=r.parentIndex,_=r.props,O=r.shouldSsr,j=r.skipSuspense,T=(x=(0,m.t)()).waitForResultsRef,I=x.countRef,x.ignoreMultipleHooksWarning,C=(0,n.useRef)(_),(0,n.useEffect)(function(){C.current=_},[_]),A=(0,n.useRef)(P),(0,n.useEffect)(function(){A.current=P},[P]),q=(0,n.useRef)(null),D=O&&!R.getWidgets().includes(P),N=(0,u.I)(),(0,p.E)(function(){var e=A.current;return q.current?(clearTimeout(q.current),(0,a.j)(_,C.current)||(R.removeWidgets([e]),R.addWidgets([P]))):O||R.addWidgets([P]),function(){q.current=setTimeout(function(){N._schedule(function(){N._preventWidgetCleanup||R.removeWidgets([e])})})}},[R,P,O,N,_]),(D||(null==T||null==(i=T.current)?void 0:i.status)==="pending")&&R.addWidgets([P]),null!=T&&T.current&&!j&&(h(T.current),"ais.dynamicWidgets"!==P.$$type&&null!=(g=N.helper)&&g.lastResults&&h(T.current)),(null==T||null==(d=T.current)?void 0:d.status)==="fulfilled"&&(I.current+=1),J}},39876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},useLinkStatus:function(){return v}});let n=r(24966),i=r(46928),a=n._(r(58076)),o=r(1403),s=r(46717),u=r(93332),c=r(4681),l=r(80175);r(31540);let d=r(1772),f=r(73438),h=r(96780);r(75634);let p=r(79407);function m(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}function g(e){var t;let r,n,o,[g,v]=(0,a.useOptimistic)(d.IDLE_LINK_STATUS),b=(0,a.useRef)(null),{href:w,as:P,children:S,prefetch:E=null,passHref:R,replace:_,shallow:O,scroll:j,onClick:x,onMouseEnter:T,onTouchStart:I,legacyBehavior:C=!1,onNavigate:A,ref:q,unstable_dynamicOnHover:D,...N}=e;r=S,C&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let k=a.default.useContext(s.AppRouterContext),F=!1!==E,L=!1!==E?null===(t=E)||"auto"===t?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:U,as:M}=a.default.useMemo(()=>{let e=m(w);return{href:e,as:P?m(P):e}},[w,P]);C&&(n=a.default.Children.only(r));let H=C?n&&"object"==typeof n&&n.ref:q,W=a.default.useCallback(e=>(null!==k&&(b.current=(0,d.mountLinkInstance)(e,U,k,L,F,v)),()=>{b.current&&((0,d.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,d.unmountPrefetchableInstance)(e)}),[F,U,k,L,v]),B={ref:(0,u.useMergedRef)(W,H),onClick(e){C||"function"!=typeof x||x(e),C&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),k&&(e.defaultPrevented||function(e,t,r,n,i,o,s){let{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,f.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}a.default.startTransition(()=>{(0,h.dispatchNavigateAction)(r||t,i?"replace":"push",null==o||o,n.current)})}}(e,U,M,b,_,j,A))},onMouseEnter(e){C||"function"!=typeof T||T(e),C&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),k&&F&&(0,d.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){C||"function"!=typeof I||I(e),C&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),k&&F&&(0,d.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,c.isAbsoluteUrl)(M)?B.href=M:C&&!R&&("a"!==n.type||"href"in n.props)||(B.href=(0,l.addBasePath)(M)),o=C?a.default.cloneElement(n,B):(0,i.jsx)("a",{...N,...B,children:r}),(0,i.jsx)(y.Provider,{value:g,children:o})}let y=(0,a.createContext)(d.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40567:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error("Invariant failed")}r.d(t,{V:()=>n})},41422:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},41503:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return p},APP_DIR_ALIAS:function(){return D},CACHE_ONE_YEAR:function(){return O},DOT_NEXT_ALIAS:function(){return A},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return K},GSSP_COMPONENT_MEMBER_ERROR:function(){return J},GSSP_NO_RETURNED_VALUE:function(){return V},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return j},INSTRUMENTATION_HOOK_FILENAME:function(){return I},JSON_CONTENT_TYPE_HEADER:function(){return i},MATCHED_PATH_HEADER:function(){return s},MIDDLEWARE_FILENAME:function(){return x},MIDDLEWARE_LOCATION_REGEXP:function(){return T},NEXT_BODY_SUFFIX:function(){return y},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return _},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return b},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return w},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return R},NEXT_CACHE_TAGS_HEADER:function(){return v},NEXT_CACHE_TAG_MAX_ITEMS:function(){return S},NEXT_CACHE_TAG_MAX_LENGTH:function(){return E},NEXT_DATA_SUFFIX:function(){return m},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return o},NEXT_META_SUFFIX:function(){return g},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return P},NON_STANDARD_NODE_ENV:function(){return Y},PAGES_DIR_ALIAS:function(){return C},PRERENDER_REVALIDATE_HEADER:function(){return u},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return c},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return W},ROOT_DIR_ALIAS:function(){return q},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return H},RSC_ACTION_ENCRYPTION_ALIAS:function(){return M},RSC_ACTION_PROXY_ALIAS:function(){return F},RSC_ACTION_VALIDATE_ALIAS:function(){return k},RSC_CACHE_WRAPPER_ALIAS:function(){return L},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return U},RSC_MOD_REF_PROXY_ALIAS:function(){return N},RSC_PREFETCH_SUFFIX:function(){return l},RSC_SEGMENTS_DIR_SUFFIX:function(){return d},RSC_SEGMENT_SUFFIX:function(){return f},RSC_SUFFIX:function(){return h},SERVER_PROPS_EXPORT_ERROR:function(){return z},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return $},SERVER_PROPS_SSG_CONFLICT:function(){return Q},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Z},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return B},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return G},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return r},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return X},WEBPACK_LAYERS:function(){return en},WEBPACK_RESOURCE_QUERIES:function(){return ei}});let r="text/plain",n="text/html; charset=utf-8",i="application/json; charset=utf-8",a="nxtP",o="nxtI",s="x-matched-path",u="x-prerender-revalidate",c="x-prerender-revalidate-if-generated",l=".prefetch.rsc",d=".segments",f=".segment.rsc",h=".rsc",p=".action",m=".json",g=".meta",y=".body",v="x-next-cache-tags",b="x-next-revalidated-tags",w="x-next-revalidate-tag-token",P="next-resume",S=128,E=256,R=1024,_="_N_T_",O=31536e3,j=0xfffffffe,x="middleware",T=`(?:src/)?${x}`,I="instrumentation",C="private-next-pages",A="private-dot-next",q="private-next-root-dir",D="private-next-app-dir",N="private-next-rsc-mod-ref-proxy",k="private-next-rsc-action-validate",F="private-next-rsc-server-reference",L="private-next-rsc-cache-wrapper",U="private-next-rsc-track-dynamic-import",M="private-next-rsc-action-encryption",H="private-next-rsc-action-client-wrapper",W="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",B="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",$="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",Q="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",G="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",z="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",K="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",V="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",X="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",J="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Y='You are using a non-standard "NODE_ENV" value in y
1our environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Z="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ee=["app","pages","components","lib","src"],et={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},er={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},en={...er,GROUP:{builtinReact:[er.reactServerComponents,er.actionBrowser],serverOnly:[er.reactServerComponents,er.actionBrowser,er.instrument,er.middleware],neutralTarget:[er.apiNode,er.apiEdge],clientOnly:[er.serverSideRendering,er.appPagesBrowser],bundled:[er.reactServerComponents,er.actionBrowser,er.serverSideRendering,er.appPagesBrowser,er.shared,er.instrument,er.middleware],appPages:[er.reactServerComponents,er.serverSideRendering,er.appPagesBrowser,er.actionBrowser]}},ei={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},42334:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},43683:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(58076),i=n.useLayoutEffect,a=n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},44422:(e,t,r)=>{"use strict";r.d(t,{B8:()=>l,BI:()=>c,Eo:()=>i,Fm:()=>u,a1:()=>s,g:()=>o,sm:()=>d,xD:()=>a});var n=r(9148);function i(e){return e}function a(e){return Object.keys(e)}function o(e,t){var r;return r=function(...e){return Object.assign({},...e.map(e=>Array.isArray(e)?e.reduce((e,t)=>(e[t]=t,e),{}):e))}(Object.values(e)),Object.keys(r).reduce((e,n,i)=>Object.assign(e,{[n]:t(r[n],n,r,i)}),{})}let s=(e,t,r)=>n.wk(n.YO(r),r=>e<=r.length&&r.length<=t,"fixedLengthArray");n.wk(n.Yj,e=>0!==e.trim().length,"NonEmptyString");function u(e){return Object.entries(e)}function c(e){return Object.values(e)}function l(e,t=!0){let r={};return u(e).forEach(([e,n])=>{if(void 0===n)throw Error("inverse found undefined value, this is not supported");if(Array.isArray(n))return void n.forEach(t=>{r[t]?r[t].push(e):r[t]=[e]});if(r[n]&&t)throw Error(`Encountered duplicate value inverting object: "${n}: ${e} and ${r[n]}"`);r[n]=e}),r}function d(e){return n.ZE(l(e))}let f=e=>t=>t._tag===e;f("InterfaceType"),f("PartialType"),n.ZU},44468:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){if("object"!==n(e)||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}r.d(t,{Q:()=>i})},45392:(e,t)=>{"use strict";function r(e,t,r,n,a){let o=e[t];if(a&&a.has(t)?o=a.get(t):Array.isArray(o)?o=o.map(e=>encodeURIComponent(e)):"string"==typeof o&&(o=encodeURIComponent(o)),!o){let a="oc"===r;if("c"===r||a)return a?{param:t,value:null,type:r,treeSegment:[t,"",r]}:{param:t,value:o=n.split("/").slice(1).flatMap(t=>{var r;let n=i(t);return null!=(r=e[n.key])?r:n.key}),type:r,treeSegment:[t,o.join("/"),r]}
1}return{param:t,value:o,treeSegment:[t,Array.isArray(o)?o.join("/"):o,r],type:r}}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PARAMETER_PATTERN:function(){return n},getDynamicParam:function(){return r},parseMatchedParameter:function(){return a},parseParameter:function(){return i}});let n=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function i(e){let t=e.match(n);return t?a(t[2]):a(e)}function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},47876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48720:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(58076);function i(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},49022:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},49030:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},49306:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(59866).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},49499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function i(e){return r.test(e)?e.replace(n,"\\$&"):e}},49809:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=r(52971),i=r(15124),a=r(66737),o=r(14172);function s(e){let t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,i.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},50942:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},51018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return i},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,
1configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let r=i.slice(1,-1),o=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),o=!0),r.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(r.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(n)if(o){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,r),this.restSlugName=r,i="[...]"}else{if(o)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,r),this.slugName=r,i="[]"}}this.children.has(i)||this.children.set(i,new r),this.children.get(i)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function i(e,t){let r={},i=[];for(let n=0;n<e.length;n++){let a=t(e[n]);r[a]=n,i[n]=a}return n(i).map(t=>e[r[t]])}},51697:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var n=(0,r(58076).createContext)(null)},53235:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},54402:(e,t,r)=>{"use strict";r.d(t,{Y:()=>p});var n=r(2708),i=r(27430),a=r(63844),o=r(58076),s=r(54913),u=r(4863),c=["classNames"];function l(){return(l=Object.assign?Object.assign.bind():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)}function d(e){var t=e.classNames,r=void 0===t?{}:t,n=function(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}(e,c);return o.createElement(u.G,l({classNames:{root:(0,s.cx)("ais-Snippet",r.root),highlighted:(0,s.cx)("ais-Snippet-highlighted",r.highlighted),nonHighlighted:(0,s.cx)("ais-Snippet-nonHighlighted",r.nonHighlighted),separator:(0,s.cx)("ais-Snippet-separator",r.separator)}},n))}var f=["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"];
1function h(){return(h=Object.assign?Object.assign.bind():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)}function p(e){var t=e.hit,r=e.attribute,s=e.highlightedTagName,u=e.nonHighlightedTagName,c=e.separator,l=function(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}(e,f),p=(0,n.E)(t._snippetResult,r)||[],m=(Array.isArray(p)?p:[p]).map(function(e){return(0,i.I)((0,a.x)(e.value||""))});return o.createElement(d,h({},l,{parts:m,highlightedTagName:s,nonHighlightedTagName:u,separator:c}))}},54913:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])},[]).filter(Boolean).join(" ")}r.d(t,{cx:()=>n})},55570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(4681),i=r(61377);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),o=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:s,searchParams:u,search:c,hash:l,href:d,origin:f}=new URL(e,o);if(f!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:s,query:r?(0,i.searchParamsToUrlQuery)(u):void 0,search:c,hash:l,href:d.slice(f.length),slashes:void 0}}},56087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=r(24465);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},56516:(e,t,r)=>{"use strict";function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function i(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function a(e,t,r){var i=n(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}r.d(t,{N:()=>f});var o,s=r(58076),u=r(34663),c=r(80191),l=r(70703),d=r(46928);function f(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:r}=e,n=s.useRef(null),a=s.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:a,collectionRef:n,children:r})};o.displayName=t;let f=e+"CollectionSlot",h=(0,l.TL)(f),p=s.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=a(f,r),o=(0,c.s)(t,i.collectionRef);return(0,d.jsx)(h,{ref:o,children:n})});p.displayName=f;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,l.TL)(m),v=s.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,o=s.useRef(null),u=(0,c.s)(t,o),l=a(m,r);return s.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,d.jsx)(y,{...{[g]:""},ref:u,children:n})});return v.displayName=m,[{Provider:o,Slot:p,ItemSlot:v},function(t){let r=a(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var h=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=m(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function m(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap,class e extends Map{set(e,t){return h.get(this)&&(this.has(e)?i(this,o)[i(this,o).indexOf(e)]=e:i(this,o).push(e)),super.set(e,t),this}insert(e,t,r){let n,a=this.has(t),s=i(this,o).length,u=m(e),c=u>=0?u:s+u,l=c<0||c>=s?-1:c;if(l===this.size||a&&l===this.size-1||-1===l)return this.set(t,r),this;let d=this.size+ +!a;u<0&&c++;let f=[...i(this,o)],h=!1;for(let e=c;e<d;e++)if(c===e){let i=f[e];f[e]===t&&(i=f[e+1]),a&&this.delete(t),n=this.get(i),this.set(t,r)}else{h||f[e-1]!==t||(h=!0);let r=f[h?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=i(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=i(this,o).indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=i(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=i(this,o).indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return a(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&i(this,o).splice(i(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=p(i(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=p(i(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return i(this,o).indexOf(e)}keyAt(e){return p(i(this,o),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,a=0,o=null!=i?i:this.at(0);for(let e of this)o=0===a&&1===t.length?e:Reflect.apply(n,this,[o,e,a,this]),a++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,a=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);a=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[a,r,e,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let i=[...this.entries()];return i.splice(...r),new e(i)}
1slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,o,{writable:!0,value:void 0}),a(this,o,[...super.keys()]),h.set(this,!0)}}},56790:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return c}});let n=r(82531),i=r(80286),a=r(52971),o=r(13755),s=r(82448),u=r(55570);function c(e,t,r,c,l,d){let f,h=!1,p=!1,m=(0,u.parseRelativeUrl)(e),g=(0,a.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(m.pathname),d).pathname),y=r=>{let u=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&u){let e=(0,i.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(u,e):u=!1}if(u){if(!r.destination)return p=!0,!0;let n=(0,i.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:u,query:c});if(m=n.parsedDestination,e=n.newUrl,Object.assign(c,n.parsedDestination.query),g=(0,a.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(e),d).pathname),t.includes(g))return h=!0,f=g,!0;if((f=l(g))!==e&&t.includes(f))return h=!0,!0}},v=!1;for(let e=0;e<r.beforeFiles.length;e++)y(r.beforeFiles[e]);if(!(h=t.includes(g))){if(!v){for(let e=0;e<r.afterFiles.length;e++)if(y(r.afterFiles[e])){v=!0;break}}if(v||(f=l(g),v=h=t.includes(f)),!v){for(let e=0;e<r.fallback.length;e++)if(y(r.fallback[e])){v=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:h,resolvedHref:f,externalDest:p}}},57231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(39445)._(r(58076)).default.createContext(null)},58276:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var r=this.params.slice();return r.push(e),new t({params:r})},removeParams:function(e){return new t({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(e){return void 0===t[e.$$id]}).map(function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r})}},e.exports=t},61134:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(11458),i=r(70995);function a(e,t,r){let a="",o=(0,i.getRouteRegex)(e),s=o.groups,u=(t!==e?(0,n.getRouteMatcher)(o)(t):"")||r;a=e;let c=Object.keys(s);return c.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=s[e],i="["+(r?"...":"")+e+"]";return n&&(i=(t?"":"/")+"["+i+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(a=a.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:c,result:a}}},61377:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(r,n(e));else t.set(r,n(i));return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},62864:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach(function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]})}t.prototype={constructor:t},e.exports=t},62875:(e,t,r)=>{"use strict";var n=r(20338);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(96621)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},62881:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},63058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(39445)._(r(58076)).default.createContext({})},63358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return d}});let n=r(39445),i=r(24966),a=r(46928),o=i._(r(58076)),s=n._(r(43683)),u=r(63058),c=r(52904),l=r(27510);function d(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(31540);let h=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let a=!0,o=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){o=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?a=!1:t.add(i.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?a=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!o)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}return a}}()).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,o.useContext)(u.AmpStateContext),n=(0,o.useContext)(c.HeadManagerContext);return(0,a.jsx)(s.default,{reduceComponentsToState:p,headManager:n,inAmpMode:(0,l.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(39445),i=r(24966),a=r(46928),o=i._(r(58076)),s=n._(r(109)),u=n._(r(63358)),c=r(11317),l=r(1554),d=r(25342);r(31540);let f=r(57231),h=n._(r(77535)),p=r(93332),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1};function g(e,t,r,n,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:u,decoding:c,className:l,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:v,fill:b,onLoadRef:w,onLoadingCompleteRef:P,setBlurComplete:S,setShowAltText:E,sizesInput:R,onLoad:_,onError:O,...j}=e,x=(0,o.useCallback)(e=>{e&&(O&&(e.src=e.src),e.complete&&g(e,h,w,P,S,v,R))},[r,h,w,P,S,O,v,R]),T=(0,p.useMergedRef)(t,x);return(0,a.jsx)("img",{...j,...y(f),loading:m,width:u,height:s,decoding:c,"data-nimg":b?"fill":"1",className:l,style:d,sizes:i,srcSet:n,src:r,ref:T,onLoad:e=>{g(e.currentTarget,h,w,P,S,v,R)},onError:e=>{E(!0),"empty"!==h&&S(!0),O&&O(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,a.jsx)(u.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let w=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(f.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{var e;let t=m||n||l.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
1e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a}},[n]),{onLoad:s,onLoadingComplete:u}=e,p=(0,o.useRef)(s);(0,o.useEffect)(()=>{p.current=s},[s]);let g=(0,o.useRef)(u);(0,o.useEffect)(()=>{g.current=u},[u]);let[y,w]=(0,o.useState)(!1),[P,S]=(0,o.useState)(!1),{props:E,meta:R}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:P});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{...E,unoptimized:R.unoptimized,placeholder:R.placeholder,fill:R.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:S,sizesInput:e.sizes,ref:t}),R.priority?(0,a.jsx)(b,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63425:(e,t,r)=>{"use strict";function n(){}r.d(t,{l:()=>n})},63844:(e,t,r)=>{"use strict";r.d(t,{i:()=>o,x:()=>l});var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,a=RegExp(i.source);function o(e){return e&&a.test(e)?e.replace(i,function(e){return n[e]}):e}var s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},u=/&(amp|quot|lt|gt|#39);/g,c=RegExp(u.source);function l(e){return e&&c.test(e)?e.replace(u,function(e){return s[e]}):e}},64265:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){var t;return"https://www.algolia.com/doc/api-reference/widgets/"+e.name+"/js/"+(void 0!==(t=e.connector)&&t?"#connector":"")}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}r.d(t,{V:()=>n})},64829:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65400:(e,t,r)=>{"use strict";var n=r(9413),i=r(34498),a=r(67804),o=r(24159),s=r(42334),u=r(7700),c=r(24740),l=r(53235),d=r(26177);function f(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return f(t[r],e)}):e===t}function h(e){var t=e?h._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n  - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(e){var n=-1!==h.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}h.PARAMETERS=Object.keys(new h),h._parseNumbers=function(e){if(e instanceof h)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);t[r]=isNaN(i)?n:i}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):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?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});r[t][e]=i})}),t.numericRefinements=r}return o(e,t)},h.make=function(e){var t=new h(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},h.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&s(r.numericRefinements)?Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):s(e.numericRefinements)&&r.numericFilters?Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},h.prototype={constructor:h,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:d.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:d.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:d.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:d.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=c(r);if(this.isNumericRefined(e,t,n))return this;var i=o({},this.numericRefinements);return i[e]=o({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&f(n.val,c(r))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return s(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return u(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var a=r[i],o={};return Object.keys(a=a||{}
vendor: 8,277 bytes, line 1
1).forEach(function(r){var n=a[r]||[],s=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||s.push(t)}),s.length!==n.length&&(t=!0),o[r]=s}),n[i]=o,n},{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:d.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 d.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:d.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 d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:d.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 d.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:d.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 d.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:d.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 d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:d.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:d.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:d.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:d.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)&&d.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&d.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 o=c(r),s=void 0!==(n=this.numericRefinements[e][t],i(n,function(e){return f(e,o)}));return a&&s},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=h.validate(this,e);if(t)throw t;var r=this,n=h._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?u(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=h},65649:e=>{"use strict";e.exports="3.26.0"},65672:(e,t,r)=>{"use strict";r.d(t,{I:()=>o});var n=r(58076),i=r(51697),a=r(40567);function o(){var e=(0,n.useContext)(i.t);return(0,a.V)(null!==e,"Hooks must be used inside the <InstantSearch> component.\n\nThey are not compatible with the `[email protected]` and `react-instantsearch-dom` packages, so make sure to use the <InstantSearch> component from `[email protected]`."),e}},66560:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(59866).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},66737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=r(61881);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return""+r+t+i+a}},66764:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=r(13755),i=r(56087),a=r(24465);function o(e,t){var r,o;let{basePath:s,i18n:u,trailingSlash:c}=null!=(r=t.nextConfig)?r:{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};s&&(0,a.pathHasPrefix)(l.pathname,s)&&(l.pathname=(0,i.removePathPrefix)(l.pathname,s),l.basePath=s);let d=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],d="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(l.pathname=d)}if(u){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,u.locales);l.locale=e.detectedLocale,l.pathname=null!=(o=e.pathname)?o:l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(d):(0,n.normalizeLocalePath)(d,u.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},67804:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},68543:(e,t,r)=>{"use strict";r.d(t,{FU:()=>l,S8:()=>p,ef:()=>m,sn:()=>d});var n=r(63844),i=r(44468);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign?Object.assign.bind():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)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){var n;return(n=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==a(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},d={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function f(e){return(0,n.i)(e).replace(RegExp(l.highlightPreTag,"g"),d.highlightPreTag).replace(RegExp(l.highlightPostTag,"g"),d.highlightPostTag)}function h(e){return(0,i.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return u(u({},t),{},c({},r,h(e[r])))},{}):Array.isArray(e)?e.map(h):u(u({},e),{},{value:f(e.value)})}function p(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=o({},(function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e),e));return t._highlightResult&&(t._highlightResult=h(t._highlightResult)),t._snippetResult&&(t._snippetResult=h(t._snippetResult)),t})).__escaped=!0),e}function m(e){return e.map(function(e){return u(u({},e),{},{highlighted:f(e.highlighted)})})}},70018:(e,t,r)=>{"use strict";r.d(t,{G:()=>ta});var n=r(58076),i=r(38706),a=r(51697),o=r(20338),s=r(90964);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}},r=t.fallback;return"undefined"==typeof window?r():e({window:window})}var l=r(63425);function d(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 f(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=h(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||y(e,t)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}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}var b="2.17.2",w="https://cdn.jsdelivr.net/npm/search-insights@".concat(b,"/dist/search-insights.min.js");function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=void 0!==i&&i,o=e.$$automatic,s=void 0!==o&&o,h=t;t||null===t||c(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(h=t[r]),h||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){t[r].queue||(t[r].queue=[]);for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue.push(n)},t[r].version=b,t[r].shouldAddScript=!0),h=t[r])});var p=h||l.l;return function(e){var t,i,o=e.instantSearchInstance,c=o.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});o.unuse.apply(o,function(e){if(Array.isArray(e))return v(e)}(c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||y(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var h=g(d(o.client),2),b=h[0],P=h[1],R=void 0,_=void 0,O=void 0,j=p.queue;if(Array.isArray(j)){var x=["setUserToken","init"].map(function(e){var t=f(j.slice().reverse(),function(t){return g(t,1)[0]===e})||[];return g(t,2)[1]}),T=g(x,2);_=T[0],R=T[1]}return p("getUserToken",null,function(e,t){O=E(t)}),(r||!S(p))&&p("init",m({appId:b,apiKey:P,partial:!0},r)),{$$type:"ais.insights",$$internal:a,$$automatic:s,onStateChange:function(){},subscribe:function(){if(p.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");t.async=!0,t.src=w,t.onerror=function(){o.emit("error",Error(e))},document.body.appendChild(t),p.shouldAddScript=!1}catch(t){p.shouldAddScript=!1,o.emit("error",Error(e))}}},started:function(){p("addAlgoliaAgent","insights-middleware"),i=o.mainHelper;var e,c,l,h,y,v,b,w,P,j,x,T,I,C=p.queue;if(Array.isArray(C)){var A=["setUserToken","init"].map(function(e){var t=f(C.slice().reverse(),function(t){return g(t,1)[0]===e})||[];return g(t,2)[1]}),q=g(A,2);_=q[0],R=q[1]}h=(null==(c=(e=o)._initialResults)||null==(l=c[e.indexName])?void 0:l.state)||{},y=e.mainHelper.state,t={userToken:h.userToken||y.userToken,clickAnalytics:h.clickAnalytics||y.clickAnalytics},s||i.overrideStateWithoutTriggeringChangeEvent(m(m({},i.state),{},{clickAnalytics:!0})),a||o.scheduleSearch();var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=E(e);if(r){var n=i.state.userToken;t?a():setTimeout(a,0)}function a(){i.overrideStateWithoutTriggeringChangeEvent(m(m({},i.state),{},{userToken:r})),n&&n!==e&&o.scheduleSearch()}};function N(e){D(e,!0),p("setUserToken",e)}var k=void 0,F=function(){if(("undefined"==typeof document?"undefined":u(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)}}();k=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 L=t.userToken;null!=r&&r.userToken&&(j=r.userToken),j?N(j):L?N(L):O?N(O):_?N(_):k&&(N(k),(null!=r&&r.useCookie||null!=(x=R)&&x.useCookie)&&(v=k,b=(null==r?void 0:r.cookieDuration)||(null==(T=R)?void 0:T.cookieDuration),(w=new Date).setTime(w.getTime()+(b||15552e6)),P="expires=".concat(w.toUTCString()),document.cookie="_ALGOLIA=".concat(v,";").concat(P,";path=/"))),p("onUserTokenChange",function(e){return D(e,!0)},{immediate:!0});var U=p;
1S(p)&&(U=function(e,t){var r=g(d(o.client),2);return p(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var M=new Set;o.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==I)&&(I=t.queryID,M.clear())}),o.sendEventToInsights=function(e){if(n)n(e,U);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter(function(e){return!M.has(e)});if(0===r.length)return;r.forEach(function(e){return M.add(e)}),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],s&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),U(e.insightsMethod,e.payload)}}},unsubscribe:function(){p("onUserTokenChange",void 0),o.sendEventToInsights=l.l,i&&t&&(i.overrideStateWithoutTriggeringChangeEvent(m(m({},i.state),t)),o.scheduleSearch())}}}}function S(e){var t=g((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function E(e){if(e)return"number"==typeof e?e.toString():e}function R(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 _(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}}var O=r(35882);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=j(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:String(t)}var I=function(e){e&&(window.document.title=e)},C=function(){var e;function t(e){var r=this,n=e.windowTitle,i=e.writeDelay,a=e.createURL,o=e.parseURL,s=e.getLocation,u=e.start,l=e.dispose,d=e.push,f=e.cleanUrlOnDispose;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");x(this,"$$type","ais.browser"),x(this,"windowTitle",void 0),x(this,"writeDelay",void 0),x(this,"_createURL",void 0),x(this,"parseURL",void 0),x(this,"getLocation",void 0),x(this,"writeTimer",void 0),x(this,"_onPopState",void 0),x(this,"inPopState",!1),x(this,"isDisposed",!1),x(this,"latestAcknowledgedHistory",0),x(this,"_start",void 0),x(this,"_dispose",void 0),x(this,"_push",void 0),x(this,"_cleanUrlOnDispose",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=void 0===i?400:i,this._createURL=a,this.parseURL=o,this.getLocation=s,this._start=u,this._dispose=l,this._push=d,this._cleanUrlOnDispose=void 0===f||f,c(function(e){var t=e.window;I(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return e=[{key:"read",value:function(){return this.parseURL({qsModule:O,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;c(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(){I(a),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,a||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}},{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},c(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:O,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,c(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 c(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})}}],function(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,T(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var q=["configure"];function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?D(Object(r),!0).forEach(function(t){k(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function k(e,t,r){var n;return(n=function(e,t){if("object"!=A(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=A(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==A(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F(e){return e.configure,function(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}(e,q)}function L(e){return e!==Object(e)}function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){var n;return(n=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=U(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==U(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,a=n.hostname,o=n.port,s=void 0===o?"":o,u=n.pathname,c=n.hash,l=t.stringify(r),d=""===s?"":":".concat(s);return l?"".concat(i,"//").concat(a).concat(d).concat(u,"?").concat(l).concat(c):"".concat(i,"//").concat(a).concat(d).concat(u).concat(c)}: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,o=e.windowTitle,s=e.getLocation;return new C({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:o,getLocation:void 0===s?function(){return c(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.")}})}:s,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return N(N({},t),{},k({},r,F(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){return N(N({},t),{},k({},r,F(e[r])))},{})}}:n,a=e.$$internal,o=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 H(H({},t),{},W({},r,e[r]))},n),o=i.stateToRoute(a);return r.createURL(o)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:o,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);(void 0===n||!function e(t,r){if(t===r)return!0;
1if(L(t)||L(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;for(var n=0,i=Object.keys(t);n<i.length;n++){var a=i[n];if(!(a in r)||!e(t[a],r[a]))return!1}return!0}(n,a))&&(r.write(a),n=a)},subscribe:function(){t._initialUiState=H(H({},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()}}}},$=r(64265),Q=r(85619),G=r(79593),z=0;function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var V=["initialSearchParameters"],X=["initialRecommendParameters"];function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach(function(t){Z(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Z(e,t,r){var n;return(n=function(e,t){if("object"!=K(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=K(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==K(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ee(e){return function(e){if(Array.isArray(e))return et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return et(e,void 0);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return et(e,t)}}(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 et(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 er(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}var en=(0,$.V)({name:"index-widget"});function ei(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 ea(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,Q.l)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function eo(e,t){var r=t.initialSearchParameters,n=er(t,V);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,Q.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function es(e,t){var r=t.initialRecommendParameters,n=er(t,X);return e.reduce(function(e,t){return!(0,Q.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}let eu=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error(en("The `indexName` option is required."));var t=e.indexName,r=void 0===t?"":t,n=e.indexId,i=void 0===n?r:n,a=e.EXPERIMENTAL_isolated,o=void 0!==a&&a,u=[],c={},l=null,d=null,f=null,h=null,p=null,m=!1,g=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:o,getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return f},getResults:function(){var e;return null!=(e=h)&&e.lastResults?(h.lastResults._state=f.state,h.lastResults):null},getResultsForWidget:function(e){var t;return"recommend"!==e.dependsOn||(0,Q.l)(e)||void 0===e.$$id?this.getResults():null!=(t=f)&&t.lastRecommendResults?f.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return p},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(Q.l).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat(ee(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return o?null:d},createURL:function(e){return"function"==typeof e?l._createURL(Z({},i,e(c))):l._createURL(Z({},i,ea(u,{searchParameters:e,helper:f})))},getWidgets:function(){return u},addWidgets:function(e){var t,r=this;if(!Array.isArray(e))throw Error(en("The `addWidgets` method expects an array of widgets."));var n=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(n.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(en("The widget definition expects a `render` and/or an `init` method."));
1return n.forEach(function(e){!(0,Q.l)(e)&&(l&&"recommend"===e.dependsOn?l._hasRecommendWidget=!0:l?l._hasSearchWidget=!0:"recommend"===e.dependsOn?m=!0:g=!0,"recommend"===e.dependsOn&&(e.$$id=z++))}),u=u.concat(n),l&&n.length&&(ei(f,{state:eo(u,{uiState:c,initialSearchParameters:f.state}),recommendState:es(u,{uiState:c,initialRecommendParameters:f.recommendState}),_uiState:c}),n.forEach(function(e){e.getRenderState&&ec({renderState:e.getRenderState(l.renderState[r.getIndexId()]||{},R(l,r,l._initialUiState)),instantSearchInstance:l,parent:r})}),n.forEach(function(e){e.init&&e.init(R(l,r,l._initialUiState))}),o?null==(t=f)||t.search():l.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(en("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(en("The widget definition expects a `dispose` method."));if((u=u.filter(function(e){return -1===r.indexOf(e)})).forEach(function(e){(0,Q.l)(e)||(l&&"recommend"===e.dependsOn?l._hasRecommendWidget=!0:l?l._hasSearchWidget=!0:"recommend"===e.dependsOn?m=!0:g=!0)}),l&&r.length){var n,i=r.reduce(function(e,r){var n=r.dispose({helper:f,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return n instanceof s.RecommendParameters?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:f.state,cleanedRecommendState:f.recommendState}),a=i.cleanedSearchState,d=i.cleanedRecommendState,h=l.future.preserveSharedStateOnUnmount?eo(u,{uiState:c,initialSearchParameters:new s.SearchParameters({index:this.getIndexName()})}):eo(u,{uiState:ea(u,{searchParameters:a,helper:f}),initialSearchParameters:a});c=ea(u,{searchParameters:h,helper:f}),f.setState(h),f.recommendState=d,u.length&&(o?null==(n=f)||n.search():l.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,y=e.parent,v=e.uiState;if(null===f){l=a,d=y,c=v[i]||{};var b=a.mainHelper,w=eo(u,{uiState:c,initialSearchParameters:new s.SearchParameters({index:r})}),P=es(u,{uiState:c,initialRecommendParameters:new s.RecommendParameters});(f=s(b.getClient(),w.index,w)).recommendState=P,f.search=function(){return o?(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)}}),b):b.search()},f.searchWithoutTriggeringOnStateChange=function(){return b.search()},f.searchForFacetValues=function(e,t,r,n){var i=f.state.setQueryParameters(n);return b.searchForFacetValues(e,t,r,i)};var S=r?f:s({},"__empty_index__",{});h=(o?S:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(y,b)).derive(function(){return G.p.apply(void 0,[b.state].concat(ee(function(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}(n))))},function(){return n.getHelper().recommendState});var E=null==(t=a._initialResults)?void 0:t[this.getIndexId()];if(null!=E&&E.results){var _=new s.SearchResults(new s.SearchParameters(E.state),E.results);h.lastResults=_,f.lastResults=_}if(null!=E&&E.recommendResults){var O=new s.RecommendResults(new s.RecommendParameters({params:E.recommendResults.params}),E.recommendResults.results);h.lastRecommendResults=O,f.lastRecommendResults=O}f.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(Q.l);0!==r.length&&r.forEach(function(t){var r=t.getHelper();ei(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}),e(t.getWidgets())})}(u)}),h.on("search",function(){a.scheduleStalledRender()}),h.on("result",function(e){var t=e.results;a.scheduleRender(),f.lastResults=t,p=null==t?void 0:t._state}),h.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),f.lastRecommendResults=t.results}),u.forEach(function(e){e.getRenderState&&ec({renderState:e.getRenderState(a.renderState[n.getIndexId()]||{},R(a,n,v)),instantSearchInstance:a,parent:n})}),u.forEach(function(e){e.init&&e.init(R(a,n,v))}),f.on("change",function(e){var t=e.state,r=e._uiState;c=ea(u,{searchParameters:t,helper:f},r||{}),a.onStateChange||a.onInternalStateChange()}),E&&a.scheduleRender(),m&&(a._hasRecommendWidget=!0),g&&(a._hasSearchWidget=!0)}},render:function(e){var t,n=this,i=e.instantSearchInstance;"error"===i.status&&!i.mainHelper.hasPendingRequests()&&p&&f.setState(p);var a=this.getResults()||null!=(t=h)&&t.lastRecommendResults||o&&!r?u:u.filter(function(e){return e.shouldRender});(a=a.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:i})}
1)).forEach(function(e){e.getRenderState&&ec({renderState:e.getRenderState(i.renderState[n.getIndexId()]||{},_(i,n,e)),instantSearchInstance:i,parent:n})}),a.forEach(function(e){e.render&&e.render(_(i,n,e))})},dispose:function(){var e,t,r=this;u.forEach(function(e){e.dispose&&f&&e.dispose({helper:f,state:f.state,recommendState:f.recommendState,parent:r})}),l=null,d=null,null==(e=f)||e.removeAllListeners(),f=null,null==(t=h)||t.detach(),h=null},getWidgetUiState:function(e){return u.filter(Q.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},Y(Y({},e),{},Z({},i,Y(Y({},e[i]),c))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return eo(u,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){c=ea(u,{searchParameters:this.getHelper().state,helper:this.getHelper()},c)},setIndexUiState:function(e){var t="function"==typeof e?e(c):e;l.setUiState(function(e){return Y(Y({},e),{},Z({},i,t))})}}};function ec(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=Y(Y({},r.renderState),{},Z({},i,Y(Y({},r.renderState[i]),t)))}var el=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):"")}},ed=r(2708),ef=r(68543),eh=el("Highlight");function ep(e){var t=ef.sn.highlightPreTag,r=ef.sn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var em=r(63844),eg=new RegExp(/\w/i);function ey(e){return(ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ev(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ev(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=ey(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ey(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ey(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ew(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,o,s;return eb(eb({},t),{},{isHighlighted:(a=e[r],o=(null==(n=e[r+1])?void 0:n.isHighlighted)||!0,s=(null==(i=e[r-1])?void 0:i.isHighlighted)||!0,eg.test((0,em.x)(a.value))||s!==o?!a.isHighlighted:!s)})}):e.map(function(e){return eb(eb({},e),{},{isHighlighted:!1})})}var eP=r(27430),eS=el("ReverseHighlight"),eE=el("Snippet"),eR=el("ReverseSnippet"),e_=r(26169);function eO(e){return(eO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ej(e){return(ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?ex(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=ej(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ej(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ej(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ex(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eI=Promise.resolve();function eC(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=eI.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,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 eA(e){return(eA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eq(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 eD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eD(Object(r),!0).forEach(function(t){ek(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eD(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ek(e,t,r){var n;return(n=function(e,t){if("object"!=eA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eA(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eA(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eF(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 eL(e){return(eL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eU(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=eL(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eL(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eL(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eU(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eH(e,t){var r=e[t.getIndexId()]||{};
1t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(Q.l).forEach(function(t){return eH(e,t)})}function eW(e){return(eW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function e$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eB(Object(r),!0).forEach(function(t){eK(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eB(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eQ(e,t){return(eQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eG(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ez(e){return(ez=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eK(e,t,r){return(t=eV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eV(e){var t=function(e,t){if("object"!=eW(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eW(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eW(t)?t:String(t)}var eX=(0,$.V)({name:"instantsearch"});function eJ(){return"#"}var eY={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},eZ=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&eQ(i,e);var t,r,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=ez(i);return e=t?Reflect.construct(r,arguments,ez(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"===eW(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eG(e)}(this,e)});function i(e){if(!(this instanceof i))throw TypeError("Cannot call a class as a function");eK(eG(t=n.call(this)),"client",void 0),eK(eG(t),"indexName",void 0),eK(eG(t),"compositionID",void 0),eK(eG(t),"insightsClient",void 0),eK(eG(t),"onStateChange",null),eK(eG(t),"future",void 0),eK(eG(t),"helper",void 0),eK(eG(t),"mainHelper",void 0),eK(eG(t),"mainIndex",void 0),eK(eG(t),"started",void 0),eK(eG(t),"templatesConfig",void 0),eK(eG(t),"renderState",{}),eK(eG(t),"_stalledSearchDelay",void 0),eK(eG(t),"_searchStalledTimer",void 0),eK(eG(t),"_initialUiState",void 0),eK(eG(t),"_initialResults",void 0),eK(eG(t),"_manuallyResetScheduleSearch",!1),eK(eG(t),"_resetScheduleSearch",void 0),eK(eG(t),"_createURL",void 0),eK(eG(t),"_searchFunction",void 0),eK(eG(t),"_mainHelperSearch",void 0),eK(eG(t),"_hasSearchWidget",!1),eK(eG(t),"_hasRecommendWidget",!1),eK(eG(t),"_insights",void 0),eK(eG(t),"middleware",[]),eK(eG(t),"sendEventToInsights",void 0),eK(eG(t),"status","idle"),eK(eG(t),"error",void 0),eK(eG(t),"scheduleSearch",eC(function(){t.started&&t.mainHelper.search()})),eK(eG(t),"scheduleRender",eC(function(){var e,r=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!(null!=(e=t.mainHelper)&&e.hasPendingRequests())&&(clearTimeout(t._searchStalledTimer),t._searchStalledTimer=null,r&&(t.status="idle",t.error=void 0)),t.mainIndex.render({instantSearchInstance:eG(t)}),t.emit("render")})),eK(eG(t),"onInternalStateChange",eC(function(){var e=t.mainIndex.getWidgetUiState({});t.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),t.setMaxListeners(100);var t,r=e.indexName,a=e.compositionID,o=e.numberLocale,s=e.initialUiState,u=e.routing,d=void 0===u?null:u,f=e.insights,h=void 0===f?void 0:f,p=e.searchFunction,m=e.stalledSearchDelay,g=e.searchClient,y=void 0===g?null:g,v=e.insightsClient,b=void 0===v?null:v,w=e.onStateChange,S=e.future,E=void 0===S?e$(e$({},eY),e.future||{}):S;if(null===y)throw Error(eX("The `searchClient` option is required."));if("function"!=typeof y.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 y.addAlgoliaAgent&&y.addAlgoliaAgent("instantsearch.js (".concat("4.81.0",")")),b&&"function"!=typeof b)throw Error(eX("The `insightsClient` option should be a function."));if(t.client=y,t.future=E,t.insightsClient=b,t.indexName=void 0===r?"":r,t.compositionID=a,t.helper=null,t.mainHelper=null,t.mainIndex=eu({indexName:t.compositionID||t.indexName}),t.onStateChange=void 0===w?null:w,t.started=!1,t.templatesConfig={helpers:{formatNumber:function(e,t){var r;
1return r=Number(t(e)),r.toLocaleString(o)},highlight:function(e,t){try{var r,n,i,a,o,s,u,c,l,d=JSON.parse(e);return t((n=(r=eT(eT({},d),{},{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,u=void 0===s?{}:s,c=((0,ed.E)(o._highlightResult,n)||{}).value,l=eh({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===c?"":c).replace(RegExp(ef.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ef.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r,n,i,a,o,s,u,c,l,d=JSON.parse(e);return t((n=(r=eT(eT({},d),{},{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,u=void 0===s?{}:s,c=((0,ed.E)(o._highlightResult,n)||{}).value,l=eS({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),ep(ew((0,eP.I)(void 0===c?"":c))).replace(RegExp(ef.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ef.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n  The reverseHighlight helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r,n,i,a,o,s,u,c,l,d=JSON.parse(e);return t((n=(r=eT(eT({},d),{},{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,u=void 0===s?{}:s,c=((0,ed.E)(o._snippetResult,n)||{}).value,l=eE({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===c?"":c).replace(RegExp(ef.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ef.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r,n,i,a,o,s,u,c,l,d=JSON.parse(e);return t((n=(r=eT(eT({},d),{},{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,u=void 0===s?{}:s,c=((0,ed.E)(o._snippetResult,n)||{}).value,l=eR({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),ep(ew((0,eP.I)(void 0===c?"":c))).replace(RegExp(ef.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ef.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n  The reverseSnippet helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r,n=JSON.parse(e),i=n.method,a=n.payload;return t((r=eT({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if("object"!==eO(n))throw Error("The insights helper expects the payload to be an object.");try{t=(0,e_.h)(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},t._stalledSearchDelay=void 0===m?200:m,t._searchStalledTimer=null,t._createURL=eJ,t._initialUiState=void 0===s?{}:s,t._initialResults=null,t._insights=h,p&&(t._searchFunction=p),t.sendEventToInsights=l.l,d){var _="boolean"==typeof d?{}:d;_.$$internal=!0,t.use(B(_))}if(h){var O="boolean"==typeof h?{}:h;O.$$internal=!0,t.use(P(O))}return c(function(e){var t,r;return(null==(t=e.window.navigator)||null==(r=t.userAgent)?void 0:r.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&t.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=t.client;n.ua=e.transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function e(t,r,n){var i=R(r,r.mainIndex,r._initialUiState);t.forEach(function(t){var a={};
1if(t.getWidgetRenderState){var o=t.getWidgetRenderState(i);o&&o.widgetParams&&(a=o.widgetParams)}var s=Object.keys(a).filter(function(e){return void 0!==a[e]});n.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:s}),"ais.index"===t.$$type&&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})),t}return r=[{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=e$({$$type:"__unknown__",$$internal:!1,subscribe:l.l,started:l.l,unsubscribe:l.l,onStateChange:l.l},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){return this.use.apply(this,arguments)}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(eX("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,Q.l)(e)&&!e._isolated}))throw Error(eX("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(eX("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(eX("The `start` method has already been called once."));var t=this.mainHelper||s(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(l.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=s(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(!(r instanceof 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.requestParams,o=n.results,s=o&&i?o.map(function(e,t){return eN({indexName:i.index||e.index},null!=a&&a[t]||e.params?{params:eF((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r,n=function(e){if(Array.isArray(e))return e}(r=t.split("="))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{a=(r=r.call(e)).next,!1;for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}
1finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(r,2)||function(e,t){if(e){if("string"==typeof e)return eq(e,2);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eq(e,t)}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];return e[i]=a?decodeURIComponent(a):"",e},{}))}:{})}):[];return e.concat(s)},[])],n=Object.keys(t).reduce(function(e,r){var n=t[r].results;return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var o=Array.isArray(t)?t.map(function(e){return eN(eN({},e),{},{params:eF(e.params)})}):eF(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[o].concat(n)},function(){return i.apply(void 0,[t].concat(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=eN(eN({},e.cache),{},ek({},a,JSON.stringify({results:Object.keys(t).map(function(e){return t[e].results})})))}}}(this.client,this._initialResults),this.mainHelper._recommendCache=Object.keys(n=this._initialResults).reduce(function(e,t){var r=n[t];return r.recommendResults?eM(eM({},e),r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=eC(l.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:eC(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(P({$$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(eX("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){eH("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(eH(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(eX("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(eX("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}],function(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,eV(n.key),n)}}(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(o),e0=r(98514);let e1="7.17.0";var e2=r(1745);function e8(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}var e3=r(25262),e4=r(6822),e6=r(83343),e5=r(37811);function e9(e){return(e9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?e7(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=e9(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=e9(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e9(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e7(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var tt=["react (".concat(n.version,")"),"react-instantsearch (".concat(e1,")"),"react-instantsearch-core (".concat(e1,")")],tr="react-instantsearch-server (".concat(e1,")");function tn(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}var ti=["children"];function ta(e){var t=e.children,r=function(e){var t=(function(e){if(Array.isArray(e))return e}(d=(0,n.useReducer)(function(e){return e+1},0))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{a=(r=r.call(e)).next,!1;for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(d,2)||function(e,t){if(e){if("string"==typeof e)return e8(e,2);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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e8(e,t)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],r=(0,e3.r)(),i=(0,e4.m)(),a=(0,e6.t)().waitForResultsRef,o=null==i?void 0:i.initialResults,s=(0,n.useRef)(e),u=r||o||a,c=(0,n.useRef)(null);if(null!=i&&i.ssrSearchRef&&(c=i.ssrSearchRef),null===c.current){var l,d,f,h=new eZ(e);h._schedule=function(e){h._schedule.queue.push(e),clearTimeout(h._schedule.timer),h._schedule.timer=setTimeout(function(){h._schedule.queue.forEach(function(e){e()}),h._schedule.queue=[]},0)},h._schedule.queue=[],u&&(h._initialResults=o||{},h._manuallyResetScheduleSearch=!0),tn(e.searchClient,[].concat(tt,[r&&tr,(f="undefined"!=typeof window&&(null==(l=window.next)?void 0:l.version)||(void 0!==e5?null==e5.env?void 0:"":void 0))?"next.js (".concat(f,")"):null])),u&&h.start(),r&&r.notifyServer({search:h}),e.routing,c.current=h}var p,m=c.current,g=s.current;g.indexName!==e.indexName&&(m.helper.setIndex(e.indexName||"").search(),s.current=e),g.searchClient!==e.searchClient&&(tn(e.searchClient,[].concat(tt,[r&&tr])),m.mainHelper.setClient(e.searchClient).search(),s.current=e),g.onStateChange!==e.onStateChange&&(m.onStateChange=e.onStateChange,s.current=e),g.searchFunction!==e.searchFunction&&(m._searchFunction=e.searchFunction,s.current=e),g.stalledSearchDelay!==e.stalledSearchDelay&&(m._stalledSearchDelay=null!=(p=e.stalledSearchDelay)?p:200,s.current=e),(0,e2.j)(g.future,e.future)||(m.future=te(te({},eY),e.future),s.current=e);var y=(0,n.useRef)(null);return(0,e0.useSyncExternalStore)((0,n.useCallback)(function(){var e=c.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){null!=i&&i.ssrSearchRef||(clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,i]),function(){return c.current},function(){return c.current})}(function(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}(e,ti));return r.started?n.createElement(a.t.Provider,{value:r},n.createElement(i.m.Provider,{value:r.mainIndex},t,n.createElement(to,{search:r}))):null}function to(e){var t=e.search;return(0,n.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}},70146:(e,t,r)=>{"use strict";var n=r(29447),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t){var r={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,c),d=-1,f=t.charset;if(t.charsetSentinel)for(h=0;h<l.length;++h)0===l[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[h]?f="utf-8":"utf8=%26%2310003%3B"===l[h]&&(f="iso-8859-1"),d=h,h=l.length);for(h=0;h<l.length;++h)if(h!==d){var h,p,m,g=l[h],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;-1===v?(p=t.decoder(g,o.decoder,f,"key"),m=t.strictNullHandling?null:""):(p=t.decoder(g.slice(0,v),o.decoder,f,"key"),m=n.maybeMap(s(g.slice(v+1),t),function(e){return t.decoder(e,o.decoder,f,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===f&&(m=m.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(m=a(m)?[m]:m),i.call(r,p)?r[p]=n.combine(r[p],m):r[p]=m}return r},c=function(e,t,r,n){for(var i=n?t:s(t,r),a=e.length-1;a>=0;--a){var o,u=e[a];if("[]"===u&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&u!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[])[l]=i:"__proto__"!==c&&(o[c]=i):o={0:i}}i=o}return i},l=function(e,t,r,n){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,l=[];
1if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var d=0;r.depth>0&&null!==(s=o.exec(a))&&d<r.depth;){if(d+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+a.slice(s.index)+"]"),c(l,t,r,n)}},d=function(e){if(!e)return o;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");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}};e.exports=function(e,t){var r=d(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof e?u(e,r):e,a=r.plainObjects?Object.create(null):{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],f=l(c,i[c],r,"string"==typeof e);a=n.merge(a,f,r)}return n.compact(a)}},70703:(e,t,r)=>{"use strict";r.d(t,{DX:()=>s,TL:()=>o});var n=r(58076),i=r(80191),a=r(46928);function o(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...a}=e;if(n.isValidElement(r)){var o;let e,s,u=(o=r,(s=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(s=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==n.Fragment&&(c.ref=t?(0,i.t)(t,u):u),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,s=n.Children.toArray(i),u=s.find(c);if(u){let e=u.props.children,i=s.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,a.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}var s=o("Slot"),u=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}},70995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return h},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return c}});let n=r(41503),i=r(78325),a=r(49499),o=r(52971),s=r(45392);function u(e,t,r){let n={},u=1,c=[];for(let l of(0,o.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>l.startsWith(e)),o=l.match(s.PARAMETER_PATTERN);if(e&&o&&o[2]){let{key:t,optional:r,repeat:i}=(0,s.parseMatchedParameter)(o[2]);n[t]={pos:u++,repeat:i,optional:r},c.push("/"+(0,a.escapeStringRegexp)(e)+"([^/]+?)")}else if(o&&o[2]){let{key:e,repeat:t,optional:i}=(0,s.parseMatchedParameter)(o[2]);n[e]={pos:u++,repeat:t,optional:i},r&&o[1]&&c.push("/"+(0,a.escapeStringRegexp)(o[1]));let l=t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&o[1]&&(l=l.substring(1)),c.push(l)}else c.push("/"+(0,a.escapeStringRegexp)(l));t&&o&&o[3]&&c.push((0,a.escapeStringRegexp)(o[3]))}return{parameterizedRoute:c.join(""),groups:n}}function c(e,t){let{includeSuffix:r=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:i=!1}=void 0===t?{}:t,{parameterizedRoute:a,groups:o}=u(e,r,n),s=a;
1return i||(s+="(?:/)?"),{re:RegExp("^"+s+"$"),groups:o}}function l(e){let t,{interceptionMarker:r,getSafeRouteKey:n,segment:i,routeKeys:o,keyPrefix:u,backreferenceDuplicateKeys:c}=e,{key:l,optional:d,repeat:f}=(0,s.parseMatchedParameter)(i),h=l.replace(/\W/g,"");u&&(h=""+u+h);let p=!1;(0===h.length||h.length>30)&&(p=!0),isNaN(parseInt(h.slice(0,1)))||(p=!0),p&&(h=n());let m=h in o;u?o[h]=""+u+l:o[h]=l;let g=r?(0,a.escapeStringRegexp)(r):"";return t=m&&c?"\\k<"+h+">":f?"(?<"+h+">.+?)":"(?<"+h+">[^/]+?)",d?"(?:/"+g+t+")?":"/"+g+t}function d(e,t,r,u,c){let d,f=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),h={},p=[];for(let d of(0,o.removeTrailingSlash)(e).slice(1).split("/")){let e=i.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),o=d.match(s.PARAMETER_PATTERN);if(e&&o&&o[2])p.push(l({getSafeRouteKey:f,interceptionMarker:o[1],segment:o[2],routeKeys:h,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:c}));else if(o&&o[2]){u&&o[1]&&p.push("/"+(0,a.escapeStringRegexp)(o[1]));let e=l({getSafeRouteKey:f,segment:o[2],routeKeys:h,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:c});u&&o[1]&&(e=e.substring(1)),p.push(e)}else p.push("/"+(0,a.escapeStringRegexp)(d));r&&o&&o[3]&&p.push((0,a.escapeStringRegexp)(o[3]))}return{namedParameterizedRoute:p.join(""),routeKeys:h}}function f(e,t){var r,n,i;
1let a=d(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(n=t.includePrefix)&&n,null!=(i=t.backreferenceDuplicateKeys)&&i),o=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(o+="(?:/)?"),{...c(e,t),namedRegex:"^"+o+"$",routeKeys:a.routeKeys}}function h(e,t){let{parameterizedRoute:r}=u(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:i}=d(e,!1,!1,!1,!1);return{namedRegex:"^"+i+(n?"(?:(/.*)?)":"")+"$"}}},71649:(e,t,r)=>{"use strict";e.exports=r(91740)},72502:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}},72918:e=>{"use strict";e.exports=function(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var n=e.map(function(e,r){return{criteria:t.map(function(t){return e[t]}),index:r,value:e}});return n.sort(function(e,t){for(var n=-1;++n<e.criteria.length;){var i=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return -1}return 0}(e.criteria[n],t.criteria[n]);if(i){if(n>=r.length)return i;if("desc"===r[n])return-i;return i}}return e.index-t.index}),n.map(function(e){return e.value})}},73438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(4681),i=r(22784);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},73507:(e,t,r)=>{"use strict";var n=r(24159);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),o=t.getHierarchicalRefinement(n),s=t._getHierarchicalFacetSeparator(i);if(o.length>0&&o[0].split(s).length>1){var u=o[0].split(s).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(s)})},[]);u.forEach(function(n,o){var s=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===o);function c(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(s.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!c(e)});r.length>0&&e.push(r)}return"string"!=typeof t||c(t)||e.push(t),e},[]),d=u[o-1];o>0?s.facetFilters=l.concat(d.attribute+":"+d.value):l.length>0?s.facetFilters=l:delete s.facetFilters,r.push({indexName:e,params:s})})}}),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),o=a._getNumericFilters(e),s=a._getTagFilters(e),u={};return t.length>0&&(u.facets=t.indexOf("*")>-1?["*"]:t),s.length>0&&(u.tagFilters=s),r.length>0&&(u.facetFilters=r),o.length>0&&(u.numericFilters=o),i(n({},e.getQueryParams(),u))},_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),o=a._getNumericFilters(e),s=a._getTagFilters(e),u={};t.length>0&&(u.facets=t.indexOf("*")>-1?["*"]:t),s.length>0&&(u.tagFilters=s),r.length>0&&(u.facetFilters=r),o.length>0&&(u.numericFilters=o);var c=e.getQueryParams();return delete c.highlightPreTag,delete c.highlightPostTag,delete c.index,i(n({},c,u))},_getDisjunctiveFacetSearchParams:function(e,t,r){var o=a._getFacetFilters(e,t,r),s=a._getNumericFilters(e,t),u=a._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};u.length>0&&(c.tagFilters=u);var l=e.getHierarchicalFacetByName(t);return l?c.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,r):c.facets=t,s.length>0&&(c.numericFilters=s),o.length>0&&(c.facetFilters=o),i(n({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];
1return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach(function(e){var a=i[e]||[];t!==n&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var o=e.disjunctiveFacetsRefinements||{};Object.keys(o).sort().forEach(function(e){var r=o[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).sort().forEach(function(i){var a,o,u=(s[i]||[])[0];if(void 0!==u){var c=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(c),d=e._getHierarchicalRootPath(c);if(t===i){if(-1===u.indexOf(l)||!d&&!0===r||d&&d.split(l).length===u.split(l).length)return;d?(o=d.split(l).length-1,u=d):(o=u.split(l).length-2,u=u.slice(0,u.lastIndexOf(l))),a=c.attributes[o]}else o=u.split(l).length-1,a=c.attributes[o];a&&n.push([a+":"+u])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,o=r.attributes.slice(0,a+1);return t.concat(o)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var o=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,r,o){var s=o.isDisjunctiveFacet(e)?o.clearRefinements(e):o,u={facetQuery:t,facetName:e};return"number"==typeof r&&(u.maxFacetHits=r),i(n({},a._getHitsSearchParams(s),u))}};e.exports=a},73798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},74129:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75145:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(58076),i=r(80191),a=r(1538),o=e=>{let{present:t,children:r}=e,o=function(e){var t,r;let[i,o]=n.useState(),u=n.useRef(null),c=n.useRef(e),l=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=s(u.current);l.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=u.current,r=c.current;if(r!==e){let n=l.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,a.N)(()=>{if(i){var e;let t,r=null!=(e=i.ownerDocument.defaultView)?e:window,n=e=>{let n=s(u.current).includes(CSS.escape(e.animationName));if(e.target===i&&n&&(f("ANIMATION_END"),!c.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},a=e=>{e.target===i&&(l.current=s(u.current))};return i.addEventListener("animationstart",a),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(t),i.removeEventListener("animationstart",a),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{u.current=e?getComputedStyle(e):null,o(e)},[])}}(t),u="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),c=(0,i.s)(o.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof r||o.isPresent?n.cloneElement(u,{ref:c}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},75634:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},76056:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,i=t[r];void 0!==i&&i>=n&&(void 0!==e[r]&&delete e[r],e[r]=i)}),e},{})}},76378:(e,t,r)=>{"use strict";r.d(t,{B8:()=>ep,C1:()=>ev,LM:()=>ew,N_:()=>ey,UC:()=>eb,bL:()=>eh,l9:()=>eg,q7:()=>em});var n=r(58076),i=r(109),a=r(34663),o=r(62881),s=r(21952),u=r(78820),c=r(80191),l=r(18586),d=r(75145),f=r(89180),h=r(56516),p=r(87087),m=r(48720),g=r(1538),y=r(7236),v=r(88530),b=r(46928),w="NavigationMenu",[P,S,E]=(0,h.N)(w),[R,_,O]=(0,h.N)(w),[j,x]=(0,a.A)(w,[E,O]),[T,I]=j(w),[C,A]=j(w),q=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,onValueChange:a,defaultValue:o,delayDuration:d=200,skipDelayDuration:f=300,orientation:h="horizontal",dir:p,...m}=e,[g,y]=n.useState(null),v=(0,c.s)(t,e=>y(e)),P=(0,l.jH)(p),S=n.useRef(0),E=n.useRef(0),R=n.useRef(0),[_,O]=n.useState(!0),[j,x]=(0,u.i)({prop:i,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(R.current),t&&O(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>O(!0),f)),null==a||a(e)},defaultProp:null!=o?o:"",caller:w}),T=n.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>x(""),150)},[x]),I=n.useCallback(e=>{window.clearTimeout(E.current),x(e)},[x]),C=n.useCallback(e=>{j===e?window.clearTimeout(E.current):S.current=window.setTimeout(()=>{window.clearTimeout(E.current),x(e)},d)},[j,x,d]);return n.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(E.current),window.clearTimeout(R.current)},[]),(0,b.jsx)(N,{scope:r,isRootMenu:!0,value:j,dir:P,orientation:h,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(S.current),_?C(e):I(e)},onTriggerLeave:()=>{window.clearTimeout(S.current),T()},onContentEnter:()=>window.clearTimeout(E.current),onContentLeave:T,onItemSelect:e=>{x(t=>t===e?"":e)},onItemDismiss:()=>x(""),children:(0,b.jsx)(s.sG.nav,{"aria-label":"Main","data-orientation":h,dir:P,...m,ref:v})})});q.displayName=w;var D="NavigationMenuSub";n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",...c}=e,l=I(D,r),[d,f]=(0,u.i)({prop:n,onChange:i,defaultProp:null!=a?a:"",caller:D});return(0,b.jsx)(N,{scope:r,isRootMenu:!1,value:d,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,b.jsx)(s.sG.div,{"data-orientation":o,...c,ref:t})})}).displayName=D;var N=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:i,dir:a,orientation:o,children:s,value:u,onItemSelect:c,onItemDismiss:l,onTriggerEnter:d,onTriggerLeave:h,onContentEnter:p,onContentLeave:g}=e,[v,w]=n.useState(null),[S,E]=n.useState(new Map),[R,_]=n.useState(null);return(0,b.jsx)(T,{scope:t,isRootMenu:r,rootNavigationMenu:i,value:u,previousValue:(0,m.Z)(u),baseId:(0,f.B)(),dir:a,orientation:o,viewport:v,onViewportChange:w,indicatorTrack:R,onIndicatorTrackChange:_,onTriggerEnter:(0,y.c)(d),onTriggerLeave:(0,y.c)(h),onContentEnter:(0,y.c)(p),onContentLeave:(0,y.c)(g),onItemSelect:(0,y.c)(c),onItemDismiss:(0,y.c)(l),onViewportContentChange:n.useCallback((e,t)=>{E(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{E(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,b.jsx)(P.Provider,{scope:t,children:(0,b.jsx)(C,{scope:t,items:S,children:s})})})},k="NavigationMenuList",F=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=I(k,r),a=(0,b.jsx)(s.sG.ul,{"data-orientation":i.orientation,...n,ref:t});return(0,b.jsx)(s.sG.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,b.jsx)(P.Slot,{scope:r,children:i.isRootMenu?(0,b.jsx)(en,{asChild:!0,children:a}):a})})});F.displayName=k;var L="NavigationMenuItem",[U,M]=j(L),H=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,...a}=e,o=(0,f.B)(),u=n.useRef(null),c=n.useRef(null),l=n.useRef(null),d=n.useRef(()=>{}),h=n.useRef(!1),p=n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){d.current();let t=eo(u.current);t.length&&es("start"===e?t:t.reverse())}},[]),m=n.useCallback(()=>
1{if(u.current){let e=eo(u.current);e.length&&(d.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,b.jsx)(U,{scope:r,value:i||o||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:u,focusProxyRef:l,wasEscapeCloseRef:h,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:m,onContentFocusOutside:m,children:(0,b.jsx)(s.sG.li,{...a,ref:t})})});H.displayName=L;var W="NavigationMenuTrigger",B=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:i,...a}=e,u=I(W,e.__scopeNavigationMenu),l=M(W,e.__scopeNavigationMenu),d=n.useRef(null),f=(0,c.s)(d,l.triggerRef,t),h=el(u.baseId,l.value),p=ed(u.baseId,l.value),m=n.useRef(!1),g=n.useRef(!1),y=l.value===u.value;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(P.ItemSlot,{scope:r,value:l.value,children:(0,b.jsx)(ea,{asChild:!0,children:(0,b.jsx)(s.sG.button,{id:h,disabled:i,"data-disabled":i?"":void 0,"data-state":ec(y),"aria-expanded":y,"aria-controls":p,...a,ref:f,onPointerEnter:(0,o.mK)(e.onPointerEnter,()=>{g.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,o.mK)(e.onPointerMove,ef(()=>{i||g.current||l.wasEscapeCloseRef.current||m.current||(u.onTriggerEnter(l.value),m.current=!0)})),onPointerLeave:(0,o.mK)(e.onPointerLeave,ef(()=>{i||(u.onTriggerLeave(),m.current=!1)})),onClick:(0,o.mK)(e.onClick,()=>{u.onItemSelect(l.value),g.current=y}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];y&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.bL,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,r=e.relatedTarget,n=r===d.current,i=null==t?void 0:t.contains(r);(n||!i)&&l.onFocusProxyEnter(n?"start":"end")}}),u.viewport&&(0,b.jsx)("span",{"aria-owns":p})]})]})});B.displayName=W;var $="navigationMenu.linkSelect",Q=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:i,...a}=e;return(0,b.jsx)(ea,{asChild:!0,children:(0,b.jsx)(s.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:(0,o.mK)(e.onClick,e=>{let t=e.target,r=new CustomEvent($,{bubbles:!0,cancelable:!0});if(t.addEventListener($,e=>null==i?void 0:i(e),{once:!0}),(0,s.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Y,{bubbles:!0,cancelable:!0});(0,s.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});Q.displayName="NavigationMenuLink";var G="NavigationMenuIndicator",z=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=I(G,e.__scopeNavigationMenu),o=!!a.value;return a.indicatorTrack?i.createPortal((0,b.jsx)(d.C,{present:r||o,children:(0,b.jsx)(K,{...n,ref:t})}),a.indicatorTrack):null});z.displayName=G;var K=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...i}=e,a=I(G,r),o=S(r),[u,c]=n.useState(null),[l,d]=n.useState(null),f="horizontal"===a.orientation,h=!!a.value;n.useEffect(()=>{var e;let t=null==(e=o().find(e=>e.value===a.value))?void 0:e.ref.current;t&&c(t)},[o,a.value]);let p=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return eu(u,p),eu(a.indicatorTrack,p),l?(0,b.jsx)(s.sG.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":a.orientation,...i,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:"translateX(".concat(l.offset,"px)")}:{top:0,height:l.size+"px",transform:"translateY(".concat(l.offset,"px)")},...i.style}}):null}),V="NavigationMenuContent",X=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=I(V,e.__scopeNavigationMenu),a=M(V,e.__scopeNavigationMenu),s=(0,c.s)(a.contentRef,t),u=a.value===i.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...n};return i.viewport?(0,b.jsx)(J,{forceMount:r,...l,ref:s}):(0,b.jsx)(d.C,{present:r||u,children:(0,b.jsx)(Z,{"data-state":ec(u),...l,ref:s,onPointerEnter:(0,o.mK)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,o.mK)(e.onPointerLeave,ef(i.onContentLeave)),style:{pointerEvents:!u&&i.isRo
1otMenu?"none":void 0,...l.style}})})});X.displayName=V;var J=n.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=I(V,e.__scopeNavigationMenu);return(0,g.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,g.N)(()=>()=>n(e.value),[e.value,n]),null}),Y="navigationMenu.rootContentDismiss",Z=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:u,onRootContentClose:l,onContentFocusOutside:d,...f}=e,h=I(V,r),m=n.useRef(null),g=(0,c.s)(m,t),y=el(h.baseId,i),v=ed(h.baseId,i),w=S(r),P=n.useRef(null),{onItemDismiss:E}=h;n.useEffect(()=>{let e=m.current;if(h.isRootMenu&&e){let t=()=>{var t;E(),l(),e.contains(document.activeElement)&&(null==(t=a.current)||t.focus())};return e.addEventListener(Y,t),()=>e.removeEventListener(Y,t)}},[h.isRootMenu,e.value,a,E,l]);let R=n.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===h.dir&&e.reverse();let t=e.indexOf(h.value),r=e.indexOf(h.previousValue),n=i===h.value,a=r===e.indexOf(i);if(!n&&!a)return P.current;let o=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(a&&-1!==t)return t>r?"to-start":"to-end"}return null})();return P.current=o,o},[h.previousValue,h.value,h.dir,w,i]);return(0,b.jsx)(en,{asChild:!0,children:(0,b.jsx)(p.qW,{id:v,"aria-labelledby":y,"data-motion":R,"data-orientation":h.orientation,...f,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(Y,{bubbles:!0,cancelable:!0});null==(e=m.current)||e.dispatchEvent(t)},onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{var t;d();let r=e.target;(null==(t=h.rootNavigationMenu)?void 0:t.contains(r))&&e.preventDefault()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=w().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(r)}),i=h.isRootMenu&&(null==(t=h.viewport)?void 0:t.contains(r));(n||i||!h.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eo(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n);if(es(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var r;null==(r=s.current)||r.focus()}}}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),ee="NavigationMenuViewport",et=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=!!I(ee,e.__scopeNavigationMenu).value;return(0,b.jsx)(d.C,{present:r||i,children:(0,b.jsx)(er,{...n,ref:t})})});et.displayName=ee;var er=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:i,...a}=e,u=I(ee,r),l=(0,c.s)(t,u.onViewportChange),f=A(V,e.__scopeNavigationMenu),[h,p]=n.useState(null),[m,g]=n.useState(null),y=h?(null==h?void 0:h.width)+"px":void 0,v=h?(null==h?void 0:h.height)+"px":void 0,w=!!u.value,P=w?u.value:u.previousValue;return eu(m,()=>{m&&p({width:m.offsetWidth,height:m.offsetHeight})}),(0,b.jsx)(s.sG.div,{"data-state":ec(w),"data-orientation":u.orientation,...a,ref:l,style:{pointerEvents:!w&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":v,...a.style},onPointerEnter:(0,o.mK)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,o.mK)(e.onPointerLeave,ef(u.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:r,forceMount:n,...i}]=e,a=P===t;return(0,b.jsx)(d.C,{present:n||a,children:(0,b.jsx)(Z,{...i,ref:(0,c.t)(r,e=>{a&&e&&g(e)})})},t)})})}),en=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=I("FocusGroup",r);return(0,b.jsx)(R.Provider,{scope:r,children:(0,b.jsx)(R.Slot,{scope:r,children:(0,b.jsx)(s.sG.div,{dir:i.dir,...n,ref:t})})})}),ei=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ea=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=_(r),a=I("FocusGroupItem",r);return(0,b.jsx)(R.ItemSlot,{scope:r,children:(0,b.jsx)(s.sG.button,{...n,ref:t,onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if(["Home","End",...ei].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ei.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>es(t)),e.preventDefault()}})})})});function eo(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function es(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eu(e,t){let r=(0,y.c)(t);(0,g.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function ec(e){return e?"open":"closed"}function el(e,t){return"".concat(e,"-trigger-").concat(t)}function ed(e,t){return"".concat(e,"-content-").concat(t)}function ef(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}var eh=q,ep=F,em=H,eg=B,ey=Q,ev=z,eb=X,ew=et},77174:(e,t,r)=>{"use strict";r.d(t,{BL:()=>c,Mj:()=>u,lW:()=>d});var n=r(58076),i=r(92666),a="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function o(e,t,r,i){let o=(0,n.useRef)(t);a(()=>{o.current=t},[t]),(0,n.useEffect)(()=>{let t=(null==r?void 0:r.current)??window;if(!(t&&t.addEventListener))return;let n=e=>{o.current(e)};return t.addEventListener(e,n,i),()=>{t.removeEventListener(e,n,i)}},[e,r,i])}var s="undefined"==typeof window;function u(e,t,r={}){let{initializeWithValue:i=!0}=r,c=(0,n.useCallback)(e=>r.serializer?r.serializer(e):JSON.stringify(e),[r]),l=(0,n.useCallback)(e=>{let n;if(r.deserializer)return r.deserializer(e);if("undefined"===e)return;let i=t instanceof Function?t():t;try{n=JSON.parse(e)}catch(e){return console.error("Error parsing JSON:",e),i}return n},[r,t]),d=(0,n.useCallback)(()=>{let r=t instanceof Function?t():t;if(s)return r;try{let t=window.localStorage.getItem(e);return t?l(t):r}catch(t){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,t),r}},[t,e,l]),[f,h]=(0,n.useState)(()=>i?d():t instanceof Function?t():t),p=function(e){let t=(0,n.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return a(()=>{t.current=e},[e]),(0,n.useCallback)((...e)=>t.current(...e),[t])}(t=>{s&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let r=t instanceof Function?t(d()):t;window.localStorage.setItem(e,c(r)),h(r),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(t){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,t)}});(0,n.useEffect)(()=>{h(d())},[e]);let m=(0,n.useCallback)(t=>{null!=t&&t.key&&t.key!==e||h(d())},[e,d]);return o("storage",m),o("local-storage",m),[f,p]}function c(e,t){var r;let i="current"in e,a=i?t:e,{threshold:o=0,root:s=null,rootMargin:u="0%",freezeOnceVisible:c=!1,initialIsIntersecting:l=!1}=a??{}
1,[d,f]=(0,n.useState)(null),h=i?e.current:d,[p,m]=(0,n.useState)(()=>({isIntersecting:l,entry:void 0})),g=(0,n.useRef)();g.current=null==a?void 0:a.onChange;let y=(null==(r=p.entry)?void 0:r.isIntersecting)&&c;(0,n.useEffect)(()=>{let e;if(!h||!("IntersectionObserver"in window)||y)return;let t=new IntersectionObserver(r=>{let n=Array.isArray(t.thresholds)?t.thresholds:[t.thresholds];r.forEach(t=>{let r=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);m({isIntersecting:r,entry:t}),g.current&&g.current(r,t),r&&c&&e&&(e(),e=void 0)})},{threshold:o,root:s,rootMargin:u});return t.observe(h),()=>{t.disconnect()}},[h,JSON.stringify(o),s,u,y,c]);let v=(0,n.useRef)(null);if((0,n.useEffect)(()=>{var e;h||null==(e=p.entry)||!e.target||c||y||v.current===p.entry.target||(v.current=p.entry.target,m({isIntersecting:l,entry:void 0}))},[h,p.entry,c,y,l]),i)return p.entry;let b=[f,!!p.isIntersecting,p.entry];return b.ref=b[0],b.isIntersecting=b[1],b.entry=b[2],b}var l="undefined"==typeof window;function d(e={}){let{initializeWithValue:t=!0}=e;l&&(t=!1);let[r,s]=(0,n.useState)(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}),u=function(e,t=500,r){let a=(0,n.useRef)();var o=()=>{a.current&&a.current.cancel()};let s=(0,n.useRef)(o);s.current=o,(0,n.useEffect)(()=>()=>{s.current()},[]);let u=(0,n.useMemo)(()=>{let r=i(e,t,void 0),n=(...e)=>r(...e);return n.cancel=()=>{r.cancel()},n.isPending=()=>!!a.current,n.flush=()=>r.flush(),n},[e,t,void 0]);return(0,n.useEffect)(()=>{a.current=i(e,t,r)},[e,t,r]),u}(s,null==e?void 0:e.debounceDelay);function c(){((null==e?void 0:e.debounceDelay)?u:s)({width:window.innerWidth,height:window.innerHeight})}return o("resize",c),a(()=>{c()},[]),r}},77242:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(58076),i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},77535:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:a}=e,o=a||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+o+(n.startsWith("/_next/static/media/")&&1?"&dpl=dpl_92sWMyUr7jyDBj4744XDsDSQLvii":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},78196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let n=r(51018),i=r(1792)},78354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeAttributeString:function(){return s},htmlEscapeJsonString:function(){return o}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,i={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},a=/[&"'<>]/g;function o(e){return e.replace(n,e=>r[e])}function s(e){return e.replace(a,e=>i[e])}},78820:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n,i=r(58076),a=r(1538),o=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||a.N;function s({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,s,u]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),a=i.useRef(r),s=i.useRef(t);return o(()=>{s.current=t},[t]),i.useEffect(()=>{a.current!==r&&(s.current?.(r),a.current=r)},[r,a]),[r,n,s]}({defaultProp:t,onChange:r}),c=void 0!==e,l=c?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,n])}return[l,i.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else s(t)},[c,e,s,u])]}Symbol("RADIX:SYNC_STATE")},79201:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return g}});let n=r(39445),i=r(24966),a=r(46928),o=n._(r(109)),s=i._(r(58076)),u=r(52904),c=r(93824),l=r(47876),d=r(78354),f=new Map,h=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:s="",strategy:u="afterInteractive",onError:l,stylesheets:d}=e,p=r||t;if(p&&h.has(p))return;if(f.has(t)){h.add(p),f.get(t).then(n,l);return}let m=()=>{i&&i(),h.add(p)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});a?(g.innerHTML=a.__html||"",m()):s?(g.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",m()):t&&(g.src=t,f.set(t,y)),(0,c.setAttributesFromProps)(g,e),"worker"===u&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",u),d&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(g)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>p(e))}):p(e)}function g(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:c="afterInteractive",onError:f,stylesheets:m,...g}=e,{updateScripts:y,scripts:v,getIsSsr:b,appDir:w,nonce:P}=(0,s.useContext)(u.HeadManagerContext);P=g.nonce||P;let S=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;S.current||(i&&e&&h.has(e)&&i(),S.current=!0)},[i,t,r]);let E=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{if(!E.current){if("afterInteractive"===c)p(e);else"lazyOnload"===c&&("complete"===document.readyState?(0,l.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>p(e))}));E.current=!0}},[e,c]),("beforeInteractive"===c||"worker"===c)&&(y?(v[c]=(v[c]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:f,...g,nonce:P}]),y(v)):b&&b()?h.add(t||r):b&&!b()&&p({...e,nonce:P})),w){if(m&&m.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===c)if(!r)return g.dangerouslySetInnerHTML&&(g.children=g.dangerouslySetInnerHTML.__html,delete g.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...g,id:t}]))+")"}});else return o.default.preload(r,g.integrity?{as:"script",integrity:g.integrity,nonce:P,crossOrigin:g.crossOrigin}:{as:"script",nonce:P,crossOrigin:g.crossOrigin}),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([r,{...g,id:t}]))+")"}});"afterInteractive"===c&&r&&o.default.preload(r,g.integrity?{as:"script",integrity:g.integrity,nonce:P,crossOrigin:g.crossOrigin}:{as:"script",nonce:P,crossOrigin:g.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79593:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{p:()=>c});var i=["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(r),!0).forEach(function(t){var i,a,o;i=e,a=t,o=r[t],(a=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=function(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}(t,i);return e.setQueryParameters(r)},u=function(e,t){var r=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t});return r.length>0?e.setQueryParameters({ruleContexts:r}):e},c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r,n,i,a,c,l,d,f;return s((f=u((r=e.setQueryParameters({hierarchicalFacetsRefinements:o(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(o({},i.numericRefinements),t.numericRefinements)}),c=a.setQueryParameters({disjunctiveFacetsRefinements:o(o({},a.disjunctiveFacetsRefinements),t.disjunctiveFacetsRefinements)}),l=c.setQueryParameters({facetsExcludes:o(o({},c.facetsExcludes),t.facetsExcludes)}),d=l.setQueryParameters({facetsRefinements:o(o({},l.facetsRefinements),t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},d)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},f)),t)})}},80191:(e,t,r)=>{"use strict";r.d(t,{s:()=>o,t:()=>a});var n=r(58076);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}function o(...e){return n.useCallback(a(...e),e)}},80286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{compileNonPath:function(){return l},matchHas:function(){return c},parseDestination:function(){return d},prepareDestination:function(){return f}});let n=r(49499),i=r(36559),a=r(78325),o=r(27558),s=r(17921);function u(e){return e.replace(/__ESC_COLON_/gi,":")}function c(e,t,r,n){void 0===r&&(r=[]),void 0===n&&(n=[]);let i={},a=r=>{let n,a=r.key;switch(r.type){case"header":a=a.toLowerCase(),n=e.headers[a];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,o.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[a];break;case"host":{let{host:t}=(null==e?void 0:e.headers)||{};n=null==t?void 0:t.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return i[function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(a)]=n,!0;if(n){let e=RegExp("^"+r.value+"$"),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEac
1h(e=>{i[e]=t.groups[e]}):"host"===r.type&&t[0]&&(i.host=t[0])),!0}return!1};return!(!r.every(e=>a(e))||n.some(e=>a(e)))&&i}function l(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(":"+r)&&(e=e.replace(RegExp(":"+r+"\\*","g"),":"+r+"--ESCAPED_PARAM_ASTERISKS").replace(RegExp(":"+r+"\\?","g"),":"+r+"--ESCAPED_PARAM_QUESTION").replace(RegExp(":"+r+"\\+","g"),":"+r+"--ESCAPED_PARAM_PLUS").replace(RegExp(":"+r+"(?!\\w)","g"),"--ESCAPED_PARAM_COLON"+r));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,s.safeCompile)("/"+e,{validate:!1})(t).slice(1)}function d(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(":"+(0,n.escapeStringRegexp)(r),"g"),"__ESC_COLON_"+r));let r=(0,i.parseUrl)(t),a=r.pathname;a&&(a=u(a));let o=r.href;o&&(o=u(o));let s=r.hostname;s&&(s=u(s));let c=r.hash;c&&(c=u(c));let l=r.search;return l&&(l=u(l)),{...r,pathname:a,hostname:s,href:o,hash:c,search:l}}function f(e){let t,r,n=d(e),{hostname:i,query:o,search:c}=n,f=n.pathname;n.hash&&(f=""+f+n.hash);let h=[],p=[];for(let e of((0,s.safePathToRegexp)(f,p),p))h.push(e.name);if(i){let e=[];for(let t of((0,s.safePathToRegexp)(i,e),e))h.push(t.name)}let m=(0,s.safeCompile)(f,{validate:!1});for(let[r,n]of(i&&(t=(0,s.safeCompile)(i,{validate:!1})),Object.entries(o)))Array.isArray(n)?o[r]=n.map(t=>l(u(t),e.params)):"string"==typeof n&&(o[r]=l(u(n),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>h.includes(e)))for(let t of g)t in o||(o[t]=e.params[t]);if((0,a.isInterceptionRouteAppPath)(f))for(let t of f.split("/")){let r=a.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[i,a]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=i,n.hash=(a?"#":"")+(a||""),n.search=c?l(c,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:o,parsedDestination:n}}},81880:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(58076),i=r(1538);function a(e){let[t,r]=n.useState(void 0);return(0,i.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},82531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPathMatch",{enumerable:!0,get:function(){return i}});let n=r(18534);function i(e,t){let r=[],i=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),a=(0,n.regexpToFunction)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(i.source),i.flags):i,r);return(e,n)=>{if("string"!=typeof e)return!1;let i=a(e);if(!i)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete i.params[e.name];return{...n,...i.params}}}},83343:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(58076),i=(0,n.createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1});function a(){return(0,n.useContext)(i)}},85604:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return i},normalizeTokensForRegexp:function(){return a},stripParameterSeparators:function(){return o}});let r="_NEXTSEP_";function n(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function i(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${r}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${r}`)}function a(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function o(e){let t={};for(let[n,i]of Object.entries(e))"string"==typeof i?t[n]=i.replace(RegExp(`^${r}`),""):Array.isArray(i)?t[n]=i.map(e=>"string"==typeof e?e.replace(RegExp(`^${r}`),""):e):t[n]=i;return t}},85619:(e,t,r)=>{"use strict";function n(e){return"ais.index"===e.$$type}r.d(t,{l:()=>n})},87087:(e,t,r)=>{"use strict";r.d(t,{qW:()=>f});var n,i=r(58076),a=r(62881),o=r(21952),s=r(80191),u=r(7236),c=r(46928),l="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>
1{var r,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:b,onDismiss:w,...P}=e,S=i.useContext(d),[E,R]=i.useState(null),_=null!=(f=null==E?void 0:E.ownerDocument)?f:null==(r=globalThis)?void 0:r.document,[,O]=i.useState({}),j=(0,s.s)(t,e=>R(e)),x=Array.from(S.layers),[T]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),I=x.indexOf(T),C=E?x.indexOf(E):-1,A=S.layersWithOutsidePointerEventsDisabled.size>0,q=C>=I,D=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,u.c)(e),a=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){p("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}},[r,n]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,r=[...S.branches].some(e=>e.contains(t));q&&!r&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},_),N=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,u.c)(e),a=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!a.current&&p("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...S.branches].some(e=>e.contains(t))&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==w||w())},_);return!function(e,t=globalThis?.document){let r=(0,u.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{C===S.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},_),i.useEffect(()=>{if(E)return m&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(n=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(E)),S.layers.add(E),h(),()=>{m&&1===S.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=n)}},[E,_,m,S]),i.useEffect(()=>()=>{E&&(S.layers.delete(E),S.layersWithOutsidePointerEventsDisabled.delete(E),h())},[E,S]),i.useEffect(()=>{let e=()=>O({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,c.jsx)(o.sG.div,{...P,ref:j,style:{pointerEvents:A?q?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.mK)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,a.mK)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,a.mK)(e.onPointerDownCapture,D.onPointerDownCapture)})});function h(){let e=new CustomEvent(l);document.dispatchEvent(e)}function p(e,t,r,n){let{discrete:i}=n,a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),i?(0,o.hO)(a,s):a.dispatchEvent(s)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>{let r=i.useContext(d),n=i.useRef(null),a=(0,s.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(o.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},88530:(e,t,r)=>{"use strict";r.d(t,{bL:()=>u,s6:()=>s});var n=r(58076),i=r(21952),a=r(46928),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.sG.span,{...e,ref:t,style:{...o,...e.style}}));s.displayName="VisuallyHidden";var u=s},89180:(e,t,r)=>{"use strict";r.d(t,{B:()=>u});var n,i=r(58076),a=r(1538),o=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function u(e){let[t,r]=i.useState(o());return(0,a.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},90964:(e,t,r)=>{"use strict";
1var n=r(9276),i=r(58276),a=r(62864),o=r(65400),s=r(5532);function u(e,t,r,i){return new n(e,t,r,i)}u.version=r(65649),u.AlgoliaSearchHelper=n,u.SearchParameters=o,u.RecommendParameters=i,u.SearchResults=s,u.RecommendResults=a,e.exports=u},91184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(78196),i=r(49030);function a(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},91740:(e,t,r)=>{"use strict";var n=r(58076),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})},[e,r,t]),o(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},92666:(e,t,r)=>{var n=0/0,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=c||l||Function("return this")(),f=Object.prototype.toString,h=Math.max,p=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return n;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var c=o.test(e);return c||s.test(e)?u(e.slice(2),c?2:8):a.test(e)?n:+e}e.exports=function(e,t,r){var n,i,a,o,s,u,c=0,l=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=n,a=i;return n=i=void 0,c=t,o=e.apply(a,r)}function b(e){var r=e-u,n=e-c;return void 0===u||r>=t||r<0||d&&n>=a}function w(){var e,r,n,i=m();if(b(i))return P(i);s=setTimeout(w,(e=i-u,r=i-c,n=t-e,d?p(n,a-r):n))}function P(e){return(s=void 0,f&&n)?v(e):(n=i=void 0,o)}function S(){var e,r=m(),a=b(r);if(n=arguments,i=this,u=r,a){if(void 0===s)return c=e=u,s=setTimeout(w,t),l?v(e):o;if(d)return s=setTimeout(w,t),v(u)}return void 0===s&&(s=setTimeout(w,t)),o}return t=y(t)||0,g(r)&&(l=!!r.leading,a=(d="maxWait"in r)?h(y(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=u=i=s=void 0},S.flush=function(){return void 0===s?o:P(m())},S}},93332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(58076);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93601:(e,t,r)=>{"use strict";let n;r.d(t,{Ay:()=>Y});var i=r(58076),a=r(71649),o=r(35463);let s=new WeakMap,u=()=>{},c=u(),l=Object,d=e=>e===c,f=(e,t)=>({...e,...t}),h={},p={},m="undefined",g=typeof window!=m,y=typeof document!=m,v=g&&"Deno"in window,b=(e,t)=>{let r=s.get(e);return[()=>!d(t)&&e.get(t)||h,n=>{if(!d(t)){let i=e.get(t);t in p||(p[t]=i),r[5](t,f(i,n),i||h)}},r[6],()=>!d(t)&&t in p?p[t]:!d(t)&&e.get(t)||h]},w=!0,[P,S]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],E={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),P("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>
1{w=!0,e()},r=()=>{w=!1};return P("online",t),P("offline",r),()=>{S("online",t),S("offline",r)}}},R=!i.useId,_=!g||v,O=_?i.useEffect:i.useLayoutEffect,j="undefined"!=typeof navigator&&navigator.connection,x=!_&&j&&(["slow-2g","2g"].includes(j.effectiveType)||j.saveData),T=new WeakMap,I=(e,t)=>e==="[object ".concat(t,"]"),C=0,A=e=>{let t,r,n=typeof e,i=l.prototype.toString.call(e),a=I(i,"Date"),o=I(i,"RegExp"),s=I(i,"Object");if(l(e)!==e||a||o)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=T.get(e))return t;if(t=++C+"~",T.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=A(e[r])+",";T.set(e,t)}if(s){t="#";let n=l.keys(e).sort();for(;!d(r=n.pop());)d(e[r])||(t+=r+":"+A(e[r])+",");T.set(e,t)}}return t},q=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?A(e):"",t]},D=0,N=()=>++D;async function k(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i,a,o]=t,u=f({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),l=u.populateCache,h=u.rollbackOnError,p=u.optimisticData,m=u.throwOnError;if("function"==typeof i){let e=[];for(let t of n.keys())!/^\$(inf|sub)\$/.test(t)&&i(n.get(t)._k)&&e.push(t);return Promise.all(e.map(g))}return g(i);async function g(e){let r,[i]=q(e);if(!i)return;let[o,f]=b(n,i),[g,y,v,w]=s.get(n),P=()=>{let t=g[i];return("function"==typeof u.revalidate?u.revalidate(o().data,e):!1!==u.revalidate)&&(delete v[i],delete w[i],t&&t[0])?t[0](2).then(()=>o().data):o().data};if(t.length<3)return P();let S=a,E=!1,R=N();y[i]=[R,0];let _=!d(p),O=o(),j=O.data,x=O._c,T=d(x)?j:x;if(_&&f({data:p="function"==typeof p?p(T,j):p,_c:T}),"function"==typeof S)try{S=S(T)}catch(e){r=e,E=!0}if(S&&"function"==typeof S.then){let e;if(S=await S.catch(e=>{r=e,E=!0}),R!==y[i][0]){if(E)throw r;return S}E&&_&&(e=r,"function"==typeof h?h(e):!1!==h)&&(l=!0,f({data:T,_c:c}))}if(l&&!E&&("function"==typeof l?f({data:l(S,T),error:c,_c:c}):f({data:S,error:c,_c:c})),y[i][1]=N(),Promise.resolve(P()).then(()=>{f({_c:c})}),E){if(m)throw r;return}return S}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},L=(e,t)=>{if(!s.has(e)){let r=f(E,t),n=Object.create(null),i=k.bind(c,e),a=u,o=Object.create(null),l=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=o[t];if(i)for(let e of i)e(r,n)},h=()=>{if(!s.has(e)&&(s.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,d,l]),!_)){let t=r.initFocus(setTimeout.bind(c,F.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,F.bind(c,n,1)));a=()=>{t&&t(),i&&i(),s.delete(e)}}};return h(),[e,i,h,a]}return[e,s.get(e)[4]]},U=o.j,[M,H]=L(new Map),W=f({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(d(a)||!(o>a))&&setTimeout(n,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:x?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:x?5e3:3e3,compare:U,isPaused:()=>!1,cache:M,mutate:H,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=y&&document.visibilityState;return d(e)||"hidden"!==e}}),B=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=f(i,o))}return r},$=(0,i.createContext)({}),Q=g&&window.__SWR_DEVTOOLS_USE__,G=(Q?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=q(t),[,,,i]=s.get(M);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return d(a)?r(...e):(delete i[n],a)});return e(t,i,n)});Q&&(window.__SWR_DEVTOOLS_REACT__=i);let z=()=>{},K=z();new WeakMap;let V=i.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),X={dedupe:!0},J=Promise.resolve(c);l.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)($),n="function"==typeof t,a=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),o=(0,i.useMemo)(()=>n?a:B(r,a),[n,r,a]),s=a&&a.provider,u=(0,i.useRef)(c);s&&!u.current&&(u.current=L(s(o.cache||M),a));let l=u.current;return l&&(o.cache=l[0],o.mutate=l[1]),O(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,i.createElement)($.Provider,f(e,{value:o}))},"defaultValue",{value:W});let Y=(n=(e,t,r)=>{let{cache:n,compare:o,suspense:u,fallbackData:l,revalidateOnMount:h,revalidateIfStale:p,refreshInterval:y,refreshWhenHidden:v,refreshWhenOffline:w,keepPreviousData:P}=r,[S,E,j,x]=s.get(n),[T,I]=q(e),C=(0,i.useRef)(!1),A=(0,i.useRef)(!1),D=(0,i.useRef)(T),F=(0,i.useRef)(t),L=(0,i.useRef)(r),U=()=>L.current.isVisible()&&L.current.isOnline(),[M,H,W,B]=b(n,T),$=(0,i.useRef)({}).current,Q=d(l)?d(r.fallback)?c:r.fallback[T]:l,G=(e,t)=>{for(let r in $)if("data"===r){if(!o(e[r],t[r])&&(!d(e[r])||!o(ei,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},z=(0,i.useMemo)(()=>{let e=!!T&&!!t&&(d(h)?!L.current.isPaused()&&!u&&!1!==p:h),r=t=>{let r=f(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=M(),i=B(),a=r(n),o=n===i?a:r(i),s=a;return[()=>{let e=r(M());return G(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>o]},[n,T]),K=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>W(T,(t,r)=>{G(r,t)||e()}),[n,T]),z[0],z[1]),Y=!C.current,Z=S[T]&&S[T].length>0,ee=K.data,et=d(ee)?Q&&"function"==typeof Q.then?V(Q):Q:ee,er=K.error,en=(0,i.useRef)(et),ei=P?d(ee)?d(en.current)?et:en.current:ee:et,ea=(!Z||!!d(er))&&(Y&&!d(h)?h:!L.current.isPaused()&&(u?!d(et)&&p:d(et)||p)),eo=!!(T&&t&&Y&&ea),es=d(K.isValidating)?eo:K.isValidating,eu=d(K.isLoading)?eo:K.isLoading,ec=(0,i.useCallback)(async e=>{let t,n,i=F.current;if(!T||!i||A.current||L.current.isPaused())return!1;let a=!0,s=e||{},u=!j[T]||!s.dedupe,l=()=>R?!A.current&&T===D.current&&C.current:T===D.current,f={isValidating:!1,isLoading:!1},h=()=>{H(f)},p=()=>{let e=j[T];e&&e[1]===n&&delete j[T]},m={isValidating:!0};d(M().data)&&(m.isLoading=!0);try{if(u&&(H(m),r.loadingTimeout&&d(M().data)&&setTimeout(()=>{a&&l()&&L.current.onLoadingSlow(T,r)},r.loadingTimeout),j[T]=[i(I),N()]),[t,n]=j[T],t=await t,u&&setTimeout(p,r.dedupingInterval),!j[T]||j[T][1]!==n)return u&&l()&&L.current.onDiscarded(T),!1;f.error=c;let e=E[T];if(!d(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),u&&l()&&L.current.onDiscarded(T),!1;let s=M().data;f.data=o(s,t)?s:t,u&&l()&&L.current.onSuccess(t,T,r)}catch(r){p();let e=L.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,u&&l())&&(e.onError(r,T,e),(!0===t||"function"==typeof t&&t(r))&&(!L.current.revalidateOnFocus||!L.current.revalidateOnReconnect||U())&&e.onErrorRetry(r,T,e,e=>{let t=S[T];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))}return a=!1,h(),!0},[T,n]),el=(0,i.useCallback)((...e)=>k(n,D.current,...e),[]);if(O(()=>{F.current=t,L.current=r,d(ee)||(en.current=ee)}),O(()=>{if(!T)return;let e=ec.bind(c,X),t=0;L.current.revalidateOnFocus&&(t=Date.now()+L.current.focusThrottleInterval);let r=((e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(T,S,(r,n={})=>
1{if(0==r){let r=Date.now();L.current.revalidateOnFocus&&r>t&&U()&&(t=r+L.current.focusThrottleInterval,e())}else if(1==r)L.current.revalidateOnReconnect&&U()&&e();else if(2==r)return ec();else if(3==r)return ec(n)});return A.current=!1,D.current=T,C.current=!0,H({_k:I}),ea&&!j[T]&&(d(et)||_?e():(e=>g&&typeof window.requestAnimationFrame!=m?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{A.current=!0,r()}},[T]),O(()=>{let e;function t(){let t="function"==typeof y?y(M().data):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!M().error&&(v||L.current.isVisible())&&(w||L.current.isOnline())?ec(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[y,v,w,T]),(0,i.useDebugValue)(ei),u){let e=T&&d(et);if(!R&&_&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(F.current=t,L.current=r,A.current=!1);let n=x[T];if(V(!d(n)&&e?el(n):J),!d(er)&&e)throw er;let i=e?ec(X):J;!d(ei)&&e&&(i.status="fulfilled",i.value=!0),V(i)}return{mutate:el,get data(){return $.data=!0,ei},get error(){return $.error=!0,er},get isValidating(){return $.isValidating=!0,es},get isLoading(){return $.isLoading=!0,eu}}},function(...e){let t=(()=>{let e=(0,i.useContext)($);return(0,i.useMemo)(()=>f(W,e),[e])})(),[r,a,o]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],s=B(t,o),u=n,{use:c}=s,l=(c||[]).concat(G);for(let e=l.length;e--;)u=l[e](u);return u(r,a||s.fetcher||null,s)})},93756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(39445);let n=r(46928);r(58076);let i=r(98359);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,i.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94078:(e,t,r)=>{"use strict";r.d(t,{vC:()=>w});var n=r(58076);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r(46928);var a=["shift","alt","meta","mod","ctrl"],o={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function s(e){return(e&&o[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function u(e,t){return void 0===t&&(t=","),e.split(t)}function c(e,t,r){void 0===t&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(e){return s(e)}),o={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},u=n.filter(function(e){return!a.includes(e)});return i({},o,{keys:u,description:r,hotkey:e})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.ke
1y&&f([s(e.key),s(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&h([s(e.key),s(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){l.clear()});var l=new Set;function d(e){return Array.isArray(e)}function f(e){var t=Array.isArray(e)?e:[e];l.has("meta")&&l.forEach(function(e){return!a.includes(e)&&l.delete(e.toLowerCase())}),t.forEach(function(e){return l.add(e.toLowerCase())})}function h(e){var t=Array.isArray(e)?e:[e];"meta"===e?l.clear():t.forEach(function(e){return l.delete(e.toLowerCase())})}function p(e,t){void 0===t&&(t=!1);var r,n=e.target,i=e.composed,a=null;return(a=(r=n).tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")&&i?e.composedPath()[0]&&e.composedPath()[0].tagName:n&&n.tagName,d(t))?!!(a&&t&&t.some(function(e){var t;return e.toLowerCase()===(null==(t=a)?void 0:t.toLowerCase())})):!!(a&&t&&t)}var m=function(e,t,r){void 0===r&&(r=!1);var n,i=t.alt,a=t.meta,o=t.mod,u=t.shift,c=t.ctrl,f=t.keys,h=e.key,p=e.code,m=e.ctrlKey,g=e.metaKey,y=e.shiftKey,v=e.altKey,b=s(p),w=h.toLowerCase();if(!(null!=f&&f.includes(b))&&!(null!=f&&f.includes(w))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(b))return!1;if(!r){if(!v===i&&"alt"!==w||!y===u&&"shift"!==w)return!1;if(o){if(!g&&!m)return!1}else if(!g===a&&"meta"!==w&&"os"!==w||!m===c&&"ctrl"!==w&&"control"!==w)return!1}return!!(f&&1===f.length&&(f.includes(w)||f.includes(b)))||(f?(void 0===n&&(n=","),(d(f)?f:f.split(n)).every(function(e){return l.has(e.trim().toLowerCase())})):!f||!1)},g=(0,n.createContext)(void 0),y=(0,n.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),v=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},b="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function w(e,t,r,i){var a,o=(0,n.useState)(null),l=o[0],w=o[1],P=(0,n.useRef)(!1),S=r instanceof Array?i instanceof Array?void 0:i:r,E=d(e)?e.join(null==S?void 0:S.splitKey):e,R=r instanceof Array?r:i instanceof Array?i:void 0,_=(0,n.useCallback)(t,null!=R?R:[]),O=(0,n.useRef)(_);R?O.current=_:O.current=t;var j=(!function e(t,r){return t&&r&&"object"==typeof t&&"object"==typeof r?Object.keys(t).length===Object.keys(r).length&&Object.keys(t).reduce(function(n,i){return n&&e(t[i],r[i])},!0):t===r}((a=(0,n.useRef)(void 0)).current,S)&&(a.current=S),a.current),x=(0,n.useContext)(y).enabledScopes,T=(0,n.useContext)(g);return b(function(){var e;if((null==j?void 0:j.enabled)!==!1&&(e=null==j?void 0:j.scopes,0===x.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!e||x.some(function(t){return e.includes(t)})||x.includes("*"))){var t=function(e,t){var r;if(void 0===t&&(t=!1),!p(e,["input","textarea","select"])||p(e,null==j?void 0:j.enableOnFormTags)){if(null!==l){var n=l.getRootNode();if((n instanceof Document||n instanceof ShadowRoot)&&n.activeElement!==l&&!l.contains(n.activeElement))return void v(e)}(null==(r=e.target)||!r.isContentEditable||null!=j&&j.enableOnContentEditable)&&u(E,null==j?void 0:j.splitKey).forEach(function(r){var n,i,a,o=c(r,null==j?void 0:j.combinationKey);if(m(e,o,null==j?void 0:j.ignoreModifiers)||null!=(a=o.keys)&&a.includes("*")){if(null!=j&&null!=j.ignoreEventWhen&&j.ignoreEventWhen(e)||t&&P.current)return;if(("function"==typeof(n=null==j?void 0:j.preventDefault)&&n(e,o)||!0===n)&&e.preventDefault(),"function"==typeof(i=null==j?void 0:j.enabled)?!i(e,o):!0!==i&&void 0!==i)return void v(e);O.current(e,o),t||(P.current=!0)}})}}
1,r=function(e){void 0!==e.key&&(f(s(e.code)),((null==j?void 0:j.keydown)===void 0&&(null==j?void 0:j.keyup)!==!0||null!=j&&j.keydown)&&t(e))},n=function(e){void 0!==e.key&&(h(s(e.code)),P.current=!1,null!=j&&j.keyup&&t(e,!0))},i=l||(null==S?void 0:S.document)||document;return i.addEventListener("keyup",n,null==S?void 0:S.eventListenerOptions),i.addEventListener("keydown",r,null==S?void 0:S.eventListenerOptions),T&&u(E,null==j?void 0:j.splitKey).forEach(function(e){return T.addHotkey(c(e,null==j?void 0:j.combinationKey,null==j?void 0:j.description))}),function(){i.removeEventListener("keyup",n,null==S?void 0:S.eventListenerOptions),i.removeEventListener("keydown",r,null==S?void 0:S.eventListenerOptions),T&&u(E,null==j?void 0:j.splitKey).forEach(function(e){return T.removeHotkey(c(e,null==j?void 0:j.combinationKey,null==j?void 0:j.description))})}}},[l,E,j,x]),w}},94119:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return Q},default:function(){return K},matchesMiddleware:function(){return F}});let i=r(39445),a=r(24966),o=r(52971),s=r(27833),u=r(79201),c=a._(r(53845)),l=r(91184),d=r(13755),f=i._(r(39310)),h=r(4681),p=r(1792),m=r(55570),g=r(11458),y=r(70995),v=r(1403);r(64829);let b=r(61881),w=r(10074),P=r(34499),S=r(82448),E=r(80175),R=r(22784),_=r(98344),O=r(33375),j=r(66764),x=r(49809),T=r(39804),I=r(73438),C=r(16320),A=r(96357),q=r(61134),D=r(84257),N=r(41503);function k(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function F(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,b.parsePath)(e.asPath),n=(0,R.hasBasePath)(r)?(0,S.removeBasePath)(r):r,i=(0,E.addBasePath)((0,w.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}function L(e){let t=(0,h.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function U(e,t,r){let[n,i]=(0,_.resolveHref)(e,t,!0),a=(0,h.getLocationOrigin)(),o=n.startsWith(a),s=i&&i.startsWith(a);n=L(n),i=i?L(i):i;let u=o?n:(0,E.addBasePath)(n),c=r?L((0,_.resolveHref)(e,r)):i||n;return{url:u,as:s?c:(0,E.addBasePath)(c)}}function M(e,t){let r=(0,o.removeTrailingSlash)((0,l.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,y.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,o.removeTrailingSlash)(e))}async function H(e){if(!await F(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let i={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},a=t.headers.get("x-nextjs-rewrite"),u=a||t.headers.get("x-nextjs-matched-path"),c=t.headers.get(N.MATCHED_PATH_HEADER);if(!c||u||c.includes("__next_data_catchall")||c.includes("/_error")||c.includes("/404")||(u=c),u){if(u.startsWith("/")){let t=(0,m.parseRelativeUrl)(u),c=(0,j.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),l=(0,o.removeTrailingSlash)(c.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,s.getClientBuildManifest)()]).then(i=>{let[o,{__rewrites:s}]=i,u=(0,w.addLocale)(c.pathname,c.locale);if((0,p.isDynamicRoute)(u)||!a&&o.includes((0,d.normalizeLocalePath)((0,S.removeBasePath)(u),r.router.locales).pathname)){let r=(0,j.getNextPathnameInfo)((0,m.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0});t.pathname=u=(0,E.addBasePath)(r.pathname)}{let e=n(u,o,s,t.query,e=>M(e,o),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,u=t.pathname,Object.assign(t.query,e.parsedAs.query))}let f=o.includes(l)?l:M((0,d.normalizeLocalePath)((0,S.removeBasePath)(t.pathname),r.router.locales).pathname,o);if((0,p.isDynamicRoute)(f)){let e=(0,g.getRouteMatcher)((0,y.getRouteRegex)(f))(u);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,b.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,x.formatNextPathnameInfo)({...(0,j.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}
1),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let l=t.headers.get("x-nextjs-redirect");if(l){if(l.startsWith("/")){let e=(0,b.parsePath)(l),t=(0,x.formatNextPathnameInfo)({...(0,j.getNextPathnameInfo)(e.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:l})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}n=r(56790).A;let W=Symbol("SSG_DATA_NOT_FOUND");function B(e){try{return JSON.parse(e)}catch(e){return null}}function $(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:i,isServerRender:a,parseJSON:o,persistCache:u,isBackground:c,unstable_skipClientCache:l}=e,{href:d}=new URL(t,window.location.href),f=e=>{var c;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(i=>!i.ok&&r>1&&i.status>=500?e(t,r-1,n):i)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&i?{"x-middleware-prefetch":"1"}:{},{"x-deployment-id":"dpl_92sWMyUr7jyDBj4744XDsDSQLvii"}),method:null!=(c=null==e?void 0:e.method)?c:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:d}:r.text().then(e=>{if(!r.ok){if(i&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:d};if(404===r.status){var n;if(null==(n=B(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:W},response:r,text:e,cacheKey:d}}let o=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,s.markAssetError)(o),o}return{dataHref:t,json:o?B(e):null,response:r,text:e,cacheKey:d}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[d],e)).catch(e=>{throw l||delete r[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,s.markAssetError)(e),e})};return l&&u?f({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[d]=Promise.resolve(e)),e)):void 0!==r[d]?r[d]:r[d
1]=f(c?{method:"HEAD"}:{})}function Q(){return Math.random().toString(36).slice(2,10)}function G(e){let{url:t,router:r}=e;if(t===(0,E.addBasePath)((0,w.addLocale)(r.asPath,r.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,i=r.clc=()=>{n=!0};return()=>{if(n){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}i===r.clc&&(r.clc=null)}};class K{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=U(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,i){{if(!this._bfl_s&&!this._bfl_d){let t,a,{BloomFilter:o}=r(14960);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,s.getClientBuildManifest)())}catch(t){if(console.error(t),i)return!0;return G({url:(0,E.addBasePath)((0,w.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new o(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new o(a.numItems,a.errorRate),this._bfl_d.import(a))}let l=!1,d=!1;for(let{as:r,allowMatchCurrent:s}of[{as:e},{as:t}])if(r){let t=(0,o.removeTrailingSlash)(new URL(r,"http://n").pathname),f=(0,E.addBasePath)((0,w.addLocale)(t,n||this.locale));if(s||t!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var a,u,c;for(let e of(l=l||!!(null==(a=this._bfl_s)?void 0:a.contains(t))||!!(null==(u=this._bfl_s)?void 0:u.contains(f)),[t,f])){let t=e.split("/");for(let e=0;!d&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&(null==(c=this._bfl_d)?void 0:c.contains(r))){d=!0;break}}}if(l||d){if(i)return!0;return G({url:(0,E.addBasePath)((0,w.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,i,a){var l,d,f,_,O,j,x,C,D;let N,L;if(!(0,I.isLocalURL)(t))return G({url:t,router:this}),!1;let H=1===i._h;H||i.shallow||await this._bfl(r,void 0,i.locale);let B=H||i._shouldResolveHref||(0,b.parsePath)(t).pathname===(0,b.parsePath)(r).pathname,$={...this.state},Q=!0!==this.isReady;this.isReady=!0;let z=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let V=$.locale;h.ST&&performance.mark("routeChange");let{shallow:X=!1,scroll:J=!0}=i,Y={shallow:X};this._inFlightRoute&&this.clc&&(z||K.events.emit("routeChangeError",k(),this._inFlightRoute,Y),this.clc(),this.clc=null),r=(0,E.addBasePath)((0,w.addLocale)((0,R.hasBasePath)(r)?(0,S.removeBasePath)(r):r,i.locale,this.defaultLocale));let Z=(0,P.removeLocale)((0,R.hasBasePath)(r)?(0,S.removeBasePath)(r):r,$.locale);this._inFlightRoute=r;let ee=V!==$.locale;if(!H&&this.onlyAHashChange(Z)&&!ee){$.asPath=Z,K.events.emit("hashChangeStart",r,Y),this.changeState(e,t,r,{...i,scroll:!1}),J&&this.scrollToHash(Z);try{await this.set($,this.components[$.route],null)}catch(e){throw(0,c.default)(e)&&e.cancelled&&K.events.emit("routeChangeError",e,Z,Y),e}return K.events.emit("hashChangeComplete",r,Y),!0}let et=(0,m.parseRelativeUrl)(t),{pathname:er,query:en}=et;try{[N,{__rewrites:L}]=await Promise.all([this.pageLoader.getPageList(),(0,s.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return G({url:r,router:this}),!1}this.urlIsNew(Z)||ee||(e="replaceState");let ei=r;er=er?(0,o.removeTrailingSlash)((0,S.removeBasePath)(er)):er;let ea=(0,o.removeTrailingSlash)(er),eo=r.startsWith("/")&&(0,m.parseRelativeUrl)(r).pathname;if(null==(l=this.components[er])?void 0:l.__appRouter)return G({url:r,router:this}),new Promise(()=>{});let es=!!(eo&&ea!==eo&&(!(0,p.isDynamicRoute)(ea)||!(0,g.getRouteMatcher)((0,y.getRouteRegex)(ea))(eo))),eu=!i.shallow&&await F({asPath:r,locale:$.locale,router:this});if(H&&eu&&(B=!1),B&&"/_error"!==er)if(i._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,E.addBasePath)((0,w.addLocale)(Z,$.locale),!0),N,L,en,e=>M(e,N),this.locales);if(e.externalDest)return G({url:r,router:this}),!0;eu||(ei=e.asPath),e.matchedPage&&e.resolvedHref&&(er=e.resolvedHref,et.pathname=(0,E.addBasePath)(er),eu||(t=(0,v.formatWithValidation)(et)))}else et.pathname=M(er,N),et.pathname!==er&&(er=et.pathname,et.pathname=(0,E.addBasePath)(er),eu||(t=(0,v.formatWithValidation)(et)));if(!(0,I.isLocalURL)(r))return G({url:r,router:this}),!1;ei=(0,P.removeLocale)((0,S.removeBasePath)(ei),$.locale),ea=(0,o.removeTrailingSlash)(er);let ec=!1;if((0,p.isDynamicRoute)(ea)){let e=(0,m.parseRelativeUrl)(ei),n=e.pathname,i=(0,y.getRouteRegex)(ea);ec=(0,g.getRouteMatcher)(i)(n);let a=ea===n,o=a?(0,q.interpolateAs)(ea,n,en):{};if(ec&&(!a||o.result))a?r=(0,v.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,A.omit)(en,o.params)})):Object.assign(en,ec);else{let e=Object.keys(i.groups).filter(e=>!en[e]&&!i.groups[e].optional);if(e.length>0&&!eu)throw Object.defineProperty(Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+ea+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,
1configurable:!0})}}H||K.events.emit("routeChangeStart",r,Y);let el="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:ea,pathname:er,query:en,as:r,resolvedAs:ei,routeProps:Y,locale:$.locale,isPreview:$.isPreview,hasMiddleware:eu,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:es});if(H||i.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,$.locale),"route"in n&&eu){ea=er=n.route||ea,Y.shallow||(en=Object.assign({},n.query||{},en));let e=(0,R.hasBasePath)(et.pathname)?(0,S.removeBasePath)(et.pathname):et.pathname;if(ec&&er!==e&&Object.keys(ec).forEach(e=>{ec&&en[e]===ec[e]&&delete en[e]}),(0,p.isDynamicRoute)(er)){let e=!Y.shallow&&n.resolvedAs?n.resolvedAs:(0,E.addBasePath)((0,w.addLocale)(new URL(r,location.href).pathname,$.locale),!0);(0,R.hasBasePath)(e)&&(e=(0,S.removeBasePath)(e));let t=(0,y.getRouteRegex)(er),i=(0,g.getRouteMatcher)(t)(new URL(e,location.href).pathname);i&&Object.assign(en,i)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,i);else return G({url:n.destination,router:this}),new Promise(()=>{});let o=n.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){i.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,m.parseRelativeUrl)(t);r.pathname=M(r.pathname,N);let{url:n,as:a}=U(this,t,t);return this.change(e,n,a,i)}return G({url:t,router:this}),new Promise(()=>{})}if($.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===W){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:en,as:r,resolvedAs:ei,routeProps:{shallow:!1},locale:$.locale,isPreview:$.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}H&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)||null==(d=f.pageProps)?void 0:d.statusCode)===500&&(null==(_=n.props)?void 0:_.pageProps)&&(n.props.pageProps.statusCode=500);let s=i.shallow&&$.route===(null!=(O=n.route)?O:ea),l=null!=(j=i.scroll)?j:!H&&!s,h=null!=a?a:l?{x:0,y:0}:null,v={...$,route:ea,pathname:er,query:en,asPath:Z,isFallback:!1};if(H&&el){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:r,resolvedAs:ei,routeProps:{shallow:!1},locale:$.locale,isPreview:$.isPreview,isQueryUpdating:H&&!this.isFallback}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on "+this.pathname),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(C=self.__NEXT_DATA__.props)||null==(x=C.pageProps)?void 0:x.statusCode)===500&&(null==(D=n.props)?void 0:D.pageProps)&&(n.props.pageProps.statusCode=500);try{await this.set(v,n,h)}catch(e){throw(0,c.default)(e)&&e.cancelled&&K.events.emit("routeChangeError",e,Z,Y),e}return!0}if(K.events.emit("beforeHistoryChange",r,Y),this.changeState(e,t,r,i),!(H&&!h&&!Q&&!ee&&(0,T.compareRouterStates)(v,this.state))){try{await this.set(v,n,h)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw H||K.events.emit("routeChangeError",n.error,Z,Y),n.error;H||K.events.emit("routeChangeComplete",r,Y),l&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,c.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,h.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:Q()},"",r))}async handleRouteInfoError(e,t,r,n,i,a){if(e.cancelled)throw e;if((0,s.isAssetError)(e)||a)throw K.events.emit("routeChangeError",e,n,i),G({url:n,router:this}),k();console.error(e);try{let n,{page:i,styleSheets:a}=await this.fetchComponent("/_error"),o={props:n,Component:i,styleSheets:a,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(i,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,c.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
1configurable:!0}),t,r,n,i,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:i,resolvedAs:a,routeProps:s,locale:u,hasMiddleware:l,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:g}=e,y=t;try{var b,w,P,E;let e=this.components[y];if(s.shallow&&e&&this.route===y)return e;let t=z({route:y,router:this});l&&(e=void 0);let c=!e||"initial"in e?void 0:e,R={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:g?"/404":a,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},_=p&&!m?null:await H({fetchData:()=>$(R),asPath:g?"/404":a,locale:u,router:this}).catch(e=>{if(p)return null;throw e});if(_&&("/_error"===r||"/404"===r)&&(_.effect=void 0),p&&(_?_.json=self.__NEXT_DATA__.props:_={json:self.__NEXT_DATA__.props}),t(),(null==_||null==(b=_.effect)?void 0:b.type)==="redirect-internal"||(null==_||null==(w=_.effect)?void 0:w.type)==="redirect-external")return _.effect;if((null==_||null==(P=_.effect)?void 0:P.type)==="rewrite"){let t=(0,o.removeTrailingSlash)(_.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!p||i.includes(t))&&(y=t,r=_.effect.resolvedHref,n={...n,..._.effect.parsedAs.query},a=(0,S.removeBasePath)((0,d.normalizeLocalePath)(_.effect.parsedAs.pathname,this.locales).pathname),e=this.components[y],s.shallow&&e&&this.route===y&&!l))return{...e,route:y}}if((0,O.isAPIRoute)(y))return G({url:i,router:this}),new Promise(()=>{});let j=c||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),x=null==_||null==(E=_.response)?void 0:E.headers.get("x-middleware-skip"),T=j.__N_SSG||j.__N_SSP;x&&(null==_?void 0:_.dataHref)&&delete this.sdc[_.dataHref];let{props:I,cacheKey:C}=await this._getData(async()=>{if(T){if((null==_?void 0:_.json)&&!x)return{cacheKey:_.cacheKey,props:_.json};let e=(null==_?void 0:_.dataHref)?_.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),asPath:a,locale:u}),t=await $({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:x?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:i,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&R.dataHref&&C&&delete this.sdc[C],this.isPreview||!j.__N_SSG||p||$(Object.assign({},R,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),I.pageProps=Object.assign({},I.pageProps),j.props=I,j.route=y,j.query=n,j.resolvedAs=a,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,c.getProperError)(e),r,n,i,s)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,i]=e.split("#",2);return!!i&&t===n&&r===i||t===n&&r!==i}scrollToHash(e){let[,t=""]=e.split("#",2);(0,D.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,C.isBot)(window.navigator.userAgent))return;let i=(0,m.parseRelativeUrl)(e),a=i.pathname,{pathname:u,query:c}=i,l=u,d=await this.pageLoader.getPageList(),f=t,h=void 0!==r.locale?r.locale||void 0:this.locale,R=await F({asPath:t,locale:h,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,s.getClientBuildManifest)());let a=n((0,E.addBasePath)((0,w.addLocale)(t,this.locale),!0),d,r,i.query,e=>M(e,d),this.locales);if(a.externalDest)return;R||(f=(0,P.removeLocale)((0,S.removeBasePath)(a.asPath),this.locale)),a.matchedPage&&a.resolvedHref&&(i.pathname=u=a.resolvedHref,R||(e=(0,v.formatWithValidation)(i)))}i.pathname=M(i.pathname,d),(0,p.isDynamicRoute)(i.pathname)&&(u=i.pathname,i.pathname=u,Object.assign(c,(0,g.getRouteMatcher)((0,y.getRouteRegex)(i.pathname))((0,b.parsePath)(t).pathname)||{}),R||(e=(0,v.formatWithValidation)(i)));let _=await H({fetchData:()=>$({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:l,query:c}),skipInterpolation:!0,asPath:f,locale:h}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persist
1Cache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:h,router:this});if((null==_?void 0:_.effect.type)==="rewrite"&&(i.pathname=_.effect.resolvedHref,u=_.effect.resolvedHref,c={...c,..._.effect.parsedAs.query},f=_.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(i)),(null==_?void 0:_.effect.type)==="redirect-external")return;let O=(0,o.removeTrailingSlash)(u);await this._bfl(t,f,r.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(O).then(t=>!!t&&$({dataHref:(null==_?void 0:_.json)?null==_?void 0:_.dataHref:this.pageLoader.getDataHref({href:e,asPath:f,locale:h}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](O)])}async fetchComponent(e){let t=z({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,h.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:i,App:a,wrapApp:s,Component:u,err:c,subscription:l,isFallback:d,locale:f,locales:g,defaultLocale:y,domainLocales:b,isPreview:w}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=Q(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,h.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:i,as:a,options:o,key:s}=n;this._key=s;let{pathname:u}=(0,m.parseRelativeUrl)(i);(!this.isSsr||a!==(0,E.addBasePath)(this.asPath)||u!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",i,a,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};let P=(0,o.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:u,initial:!0,props:n,err:c,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=K.events,this.pageLoader=i;let S=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=l,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!S&&!self.location.search&&0),this.state={route:P,pathname:e,query:t,asPath:S?e:r,isPreview:!!w,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:f},i=(0,h.getURL)();this._initialMatchesMiddlewarePromise=F({router:this,locale:f,asPath:i}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?i:(0,v.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),i,n),a))}window.addEventListener("popstate",this.onPopState)}}K.events=(0,f.default)()},96357:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},96621:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},97294:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=n?40*n:t,u=i?40*i:r,c=s&&u?"viewBox='0 0 "+s+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
1ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},98087:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var i={},a=t.split(n),o=(r||{}).decode||e,s=0;s<a.length;s++){var u=a[s],c=u.indexOf("=");if(!(c<0)){var l=u.substr(0,c).trim(),d=u.substr(++c,u.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==i[l]&&(i[l]=function(e,t){try{return t(e)}catch(t){return e}}(d,o))}}return i},t.serialize=function(e,t,n){var a=n||{},o=a.encode||r;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var s=o(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var u=e+"="+s;if(null!=a.maxAge){var c=a.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(c)}if(a.domain){if(!i.test(a.domain))throw TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invali
1d");u+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(u+="; HttpOnly"),a.secure&&(u+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var e=decodeURIComponent,r=encodeURIComponent,n=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/})(),e.exports=t})()},98344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return h}});let n=r(61377),i=r(1403),a=r(96357),o=r(4681),s=r(84420),u=r(73438),c=r(78196),l=r(61134),d=r(70995),f=r(11458);function h(e,t,r){let h,p="string"==typeof t?t:(0,i.formatWithValidation)(t),m=p.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?p.slice(m[0].length):p;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,o.normalizeRepeatedSlashes)(g);p=(m?m[0]:"")+t}if(!(0,u.isLocalURL)(p))return r?[p]:p;try{let t=p.startsWith("#")?e.asPath:e.pathname;if(p.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,f.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}h=new URL(t,"http://n")}catch(e){h=new URL("/","http://n")}try{let e=new URL(p,h);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:o,params:s}=(0,l.interpolateAs)(e.pathname,e.pathname,r);o&&(t=(0,i.formatWithValidation)({pathname:o,hash:e.hash,query:(0,a.omit)(r,s)}))}let o=e.origin===h.origin?e.href.slice(e.origin.length):e.href;return r?[o,t||o]:o}catch(e){return r?[p]:p}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return m},default:function(){return h},makePublicRouterInstance:function(){return g},useRouter:function(){return p},withRouter:function(){return u.default}});let n=r(39445),i=n._(r(58076)),a=n._(r(94119)),o=r(57231),s=n._(r(53845)),u=n._(r(93756)),c={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},l=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!c.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return c.router}Object.defineProperty(c,"events",{get:()=>a.default.events}),l.forEach(e=>{Object.defineProperty(c,e,{get:()=>f()[e]})}),d.forEach(e=>{c[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return f()[e](...r)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{c.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let i="on"+e.charAt(0).toUpperCase()+e.substring(1);if(c[i])try{c[i](...r)}catch(e){console.error("Error when running the Router event: "+i),console.error((0,s.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let h=c;function p(){let e=i.default.useContext(o.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,
1configurable:!0});return e}function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return c.router=new a.default(...t),c.readyCallbacks.forEach(e=>e()),c.readyCallbacks=[],c.router}function g(e){let t={};for(let r of l){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e[r](...n)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99900:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(79201),i=r.n(n)}}]);

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.