1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2955],{1256:(e,t,r)=>{"use strict";var n=r(40484),i=r(82868);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},[])}},1803:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},2763:(e,t,r)=>{"use strict";r.d(t,{K2:()=>n,Kd:()=>i,uD:()=>a,z_:()=>o});let n={style:{transition:"none"}},i="data-base-ui-click-trigger",a={fallbackAxisSide:"none"},o={clipPath:"inset(50%)",position:"fixed",top:0,left:0}},3372:e=>{"use strict";e.exports=Function.prototype.apply},3836:(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})},4425:e=>{"use strict";e.exports=Math.max},4647:(e,t,r)=>{"use strict";r.d(t,{mk:()=>o,HH:()=>a,ZV:()=>i,dc:()=>s});let n=function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({}),i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},a={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},o={disabled:!1,...a},s={valid:e=>null===e?null:e?{[n.valid]:""}:{[n.invalid]:""}}},5741:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var n=r(19341);class i{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let r of this.listeners){if(t!==this.updateTick)return;r(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,r,i){return(0,n.P)(this,e,t,r,i)}}},6147:(e,t,r)=>{"use strict";r.d(t,{w:()=>eg});var n={};r.r(n),r.d(n,{abtestingV3Client:()=>O,apiClientVersion:()=>A});var i={};r.r(i),r.d(i,{abtestingClient:()=>F,apiClientVersion:()=>j});var a={};r.r(a),r.d(a,{analyticsClient:()=>M,apiClientVersion:()=>N});var o={};r.r(o),r.d(o,{apiClientVersion:()=>H,insightsClient:()=>W});var s={};r.r(s),r.d(s,{apiClientVersion:()=>B,personalizationClient:()=>V});var u={};r.r(u),r.d(u,{apiClientVersion:()=>Q,querySuggestionsClient:()=>G});var c={};r.r(c),r.d(c,{apiClientVersion:()=>z,searchClient:()=>J});var l={};r.r(l),r.d(l,{apiClientVersion:()=>X,ingestionClient:()=>er,isOnDemandTrigger:()=>Y,isScheduleTrigger:()=>ee,isSubscriptionTrigger:()=>et});var d={};r.r(d),r.d(d,{apiClientVersion:()=>en,monitoringClient:()=>ei});var h={};function f(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 p(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(()=>p({caches:t}
1).get(e,n,i)),set:(e,n)=>r.set(e,n).catch(()=>p({caches:t}).set(e,n)),delete:e=>r.delete(e).catch(()=>p({caches:t}).delete(e)),clear:()=>r.clear().catch(()=>p({caches:t}).clear())}}function m(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 g(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 y({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 v({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 b(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(h),r.d(h,{apiClientVersion:()=>ea,recommendClient:()=>eo});var P=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},R=class extends P{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},S=class extends R{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")}},E=class extends R{status;constructor(e,t,r,n="ApiError"){super(e,r,n),this.status=t}},x=class extends P{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},T=class extends E{error;constructor(e,t,r,n){super(e,t,n,"DetailedApiError"),this.error=r}};function I(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 q(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 _({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(b(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,d){let h=[],f=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),p=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),m="GET"===u.method?{...u.data,...c.data}:{},g={...i,...u.queryParameters,...m};if(a.value&&(g["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])?g[e]=c.queryParameters[e].toString():g[e]=c.queryParameters[e];let y=0,v=async(e,r)=>{let i=e.pop();if(void 0===i)throw new S(h.map(e=>q(e)));let a={...o,...c.timeouts},l={data:f,headers:p,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,g),connectTimeout:r(y,a.connect),responseTimeout:r(y,d?a.read:a.write)},m=t=>{let r={request:l,response:t,host:i,triesLeft:e.length};return h.push(r),r},w=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)}(w)){let a=m(w);return w.isTimedOut&&y++,n.info("Retryable failure",q(a)),await t.set(i,b(i,w.isTimedOut?"timed out":"down")),v(e,r)}if(function({status:e}){return 2==~~(e/100)}(w))try{return JSON.parse(w.content)}catch(e){throw new x(e.message,w)}throw m(w),function({content:e,status:t},r){try{let n=JSON.parse(e);if("error"in n)return new T(n.message,t,n.error,r);return new E(n.message,t,r)}catch{}return new E(e,t,r)}(w,h)},w=e.filter(e=>"readWrite"===e.accept||(d?"read"===e.accept:"write"===e.accept)),P=
1await l(w);return v([...P.hosts].reverse(),P.getTimeout)}return{hostsCache:t,requester:s,timeouts:o,logger:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:i,hosts:e,request:function(e,t={}){let n=()=>d(e,t,a),a=e.useReadTransporter||"GET"===e.method;if(!0!==(t.cacheable||e.cacheable))return n();let o={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return c.get(o,()=>u.get(o,()=>u.set(o,n()).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}}function k(){return{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>r.setRequestHeader(t,e.headers[t]));let n=(e,n)=>setTimeout(()=>{r.abort(),t({status:0,content:n,isTimedOut:!0})},e),i=n(e.connectTimeout,"Connection timeout"),a;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===a&&(clearTimeout(i),a=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(i),clearTimeout(a),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(i),clearTimeout(a),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}}}var A="1.15.0",C=["de","us"];function O(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||!C.includes(r)))throw Error(`\`region\` must be one of the following: ${C.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=g(e,t,r),s=_({hosts:[{url:i?"analytics.{region}.algolia.com".replace("{region}",i):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:v({algoliaAgents:n,client:"AbtestingV3",version:A}),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)},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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${A}-${e}`}),m()]}),...n})}var j="5.49.0",D=["de","us"];function F(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||!D.includes(r)))throw Error(`\`region\` must be one of the following: ${D.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=g(e,t,r),s=_({hosts:[{url:i?"analytics.{region}.algolia.com".replace("{region}",i):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:v({algoliaAgents:n,client:"Abtesting",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},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)},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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${j}-${e}`}),m()]}),...n})}var N="5.49.0",U=["de","us"];function M(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||!U.includes(r)))throw Error(`\`region\` must be one of the following: ${U.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=g(e,t,r),s=_({hosts:[{url:i?"analytics.{region}.algolia.com".replace("{region}",i):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:v({algoliaAgents:n,client:"Analytics",version:N}),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 `getAddToCartRate`.");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/co
1unt",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},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 h={};return void 0!==e&&(h.index=e.toString()),void 0!==t&&(h.clickAnalytics=t.toString()),void 0!==r&&(h.revenueAnalytics=r.toString()),void 0!==n&&(h.startDate=n.toString()),void 0!==i&&(h.endDate=i.toString()),void 0!==a&&(h.orderBy=a.toString()),void 0!==o&&(h.direction=o.toString()),void 0!==u&&(h.limit=u.toString()),void 0!==c&&(h.offset=c.toString()),void 0!==l&&(h.tags=l.toString()),s.request({method:"GET",path:"/2/searches",queryParameters:h,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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${N}-${e}`}),m()]}),...n})}var H="5.49.0",L=["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||!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=g(e,t,r),s=_({hosts:[{url:i?"insights.{region}.algolia.io".replace("{region}",i):"insights.algolia.io",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:v({algoliaAgents:n,client:"Insights",version:H}),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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${H}-${e}`}),m()]}),...n})}var B="5.49.0",$=["eu","us"];function V(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=g(e,t,r),s=_({hosts:[{url:"personalization.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}],...a,algoliaAgent:v({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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${B}-${e}`}),m()]}),...n})}var Q="5.49.0",K=["eu","us"];function G(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||!K.includes(r)))throw Error(`\`region\` is required and must be one of the following: ${K.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,region:i,...a}){let o=g(e,t,r),s=_({hosts:[{url:"query-suggestions.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}],...a,algoliaAgent:v({algoliaAgents:n,client:"QuerySuggestions",version:Q}),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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${Q}-${e}`}),m()]}),...n})}var z="5.49.0";function J(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
1({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...i}){let a=g(e,t,r),o=_({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(I([{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:v({algoliaAgents:n,client:"Search",version:z}),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 y({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 y({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:()=>o>=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 y({...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 y({...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 y({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 y({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 y({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 E&&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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${z}-${e}`}),m()]}),...r})}var X="1.49.0",Z=["eu","us"];function Y(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||!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=g(e,t,r),s=_({hosts:[{url:"data.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}],...a,algoliaAgent:v({algoliaAgents:n,client:"Ingestion",version:X}),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,h]of t.entries())if(s.push(h),(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 y({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)),h={};return void 0!==t&&(h.itemsPerPage=t.toString()),void 0!==r&&(h.page=r.toString()),void 0!==n&&(h.status=n.toString()),void 0!==i&&(h.type=i.toString()),void 0!==a&&(h.sort=a.toString()),void 0!==o&&(h.order=o.toString()),void 0!==u&&(h.startDate=u.toString()),void 0!==c&&(h.endDate=c.toString()),s.request({method:"GET",path:d,queryParameters:h,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}={},h){let f={};return void 0!==e&&(f.itemsPerPage=e.toString()),void 0!==t&&(f.page=t.toString()),void 0!==r&&(f.action=r.toString()),void 0!==n&&(f.enabled=n.toString()),void 0!==i&&(f.sourceID=i.toString()),void 0!==a&&(f.sourceType=a.toString()),void 0!==o&&(f.destinationID=o.toString()),void 0!==u&&(f.triggerType=u.toString()),void 0!==c&&(f.withEmailNotifications=c.toString()),void 0!==l&&(f.sort=l.toString()),void 0!==d&&(f.order=d.toString()),s.request({method:"GET",path:"/2/tasks",queryParameters:f,headers:{}},h)},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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${X}-${e}`}),m()]}),...n})}var en="1.49.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=g(e,t,r),o=_({hosts:[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}],...i,algoliaAgent:v({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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${en}-${e}`}),m()]}),...r})}var ea="5.49.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=g(e,t,r),o=_({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(I([{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:v({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:k(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:m(),requestsCache:m({serializable:!1}),hostsCache:p({caches:[f({key:`${ea}-${e}`}),m()]}),...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})},eh=(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},ef=(e,t,r)=>(eh(e,t,"default"),r&&eh(r,t,"default")),ep={};ed(ep,{algoliasearch:()=>eg,apiClientVersion:()=>z});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=J(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=>F(r.appId||e,r.apiKey||t,r.region,r.options),initAbtestingV3:r=>O(r.appId||e,r.apiKey||t,r.region,r.options),initAnalytics:r=>M(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=>V(r.appId||e,r.apiKey||t,r.region,r.options),initQuerySuggestions:r=>G(r.appId||e,r.apiKey||t,r.region,r.options),initRecommend:(r={})=>eo(r.appId||e,r.apiKey||t,r.options)}}ed(em,{apiClientVersion:()=>z}),ef(em,n),ef(em,i),ef(em,a),ef(em,o),ef(em,s),ef(em,u),ef(em,c),ef(em,l),ef(em,d),ef(em,h),ef(ep,em)},6635:(e,t,r)=>{"use strict";var n=r(94347),i=r(56048),a=r(52714),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},6654:e=>{"use strict";e.exports=RangeError},7486:(e,t,r)=>{"use strict";var n=r(74568),i=r(94347),a=r(69296),o=r(40484),s=r(12480),u=r(61516),c=r(32890),l=r(73724),d=a.escapeFacetValue,h=a.unescapeFacetValue,f=r(95316);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,w=a.facets||{};
1Object.keys(w).forEach(function(t){var r=w[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,h=-1!==e.disjunctiveFacets.indexOf(t),f=-1!==e.facets.indexOf(t);h&&(d=y[t],u.disjunctiveFacets[d]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(u.disjunctiveFacets[d],a.facets_stats,t)),f&&(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 f=s(u.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===f)return;u.hierarchicalFacets[r][f].data=u.persistHierarchicalRootCount?c(u.hierarchicalFacets[r][f].data,d):i(d,u.hierarchicalFacets[r][f].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(h(n))>-1&&(u.disjunctiveFacets[r].data[n]=0)})}}),v++}),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 h={};if(o.length>0&&!u.persistHierarchicalRootCount){var f=o[0].split(a)[0];h[f]=u.hierarchicalFacets[l][d].data[f]}u.hierarchicalFacets[l][d].data=i(h,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:w[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(f(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=h(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){var r,n,i,o,c,d,h,f=s.renderingContent&&s.renderingContent.facetOrdering&&s.renderingContent.facetOrdering.values&&s.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&f)return n=[],i=[],o=f.hide||[],c=(f.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=o.indexOf(t)>-1;r||void 0===c[t]?r||i.push(e):n[c[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(d=f.sortRemainingBy)?n:(r="alpha"===d?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(l(i,r[0],r[1])));if(Array.isArray(a.sortBy)){var p=u(a.sortBy,g.DEFAULT_SORT),m=l(e,p[0],p[1]),y=f&&f.hide?f.hide:[];if(y.length>0){var v=[];return m.forEach(function(e){var t=e.path||e.name;-1===y.indexOf(t)&&v.push(e)}),v}return m}if("function"==typeof a.sortBy)return h=a.sortBy,e.sort(h);throw Error("options.sortBy is optional but if defined it must be either an array of str
1ing (predicates) or a sorting function")},n,r)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(v(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(v(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(v(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,s,u,c,l,d,h,f,p,m,g;r.push((a=e,s=n,u=i,c=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(s),d=a._getHierarchicalFacetSeparator(l),h=u.split(d),f=o(c,function(e){return e.name===s}),m=(p=h.reduce(function(e,t){var r=e&&o(e.data,function(e){return e.name===t});return void 0!==r?r:e},f))&&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},7741:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(37056);let i=(e,t,r,i,a,o,...s)=>{let u;if(s.length>0)throw Error((0,n.A)(1));if(e&&t&&r&&i&&a&&o)u=(n,s,u,c)=>{let l=e(n,s,u,c),d=t(n,s,u,c),h=r(n,s,u,c);return o(l,d,h,i(n,s,u,c),a(n,s,u,c),s,u,c)};else if(e&&t&&r&&i&&a)u=(n,o,s,u)=>{let c=e(n,o,s,u),l=t(n,o,s,u);return a(c,l,r(n,o,s,u),i(n,o,s,u),o,s,u)};else if(e&&t&&r&&i)u=(n,a,o,s)=>{let u=e(n,a,o,s);return i(u,t(n,a,o,s),r(n,a,o,s),a,o,s)};else if(e&&t&&r)u=(n,i,a,o)=>r(e(n,i,a,o),t(n,i,a,o),i,a,o);else if(e&&t)u=(r,n,i,a)=>t(e(r,n,i,a),n,i,a);else if(e)u=e;else throw Error("Missing arguments");return u}},7756:(e,t,r)=>{"use strict";r.d(t,{e:()=>P});var n=r(83986),i=r(19341),a=r(54617),o=r(81082),s=r(38898),u=r(83634),c=r(55164),l=r(5498);let d=n.createContext(null);function h(e){let{children:t}=e,{filteredItems:r}=(0,s.Dc)(),i=n.useContext(d),a=i?i.items:r;return a?(0,l.jsx)(n.Fragment,{children:a.map(t)}):null}var f=r(70236),p=r(78933),m=r(22429);function g(e){let{children:t,elementsRef:r,labelsRef:i,onMapChange:o}=e,s=(0,a.K)(o),u=n.useRef(0),c=(0,f.j)(v).current,d=(0,f.j)(y).current,[h,g]=n.useState(0),b=n.useRef(h),P=(0,a.K)((e,t)=>{d.set(e,null!=t?t:null),b.current+=1,g(b.current)}),R=(0,a.K)(e=>{d.delete(e),b.current+=1,g(b.current)}),S=n.useMemo(()=>{let e=new Map;return Array.from(d.keys()).filter(e=>e.isConnected).sort(w).forEach((t,r)=>{var n;let i=null!=(n=d.get(t))?n:{};e.set(t,{...i,index:r})}),e},[d,h]);(0,p.g)(()=>{if("function"!=typeof MutationObserver||0===S.size)return;let e=new MutationObserver(e=>{let t=new Set,r=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(r),e.addedNodes.forEach(r)}),0===t.size&&(b.current+=1,g(b.current))});return S.forEach((t,r)=>{r.parentElement&&e.observe(r.parentElement,{childList:!0})}),()=>{e.disconnect()}},[S]),(0,p.g)(()=>{b.current===h&&(r.current.length!==S.size&&(r.current.length=S.size),i&&i.current.length!==S.size&&(i.current.length=S.size),u.current=S.size),s(S)},[s,S,r,i,h]),(0,p.g)(()=>()=>{r.current=[]},[r]),(0,p.g)(()=>()=>{i&&(i.current=[])},[i]);let E=(0,a.K)(e=>(c.add(e),()=>{c.delete(e)}));(0,p.g)(()=>{c.forEach(e=>e(S))},[c,S]);let x=n.useMemo(()=>({register:P,unregister:R,subscribeMapChange:E,elementsRef:r,labelsRef:i,nextIndexRef:u}),[P,R,E,r,i,u]);return(0,l.jsx)(m.D.Provider,{value:x,children:t})}function y(){return new Map}function v(){return new Set}function w(e,t){let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}var b=r(21443);let P=n.forwardRef(function(e,t){var r;let{render:d,className:f,style:p,children:m,...y}=e,v=(0,s.Ee)(),w=(0,s.ui)(),P=!!(0,u.O)(!0),{filteredItems:R,hasItems:S}=(0,s.Dc)(),E=(0,i.P)(v,c.T.selectionMode),x=(0,i.P)(v,c.T.grid),T=(0,i.P)(v,c.T.popupProps),I=(0,i.P)(v,c.T.virtualized),q=0===R.length,_=(0,a.K)(e=>{v.set("positionerElement",e)}),k=(0,a.K)(e=>{v.set("listElement",e)}),A=n.useMemo(()=>"function"==typeof m?r||(r=(0,l.jsx)(h,{children:m})):m,[m]),C=w.useState("floatingId"),O=(0,o.o)("div",e,{state:{empty:q},ref:[t,k,P?null:_],props:[T,{children:A,tabIndex:-1,id:C,role:x?"grid":"listbox","aria-multiselectable":"multiple"===E?"true":void 0,onKeyDown(e){if(!v.state.disabled&&!v.state.readOnly&&"Enter"===e.key){let t=v.state.activeIndex;if(null==t)return;(0,b.jo)(e);let r=e.nativeEvent,n=v.state.listRef.current[t];n&&(v.state.selectionEventRef.current=r,n.click(),v.state.selectionEventRef.current=null)}},onKeyDownCapture(){v.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){v.state.keyboardActiveRef.current=!1}},y]});return I?O:(0,l.jsx)(g,{elementsRef:v.state.listRef,labelsRef:S?void 0:v.state.labelsRef,children:O})})},8397:(e,t,r)=>{"use strict";e.exports=r(39645)},8486:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(83986),i=r(64145);function a(){return(0,n.useContext)(i.R)}},8752:(e,t,r)=>{"use strict";r.d(t,{G:()=>o,T:()=>n});let n=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({}
1),i={[n.startingStyle]:""},a={[n.endingStyle]:""},o={transitionStatus:e=>"starting"===e?i:"ending"===e?a:null}},9451:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(51937);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){(0,n._)(e,t,r[t])})}return e}},9609:(e,t,r)=>{"use strict";r.d(t,{o:()=>em});var n=r(83986),i=r(19341),a=r(78933),o=r(54617),s=r(37975),u=r(38898),c=r(83634),l=r(93493),d=r(13321),h=r(15075),f=r(34979);function p(e,t,r){let n,{reference:i,floating:a}=e,o=(0,l.TV)(t),s=(0,l.Dz)(t),u=(0,l.sq)(s),c=(0,l.C0)(t),d="y"===o,h=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,p=i[u]/2-a[u]/2;switch(c){case"top":n={x:h,y:i.y-a.height};break;case"bottom":n={x:h,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-a.width,y:f};break;default:n={x:i.x,y:i.y}}switch((0,l.Sg)(t)){case"start":n[s]-=p*(r&&d?-1:1);break;case"end":n[s]+=p*(r&&d?-1:1)}return n}async function m(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:a,rects:o,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=(0,l._3)(t,e),m=(0,l.nI)(p),g=s[f?"floating"===h?"reference":"floating":h],y=(0,l.B1)(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(g)))||r?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),v="floating"===h?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await (null==a.isElement?void 0:a.isElement(w))&&await (null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},P=(0,l.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:u}):v);return{top:(y.top-P.top+m.top)/b.y,bottom:(P.bottom-y.bottom+m.bottom)/b.y,left:(y.left-P.left+m.left)/b.x,right:(P.right-y.right+m.right)/b.x}}let g=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=o.detectOverflow?o:{...o,detectOverflow:m},u=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:d}=p(c,n,u),h=n,f=0,g={};for(let r=0;r<a.length;r++){let m=a[r];if(!m)continue;let{name:y,fn:v}=m,{x:w,y:b,data:P,reset:R}=await v({x:l,y:d,initialPlacement:n,placement:h,strategy:i,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});l=null!=w?w:l,d=null!=b?b:d,g[y]={...g[y],...P},R&&f<50&&(f++,"object"==typeof R&&(R.placement&&(h=R.placement),R.rects&&(c=!0===R.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:l,y:d}=p(c,h,u)),r=-1)}return{x:l,y:d,placement:h,strategy:i,middlewareData:g}};function y(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function v(e){return l.r_.some(t=>e[t]>=0)}let w=new Set(["left","top"]);async function b(e,t){let{placement:r,platform:n,elements:i}=e,a=await (null==n.isRTL?void 0:n.isRTL(i.floating)),o=(0,l.C0)(r),s=(0,l.Sg)(r),u="y"===(0,l.TV)(r),c=w.has(o)?-1:1,d=a&&u?-1:1,h=(0,l._3)(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),u?{x:p*d,y:f*c}:{x:f*c,y:p*d}}function P(e){let t=(0,h.L9)(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=(0,h.sb)(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=(0,l.LI)(r)!==a||(0,l.LI)(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function R(e){return(0,h.vq)(e)?e:e.contextElement}function S(e){let t=R(e);if(!(0,h.sb)(t))return(0,l.Jx)(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:a}=P(t),o=(a?(0,l.LI)(r.width):r.width)/n,s=(a?(0,l.LI)(r.height):r.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let E=(0,l.Jx)(0);function x(e){let t=(0,h.zk)(e);
1return(0,h.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:E}function T(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),o=R(e),s=(0,l.Jx)(1);t&&(n?(0,h.vq)(n)&&(s=S(n)):s=S(e));let u=(void 0===(i=r)&&(i=!1),n&&(!i||n===(0,h.zk)(o))&&i)?x(o):(0,l.Jx)(0),c=(a.left+u.x)/s.x,d=(a.top+u.y)/s.y,f=a.width/s.x,p=a.height/s.y;if(o){let e=(0,h.zk)(o),t=n&&(0,h.vq)(n)?(0,h.zk)(n):n,r=e,i=(0,h._m)(r);for(;i&&n&&t!==r;){let e=S(i),t=i.getBoundingClientRect(),n=(0,h.L9)(i),a=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=a,d+=o,r=(0,h.zk)(i),i=(0,h._m)(r)}}return(0,l.B1)({width:f,height:p,x:c,y:d})}function I(e,t){let r=(0,h.CP)(e).scrollLeft;return t?t.left+r:T((0,h.ep)(e)).left+r}function q(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-I(e,r),y:r.top+t.scrollTop}}function _(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=(0,h.zk)(e),n=(0,h.ep)(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;let e=(0,h.Tc)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}let c=I(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else c<=25&&(a+=c);return{width:a,height:o,x:s,y:u}}(e,r);else if("document"===t)n=function(e){let t=(0,h.ep)(e),r=(0,h.CP)(e),n=e.ownerDocument.body,i=(0,l.T9)(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=(0,l.T9)(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+I(e),s=-r.scrollTop;return"rtl"===(0,h.L9)(n).direction&&(o+=(0,l.T9)(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}((0,h.ep)(e));else if((0,h.vq)(t))n=function(e,t){let r=T(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=(0,h.sb)(e)?S(e):(0,l.Jx)(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y;return{width:o,height:s,x:i*a.x,y:n*a.y}}(t,r);else{let r=x(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,l.B1)(n)}function k(e){return"static"===(0,h.L9)(e).position}function A(e,t){if(!(0,h.sb)(e)||"fixed"===(0,h.L9)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,h.ep)(e)===r&&(r=r.ownerDocument.body),r}function C(e,t){let r=(0,h.zk)(e);if((0,h.Tf)(e))return r;if(!(0,h.sb)(e)){let t=(0,h.$4)(e);for(;t&&!(0,h.eu)(t);){if((0,h.vq)(t)&&!k(t))return t;t=(0,h.$4)(t)}return r}let n=A(e,t);for(;n&&(0,h.Lv)(n)&&k(n);)n=A(n,t);return n&&(0,h.eu)(n)&&k(n)&&!(0,h.sQ)(n)?r:n||(0,h.gJ)(e)||r}let O=async function(e){let t=this.getOffsetParent||C,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=(0,h.sb)(t),i=(0,h.ep)(t),a="fixed"===r,o=T(e,!0,a,t),s={scrollLeft:0,scrollTop:0},u=(0,l.Jx)(0);if(n||!n&&!a)if(("body"!==(0,h.mq)(t)||(0,h.ZU)(i))&&(s=(0,h.CP)(t)),n){let e=T(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=I(i));a&&!n&&i&&(u.x=I(i));let c=!i||n||a?(0,l.Jx)(0):q(i,s);return{x:o.left+s.scrollLeft-u.x-c.x,y:o.top+s.scrollTop-u.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},j={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,a="fixed"===i,o=(0,h.ep)(n),s=!!t&&(0,h.Tf)(t.floating);if(n===o||s&&a)return r;let u={scrollLeft:0,scrollTop:0},c=(0,l.Jx)(1),d=(0,l.Jx)(0),f=(0,h.sb)(n);if((f||!f&&!a)&&(("body"!==(0,h.mq)(n)||(0,h.ZU)(o))&&(u=(0,h.CP)(n)),f)){let e=T(n);c=S(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let p=!o||f||a?(0,l.Jx)(0):q(o,u);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-u.scrollTop*c.y+d.y+p.y}},getDocumentElement:h.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,a=[..."clippingAncestors"===r?(0,h.Tf)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,h.v9)(e,[],!1).filter(e=>(0,h.vq)(e)&&"body"!==(0,h.mq)(e)),i=null,a="fixed"===(0,h.L9)(e).position,o=a?(0,h.$4)(e):e;for(;(0,h.vq)(o)&&!(0,h.eu)(o);){let t=(0,h.L9)(o),r=(0,h.sQ)(o);r||"fixed"!==t.position||(i=null),(a?r||i:!(!r&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,h.ZU)(o)&&!r&&function e(t,r){let n=(0,h.$4)(t);return!(n===r||!(0,h.vq)(n)||(0,h.eu)(n))&&("fixed"===(0,h.L9)(n).position||e(n,r))}(e,o)))?i=t:n=n.filter(e=>e!==o),o=(0,h.$4)(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],o=_(t,a[0],i),s=o.top,u=o.right,c=o.bottom,d=o.left;for(let e=1;e<a.length;e++){let r=_(t,a[e],i);s=(0,l.T9)(r.top,s),u=(0,l.jk)(r.right,u),c=(0,l.jk)(r.bottom,c),d=(0,l.T9)(r.left,d)}return{width:u-d,height:c-s,x:d,y:s}},getOffsetParent:C,getElementRects:O,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=P(e);return{width:t,height:r}},getScale:S,isElement:h.vq,isRTL:function(e){return"rtl"===(0,h.L9)(e).direction}};function D(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function F(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,d=R(e),f=a||o?[...d?(0,h.v9)(d):[],...t?(0,h.v9)(t):[]]:[];
1f.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)});let p=d&&u?function(e,t){let r,n=null,i=(0,h.ep)(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function o(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=c;if(s||t(),!f||!p)return;let m=(0,l.RI)(h),g=(0,l.RI)(i.clientWidth-(d+f)),y={rootMargin:-m+"px "+-g+"px "+-(0,l.RI)(i.clientHeight-(h+p))+"px "+-(0,l.RI)(d)+"px",threshold:(0,l.T9)(0,(0,l.jk)(1,u))||1},v=!0;function w(t){let n=t[0].intersectionRatio;if(n!==u){if(!v)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==n||D(c,e.getBoundingClientRect())||o(),v=!1}try{n=new IntersectionObserver(w,{...y,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(w,y)}n.observe(e)}(!0),a}(d,r):null,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),d&&!c&&g.observe(d),t&&g.observe(t));let y=c?T(e):null;return c&&function t(){let n=T(e);y&&!D(y,n)&&r(),y=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{a&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(i)}}var N=r(26351),U="undefined"!=typeof document?n.useLayoutEffect:function(){};function M(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!M(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!M(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function H(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L(e,t){let r=H(e);return Math.round(t*r)/r}function W(e){let t=n.useRef(e);return U(()=>{t.current=e}),t}var B=r(96982),$=r(71853),V=r(65218);let Q={name:"hide",async fn(e){let{width:t,height:r,x:n,y:i}=e.rects.reference,a=await ((e,t)=>{var r;let n=(void 0===(r=e)&&(r={}),{name:"hide",options:r,async fn(e){let{rects:t,platform:n}=e,{strategy:i="referenceHidden",...a}=(0,l._3)(r,e);switch(i){case"referenceHidden":{let r=y(await n.detectOverflow(e,{...a,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:v(r)}}}case"escaped":{let r=y(await n.detectOverflow(e,{...a,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:v(r)}}}default:return{}}}});return{name:n.name,fn:n.fn,options:[e,t]}})().fn(e);return{data:{referenceHidden:a.data?.referenceHidden||0===t&&0===r&&0===n&&0===i}}}},K={sideX:"left",sideY:"top"};function G(e,t,r){let n="inline-start"===e||"inline-end"===e;return({top:"top",right:n?r?"inline-start":"inline-end":"right",bottom:"bottom",left:n?r?"inline-end":"inline-start":"left"})[t]}function z(e,t,r){let{rects:n,placement:i}=e;return{side:G(t,(0,l.C0)(i),r),align:(0,l.Sg)(i)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function J(e){return null!=e&&"current"in e}var X=r(32566),Z=r(2763),Y=r(55164),ee=r(5498);let et=n.forwardRef(function(e,t){let r,{cutout:n,...i}=e;if(n){let e=n.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,ee.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});var er=r(56058),en=r(81082),ei=r(76011),ea=r(63843),eo=r(93387),es=r(10772),eu=r(79378),ec=r(62839);let el={},ed={},eh="";class ef{acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}lock(e){if(0===this.lockCount||null!==this.restore)return;let t=(0,d.R)(e).documentElement,r=(0,h.zk)(t).getComputedStyle(t).overflowY;if("hidden"===r||"clip"===r){this.restore=ec.tE;return}let n=eo.un||!function(e){if("undefined"==typeof document)return!1;let t=(0,d.R)(e);return(0,h.zk)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=n?function(e){let t=(0,d.R)(e),r=t.documentElement,n=t.body,i=(0,h.ZU)(r)?r:n,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,a)}}(e):function(e){var t,r;let n=(0,d.R)(e),i=n.documentElement,a=n.body,o=(0,h.zk)(i),s=0,u=0,c=!1,l=eu.K.create();
1if(eo.Tc&&(null!=(r=null==(t=o.visualViewport)?void 0:t.scale)?r:1)!==1)return()=>{};function f(){let t=o.getComputedStyle(i),r=o.getComputedStyle(a),n=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=i.scrollTop,u=i.scrollLeft,el={scrollbarGutter:i.style.scrollbarGutter,overflowY:i.style.overflowY,overflowX:i.style.overflowX},eh=i.style.scrollBehavior,ed={position:a.style.position,height:a.style.height,width:a.style.width,boxSizing:a.style.boxSizing,overflowY:a.style.overflowY,overflowX:a.style.overflowX,scrollBehavior:a.style.scrollBehavior};let l=i.scrollHeight>i.clientHeight,f=i.scrollWidth>i.clientWidth,p="scroll"===t.overflowY||"scroll"===r.overflowY,m="scroll"===t.overflowX||"scroll"===r.overflowX,g=Math.max(0,o.innerWidth-a.clientWidth),y=Math.max(0,o.innerHeight-a.clientHeight),v=parseFloat(r.marginTop)+parseFloat(r.marginBottom),w=parseFloat(r.marginLeft)+parseFloat(r.marginRight),b=(0,h.ZU)(i)?i:a;if(c=function(e){if(!("undefined"!=typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"undefined"==typeof document)return!1;let t=(0,d.R)(e),r=t.documentElement,n=t.body,i=(0,h.ZU)(r)?r:n,a=i.style.overflowY,o=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";let s=i.offsetWidth;i.style.overflowY="hidden";let u=i.offsetWidth;return i.style.overflowY=a,r.style.scrollbarGutter=o,s===u}(e)){i.style.scrollbarGutter=n,b.style.overflowY="hidden",b.style.overflowX="hidden";return}Object.assign(i.style,{scrollbarGutter:n,overflowY:"hidden",overflowX:"hidden"}),(l||p)&&(i.style.overflowY="scroll"),(f||m)&&(i.style.overflowX="scroll"),Object.assign(a.style,{position:"relative",height:v||y?"calc(100dvh - ".concat(v+y,"px)"):"100dvh",width:w||g?"calc(100vw - ".concat(w+g,"px)"):"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),a.scrollTop=s,a.scrollLeft=u,i.setAttribute("data-base-ui-scroll-locked",""),i.style.scrollBehavior="unset"}function p(){Object.assign(i.style,el),Object.assign(a.style,ed),c||(i.scrollTop=s,i.scrollLeft=u,i.removeAttribute("data-base-ui-scroll-locked"),i.style.scrollBehavior=eh)}f();let m=(0,ea.q)(o,"resize",function(){p(),l.request(f)});return()=>{l.cancel(),p(),"function"==typeof o.removeEventListener&&m()}}(e)}constructor(){this.lockCount=0,this.restore=null,this.timeoutLock=es.E.create(),this.timeoutUnlock=es.E.create(),this.release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)},this.unlock=()=>{if(0===this.lockCount&&this.restore){var e;null==(e=this.restore)||e.call(this),this.restore=null}}}}let ep=new ef,em=n.forwardRef(function(e,t){var r,p;let{render:m,className:y,anchor:v,positionMethod:P="absolute",side:R="bottom",align:S="center",sideOffset:E=0,alignOffset:x=0,collisionBoundary:T="clipping-ancestors",collisionPadding:I=5,arrowPadding:q=5,sticky:_=!1,disableAnchorTracking:k=!1,collisionAvoidance:A=Z.uD,style:C,...O}=e,D=(0,u.Ee)(),{filteredItems:ea}=(0,u.Dc)(),eo=(0,u.ui)(),es=(0,X.s)(),eu=(0,i.P)(D,Y.T.modal),ec=(0,i.P)(D,Y.T.open),el=(0,i.P)(D,Y.T.mounted),ed=(0,i.P)(D,Y.T.openMethod),eh=(0,i.P)(D,Y.T.positionerElement),ef=(0,i.P)(D,Y.T.triggerElement),em=(0,i.P)(D,Y.T.inputElement),eg=(0,i.P)(D,Y.T.inputGroupElement),ey=(0,i.P)(D,Y.T.inputInsidePopup),ev=(0,i.P)(D,Y.T.transitionStatus),ew=0===ea.length,eb=function(e){var t,r;let i,s,{anchor:u,positionMethod:c="absolute",side:p="bottom",sideOffset:m=0,align:y="center",alignOffset:v=0,collisionBoundary:P,collisionPadding:R=5,sticky:S=!1,arrowPadding:E=5,disableAnchorTracking:x=!1,inline:T,keepMounted:I=!1,floatingRootContext:q,mounted:_,collisionAvoidance:k,shiftCrossAxis:A=!1,nodeId:C,adaptiveOrigin:O,lazyFlip:D=!1,externalTree:X}=e,[Z,Y]=n.useState(null);_||null===Z||Y(null);let ee=k.side||"flip",et=k.align||"flip",er=k.fallbackAxisSide||"end",en="function"==typeof u?u:void 0,ei=(0,o.K)(en),ea=en?ei:u,eo=(0,f.u)(u),es=(0,f.u)(_),eu="rtl"===(0,V.j)(),ec=Z||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":eu?"left":"right","inline-start":eu?"right":"left"})[p],el="center"===y?ec:"".concat(ec,"-").concat(y),ed=R,eh=+("bottom"===p),ef=+("top"===p),ep=+("right"===p),em=+("left"===p);"number"==typeof ed?ed={top:ed+eh,right:ed+em,bottom:ed+ef,left:ed+ep}:ed&&(ed={top:(ed.top||0)+eh,right:(ed.right||0)+em,bottom:(ed.bottom||0)+ef,left:(ed.left||0)+ep});
1let eg={boundary:"clipping-ancestors"===P?"clippingAncestors":P,padding:ed},ey=n.useRef(null),ev=(0,f.u)(m),ew=(0,f.u)(v),eb="function"!=typeof m?m:0,eP="function"!=typeof v?v:0,eR=[];T&&eR.push(T),eR.push(((e,t)=>{var r;let n=(void 0===(r=e)&&(r=0),{name:"offset",options:r,async fn(e){var t,n;let{x:i,y:a,placement:o,middlewareData:s}=e,u=await b(e,r);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}});return{name:n.name,fn:n.fn,options:[e,t]}})(e=>{let t=z(e,p,eu),r="function"==typeof ev.current?ev.current(t):ev.current,n="function"==typeof ew.current?ew.current(t):ew.current;return{mainAxis:r,crossAxis:n,alignmentAxis:n}},[eb,eP,eu,p]));let eS="none"===et&&"shift"!==ee,eE=!eS&&(S||A||"shift"===ee),ex="none"===ee?null:((e,t)=>{var r;let n=(void 0===(r=e)&&(r={}),{name:"flip",options:r,async fn(e){var t,n,i,a,o;let{placement:s,middlewareData:u,rects:c,initialPlacement:d,platform:h,elements:f}=e,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...b}=(0,l._3)(r,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let P=(0,l.C0)(s),R=(0,l.TV)(d),S=(0,l.C0)(d)===d,E=await (null==h.isRTL?void 0:h.isRTL(f.floating)),x=g||(S||!w?[(0,l.bV)(d)]:(0,l.WJ)(d)),T="none"!==v;!g&&T&&x.push(...(0,l.lP)(d,w,v,E));let I=[d,...x],q=await h.detectOverflow(e,b),_=[],k=(null==(n=u.flip)?void 0:n.overflows)||[];if(p&&_.push(q[P]),m){let e=(0,l.w7)(s,c,E);_.push(q[e[0]],q[e[1]])}if(k=[...k,{placement:s,overflows:_}],!_.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=I[e];if(t&&("alignment"!==m||R===(0,l.TV)(t)||k.every(e=>(0,l.TV)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:t}};let r=null==(a=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(y){case"bestFit":{let e=null==(o=k.filter(e=>{if(T){let t=(0,l.TV)(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=d}if(s!==r)return{reset:{placement:r}}}return{}}});return{name:n.name,fn:n.fn,options:[e,t]}})({...eg,padding:{top:ed.top+1,right:ed.right+1,bottom:ed.bottom+1,left:ed.left+1},mainAxis:!A&&"flip"===ee,crossAxis:"flip"===et&&"alignment",fallbackAxisSideDirection:er}),eT=eS?null:((e,t)=>{var r;let n=(void 0===(r=e)&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:n,placement:i,platform:a}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=(0,l._3)(r,e),d={x:t,y:n},h=await a.detectOverflow(e,c),f=(0,l.TV)((0,l.C0)(i)),p=(0,l.PG)(f),m=d[p],g=d[f];
1if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=m+h[e],n=m-h[t];m=(0,l.qE)(r,m,n)}if(s){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=g+h[e],n=g-h[t];g=(0,l.qE)(r,g,n)}let y=u.fn({...e,[p]:m,[f]:g});return{...y,data:{x:y.x-t,y:y.y-n,enabled:{[p]:o,[f]:s}}}}});return{name:n.name,fn:n.fn,options:[e,t]}})(e=>{var t,r,n;let i=(0,d.R)(e.elements.floating).documentElement;return{...eg,rootBoundary:A?{x:0,y:0,width:i.clientWidth,height:i.clientHeight}:void 0,mainAxis:"none"!==et,crossAxis:eE,limiter:S||A?void 0:{fn:(void 0===(n=t=e=>{if(!ey.current)return{};let{width:t,height:r}=ey.current.getBoundingClientRect(),n=(0,l.TV)((0,l.C0)(e.placement)),i="y"===n?ed.left+ed.right:ed.top+ed.bottom;return{offset:("y"===n?t:r)/2+i/2}})&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:a,middlewareData:o}=e,{offset:s=0,mainAxis:u=!0,crossAxis:c=!0}=(0,l._3)(n,e),d={x:t,y:r},h=(0,l.TV)(i),f=(0,l.PG)(h),p=d[f],m=d[h],g=(0,l._3)(s,e),y="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+y.mainAxis,r=a.reference[f]+a.reference[e]-y.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var v,b;let e="y"===f?"width":"height",t=w.has((0,l.C0)(i)),r=a.reference[h]-a.floating[e]+(t&&(null==(v=o.offset)?void 0:v[h])||0)+(t?0:y.crossAxis),n=a.reference[h]+a.reference[e]+(t?0:(null==(b=o.offset)?void 0:b[h])||0)-(t?y.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[f]:p,[h]:m}}}).fn,options:[t,r]}}},[eg,S,A,ed,et]);"shift"===ee||"shift"===et||"center"===y?eR.push(eT,ex):eR.push(ex,eT),eR.push(((e,t)=>{var r;let n=(void 0===(r=e)&&(r={}),{name:"size",options:r,async fn(e){var t,n;let i,a,{placement:o,rects:s,platform:u,elements:c}=e,{apply:d=()=>{},...h}=(0,l._3)(r,e),f=await u.detectOverflow(e,h),p=(0,l.C0)(o),m=(0,l.Sg)(o),g="y"===(0,l.TV)(o),{width:y,height:v}=s.floating;"top"===p||"bottom"===p?(i=p,a=m===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(a=p,i="end"===m?"top":"bottom");let w=v-f.top-f.bottom,b=y-f.left-f.right,P=(0,l.jk)(v-f[i],w),R=(0,l.jk)(y-f[a],b),S=!e.middlewareData.shift,E=P,x=R;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(x=b),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(E=w),S&&!m){let e=(0,l.T9)(f.left,0),t=(0,l.T9)(f.right,0),r=(0,l.T9)(f.top,0),n=(0,l.T9)(f.bottom,0);g?x=y-2*(0!==e||0!==t?e+t:(0,l.T9)(f.left,f.right)):E=v-2*(0!==r||0!==n?r+n:(0,l.T9)(f.top,f.bottom))}await d({...e,availableWidth:x,availableHeight:E});let T=await u.getDimensions(c.floating);return y!==T.width||v!==T.height?{reset:{rects:!0}}:{}}});return{name:n.name,fn:n.fn,options:[e,t]}})({...eg,apply(e){let{elements:{floating:t},availableWidth:r,availableHeight:n,rects:i}=e;if(!es.current)return;let a=t.style;a.setProperty("--available-width","".concat(r,"px")),a.setProperty("--available-height","".concat(n,"px"));let o=(0,h.zk)(t).devicePixelRatio||1,{x:s,y:u,width:c,height:l}=i.reference,d=(Math.round((s+c)*o)-Math.round(s*o))/o,f=(Math.round((u+l)*o)-Math.round(u*o))/o;a.setProperty("--anchor-width","".concat(d,"px")),a.setProperty("--anchor-height","".concat(f,"px"))}}),(i=e=>({element:ey.current||(0,d.R)(e.elements.floating).createElement("div"),padding:E,offsetParent:"floating"}),s=[E],{name:"arrow",options:i,async fn(e){let{x:t,y:r,placement:n,rects:a,platform:o,elements:s,middlewareData:u}=e,{element:c,padding:d=0,offsetParent:h="real"}=(0,l._3)(i,e)||{};if(null==c)return{};let f=(0,l.nI)(d),p={x:t,y:r},m=(0,l.Dz)(n),g=(0,l.sq)(m),y=await o.getDimensions(c),v="y"===m,w=v?"clientHeight":"clientWidth",b=a.reference[g]+a.reference[m]-p[m]-a.floating[g],P=p[m]-a.reference[m],R="real"===h?await o.getOffsetParent?.(c):s.floating,S=s.floating[w]||a.floating[g];S&&await o.isElement?.(R)||(S=s.floating[w]||a.floating[g]);let E=S/2-y[g]/2-1,x=Math.min(f[v?"top":"left"],E),T=Math.min(f[v?"bottom":"right"],E),I=S-y[g]-T,q=S/2-y[g]/2+(b/2-P/2),_=(0,l.qE)(x,q,I),k=!u.arrow&&null!=(0,l.Sg)(n)&&q!==_&&a.reference[g]/2-(q<x?x:T)-y[g]/2<0,A=k?q<x?q-x:q-I:0;return{[m]:p[m]+A,data:{[m]:_,centerOffset:q-_-A,...k&&{alignmentOffset:A}},reset:k}},options:[i,s]}),{name:"transformOrigin",fn(e){var t,r,n;let{elements:i,middlewareData:a,placement:o,rects:s,y:u}=e,c=(0,l.C0)(o),d=(0,l.TV)(c),h=ey.current,f=(null==(t=a.arrow)?void 0:t.x)||0,g=(null==(r=a.arrow)?void 0:r.y
1)||0,y=(null==h?void 0:h.clientWidth)||0,v=(null==h?void 0:h.clientHeight)||0,w=f+y/2,b=g+v/2,P=Math.abs((null==(n=a.shift)?void 0:n.y)||0),R=s.reference.height/2,S="function"==typeof m?m(z(e,p,eu)):m,E=P>S,x={top:"".concat(w,"px calc(100% + ").concat(S,"px)"),bottom:"".concat(w,"px ").concat(-S,"px"),left:"calc(100% + ".concat(S,"px) ").concat(b,"px"),right:"".concat(-S,"px ").concat(b,"px")}[c],T="".concat(w,"px ").concat(s.reference.y+R-u,"px");return i.floating.style.setProperty("--transform-origin",eE&&"y"===d&&E?T:x),{}}},Q,O),(0,a.g)(()=>{!_&&q&&q.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,q]);let eI=n.useMemo(()=>({elementResize:!x&&"undefined"!=typeof ResizeObserver,layoutShift:!x&&"undefined"!=typeof IntersectionObserver}),[x]),{refs:eq,elements:e_,x:ek,y:eA,middlewareData:eC,update:eO,placement:ej,context:eD,isPositioned:eF,floatingStyles:eN}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{nodeId:t,externalTree:r}=e,i=(0,$.P)(e),o=e.rootContext||i,s=o.useState("referenceElement"),u=o.useState("floatingElement"),c=o.useState("domReferenceElement"),l=o.useState("open"),d=o.useState("floatingId"),[f,p]=n.useState(null),[m,y]=n.useState(void 0),[v,w]=n.useState(void 0),b=n.useRef(null),P=(0,B.cq)(r),R=n.useMemo(()=>({reference:s,floating:u,domReference:c}),[s,u,c]),S=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:u=!0,whileElementsMounted:c,open:l}=e,[d,h]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=n.useState(i);M(f,i)||p(i);let[m,y]=n.useState(null),[v,w]=n.useState(null),b=n.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),P=n.useCallback(e=>{e!==x.current&&(x.current=e,w(e))},[]),R=o||m,S=s||v,E=n.useRef(null),x=n.useRef(null),T=n.useRef(d),I=null!=c,q=W(c),_=W(a),k=W(l),A=n.useCallback(()=>{if(!E.current||!x.current)return;let e={placement:t,strategy:r,middleware:f};_.current&&(e.platform=_.current),((e,t,r)=>{let n=new Map,i={platform:j,...r},a={...i.platform,_c:n};return g(e,t,{...i,platform:a})})(E.current,x.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};C.current&&!M(T.current,t)&&(T.current=t,N.flushSync(()=>{h(t)}))})},[f,t,r,_,k]);U(()=>{!1===l&&T.current.isPositioned&&(T.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[l]);let C=n.useRef(!1);U(()=>(C.current=!0,()=>{C.current=!1}),[]),U(()=>{if(R&&(E.current=R),S&&(x.current=S),R&&S){if(q.current)return q.current(R,S,A);A()}},[R,S,A,q,I]);let O=n.useMemo(()=>({reference:E,floating:x,setReference:b,setFloating:P}),[b,P]),D=n.useMemo(()=>({reference:R,floating:S}),[R,S]),F=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!D.floating)return e;let t=L(D.floating,d.x),n=L(D.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...H(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,D.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:A,refs:O,elements:D,floatingStyles:F}),[d,A,O,D,F])}({...e,elements:{...R,...f&&{reference:f}}}),E=(0,h.vq)(m)?m:null,x=void 0===v?o.state.floatingElement:v;o.useSyncedValue("referenceElement",null!=m?m:null),o.useSyncedValue("domReferenceElement",void 0===m?c:E),o.useSyncedValue("floatingElement",x);let T=n.useCallback(e=>{let t=(0,h.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),S.refs.setReference(t)},[S.refs]),I=n.useCallback(e=>{((0,h.vq)(e)||null===e)&&(b.current=e,y(e)),((0,h.vq)(S.refs.reference.current)||null===S.refs.reference.current||null!==e&&!(0,h.vq)(e))&&S.refs.setReference(e)},[S.refs,y]),q=n.useCallback(e=>{w(e),S.refs.setFloating(e)},[S.refs]),_=n.useMemo(()=>({...S.refs,setReference:I,setFloating:q,setPositionReference:T,domReference:b}),[S.refs,I,q,T]),k=n.useMemo(()=>({...S.elements,domReference:c}),[S.elements,c]),A=n.useMemo(()=>({...S,dataRef:o.context.dataRef,open:l,onOpenChange:o.setOpen,events:o.context.events,floatingId:d,refs:_,elements:k,nodeId:t,rootStore:o}),[S,_,k,t,o,l,d]);return(0,a.g)(()=>{c&&(b.current=c)},[c]),(0,a.g)(()=>{o.context.dataRef.current.floatingContext=A;let e=null==P?void 0:P.nodesRef.current.find(e=>e.id===t);e&&(e.context=A)}),n.useMemo(()=>({...S,context:A,refs:_,elements:k,rootStore:o}),[S,_,k,A,o])}({rootContext:q,open:I?_:void 0,placement:el,middleware:eR,strategy:c,whileElementsMounted:I?void 0:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return F(...t,eI)},nodeId:C,externalTree:X}),{sideX:eU,sideY:eM}=eC.adaptiveOrigin||K,eH=eF?c:"fixed",eL=n.useMemo(()=>{let e=O?{position:eH,[eU]:ek,[eM]:eA}:{position:eH,...eN};return eF||(e.opacity=0),e},[O,eH,eU,ek,eM,eA,eN,eF]),eW=n.useRef(null);(0,a.g)(()=>
1{if(!_)return;let e=eo.current,t="function"==typeof e?e():e,r=(J(t)?t.current:t)||null;r!==eW.current&&(eq.setPositionReference(r),eW.current=r)},[_,eq,ea,eo]),n.useEffect(()=>{if(!_)return;let e=eo.current;"function"!=typeof e&&J(e)&&e.current!==eW.current&&(eq.setPositionReference(e.current),eW.current=e.current)},[_,eq,ea,eo]),n.useEffect(()=>{if(I&&_&&e_.domReference&&e_.floating)return F(e_.domReference,e_.floating,eO,eI)},[I,_,e_,eO,eI]);let eB=(0,l.C0)(ej),e$=G(p,eB,eu),eV=(0,l.Sg)(ej)||"center",eQ=!!(null==(t=eC.hide)?void 0:t.referenceHidden);(0,a.g)(()=>{D&&_&&eF&&Y(eB)},[D,_,eF,eB]);let eK=n.useMemo(()=>{var e,t;return{position:"absolute",top:null==(e=eC.arrow)?void 0:e.y,left:null==(t=eC.arrow)?void 0:t.x}},[eC.arrow]),eG=(null==(r=eC.arrow)?void 0:r.centerOffset)!==0;return n.useMemo(()=>({positionerStyles:eL,arrowStyles:eK,arrowRef:ey,arrowUncentered:eG,side:e$,align:eV,physicalSide:eB,anchorHidden:eQ,refs:eq,context:eD,isPositioned:eF,update:eO}),[eL,eK,ey,eG,e$,eV,eB,eQ,eq,eD,eF,eO])}({anchor:null!=v?v:ey?ef:null!=eg?eg:em,floatingRootContext:eo,positionMethod:P,mounted:el,side:R,sideOffset:E,align:S,alignOffset:x,arrowPadding:q,collisionBoundary:T,collisionPadding:I,sticky:_,disableAnchorTracking:k,keepMounted:es,collisionAvoidance:A,lazyFlip:!0});!function(e,t,r,i){let[o,s]=n.useState(!1);(0,a.g)(()=>{if(!e||!t||null==r)return void s(!1);let n=(0,d.R)(r).documentElement.clientWidth,i=r.offsetWidth;s(n>0&&i>0&&i>=n-20)},[e,t,r]),function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,a.g)(()=>{if(e)return ep.acquire(t)},[e,t])}(e&&(!t||o),i)}(ec&&eu,"touch"===ed,eh,ef);let eP={open:ec,side:eb.side,align:eb.align,anchorHidden:eb.anchorHidden,empty:ew};(0,a.g)(()=>{D.set("popupSide",eb.side)},[D,eb.side]);let eR=(0,o.K)(e=>{D.set("positionerElement",e)}),eS=function(e,t,r){let{styles:n,transitionStatus:i,props:a,refs:o,hidden:s,inert:u=!1}=r,c={...n};return u&&(c.pointerEvents="none"),(0,en.o)("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:s,style:c},(0,ei.d)(i),a],stateAttributesMapping:er.GW})}(e,eP,{styles:eb.positionerStyles,transitionStatus:ev,props:O,refs:[t,eR],hidden:!el,inert:!ec});return(0,ee.jsxs)(c.Z.Provider,{value:eb,children:[el&&eu&&(0,ee.jsx)(et,{inert:(p=!ec,(0,s._)(19)?p:p?"true":void 0),cutout:null!=(r=null!=eg?eg:em)?r:ef}),eS]})})},10727:(e,t,r)=>{"use strict";var n=r(53983);e.exports=Function.prototype.bind||n},10772:(e,t,r)=>{"use strict";r.d(t,{E:()=>a,Z:()=>o});var n=r(70236),i=r(25153);class a{static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}}function o(){let e=(0,n.j)(a.create).current;return(0,i.y)(e.disposeEffect),e}},11087:e=>{"use strict";e.exports=Math.min},11390:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},11745:(e,t,r)=>{"use strict";r.d(t,{Bo:()=>s,Dq:()=>p,N7:()=>a,Np:()=>o,SR:()=>u,Ui:()=>i,Wn:()=>m,Xn:()=>h,_J:()=>d,dv:()=>n,jv:()=>f,pf:()=>c,qs:()=>l});let n="none",i="trigger-press",a="trigger-hover",o="outside-press",s="item-press",u="close-press",c="input-change",l="input-clear",d="input-press",h="focus-out",f="escape-key",p="list-navigation",m="pointer"},12429:(e,t,r)=>{"use strict";r.d(t,{G:()=>u});var n=r(9451),i=r(11390),a=r(61850),o=r(3836),s=r(83986),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,h=void 0===d?"span":d,f=e.separator,p=void 0===f?", ":f,m=e.className,g=e.classNames,y=void 0===g?{}:g,v=(0,a._)(e,["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"]);return t("span",(0,i._)((0,n._)({}
1,v),{className:(0,o.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:h,isHighlighted:e.isHighlighted},e.value)}),!i&&t("span",{className:y.separator},p))}))}}({createElement:s.createElement,Fragment:s.Fragment})},12480: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}},13311:e=>{"use strict";e.exports="3.28.2"},13321:(e,t,r)=>{"use strict";function n(e){return e?.ownerDocument||document}r.d(t,{R:()=>n})},13637: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}},14868:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{l:()=>n})},14940:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>n})},15075:(e,t,r)=>{"use strict";let n;function i(){return"undefined"!=typeof window}function a(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return!!i()&&(e instanceof Node||e instanceof o(e).Node)}function c(e){return!!i()&&(e instanceof Element||e instanceof o(e).Element)}function l(e){return!!i()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function d(e){return!!i()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function h(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function f(e){return/^(table|td|th)$/.test(a(e))}function p(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}r.d(t,{$4:()=>E,CP:()=>S,L9:()=>R,Ll:()=>u,Lv:()=>f,Ng:()=>d,Tc:()=>b,Tf:()=>p,ZU:()=>h,_m:()=>x,ep:()=>s,eu:()=>P,gJ:()=>w,mq:()=>a,sQ:()=>v,sb:()=>l,v9:()=>function e(t,r,n){var i;void 0===r&&(r=[]),void 0===n&&(n=!0);let a=function e(t){let r=E(t);return P(r)?t.ownerDocument?t.ownerDocument.body:t.body:l(r)&&h(r)?r:e(r)}(t),s=a===(null==(i=t.ownerDocument)?void 0:i.body),u=o(a);if(!s)return r.concat(a,e(a,[],n));{let t=x(u);return r.concat(u,u.visualViewport||[],h(a)?a:[],t&&n?e(t):[])}},vq:()=>c,zk:()=>o});let m=/transform|translate|scale|rotate|perspective|filter/,g=/paint|layout|strict|content/,y=e=>!!e&&"none"!==e;function v(e){let t=c(e)?R(e):e;return y(t.transform)||y(t.translate)||y(t.scale)||y(t.rotate)||y(t.perspective)||!b()&&(y(t.backdropFilter)||y(t.filter))||m.test(t.willChange||"")||g.test(t.contain||"")}function w(e){let t=E(e);for(;l(t)&&!P(t);){if(v(t))return t;if(p(t))break;t=E(t)}return null}function b(){return null==n&&(n="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function P(e){return/^(html|body|#document)$/.test(a(e))}function R(e){return o(e).getComputedStyle(e)}function S(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function E(e){if("html"===a(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},15084:(e,t,r)=>{"use strict";var n=r(53955),i=r(53854),a=r(22396),o=r(36573),s=r(35161),u=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(o&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),l(e,r,n)):o&&(t||(t=o()),t.set(r,n))}};return r}:o},15346:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(38298),i=r(26821),a=r(56116);function o(e,t){return(0,n._)(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||(0,a._)(e,t)||(0,i._)()}},16208:e=>{"use strict";e.exports=Function.prototype.call},18919:(e,t,r)=>{"use strict";r.d(t,{u:()=>y});var n=r(51937),i=r(9451),a=r(11390),o=r(15346),s=r(95428),u=r(14940);function c(e){var t=e.helper,r=e.widgetType;e.methodName;var n=e.args,a=e.instantSearchInstance;if(1===n.length&&"object"===(0,s._)(n[0]))return[n[0]];var u=(0,o._)(n[0].split(":"),2),c=u[0],l=u[1],d=n[1],h=n[2],f=n[3]||{};if(!d||("click"===c||"conversion"===c)&&!h)return[];var p=Array.isArray(d)?d:[d];if(0===p.length)return[];var m=p[0].__queryID,g=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);
1n++)r.push(e.slice(n*t,(n+1)*t));return r}(p),y=g.map(function(e){return e.map(function(e){return e.objectID})}),v=g.map(function(e){return e.map(function(e){return e.__position})});return"view"===c?"idle"!==a.status?[]:g.map(function(e,n){var a;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:c,payload:(0,i._)({eventName:h||"Hits Viewed",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,objectIDs:y[n]},f),hits:e,eventModifier:l}}):"click"===c?g.map(function(e,n){var a;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:c,payload:(0,i._)({eventName:h||"Hit Clicked",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:m,objectIDs:y[n],positions:v[n]},f),hits:e,eventModifier:l}}):"conversion"===c?g.map(function(e,n){var a;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:c,payload:(0,i._)({eventName:h||"Hit Converted",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:m,objectIDs:y[n]},f),hits:e,eventModifier:l}}):[]}var l=r(99798),d=r(77344),h=r(56627),f=r(14868),p=(0,l.V)({name:"hits",connector:!0}),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.l;return(0,d.t)(e,p()),function(r){var o,s,l=r||{},d=l.escapeHTML,f=void 0===d||d,p=l.transformItems,m=void 0===p?function(e){return e}:p;return{$$type:"ais.hits",init:function(t){e((0,a._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e((0,a._)((0,i._)({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return(0,a._)((0,i._)({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,n,l,d,p,g,y,v,w,b,P,R,S,E,x,T,I,q,_=e.results,k=e.helper,A=e.instantSearchInstance;if(o||(n=(t={instantSearchInstance:A,helper:k,widgetType:this.$$type}).instantSearchInstance,l=t.helper,d=t.widgetType,p={},g=void 0,o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];c({widgetType:d,helper:l,methodName:"sendEvent",args:t,instantSearchInstance:n}).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&p[e.eventType]||(p[e.eventType]=!0,n.sendEventToInsights(e))}),clearTimeout(g),g=setTimeout(function(){p={}},0)}),s||(v=(y={helper:k,widgetType:this.$$type,instantSearchInstance:A}).helper,w=y.widgetType,b=y.instantSearchInstance,s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=c({widgetType:w,helper:v,methodName:"bindEvent",args:t,instantSearchInstance:b});return n.length?"data-insights-event=".concat((0,u.h)(n)):""}),!_)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:o,bindEvent:s,widgetParams:r};f&&_.hits.length>0&&(_.hits=(0,h.S8)(_.hits));var C=m((P=_.hits,R=_.page,S=_.hitsPerPage,E=P.map(function(e,t){return(0,a._)((0,i._)({},e),{__position:S*R+t+1})}),(x=_.queryID)?E.map(function(e){return(0,a._)((0,i._)({},e),{__queryID:x})}):E),{results:_}),O=null==(q=_.renderingContent)||null==(I=q.widgets)||null==(T=I.banners)?void 0:T[0];return{hits:C,items:C,results:_,banner:O,sendEvent:o,bindEvent:s,widgetParams:r}},dispose:function(e){var r=e.state;return(t(),f)?r.setQueryParameters(Object.keys(h.FU).reduce(function(e,t){return(0,a._)((0,i._)({},e),(0,n._)({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return f?e.setQueryParameters(h.FU):e}}}},g=r(49086);function y(e,t){return(0,g.Z)(m,e,t)}},19275:e=>{"use strict";e.exports=Math.round},19341:(e,t,r)=>{"use strict";let n;r.d(t,{P:()=>u});var i=r(83986),a=r(46315),o=r(8397);let s=(0,r(37975)._)(19)?function(e,t,r,o,s){let u;if(!n){let n=i.useCallback(()=>t(e.getSnapshot(),r,o,s),[e,t,r,o,s]);return(0,a.useSyncExternalStore)(e.subscribe,n,n)}let c=n.syncIndex;return n.syncIndex+=1,n.didInitialize?(u=n.syncHooks[c]).store===e&&u.selector===t&&Object.is(u.a1,r)&&Object.is(u.a2,o)&&Object.is(u.a3,s)||(u.store!==e&&(n.didChangeStore=!0),u.store=e,u.selector=t,u.a1=r,u.a2=o,u.a3=s,u.didChange=!0):(u={store:e,selector:t,a1:r,a2:o,a3:s,value:t(e.getSnapshot(),r,o,s),didChange:!1},n.syncHooks.push(u)),u.value}:function(e,t,r,n,i){return(0,o.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>
1t(e,r,n,i))};function u(e,t,r,n,i){return s(e,t,r,n,i)}[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let n=e.syncHooks[r],i=n.selector(n.store.state,n.a1,n.a2,n.a3);(n.didChange||!Object.is(n.value,i))&&(t=!0,n.value=i,n.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let t of e.syncHooks)r.add(t.store);let n=[];for(let e of r)n.push(e.subscribe(t));return()=>{for(let e of n)e()}}),(0,a.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},21443:(e,t,r)=>{"use strict";r.d(t,{Ev:()=>c,Go:()=>u,O_:()=>a,Pg:()=>s,YF:()=>o,jo:()=>i});var n=r(93387);function i(e){e.preventDefault(),e.stopPropagation()}function a(e){return"nativeEvent"in e}function o(e){return""===e.pointerType&&!!e.isTrusted||(n.m0&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!n.KT&&(!n.m0&&0===e.width&&0===e.height||n.m0&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function u(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function c(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},21518:e=>{"use strict";e.exports=SyntaxError},21933:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(10727).call(n,i)},22396:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&i&&"function"==typeof i.get?i.get:null,o=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,w=String.prototype.replace,b=String.prototype.toUpperCase,P=String.prototype.toLowerCase,R=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,x=Array.prototype.slice,T=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k?"object":"symbol")?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||R.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-T(-e):T(e);if(n!==e){var i=String(n),a=v.call(t,i.length+1);return w.call(i,r,"$&_")+"."+w.call(w.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,r,"$&_")}var D=r(22179),F=D.custom,N=$(F)?F:null,U={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function H(e,t,r){var n=U[r.quoteStyle||t];return n+e+n}function L(e){return!A||!("object"==typeof e&&(A in e||void 0!==e[A]))}function W(e){return"[object Array]"===K(e)&&L(e)}function B(e){return"[object RegExp]"===K(e)&&L(e)}function $(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var u,m,b,R,T,q=n||{};if(Q(q,"quoteStyle")&&!Q(U,q.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(Q(q,"maxStringLength")&&("number"==typeof q.maxStringLength?q.maxStringLength<0&&q.maxStringLength!==1/0:null!==q.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var F=!Q(q,"customInspect")||q.customInspect;if("boolean"!=typeof F&&"symbol"!==F)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1if(Q(q,"indent")&&null!==q.indent&&" "!==q.indent&&!(parseInt(q.indent,10)===q.indent&&q.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(q,"numericSeparator")&&"boolean"!=typeof q.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var V=q.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=M[r.quoteStyle||"single"];return i.lastIndex=0,H(w.call(w.call(t,i,"\\$1"),/[\x00-\x1f]/g,z),"single",r)}(t,q);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return V?j(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return V?j(t,er):er}var en=void 0===q.depth?5:q.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var ei=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(q,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function ea(t,r,n){if(r&&(s=x.call(s)).push(r),n){var a={depth:q.depth};return Q(q,"quoteStyle")&&(a.quoteStyle=q.quoteStyle),e(t,a,i+1,s)}return e(t,q,i+1,s)}if("function"==typeof t&&!B(t)){var eo=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,ea);return"[Function"+(eo?": "+eo:" (anonymous)")+"]"+(es.length>0?" { "+E.call(es,", ")+" }":"")}if($(t)){var eu=k?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||k?eu:J(eu)}if((ec=t)&&"object"==typeof ec&&("undefined"!=typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,el,ed="<"+P.call(String(t.nodeName)),eh=t.attributes||[],ef=0;ef<eh.length;ef++){ed+=" "+eh[ef].name+"="+H((el=eh[ef].value,w.call(String(el),/"/g,""")),"double",q)}return ed+=">",t.childNodes&&t.childNodes.length&&(ed+="..."),ed+="</"+P.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ep=ee(t,ea);return ei&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ep)?"["+Y(ep,ei)+"]":"[ "+E.call(ep,", ")+" ]"}if("[object Error]"===K(u=t)&&L(u)){var em=ee(t,ea);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===em.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(em,", ")+" }":"{ ["+String(t)+"] "+E.call(S.call("[cause]: "+ea(t.cause),em),", ")+" }"}if("object"==typeof t&&F){if(N&&"function"==typeof t[N]&&D)return D(t,{depth:en-i});else if("symbol"!==F&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eg=[];return o&&o.call(t,function(e,r){eg.push(ea(r,t,!0)+" => "+ea(e,t))}),Z("Map",a.call(t),eg,ei)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ey=[];return l&&l.call(t,function(e){ey.push(ea(e,t))}),Z("Set",c.call(t),ey,ei)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===K(m=t)&&L(m))return J(ea(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return J(ea(I.call(t)));if("[object Boolean]"===K(b=t)&&L(b))return J(p.call(t));if("[object String]"===K(R=t)&&L(R))return J(ea(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===K(T=t)&&L(T))&&!B(t)){var ev=ee(t,ea),ew=O?O(t)===Object.prototype:t instanceof Object||t.constructor===Object,eb=t instanceof Object?"":"null prototype",eP=!ew&&A&&Object(t)===t&&A in t?v.call(K(t),8,-1):eb?"Object":"",eR=(ew||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eP||eb?"["+E.call(S.call([],eP||[],eb||[]),": ")+"] ":"");return 0===ev.length?eR+"{}":ei?eR+"{"+Y(ev,ei)+"}":eR+"{ "+E.call(ev,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function Q(e,t){return V.call(e,t)}function K(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function J(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):E.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=W(e),i=[];if(n){i.length=e.length;for(var a=0;a<e.length;
1a++)i[a]=Q(e,a)?t(e[a],e):""}var o="function"==typeof q?q(e):[];if(k){r={};for(var s=0;s<o.length;s++)r["$"+o[s]]=o[s]}for(var u in e)if(Q(e,u)&&(!n||String(Number(u))!==u||!(u<e.length)))if(k&&r["$"+u]instanceof Symbol)continue;else R.call(/[^\w$]/,u)?i.push(t(u,e)+": "+t(e[u],e)):i.push(u+": "+t(e[u],e));if("function"==typeof q)for(var c=0;c<o.length;c++)C.call(e,o[c])&&i.push("["+t(o[c])+"]: "+t(e[o[c]],e));return i}},22429:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,M:()=>a});var n=r(83986);let i=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function a(){return n.useContext(i)}},22478:(e,t,r)=>{"use strict";var n=r(69959),i=r(90753),a=r(69296).escapeFacetValue,o=r(72715),s=r(82765),u=r(56048),c=r(52714),l=r(40282),d=r(37650),h=r(81345),f=r(88974),p=r(7486),m=r(1256),g=r(13311);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=f.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 w(){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 h._getHitsSearchParams(e)},y.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=h._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new p(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}):this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new p(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},y.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=s({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(h._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(a);var o=this.client.initIndex(n.index);if("function"!=typeof o.findAnswers)throw Error(a);return o.findAnswers(n.query,e.queryLanguages,i)},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=h.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]}
vendor: 9,412 bytes, line 1
1)),this.emit("searchForFacetValues",{state:u,facet:e,query:t});var f=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=t.facetHits.reduce(function(t,r){return f.indexOf(r.value)>-1||(r.escapedValue=a(r.value),r.isRefined=c?u.isDisjunctiveFacetRefined(e,r.escapedValue):u.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),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:h._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.removeParams(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:f.make(e),isPageReset:!1}),this},y.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new f(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=w,y.prototype.getPage=w,y.prototype.getTags=function(){return this.state.tagRefinements},y.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach(function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})}),t},y.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},y.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},y.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=h._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?h._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),a=Array.prototype.concat.apply(n,i),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=h._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},22984:(e,t,r)=>{"use strict";r.d(t,{BF:()=>d,FP:()=>g,J9:()=>y,Kg:()=>h,Y3:()=>m,Zb:()=>c,du:()=>u,fl:()=>p,vB:()=>l,zf:()=>f});var n=r(93493),i=r(15075),a=r(21443),o=r(37866);function s(e,t,r){return Math.floor(e/t)!==r}function u(e,t){return t<0||t>=e.length}function c(e,t){return d(e.current,{disabledIndices:t})}function l(e,t){return d(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function d(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:n,amount:i=1}={}){let a=t;do a+=r?-i:i;while(a>=0&&a<=e.length-1&&g(e,a,n));return a}function h(e,{event:t,orientation:r,loopFocus:i,onLoop:c,rtl:l,cols:h,disabledIndices:f,minIndex:p,maxIndex:m,prevIndex:y,stopEvent:v=!1}){let w,b=y;if(t.key===o.il?w="up":t.key===o.Jd&&(w="down"),w){let r=[],o=[],s=!1,l=0;{let t=null,n=-1;e.forEach((e,i)=>{if(null==e)return;l+=1;let a=e.closest('[role="row"]');a&&(s=!0),(a!==t||-1===n)&&(t=a,r[n+=1]=[]),r[n].push(i),o[i]=n})}let P=!1,R=0;if(s)for(let e of r){let t=e.length;t>R&&(R=t),t!==h&&(P=!0)}let S=P&&l<e.length,E=R||h;v&&(0,a.jo)(t);let x=(n=>{if(!P||-1===y)return;let a=o[y];if(null==a)return;let s=r[a].indexOf(y),u="up"===n?-1:1;for(let n=a+u,l=0;l<r.length;l+=1,n+=u){if(n<0||n>=r.length){if(!i||S)return;if(n=n<0?r.length-1:0,c){let e=Math.min(s,r[n].length-1);n=o[c(t,y,r[n][e]??r[n][0])]??n}}let a=r[n];for(let t=Math.min(s,a.length-1);t>=0;t-=1){let r=a[t];if(!g(e,r,f))return r}}})(w)??(t=>{if(!S||-1===y)return;let r=y%E,a="up"===t?-E:E,o=m-m%E,s=(0,n.RI)(m/E)+1;for(let t=y-r+a,n=0;n<s;n+=1,t+=a){if(t<0||t>m){if(!i)return;t=t<0?o:0}let n=Math.min(t+E-1,m);for(let i=Math.min(t+r,n);i>=t;i-=1)if(!g(e,i,f))return i}})(w);if(void 0!==x)b=x;else if(-1===y)b="up"===w?m:p;else if(b=d(e,{startingIndex:y,amount:E,decrement:"up"===w,disabledIndices:f}),i){if("up"===w&&(y-E<p||b<0)){let e=y%E,r=m%E,n=m-(r-e);b=r===e?m:r>e?n:n-E,c&&(b=c(t,y,b))}"down"===w&&y+E>m&&(b=d(e,{startingIndex:y%E-E,amount:E,disabledIndices:f}),c&&(b=c(t,y,b)))}u(e,b)&&(b=y)}if("both"===r){let r=(0,n.RI)(y/h);t.key===(l?o.eR:o.RJ)&&(v&&(0,a.jo)(t),y%h!=h-1?(b=d(e,{startingIndex:y,disabledIndices:f}),i&&s(b,h,r)&&(b=d(e,{startingIndex:y-y%h-1,disabledIndices:f}),c&&(b=c(t,y,b)))):i&&(b=d(e,{startingIndex:y-y%h-1,disabledIndices:f}),c&&(b=c(t,y,b))),s(b,h,r)&&(b=y)),t.key===(l?o.RJ:o.eR)&&(v&&(0,a.jo)(t),y%h!=0?(b=d(e,{startingIndex:y,decrement:!0,disabledIndices:f}),i&&s(b,h,r)&&(b=d(e,{startingIndex:y+(h-y%h),decrement:!0,disabledIndices:f}),c&&(b=c(t,y,b)))):i&&(b=d(e,{startingIndex:y+(h-y%h),decrement:!0,disabledIndices:f}),c&&(b=c(t,y,b))),s(b,h,r)&&(b=y));let p=(0,n.RI)(m/h)===r;u(e,b)&&(i&&p?(b=t.key===(l?o.RJ:o.eR)?m:d(e,{startingIndex:y-y%h-1,disabledIndices:f}),c&&(b=c(t,y,b))):b=y)}return b}function f(e,t,r){let n=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(r&&(i=0);!s;){let r=[];for(let n=0;n<e;n+=1)for(let e=0;e<a;e+=1)r.push(i+n+e*t);i%t+e<=t&&r.every(e=>null==n[e])?(r.forEach(e=>{n[e]=o}),s=!0):i+=1}}),[...n]}function p(e,t,r,n,i){if(-1===e)return -1;let a=r.indexOf(e),o=t[e];switch(i){case"tl":return a;case"tr":if(!o)return a;return a+o.width-1;case"bl":if(!o)return a;return a+(o.height-1)*n;case"br":return r.lastIndexOf(e);default:return -1}}function m(e,t){return t.flatMap((t,r)=>e.includes(t)?[r]:[])}function g(e,t,r){if("function"==typeof r?r(t):r?.includes(t)??!1)return!0;let n=e[t];
1return!!n&&(!y(n)||!r&&(n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")))}function y(e,t=e?(0,i.L9)(e):null){var r;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(r=t).visibility&&"collapse"!==r.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}},23481:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1803);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},25153:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r(83986);let i=[];function a(e){n.useEffect(e,i)}},25334:(e,t,r)=>{"use strict";r.d(t,{AO:()=>f,Kr:()=>m,N:()=>b,Qp:()=>w,XJ:()=>v,nq:()=>p,vF:()=>y,yV:()=>P});var n=r(15075),i=r(13321),a=r(54714),o=r(22984);function s(e){for(let t of Array.from(e.children))if("summary"===(0,n.mq)(t))return t;return null}function u(e){let t=e?(0,n.mq)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,n.mq)(e.parentElement)&&s(e.parentElement)===e)&&("details"!==t||null==s(e))&&("input"!==t||"hidden"!==e.type)}function c(e){if(!u(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,n.Ng)(r)?r.host:null}(t)){let r=t!==e,i="slot"===(0,n.mq)(t);if(t.hasAttribute("inert")||r&&"details"===(0,n.mq)(t)&&!t.open&&!function(e,t){let r=s(t);return!!r&&(e===r||(0,a.gR)(r,e))}(e,t)||t.hasAttribute("hidden")||!i&&!function(e,t){let r=(0,n.L9)(e);return t?"none"!==r.display:(0,o.J9)(e,r)}(t,r))return!1}return!0}function l(e){let t=e.tabIndex;if(t<0){let t=(0,n.mq)(e);if("details"===t||"audio"===t||"video"===t||(0,n.sb)(e)&&e.isContentEditable)return 0}return t}function d(e){return"input"!==(0,n.mq)(e)?null:"radio"===e.type&&""!==e.name?e:null}function h(e){if((0,n.sb)(e)&&"slot"===(0,n.mq)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,n.sb)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function f(e){return c(e)&&l(e)>=0}function p(e){let t=[];return!function e(t,r){h(t).forEach(t=>{u(t)&&r.push(t),e(t,r)})}(e,t),t.filter(c)}function m(e){let t=p(e);return t.filter(e=>l(e)>=0&&function(e,t){let r=d(e);if(!r)return!0;let n=t.find(e=>{let t=d(e);return t?.name===r.name&&t.form===r.form&&t.checked});return n?n===r:t.find(e=>{let t=d(e);return t?.name===r.name&&t.form===r.form})===r}(e,t))}function g(e,t){let r=m(e),n=r.length;if(0===n)return;let o=(0,a.RS)((0,i.R)(e)),s=r.indexOf(o);return r[-1===s?1===t?0:n-1:s+t]}function y(e){return g((0,i.R)(e).body,1)||e}function v(e){return g((0,i.R)(e).body,-1)||e}function w(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!(0,a.gR)(r,n)}function b(e){m(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function P(e){let t=[];!function e(t,r,i){h(t).forEach(t=>{(0,n.sb)(t)&&t.matches(r)&&i.push(t),e(t,r,i)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},26309:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},26406:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{_:()=>n})},26694:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},26786:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var n=r(83986),i=r(62839);let a=n.createContext({controlId:void 0,registerControlId:i.tE,labelId:void 0,setLabelId:i.tE,messageIds:[],setMessageIds:i.tE,getDescriptionProps:e=>e});function o(){return n.useContext(a)}},26821:(e,t,r)=>{"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{_:()=>n})},27463:(e,t,r)=>{"use strict";r.d(t,{V:()=>h});var n=r(9451),i=r(11390),a=r(99798),o=r(77344),s=r(14868),u=(0,a.V)({name:"search-box",connector:!0}),c=function(e,t){return t(e)},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.l;return(0,o.t)(e,u()),function(r){var a,o,s=(r||{}).queryHook,u=void 0===s?c:s;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return(0,i._)((0,n._)({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,n=e.instantSearchInstance,i=e.state;return a||(a=function(e){u(e,function(e){return t.setQuery(e).search()})},o=function(){t.setQuery("").search()}),{query:i.query||"",refine:a,clear:o,widgetParams:r,isSearchStalled:"stalled"===n.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:(0,i._)((0,n._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}},d=r(49086);function h(e,t){return(0,d.Z)(l,e,t)}},27965:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r,a){var o,s;if((null==a?void 0:a(t,r))||t===r)return!0;
1if(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||(void 0===t?"undefined":(0,n._)(t))==="object"){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 n=r(95428),i=Object.prototype.hasOwnProperty},29758:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n=(0,r(83986).createContext)(null)},29810:(e,t,r)=>{"use strict";r.d(t,{I:()=>er});var n=r(83986),i=r(19341),a=r(15075),o=r(63843),s=r(56599),u=r(93023),c=r(34979),l=r(54617),d=r(78933),h=r(10772),f=r(93387),p=r(79378),m=r(13321),g=r(66066),y=r(54714),v=r(40623),w=r(21443),b=r(25334),P=r(98102),R=r(22984),S=r(97971),E=r(11745),x=r(47915),T=r(69943);let I={inert:new WeakMap,"aria-hidden":new WeakMap},q="data-base-ui-inert",_={inert:new WeakSet,"aria-hidden":new WeakSet},k=new WeakMap,A=0,C=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,a.Ng)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),O=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},j=(e,t,r)=>{let n=[],i=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,a.mq)(e)&&(t.has(e)?i(e):n.push(e))})};return i(e),n};function D(e,t={}){let{ariaHidden:r=!1,inert:n=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=(0,m.R)(e[0]).body;return function(e,t,r,n,{mark:i=!0,markerIgnoreElements:a=[]}){let o=n?"inert":r?"aria-hidden":null,s=null,u=null,c=C(t,e),l=new Set(i?C(t,a):[]),d=i?j(t,O(c),new Set(c)).filter(e=>!l.has(e)):[],h=[],f=[];if(o){let e=I[o],r=_[o];u=r,s=e;let n=C(t,Array.from(t.querySelectorAll("[aria-live]"))),i=c.concat(n);j(t,O(i),new Set(i)).forEach(t=>{let n=t.getAttribute(o),i=null!==n&&"false"!==n,a=(e.get(t)||0)+1;e.set(t,a),h.push(t),1===a&&i&&r.add(t),i||t.setAttribute(o,"inert"===o?"":"true")})}return i&&d.forEach(e=>{let t=(k.get(e)||0)+1;k.set(e,t),f.push(e),1===t&&e.setAttribute(q,"")}),A+=1,()=>{s&&h.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!u?.has(e)&&o&&e.removeAttribute(o),u?.delete(e))}),i&&f.forEach(e=>{let t=(k.get(e)||0)-1;k.set(e,t),t||e.removeAttribute(q)}),(A-=1)||(I.inert=new WeakMap,I["aria-hidden"]=new WeakMap,_.inert=new WeakSet,_["aria-hidden"]=new WeakSet,k=new WeakMap)}}(e,o,r,n,{mark:i,markerIgnoreElements:a})}var F=r(62416),N=r(96982),U=r(2763),M=r(45822),H=r(5498);let L=[];function W(){L=L.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function B(){var e;return W(),null==(e=L[L.length-1])?void 0:e.deref()}function $(e,t){var r;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!(null==(r=e.getAttribute("role"))?void 0:r.includes("dialog")))return;let n=(0,b.nq)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.AO)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||0===n.length?"0"!==i&&e.setAttribute("tabindex","0"):("-1"!==i||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function V(e){let{context:t,children:r,disabled:i=!1,initialFocus:I=!0,returnFocus:q=!0,restoreFocus:_=!1,modal:k=!0,closeOnFocusOut:A=!0,openInteractionType:C="",nextFocusableElement:O,previousFocusableElement:j,beforeContentFocusGuardRef:V,externalTree:Q,getInsideElements:K}=e,G="rootStore"in t?t.rootStore:t,z=G.useState("open"),J=G.useState("domReferenceElement"),X=G.useState("floatingElement"),{events:Z,dataRef:Y}=G.context,ee=(0,l.K)(()=>{var e;return null==(e=Y.current.floatingContext)?void 0:e.nodeId}),et=(0,v.WZ)(J)&&!1===I,er=n.useRef(["content"]),en=(0,c.u)(I),ei=(0,c.u)(q),ea=(0,c.u)(C),eo=(0,N.cq)(Q),es=(0,F.vB)(),eu=n.useRef(!1),ec=n.useRef(!1),el=n.useRef(!1),ed=n.useRef(null),eh=n.useRef(""),ef=n.useRef(""),ep=n.useRef(null),em=n.useRef(null),eg=(0,u.a)(ep,V,null==es?void 0:es.beforeInsideRef),ey=(0,u.a)(em,null==es?void 0:es.afterInsideRef),ev=(0,h.Z)(),ew=(0,h.Z)(),eb=(0,p.N)(),eP=null!=es,eR=(0,v.nd)(X),eS=(0,l.K)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eR;return e?(0,b.Kr)(e):[]}),eE=(0,l.K)(()=>{var e;return null!=(e=null==K?void 0:K().filter(e=>null!=e))?e:[]});n.useEffect(()=>{if(i||!k)return;let e=(0,m.R)(eR);return(0,o.q)(e,"keydown",function(e){"Tab"===e.key&&(0,y.gR)(eR,(0,y.RS)((0,m.R)(eR)))&&0===eS().length&&!et&&(0,w.jo)(e)})},[i,eR,k,et,eS]),n.useEffect(()=>{if(i||!z)return;let e=(0,m.R)(eR);function t(){el.current=!1}return(0,s.g)((0,o.q)(e,"pointerdown",function(e){let t=(0,y.EW)(e),r=eE();el.current=!((0,y.gR)(X,t)||(0,y.gR)(J,t)||(0,y.gR)(null==es?void 0:es.portalNode,t)||r.some(e=>
1e===t||(0,y.gR)(e,t))),ef.current=e.pointerType||"keyboard",(null==t?void 0:t.closest("[".concat(U.Kd,"]")))&&(ec.current=!0)},!0),(0,o.q)(e,"pointerup",t,!0),(0,o.q)(e,"pointercancel",t,!0),(0,o.q)(e,"keydown",function(){ef.current="keyboard"},!0))},[i,X,J,eR,z,es,eE]),n.useEffect(()=>{if(i||!A)return;let e=(0,m.R)(eR);function t(t){let r=t.relatedTarget,n=t.currentTarget,i=(0,y.EW)(t);queueMicrotask(()=>{let o=ee(),s=G.context.triggerElements,u=eE(),c=(null==r?void 0:r.hasAttribute((0,x.F)("focus-guard")))&&[ep.current,em.current,null==es?void 0:es.beforeInsideRef.current,null==es?void 0:es.afterInsideRef.current,null==es?void 0:es.beforeOutsideRef.current,null==es?void 0:es.afterOutsideRef.current,(0,M.q)(j),(0,M.q)(O)].includes(r),l=!((0,y.gR)(J,r)||(0,y.gR)(X,r)||(0,y.gR)(r,X)||(0,y.gR)(null==es?void 0:es.portalNode,r)||u.some(e=>e===r||(0,y.gR)(e,r))||null!=r&&s.hasElement(r)||s.hasMatchingElement(e=>(0,y.gR)(e,r))||c||eo&&((0,P.CM)(eo.nodesRef.current,o).find(e=>{var t,n;return(0,y.gR)(null==(t=e.context)?void 0:t.elements.floating,r)||(0,y.gR)(null==(n=e.context)?void 0:n.elements.domReference,r)})||(0,P.$4)(eo.nodesRef.current,o).find(e=>{var t,n,i;return[null==(t=e.context)?void 0:t.elements.floating,(0,v.nd)(null==(n=e.context)?void 0:n.elements.floating)].includes(r)||(null==(i=e.context)?void 0:i.elements.domReference)===r})));if(n===J&&eR&&$(eR,er),_&&n!==J&&!(0,R.J9)(i)&&(0,y.RS)(e)===e.body){if((0,a.sb)(eR)&&(eR.focus(),"popup"===_))return void eb.request(()=>{eR.focus()});let e=eS(),t=ed.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||eR;(0,a.sb)(r)&&r.focus()}if(Y.current.insideReactTree){Y.current.insideReactTree=!1;return}(et||!k)&&r&&l&&!ec.current&&(et||r!==B())&&(eu.current=!0,G.setOpen(!1,(0,S.d)(E.Xn,t)))})}let r=(0,a.sb)(J)?J:null;if(X||r)return(0,s.g)(r&&(0,o.q)(r,"focusout",t),r&&(0,o.q)(r,"pointerdown",function(){ec.current=!0,ew.start(0,()=>{ec.current=!1})}),X&&(0,o.q)(X,"focusin",function(e){let t=(0,y.EW)(e);(0,b.AO)(t)&&(ed.current=t)}),X&&(0,o.q)(X,"focusout",t),X&&es&&(0,o.q)(X,"focusout",function(){el.current||(Y.current.insideReactTree=!0,ev.start(0,()=>{Y.current.insideReactTree=!1}))},!0))},[i,J,X,eR,k,eo,es,G,A,_,eS,et,ee,er,Y,ev,ew,eb,O,j,eE]),n.useEffect(()=>{var e,t,r;if(i||!X||!z)return;let n=Array.from((null==es||null==(e=es.portalNode)?void 0:e.querySelectorAll("[".concat((0,x.F)("portal"),"]")))||[]),a=null==(r=(eo?(0,P.$4)(eo.nodesRef.current,ee()):[]).find(e=>{var t;return(0,v.WZ)((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=r.context)?void 0:t.elements.domReference,o=D([X,...n,ep.current,em.current,null==es?void 0:es.beforeOutsideRef.current,null==es?void 0:es.afterOutsideRef.current,...eE(),a,(0,M.q)(j),(0,M.q)(O),et?J:null].filter(e=>null!=e),{ariaHidden:k||et,mark:!1}),s=D([X,...n].filter(e=>null!=e));return()=>{s(),o()}},[z,i,J,X,k,es,et,eo,ee,O,j,eE]),(0,d.g)(()=>{if(!z||i||!(0,a.sb)(eR))return;let e=(0,m.R)(eR),t=(0,y.RS)(e);queueMicrotask(()=>{let r,n=en.current,i="function"==typeof n?n(ea.current||""):n;if(void 0===i||!1===i||(0,y.gR)(eR,t))return;let a=null,o=()=>(null==a&&(a=eS(eR)),a[0]||eR);r=(r=!0===i||null===i?o():(0,M.q)(i))||o();let s=(0,y.gR)(eR,(0,y.RS)(e));(0,T.p)(r,{preventScroll:r===eR,shouldFocus(){if(s)return!0;let t=(0,y.RS)(e);return!(t!==r&&(0,y.gR)(eR,t))}})})},[i,z,eR,eS,en,ea]),(0,d.g)(()=>{var e;if(i||!eR)return;let t=(0,m.R)(eR);function r(e){if(e.open||(eh.current=function(e,t){let r=(0,a.zk)((0,y.EW)(e));return e instanceof r.KeyboardEvent?"keyboard":e instanceof r.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof r.MouseEvent?t||(0===e.detail?"keyboard":"mouse"):""}(e.nativeEvent,ef.current)),e.reason===E.N7&&"mouseleave"===e.nativeEvent.type&&(eu.current=!0),e.reason===E.Np)if(e.nested)eu.current=!1;else if((0,w.YF)(e.nativeEvent)||(0,w.Pg)(e.nativeEvent))eu.current=!1;else{let e=!1;(0,m.R)(eR).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?eu.current=!1:eu.current=!0}}return e=(0,y.RS)(t),W(),e&&"body"!==(0,a.mq)(e)&&(L.push(new WeakRef(e)),L.length>20&&(L=L.slice(-20))),Z.on("openchange",r),()=>{Z.off("openchange",r);let e=(0,y.RS)(t),n=eE(),i=(0,y.gR)(X,e)||n.some(t=>t===e||(0,y.gR)(t,e))||eo&&(0,P.CM)(eo.nodesRef.current,ee(),!1).some(t=>{var r;return(0,y.gR)(null==(r=t.context)?void 0:r.elements.floating,e)}),o=ei.current,s=function(){let e=ei.current,t="function"==typeof e?e(eh.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t)return(null==J?void 0:J.isConnected)?J:B()||null;let r=(null==J?void 0:J.isConnected)?J:B();return(0,M.q)(t)||r||null}();queueMicrotask(()=>{let r=s?(0,b.AO)(s)?s:(0,b.Kr)(s)[0]||s:null;o&&!eu.current&&(0,a.sb)(r)&&("boolean"!=typeof o||r===e||e===t.body||i)&&r.focus({preventScroll:!0}),eu.current=!1})}},[i,X,eR,ei,Z,eo,J,ee,eE]),(0,d.g)(()=>
1{if(!f.Tc||z||!X)return;let e=(0,y.RS)((0,m.R)(X));(0,a.sb)(e)&&(0,v.$u)(e)&&(0,y.gR)(X,e)&&e.blur()},[z,X]),(0,d.g)(()=>{if(!i&&es)return es.setFocusManagerState({modal:k,closeOnFocusOut:A,open:z,onOpenChange:G.setOpen,domReference:J}),()=>{es.setFocusManagerState(null)}},[i,es,k,z,G,A,J]),(0,d.g)(()=>{if(!i&&eR)return $(eR,er),()=>{queueMicrotask(W)}},[i,eR,er]);let ex=!i&&(!k||!et)&&(eP||k);return(0,H.jsxs)(n.Fragment,{children:[ex&&(0,H.jsx)(g.U,{"data-type":"inside",ref:eg,onFocus:e=>{if(k){let e=eS();(0,T.p)(e[e.length-1])}else if(null==es?void 0:es.portalNode)if(eu.current=!1,(0,b.Qp)(e,es.portalNode)){let e=(0,b.vF)(J);null==e||e.focus()}else{var t;null==(t=(0,M.q)(null!=j?j:es.beforeOutsideRef))||t.focus()}}}),r,ex&&(0,H.jsx)(g.U,{"data-type":"inside",ref:ey,onFocus:e=>{if(k)(0,T.p)(eS()[0]);else if(null==es?void 0:es.portalNode)if(A&&(eu.current=!0),(0,b.Qp)(e,es.portalNode)){let e=(0,b.XJ)(J);null==e||e.focus()}else{var t;null==(t=(0,M.q)(null!=O?O:es.afterOutsideRef))||t.focus()}}})]})}var Q=r(81082),K=r(38898),G=r(55164),z=r(56058),J=r(83634),X=r(60977),Z=r(87
152),Y=r(76011),ee=r(73309);let et={...z.GW,...Z.G},er=n.forwardRef(function(e,t){let{render:r,className:a,style:o,initialFocus:s,finalFocus:u,...c}=e,l=(0,K.Ee)(),d=(0,J.O)(),h=(0,K.ui)(),{filteredItems:f}=(0,K.Dc)(),p=(0,i.P)(l,G.T.mounted),m=(0,i.P)(l,G.T.open),g=(0,i.P)(l,G.T.openMethod),v=(0,i.P)(l,G.T.transitionStatus),w=(0,i.P)(l,G.T.inputInsidePopup),b=(0,i.P)(l,G.T.inputElement),P=(0,i.P)(l,G.T.modal),R=0===f.length;(0,X.v)({open:m,ref:l.state.popupRef,onComplete(){m&&l.state.onOpenChangeComplete(!0)}});let S={open:m,side:d.side,align:d.align,anchorHidden:d.anchorHidden,transitionStatus:v,empty:R},E=(0,Q.o)("div",e,{state:S,ref:[t,l.state.popupRef],props:[{role:w?"dialog":"presentation",tabIndex:-1,onFocus(e){let t=(0,y.EW)(e.nativeEvent);if("touch"!==g&&((0,y.gR)(l.state.listElement,t)||t===e.currentTarget)){var r;null==(r=l.state.inputRef.current)||r.focus()}}},(0,Y.d)(v),c],stateAttributesMapping:et}),x=!!w&&(e=>"touch"===e?l.state.popupRef.current:b),T=!w||P;return(0,H.jsx)(V,{context:h,disabled:!p,modal:T,openInteractionType:g,initialFocus:void 0===s?x:s,returnFocus:null!=u?u:!!w&&void 0,getInsideElements:()=>[l.state.startDismissRef.current,l.state.endDismissRef.current],children:(0,H.jsxs)(n.Fragment,{children:[E,T&&(0,H.jsx)(ee.p,{ref:l.state.endDismissRef})]})})})},30227:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(83986),i=r(68305);function a(){return(0,n.useContext)(i.V)}},30860:(e,t,r)=>{"use strict";r.d(t,{I:()=>o});var n=r(83986),i=r(65693),a=r(48267);function o(){var e=(0,n.useContext)(i.t);return(0,a.V)(null!==e),e}},31820:(e,t,r)=>{"use strict";function n(e){return"ais.index"===e.$$type}r.d(t,{l:()=>n})},32087:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{_:()=>i})},32566:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,s:()=>o});var n=r(37056),i=r(83986);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,n.A)(20));return e}},32890: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},{})}},34979:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var n=r(78933),i=r(70236);function a(e){let t=(0,i.j)(o,e).current;return t.next=e,(0,n.g)(t.effect),t}function o(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},35161:e=>{"use strict";e.exports=TypeError},35446:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});var n=r(83986),i=r(15075),a=r(54617),o=r(78933),s=r(47747),u=r(37056);let c=n.createContext(void 0);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{disabled:t=!1,focusableWhenDisabled:r,tabIndex:i=0,native:l=!0,composite:h}=e,f=n.useRef(null),p=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=n.useContext(c);if(void 0===t&&!e)throw Error((0,u.A)(16));return t}(!0),m=null!=h?h:void 0!==p,{props:g}=function(e){let{focusableWhenDisabled:t,disabled:r,composite:i=!1,tabIndex:a=0,isNativeButton:o}=e,s=i&&!1!==t,u=i&&!1===t;return{props:n.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=a,!o&&r&&(e.tabIndex=t?a:-1)),(o&&(t||s)||!o&&r)&&(e["aria-disabled"]=r),o&&(!t||u)&&(e.disabled=r),e},[i,r,t,s,u,o,a])}}({focusableWhenDisabled:r,disabled:t,composite:m,tabIndex:i,isNativeButton:l}),y=n.useCallback(()=>{let e=f.current;d(e)&&m&&t&&void 0===g.disabled&&e.disabled&&(e.disabled=!1)},[t,g.disabled,m]);return(0,o.g)(y,[y]),{getButtonProps:n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClick:r,onMouseDown:n,onKeyUp:i,onKeyDown:a,onPointerDown:o,...u}=e;return(0,s.v6)({onClick(e){if(t)return void e.preventDefault();null==r||r(e)},onMouseDown(e){t||null==n||n(e)},onKeyDown(e){var n;if(t||((0,s.PT)(e),null==a||a(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,o=e.currentTarget,u=d(o),c=!l&&!!((null==(n=o)?void 0:n.tagName)==="A"&&(null==n?void 0:n.href)),h=i&&(l?u:!c),f="Enter"===e.key,p=" "===e.key,g=o.getAttribute("role"),y=(null==g?void 0:g.startsWith("menuitem"))||"option"===g||"gridcell"===g;if(i&&m&&p){if(e.defaultPrevented&&y)return;e.preventDefault(),c||l&&u?(o.click(),e.preventBaseUIHandler()):h&&(null==r||r(e),e.preventBaseUIHandler());return}h&&(!l&&(p||f)&&e.preventDefault(),!l&&f&&(null==r||r(e)))},onKeyUp(e){if(!t){if((0,s.PT)(e),null==i||i(e),e.target===e.currentTarget&&l&&m&&d(e.currentTarget)&&" "===e.key)return void e.preventDefault();!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||l||m||" "!==e.key||null==r||r(e))}},onPointerDown(e){if(t)return void e.preventDefault();null==o||o(e)}},l?{type:"button"}:{role:"button"},g,u)},[t,g,m,l]),buttonRef:(0,a.K)(e=>{f.current=e,y()})}}function d(e){return(0,i.sb)(e)&&"BUTTON"===e.tagName}},36238:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},36573:(e,t,r)=>{"use strict";
1var n=r(53955),i=r(53854),a=r(22396),o=r(35161),s=n("%Map%",!0),u=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(t){if(e){var r=d(e,t);return 0===h(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new s),c(e,t,r)}};return t}},36645:e=>{"use strict";e.exports=Math.floor},37056:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`}},37357:(e,t,r)=>{"use strict";r.d(t,{Ai:()=>s,Vz:()=>o,jd:()=>n,kJ:()=>a,tl:()=>i});let n=(e,t)=>Object.is(e,t);function i(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}function a(e,t,r){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&i(t,e,r))}function o(e,t,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&i(e,t,r)):-1}function s(e,t,r){return e.filter(e=>!i(t,e,r))}},37650: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},37866:(e,t,r)=>{"use strict";r.d(t,{BT:()=>i,Ed:()=>n,Jd:()=>u,RJ:()=>o,eR:()=>a,il:()=>s});let n="data-base-ui-focusable",i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",a="ArrowLeft",o="ArrowRight",s="ArrowUp",u="ArrowDown"},37975:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});let n=parseInt(r(83986).version,10);function i(e){return n>=e}},38298:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{_:()=>n})},38898:(e,t,r)=>{"use strict";r.d(t,{Dc:()=>d,Ee:()=>c,Hw:()=>o,KR:()=>u,dc:()=>h,kN:()=>s,ui:()=>l,vx:()=>a});var n=r(37056),i=r(83986);let a=i.createContext(void 0),o=i.createContext(void 0),s=i.createContext(void 0),u=i.createContext("");function c(){let e=i.useContext(a);if(!e)throw Error((0,n.A)(22));return e}function l(){let e=i.useContext(o);if(!e)throw Error((0,n.A)(23));return e}function d(){let e=i.useContext(s);if(!e)throw Error((0,n.A)(24));return e}function h(){return i.useContext(u)}},38960:(e,t,r)=>{"use strict";r.d(t,{YQ:()=>i});var n=r(83986);function i(e,t,r,i){var a=this,o=(0,n.useRef)(null),s=(0,n.useRef)(0),u=(0,n.useRef)(0),c=(0,n.useRef)(null),l=(0,n.useRef)([]),d=(0,n.useRef)(),h=(0,n.useRef)(),f=(0,n.useRef)(e),p=(0,n.useRef)(!0),m=(0,n.useRef)(),g=(0,n.useRef)();f.current=e;var y="undefined"!=typeof window,v=!t&&0!==t&&y;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var w=!!(r=r||{}).leading,b=!("trailing"in r)||!!r.trailing,P=!!r.flushOnExit&&b,R="maxWait"in r,S="debounceOnServer"in r&&!!r.debounceOnServer,E=R?Math.max(+r.maxWait||0,t):null,x=(0,n.useMemo)(function(){var e=function(e){var t=l.current,r=d.current;return l.current=d.current=null,s.current=e,u.current=u.current||e,h.current=f.current.apply(r,t)},r=function(e,t){v&&cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!p.current)return!1;var r=e-o.current;return!o.current||r>=t||r<0||R&&e-s.current>=E},x=function(t){return c.current=null,b&&l.current?e(t):(l.current=d.current=null,h.current)},T=function e(){var i=Date.now();if(w&&u.current===s.current&&I(),n(i))return x(i);if(p.current){var a=t-(i-o.current);r(e,R?Math.min(a,E-(i-s.current)):a)}},I=function(){i&&i({})},q=function(){if(y||S){var i,u=Date.now(),f=n(u);if(l.current=[].slice.call(arguments),d.current=a,o.current=u,P&&!m.current&&(m.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&g.current.flush()},null==(i=globalThis.document)||null==i.addEventListener||i.addEventListener("visibilitychange",m.current)),f){if(!c.current&&p.current)return s.current=o.current,r(T,t),w?e(o.current):h.current;if(R)return r(T,t),e(o.current)}return c.current||r(T,t),h.current}};return q.cancel=function(){var e=c.current;e&&(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,l.current=o.current=d.current=c.current=null,e&&i&&i({})},q.isPending=function(){return!!c.current},q.flush=function(){return c.current?x(Date.now()):h.current},q},[w,R,t,E,b,P,v,y,S,i]);return g.current=x,(0,n.useEffect)(function(){return p.current=!0,function(){var e;P&&g.current.flush(),m.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",m.current),m.current=null),p.current=!1}},[P]),x}},39376:(e,t,r)=>{"use strict";var n=r(22396),i=r(35161),a=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n},o=function(e,t){if(e){var r=a(e,t);return r&&r.value}},s=function(e,t,r){var n=a(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},u=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=u(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return o(e,t)},has:function(t){var r;return!!(r=e)&&!!a(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},39604:(e,t,r)=>{"use strict";var n=r(72350);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},39645:(e,t,r)=>{"use strict";var n=r(83986),i=r(46315),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=n.useRef,u=n.useEffect,c=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=o(e,(d=c(function(){function e(e){if(!u){if(u=!0,o=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,s=r)}var o,s,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],d[1]);return u(function(){h.hasValue=!0,h.value=f},[f]),l(f),f}},40282: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})}
1,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},40484: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]}}},40623:(e,t,r)=>{"use strict";r.d(t,{$u:()=>s,F2:()=>a,WZ:()=>u,nd:()=>c,tZ:()=>o});var n=r(15075),i=r(37866);function a(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function o(e){return e.matches("html,body")}function s(e){return(0,n.sb)(e)&&e.matches(i.BT)}function u(e){return!!e&&"combobox"===e.getAttribute("role")&&s(e)}function c(e){return e?e.hasAttribute(i.Ed)?e:e.querySelector(`[${i.Ed}]`)||e:null}},40709:(e,t,r)=>{"use strict";r.d(t,{o:()=>E});var n=r(83986),i=r(19341),a=r(54617),o=r(93387),s=r(56107),u=r(81082),c=r(38898),l=r(56058),d=r(4647);let h={...l.jL,...d.dc,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null};var f=r(55164),p=r(56411),m=r(26786);let g=n.createContext(void 0);var y=r(21443),v=r(83634),w=r(97971),b=r(11745),P=r(65218),R=r(73309),S=r(5498);let E=n.forwardRef(function(e,t){var r,l,E;let{render:x,className:T,disabled:I=!1,id:q,style:_,...k}=e,{state:A,disabled:C,setTouched:O,setFocused:j,validationMode:D,validation:F}=(0,p.V$)(),{labelId:N}=(0,m.H)(),U=n.useContext(g),M=!!(0,v.O)(!0),H=(0,c.Ee)(),{filteredItems:L}=(0,c.Dc)(),W=(0,c.dc)(),B=(0,P.j)(),$=(0,i.P)(H,f.T.required),V=(0,i.P)(H,f.T.disabled),Q=(0,i.P)(H,f.T.readOnly),K=(0,i.P)(H,f.T.name),G=(0,i.P)(H,f.T.form),z=(0,i.P)(H,f.T.selectionMode),J=(0,i.P)(H,f.T.autoHighlight),X=(0,i.P)(H,f.T.inputProps),Z=(0,i.P)(H,f.T.triggerProps),Y=(0,i.P)(H,f.T.open),ee=(0,i.P)(H,f.T.mounted),et=(0,i.P)(H,f.T.selectedValue),er=(0,i.P)(H,f.T.popupSide),en=(0,i.P)(H,f.T.positionerElement),ei=(0,i.P)(H,f.T.id),ea=(0,i.P)(H,f.T.inline),eo=(0,i.P)(H,f.T.modal),es=!!J,eu=C||V||I,ec=0===L.length,el=M||ea,ed=(0,s.e)(null!=q?q:el?void 0:ei),eh=(E=void 0,null!=N?N:E),ef=M?d.HH:A,[ep,em]=n.useState(null),eg=n.useRef(!1),ey=n.useRef(null),ev=n.useRef(!1),ew="none"===z&&!M,eb=(0,a.K)(e=>{let t=M||H.state.inline;t&&!H.state.hasInputValue&&H.state.setInputValue("",(0,w.d)(b.dv)),H.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ew})}),eP=M||!F?k:F.getValidationProps(k),eR={...ef,open:Y,disabled:eu,readOnly:Q,popupSide:ee&&en?er:null,listEmpty:ec},eS=(0,u.o)("input",e,{state:eR,ref:[t,H.state.inputRef,eb],props:[X,Z,{type:"text",value:null!=(l=null!=(r=e.value)?r:ep)?l:W,"aria-readonly":Q||void 0,"aria-required":$||void 0,"aria-labelledby":eh,disabled:eu,readOnly:Q,required:"none"===z?$:void 0,form:G,...ew&&K&&{name:K},id:ed,onFocus(){if(j(!0),!ea||!ev.current)return;ev.current=!1;let e=ey.current;null!=e&&Object.hasOwn(H.state.valuesRef.current,e)&&H.state.setIndices({activeIndex:e})},onBlur(){O(!0),j(!1);let e=H.state.activeIndex;if(ea&&null!==e&&"always"!==J&&(ey.current=e,ev.current=!0,H.state.setIndices({activeIndex:null})),"onBlur"===D){let e="none"===z?W:et;F.commit(e)}},onCompositionStart(e){o.m0||(eg.current=!0,em(e.currentTarget.value))},onCompositionEnd(e){eg.current=!1;let t=e.currentTarget.value;em(null),H.state.setInputValue(t,(0,w.d)(b.pf,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,r=eg.current||!(!t||"insertReplacementText"===t);if(eg.current){let t=e.currentTarget.value;em(t),""!==t||H.state.openOnInputClick||H.state.inputInsidePopup||H.state.setOpen(!1,(0,w.d)(b.qs,e.nativeEvent));let n=t.trim();!Q&&!eu&&n&&r&&(H.state.setOpen(!0,(0,w.d)(b.pf,e.nativeEvent)),es||H.state.setIndices({activeIndex:null,selectedIndex:null,type:H.state.keyboardActiveRef.current?"keyboard":"pointer"})),Y&&null!==H.state.activeIndex&&!(es&&""!==n)&&H.state.setIndices({activeIndex:null,selectedIndex:null,type:H.state.keyboardActiveRef.current?"keyboard":"pointer"});return}H.state.setInputValue(e.currentTarget.value,(0,w.d)(b.pf,e.nativeEvent));let n=""===e.currentTarget.value,i=(0,w.d)(b.qs,e.nativeEvent);n&&!H.state.inputInsidePopup&&("single"===z&&H.state.setSelectedValue(null,i),H.state.openOn
1InputClick||H.state.setOpen(!1,i));let a=e.currentTarget.value.trim();!Q&&!eu&&a&&r&&(H.state.setOpen(!0,(0,w.d)(b.pf,e.nativeEvent)),es||H.state.setIndices({activeIndex:null,selectedIndex:null,type:H.state.keyboardActiveRef.current?"keyboard":"pointer"})),Y&&null!==H.state.activeIndex&&!es&&H.state.setIndices({activeIndex:null,selectedIndex:null,type:H.state.keyboardActiveRef.current?"keyboard":"pointer"})},onKeyDown(e){var t,r;if(eu||Q||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;H.state.keyboardActiveRef.current=!0;let n=e.currentTarget,i=n.scrollWidth-n.clientWidth,a="rtl"===B;if("Home"===e.key){(0,y.jo)(e);let t=o.gm&&a?n.value.length:0;n.setSelectionRange(t,t),n.scrollLeft=0;return}if("End"===e.key){(0,y.jo)(e);let t=o.gm&&a?0:n.value.length;n.setSelectionRange(t,t),n.scrollLeft=a?-i:i;return}if(!ee&&"Escape"===e.key){let t="multiple"===z&&Array.isArray(et)?0===et.length:null===et,r=(0,w.d)(b.jv,e.nativeEvent);H.state.setInputValue("",r),H.state.setSelectedValue("multiple"===z?[]:null,r),t||H.state.inline||r.isPropagationAllowed||e.stopPropagation();return}if(U&&"Backspace"===e.key&&""===n.value&&void 0===U.highlightedChipIndex&&Array.isArray(et)&&et.length>0){let t=U.chipsRef.current.length,r=t>0?t-1:et.length-1,n=et.filter((e,t)=>t!==r);H.state.setIndices({activeIndex:null,selectedIndex:null,type:H.state.keyboardActiveRef.current?"keyboard":"pointer"}),H.state.setSelectedValue(n,(0,w.d)(b.dv,e.nativeEvent));return}let s=(null==U?void 0:U.highlightedChipIndex)!==void 0,u=function(e){var t;let r;if(!U)return;let{highlightedChipIndex:n}=U,i=U.chipsRef.current.length,a="rtl"===B,o=a?"ArrowRight":"ArrowLeft";if(void 0!==n){if(e.key===o)e.preventDefault(),r=n>0?n-1:void 0;else if(e.key===(a?"ArrowLeft":"ArrowRight"))e.preventDefault(),r=n<i-1?n+1:void 0;else if("Backspace"===e.key||"Delete"===e.key){e.preventDefault();let t=n>=et.length-1?et.length-2:n;r=t>=0?t:void 0,H.state.setIndices({activeIndex:null,selectedIndex:null,type:"keyboard"})}return r}return e.key===o&&(null!=(t=e.currentTarget.selectionStart)?t:0)===0&&et.length>0?(e.preventDefault(),r=i>0?i-1:void 0):"Backspace"===e.key&&""===e.currentTarget.value&&et.length>0&&(H.state.setIndices({activeIndex:null,selectedIndex:null,type:"keyboard"}),e.preventDefault()),r}(e);if(null==U||U.setHighlightedChipIndex(u),void 0!==u?null==U||null==(t=U.chipsRef.current[u])||t.focus():s&&(null==(r=H.state.inputRef.current)||r.focus()),229!==e.which&&"Enter"===e.key&&Y){let t=H.state.activeIndex,r=e.nativeEvent;if(null===t){if(ea)return;H.state.setOpen(!1,(0,w.d)(b.dv,r));return}(0,y.jo)(e);let n=H.state.listRef.current[t];n&&(H.state.selectionEventRef.current=r,n.click(),H.state.selectionEventRef.current=null)}},onPointerMove(){H.state.keyboardActiveRef.current=!1},onPointerDown(){H.state.keyboardActiveRef.current=!1}},eP],stateAttributesMapping:h}),eE=M?(0,S.jsx)(p.eZ.Provider,{value:p.er,children:eS}):eS;return(0,S.jsxs)(n.Fragment,{children:[Y&&(!el||eo)&&(0,S.jsx)(R.p,{ref:H.state.startDismissRef}),eE]})})},41371:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(83986),i=r(29758),a=r(48267);function o(){var e=(0,n.useContext)(i.m);return(0,a.V)(null!==e),e}},42918:(e,t,r)=>{"use strict";var n=r(67484),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,t.throwOnLimitExceeded?c+1:c);if(t.throwOnLimitExceeded&&l.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var d=-1,h=t.charset;if(t.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?h="utf-8":"utf8=%26%2310003%3B"===l[f]&&(h="iso-8859-1"),d=f,f=l.length);for(f=0;f<l.length;++f)if(f!==d){var f,p,m,g=l[f],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(p=t.decoder(g,o.decoder,h,"key"),m=t.strictNullHandling?null:""):null!==(p=t.decoder(g.slice(0,v),o.decoder,h,"key"))&&(m=n.maybeMap(s(g.slice(v+1),t,a(r[p])?r[p].length:0),function(e){return t.decoder(e,o.decoder,h,"value")}
1)),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=String(m).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(m=a(m)?[m]:m),null!==p){var w=i.call(r,p);w&&"combine"===t.duplicates?r[p]=n.combine(r[p],m,t.arrayLimit,t.plainObjects):w&&"last"!==t.duplicates||(r[p]=m)}}return r},c=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var u=i?t:s(t,r,a),c=e.length-1;c>=0;--c){var l,d=e[c];if("[]"===d&&r.parseArrays)l=n.isOverflow(u)?u:r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var h="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,f=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,p=parseInt(f,10);r.parseArrays||""!==f?!isNaN(p)&&d!==f&&String(p)===f&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(l=[])[p]=u:"__proto__"!==f&&(l[f]=u):l={0:u}}u=l}return u},l=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),o=a?r.slice(0,a.index):r,s=[];if(o){if(!t.plainObjects&&i.call(Object.prototype,o)&&!t.allowPrototypes)return;s.push(o)}for(var u=0;null!==(a=n.exec(r))&&u<t.depth;){u+=1;var c=a[1].slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,c)&&!t.allowPrototypes)return;s.push(a[1])}if(a){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s.push("["+r.slice(a.index)+"]")}return s},d=function(e,t,r,n){if(e){var i=l(e,r);if(i)return c(i,t,r,n)}},h=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?o.charset:e.charset,r=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=h(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=d(c,i[c],r,"string"==typeof e);
1a=n.merge(a,l,r)}return!0===r.allowSparse?a:n.compact(a)}},43022:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n,i=r(83986);let a={...n||(n=r.t(i,2))}},44673:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(83986),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},45205:(e,t,r)=>{"use strict";var n=r(35161),i=r(22396),a=r(39376),o=r(36573),s=r(15084)||o||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},45208:(e,t,r)=>{"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{_:()=>n})},45812:(e,t,r)=>{"use strict";function n(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function i(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function a(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(i(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}function o(e,t){if(t&&null!=e){var r;return null!=(r=t(e))?r:""}if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return n(e)}function s(e,t){if(t&&null!=e){var r;return null!=(r=t(e))?r:""}return e&&"object"==typeof e&&"value"in e&&"label"in e?n(e.value):n(e)}r.d(t,{Dp:()=>a,Li:()=>i,yg:()=>o,T:()=>s}),r(83986),r(5498)},45822:(e,t,r)=>{"use strict";function n(e){return null==e?e:"current"in e?e.current:e}r.d(t,{q:()=>n})},46113:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(56627);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}},46315:(e,t,r)=>{"use strict";e.exports=r(83990)},46960:(e,t,r)=>{"use strict";var n=r(26694);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},47747:(e,t,r)=>{"use strict";r.d(t,{PT:()=>f,VN:()=>p,lZ:()=>o,v6:()=>a});var n=r(58698);let i={};function a(e,t,r,n,i){if(!r&&!n&&!i&&!e)return s(t);let a=s(e);return t&&(a=u(a,t)),r&&(a=u(a,r)),n&&(a=u(a,n)),i&&(a=u(a,i)),a}function o(e){if(0===e.length)return i;if(1===e.length)return s(e[0]);let t=s(e[0]);for(let r=1;r<e.length;r+=1)t=u(t,e[r]);return t}function s(e){return l(e)?{...d(e,i)}:function(e){let t={...e};for(let e in t){let r=t[e];c(e,r)&&(t[e]=h(r))}return t}(e)}function u(e,t){return l(t)?d(t,e):function(e,t){if(!t)return e;for(let r in t){let i=t[r];switch(r){case"style":e[r]=(0,n.r)(e.style,i);break;case"className":e[r]=p(e.className,i);break;default:c(r,i)?e[r]=function(e,t){return t?e?(...r)=>{let n=r[0];if(m(n)){f(n);let i=t(...r);return n.baseUIHandlerPrevented||e?.(...r),i}let i=t(...r);return e?.(...r),i}:h(t):e}(e[r],i):e[r]=i}}return e}(e,t)}function c(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2);return 111===r&&110===n&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function l(e){return"function"==typeof e}function d(e,t){return l(e)?e(t):e??i}function h(e){return e?(...t)=>{let r=t[0];return m(r)&&f(r),e(...t)}:e}function f(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function p(e,t){return t?e?t+" "+e:t:e}function m(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},47915:(e,t,r)=>{"use strict";function n(e){return`data-base-ui-${e}`}r.d(t,{F:()=>n})},48267:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error("Invariant failed")}r.d(t,{V:()=>n})},48680:(e,t,r)=>{"use strict";r.d(t,{j:()=>en});var n=r(83986);function i(e){let{controlled:t,default:r,name:i,state:a="value"}=e,{current:o}=n.useRef(void 0!==t),[s,u]=n.useState(r),c=n.useCallback(e=>{o||u(e)},[]);return[o?t:s,c]}var a=r(78933),o=r(54617),s=r(93023),u=r(34979),c=r(88653),l=r(70236),d=r(5741),h=r(19341),f=r(62839),p=r(71853),m=r(79378),g=r(10772),y=r(54714),v=r(40623),w=r(21443),b=r(97971),P=r(11745),R=r(63843),S=r(56599),E=r(13321),x=r(15075),T=r(96982),I=r(47915),q=r(98102);let _={intentional:"onClick",sloppy:"onPointerDown"};function k(){return!1}var A=r(22984),C=r(37866),O=r(69943);function j(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function D(e,t){return j(t,e===C.il||e===C.Jd,e===C.eR||e===C.RJ)}function F(e,t,r){return j(t,e===C.Jd,r?e===C.eR:e===C.RJ)||"Enter"===e||" "===e||""===e}var N=r(38898),U=r(55164),M=r(60977),H=r(56411);let L=n.createContext({formRef:{current:{fields:new Map}},errors:{}
1,clearErrors:f.tE,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});var W=r(56107),B=r(26786),$=r(45812);let V=new Map,Q=function(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},r=`${function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e.locale)}|${JSON.stringify(t)}`,n=V.get(r);if(n)return n;let i=new Intl.Collator(e.locale,t),a={contains(e,t,r){if(!t)return!0;let n=(0,$.yg)(e,r);for(let e=0;e<=n.length-t.length;e+=1)if(0===i.compare(n.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,r){if(!t)return!0;let n=(0,$.yg)(e,r);return 0===i.compare(n.slice(0,t.length),t)},endsWith(e,t,r){if(!t)return!0;let n=(0,$.yg)(e,r),a=t.length;return n.length>=a&&0===i.compare(n.slice(n.length-a),t)}};return V.set(r,a),a};var K=r(93387);function G(e,t){let r=n.useRef(e),i=(0,o.K)(t);(0,a.g)(()=>{r.current!==e&&i(r.current)},[e,i]),(0,a.g)(()=>{r.current=e},[e])}let z={tabIndex:-1,[C.Ed]:""};var J=r(47747),X=r(37357);let Z=Symbol("none"),Y={value:Z,index:-1};var ee=r(65218),et=r(5498);function er(e){let t,r,V,{id:er,onOpenChangeComplete:en,defaultSelectedValue:ei=null,selectedValue:ea,onSelectedValueChange:eo,defaultInputValue:es,inputValue:eu,open:ec,defaultOpen:el=!1,selectionMode:ed="none",onItemHighlighted:eh,name:ef,form:ep,disabled:em=!1,readOnly:eg=!1,required:ey=!1,inputRef:ev,grid:ew=!1,items:eb,filteredItems:eP,filter:eR,openOnInputClick:eS=!0,autoHighlight:eE=!1,keepHighlight:ex=!1,highlightItemOnHover:eT=!0,loopFocus:eI=!0,itemToStringLabel:eq,itemToStringValue:e_,isItemEqualToValue:ek=X.jd,virtualized:eA=!1,inline:eC=!1,fillInputOnItemPress:eO=!0,modal:ej=!1,limit:eD=-1,autoComplete:eF="list",formAutoComplete:eN,locale:eU,submitOnItemClick:eM=!1}=e,{clearErrors:eH}=n.useContext(L),{setDirty:eL,validityData:eW,shouldValidateOnChange:eB,setFilled:e$,name:eV,disabled:eQ,setTouched:eK,setFocused:eG,validationMode:ez,validation:eJ}=(0,H.V$)(),eX=(0,ee.j)(),eZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{id:t,implicit:r=!1,controlRef:i}=e,{controlId:s,registerControlId:u}=(0,B.H)(),c=(0,W.e)(t),d=r?s:void 0,h=(0,l.j)(()=>Symbol("labelable-control")),p=n.useRef(!1),m=n.useRef(null!=t),g=(0,o.K)(()=>{p.current&&u!==f.tE&&(p.current=!1,u(h.current,void 0))});return(0,a.g)(()=>{let e;if(u!==f.tE){if(r){let r=null==i?void 0:i.current;e=(0,x.vq)(r)&&null!=r.closest("label")?null!=t?t:null:null!=d?d:c}else if(null!=t)m.current=!0,e=t;else{if(!m.current)return void g();e=c}if(void 0===e)return void g();p.current=!0,u(h.current,e)}},[t,i,d,u,r,c,h,g]),n.useEffect(()=>g,[g]),null!=s?s:c}({id:er}),eY=Q({locale:eU}),[e0,e1]=n.useState(!1),[e3,e8]=n.useState(null),e6=n.useRef([]),e9=n.useRef([]),e2=n.useRef(null),e4=n.useRef(null),e5=n.useRef(null),e7=n.useRef(null),te=n.useRef(null),tt=n.useRef(!0),tr=n.useRef(!1),tn=n.useRef(null),ti=n.useRef(null),ta=n.useRef(null),to=n.useRef(Y),ts=n.useRef(null),tu=n.useRef([]),tc=n.useRef([]),tl=eQ||em,td=null!=eV?eV:ef,th="multiple"===ed,tf="single"===ed,tp=void 0!==eu||void 0!==es,tm=void 0!==eb,tg=void 0!==eP;t="always"===eE?"always":!!eE&&"input-change";let[ty,tv]=i({controlled:ea,default:th?null!=ei?ei:f.Ml:ei,name:"Combobox",state:"selectedValue"}),tw=n.useMemo(()=>null===eR?()=>!0:void 0!==eR?eR:tf&&!e0?(e,t)=>{if(null==e)return!1;if(!t)return!0;let r=(0,$.yg)(e,eq),n=null!=ty?(0,$.yg)(ty,eq):"";return!!(n&&eY.contains(n,t))&&n.length===t.length||eY.contains(r,t)}:(e,t)=>{if(null==e)return!1;let r=(0,$.yg)(e,eq);return eY.contains(r,t)},[eR,tf,ty,e0,eY,eq]),tb=(0,l.j)(()=>tp?null!=es?es:"":tf?(0,$.yg)(ty,eq):"").current,[tP,tR]=i({controlled:eu,default:tb,name:"Combobox",state:"inputValue"}),[tS,tE]=i({controlled:ec,default:el,name:"Combobox",state:"open"}),tx=(0,$.Li)(eb),tT=null!=e3?e3:""===tP?"":String(tP).trim(),tI=tf?(0,$.yg)(ty,eq):"",tq=tf&&!e0&&""!==tT&&""!==tI&&tI.length===tT.length&&eY.contains(tI,tT),t_=tq?"":tT,tk=tm&&tg&&tq,tA=n.useMemo(()=>eb?tx?eb.flatMap(e=>e.items):eb:f.Ml,[eb,tx]),tC=n.useMemo(()=>{if(eP&&!tk)return eP;if(!eb)return f.Ml;if(tx){let e=[],t=0;for(let r of eb){if(eD>-1&&t>=eD)break;let n=""===t_?r.items:r.items.filter(e=>tw(e,t_,eq));if(0===n.length)continue;let i=eD>-1?eD-t:1/0,a=n.slice(0,i);if(a.length>0){let n={...r,items:a};e.push(n),t+=a.length}}return e}if(""===t_)return eD>-1?tA.slice(0,eD):tA;let e=[];for(let t of tA){if(eD>-1&&e.length>=eD)break;tw(t,t_,eq)&&e.push(t)}return e},[eP,tk,eb,tx,t_,eD,tw,eq,tA]),tO=n.useMemo(()=>tx?tC.flatMap(e=>e.items):tC,[tC,tx]),tj=(0,l.j)(()=>new d.i({id:eZ,labelId:void 0,selectedValue:ty,open:tS,filter:tw,query:tT,items:eb,selectionMode:ed,listRef:e6,labelsRef:e9,popupRef:e2,emptyRef:te,inputRef:e4,startDismissRef:e5,endDismissRef:e7,keyboardActiveRef:tt,chipsContainerRef:tn,clearRef:ti,valuesRef:tu,all
1ValuesRef:tc,selectionEventRef:ta,name:td,form:ep,disabled:tl,readOnly:eg,required:ey,grid:ew,isGrouped:tx,virtualized:eA,openOnInputClick:eS,itemToStringLabel:eq,isItemEqualToValue:ek,modal:ej,autoHighlight:t,submitOnItemClick:eM,hasInputValue:tp,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:eC,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},itemProps:f.t0,positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:"none"===ed,onOpenChangeComplete:en||f.tE,setOpen:f.tE,setInputValue:f.tE,setSelectedValue:f.tE,setIndices:f.tE,onItemHighlighted:f.tE,handleSelection:f.tE,forceMount:f.tE,requestSubmit:f.tE})).current,tD="none"===ed?tP:ty,tF=n.useMemo(()=>"none"===ed?tD:Array.isArray(ty)?ty.map(e=>(0,$.T)(e,e_)):(0,$.T)(ty,e_),[tD,e_,ed,ty]),tN=(0,o.K)(eh),tU=(0,o.K)(en),tM=(0,h.P)(tj,U.T.activeIndex),tH=(0,h.P)(tj,U.T.selectedIndex),tL=(0,h.P)(tj,U.T.positionerElement),tW=(0,h.P)(tj,U.T.listElement),tB=(0,h.P)(tj,U.T.triggerElement),t$=(0,h.P)(tj,U.T.inputElement),tV=(0,h.P)(tj,U.T.inputGroupElement),tQ=(0,h.P)(tj,U.T.inline),tK=(0,h.P)(tj,U.T.inputInsidePopup),tG=(0,h.P)(tj,U.T.inputOwnsFormValue),tz=(0,u.u)(tB),{mounted:tJ,setMounted:tX,transitionStatus:tZ}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[i,o]=n.useState(e&&t?"idle":void 0),[s,u]=n.useState(e);return e&&!s&&(u(!0),o("starting")),e||!s||"ending"===i||r||o("ending"),e||s||"ending"!==i||o(void 0),(0,a.g)(()=>{if(!e&&s&&"ending"!==i&&r){let e=m.K.request(()=>{o("ending")});return()=>{m.K.cancel(e)}}},[e,s,i,r]),(0,a.g)(()=>{if(!e||t)return;let r=m.K.request(()=>{o(void 0)});return()=>{m.K.cancel(r)}},[t,e]),(0,a.g)(()=>{if(!e||!t)return;e&&s&&"idle"!==i&&o("starting");let r=m.K.request(()=>{o("idle")});return()=>{m.K.cancel(r)}},[t,e,s,i]),{mounted:s,setMounted:u,transitionStatus:i}}(tS),{openMethod:tY,triggerProps:t0}=function(e){let[t,r]=n.useState(null),i=function(e,t){let{onClick:r,onPointerDown:i}=function(e){let t=n.useRef(""),r=n.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:n.useCallback(r=>{if(0===r.detail)return void e(r,"keyboard");"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:r}}((0,o.K)((r,n)=>{("function"==typeof e?e():e)||t(n||(K.un?"touch":""))}));return n.useMemo(()=>({onClick:r,onPointerDown:i}),[r,i])}(e,r);return G(e,t=>{t&&!e&&r(null)}),n.useMemo(()=>({openMethod:t,triggerProps:i}),[t,i])}(tS);!function(e,t,r,i){let o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],{registerFieldControl:s}=(0,H.V$)(),u=n.useRef(null);u.current||(u.current=Symbol()),(0,a.g)(()=>{let n=u.current;if(n&&o)return s(n,{controlRef:e,getValue:i,id:t,value:r}),()=>{s(n,void 0)}},[e,o,i,t,s,r])}(tK?tz:e4,eZ,tD,(0,o.K)(()=>tF));let t1=(0,o.K)(()=>{eb?e9.current=tO.map(e=>(0,$.yg)(e,eq)):tj.set("forceMounted",!0)}),t3=n.useRef(ty);(0,a.g)(()=>{ty!==t3.current&&t1()},[t1,ty]);let t8=(0,o.K)(e=>{tj.update(e);let t=e.type||"none";if(void 0!==e.activeIndex)if(null===e.activeIndex)to.current!==Y&&(to.current=Y,tN(void 0,(0,b.M)(t,void 0,{index:-1})));else{let r=tu.current[e.activeIndex];to.current={value:r,index:e.activeIndex},tN(r,(0,b.M)(t,void 0,{index:e.activeIndex}))}}),t6=(0,o.K)((r,n)=>{var i;if(tr.current=n.reason===P.qs,null==(i=e.onInputValueChange)||i.call(e,r,n),!n.isCanceled){if(n.reason===P.pf){let e=n.event,i=e.inputType;if("compositionend"===e.type||null!=i&&""!==i&&"insertReplacementText"!==i){let e=""!==r.trim();e&&e1(!0),ts.current={hasQuery:e},e&&t&&null==tj.state.activeIndex&&tj.set("activeIndex",0)}}tR(r)}}),t9=(0,o.K)((t,r)=>{var n;if(tS!==t&&("escape-key"===r.reason&&tm&&0===tO.length&&!tj.state.emptyRef.current&&r.allowPropagation(),null==(n=e.onOpenChange)||n.call(e,t,r),!r.isCanceled&&(t&&th&&tK&&!tQ&&null!==e3&&(e1(!1),e8(null),""!==tP&&t6("",(0,b.d)(P.qs,r.event))),!t&&e0&&(tf?(tQ||e8(tT),""===tT&&e1(!1)):th&&(tQ||e8(tT),tK&&t8({activeIndex:null}),(!tK||tQ)&&t6("",(0,b.d)(P.qs,r.event)))),tE(t),!t&&tK&&(r.reason===P.Xn||r.reason===P.Np))&&(eK(!0),eG(!1),"onBlur"===ez))){let e="none"===ed?tP:ty;eJ.commit(e)}}
1),t2=(0,o.K)((e,t)=>{null==eo||eo(e,t),!t.isCanceled&&(tv(e),("none"===ed&&e2.current&&eO||tf&&!tj.state.inputInsidePopup)&&t6((0,$.yg)(e,eq),(0,b.d)(t.reason,t.event)),tf&&null!=e&&t.reason!==P.pf&&e0&&!tQ&&e8(tT))}),t4=(0,o.K)((e,t)=>{var r,n;let i=t;if(void 0===i){if(null===tM)return;i=tu.current[tM]}let a=(0,y.EW)(e),o=null!=(n=ta.current)?n:e;ta.current=null;let s=(0,b.d)(P.Bo,o),u=null==a||null==(r=a.closest("a"))?void 0:r.getAttribute("href");if(u){u.startsWith("#")&&t9(!1,s);return}if(th){let e=Array.isArray(ty)?ty:[];if(t2((0,X.kJ)(e,i,tj.state.isItemEqualToValue)?(0,X.Ai)(e,i,tj.state.isItemEqualToValue):[...e,i],s),!(e4.current&&""!==e4.current.value.trim()))return;tj.state.inputInsidePopup?t6("",(0,b.d)(P.qs,s.event)):t9(!1,s)}else t2(i,s),t9(!1,s)}),t5=(0,o.K)(()=>{var e,t,r;if(!tj.state.submitOnItemClick)return;let n=null!=(r=null==(e=eJ.inputRef.current)?void 0:e.form)?r:null==(t=tj.state.inputElement)?void 0:t.form;n&&"function"==typeof n.requestSubmit&&n.requestSubmit()}),t7=(0,o.K)(()=>{if(tX(!1),null==tU||tU(!1),e1(!1),e8(null),"none"===ed?t8({activeIndex:null,selectedIndex:null}):t8({activeIndex:null}),th&&e4.current&&""!==e4.current.value&&!tr.current&&t6("",(0,b.d)(P.qs)),tf)if(tj.state.inputInsidePopup)e4.current&&""!==e4.current.value&&t6("",(0,b.d)(P.qs));else{let e=(0,$.yg)(ty,eq);if(e4.current&&e4.current.value!==e){let t=""===e?P.qs:P.dv;t6(e,(0,b.d)(t))}}}),re=n.useMemo(()=>tQ&&tL?{current:tL.closest('[role="dialog"]')}:e2,[tQ,tL]);(0,M.v)({enabled:!e.actionsRef,open:tS,ref:re,onComplete(){tS||t7()}}),n.useImperativeHandle(e.actionsRef,()=>({unmount:t7}),[t7]),(0,a.g)(function(){if(tS||"none"===ed)return;let e=eb?tA:tc.current;if(th){let t=Array.isArray(ty)?ty:[],r=t[t.length-1],n=(0,X.Vz)(e,r,ek);t8({selectedIndex:-1===n?null:n})}else{let t=(0,X.Vz)(e,ty,ek);t8({selectedIndex:-1===t?null:t})}},[tS,ty,eb,ed,tA,th,ek,t8]),(0,a.g)(()=>{eb&&(tu.current=tO,e6.current.length=tO.length)},[eb,tO]),(0,a.g)(()=>{let e=ts.current;if(e&&(e.hasQuery?t&&tj.set("activeIndex",0):"always"===t&&tj.set("activeIndex",0),ts.current=null),!tS&&!tQ)return;let r=tm||tg?tO:tu.current,n=tj.state.activeIndex;if(null==n)return"always"===t&&r.length>0?void tj.set("activeIndex",0):void(to.current!==Y&&(to.current=Y,tj.state.onItemHighlighted(void 0,(0,b.M)(P.dv,void 0,{index:-1}))));if(n>=r.length){to.current!==Y&&(to.current=Y,tj.state.onItemHighlighted(void 0,(0,b.M)(P.dv,void 0,{index:-1}))),tj.set("activeIndex",null);return}let i=r[n],a=to.current.value,o=a!==Z&&(0,X.tl)(i,a,tj.state.isItemEqualToValue);to.current.index===n&&o||(to.current={value:i,index:n},tj.state.onItemHighlighted(i,(0,b.M)(P.dv,void 0,{index:n})))},[tM,t,tg,tm,tO,tQ,tS,tj]),(0,a.g)(()=>{if("none"===ed)return void e$(""!==String(tP));e$(th?Array.isArray(ty)&&ty.length>0:null!=ty)},[e$,ed,tP,ty,th]),n.useEffect(()=>{tm&&t&&0===tO.length&&t8({activeIndex:null})},[tm,t,tO.length,t8]),G(tT,()=>{tS&&""!==tT&&tT!==String(tb)&&e1(!0)}),G(ty,()=>{if("none"!==ed&&(eH(td),eL(ty!==eW.initialValue),eB()?eJ.commit(ty):eJ.commit(ty,!0),tf&&!tp&&!tK)){let e=(0,$.yg)(ty,eq);tP!==e&&t6(e,(0,b.d)(P.dv))}}),G(tP,()=>{"none"===ed&&(eH(td),eL(tP!==eW.initialValue),eB()?eJ.commit(tP):eJ.commit(tP,!0))}),G(eb,()=>{if(!tf||tp||tK||e0)return;let e=(0,$.yg)(ty,eq);tP!==e&&t6(e,(0,b.d)(P.dv))});let rt=(0,p.P)({open:!!tQ||tS,onOpenChange:t9,elements:{reference:tK?tB:t$,floating:tL}});tQ||(r=ew?"grid":"listbox",V=tS?"true":"false");let rr=n.useMemo(()=>{let e=(null==t$?void 0:t$.tagName)==="INPUT",t=null==t$||e,n=t||tS,i=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return n&&(i.role="combobox",i["aria-expanded"]=V,i["aria-haspopup"]=r,i["aria-controls"]=tS?null==tW?void 0:tW.id:void 0,i["aria-autocomplete"]=eF),{reference:i,floating:{role:"presentation"}}},[t$,tS,V,r,null==tW?void 0:tW.id,eF]),rn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enabled:r=!0,event:i="click",toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:u=0,reason:c=P.Ui}=t,l="rootStore"in e?e.rootStore:e,d=l.context.dataRef,h=n.useRef(void 0),p=(0,m.N)(),R=(0,g.Z)(),S=n.useMemo(()=>{function e(e,t,r,n){let i=(0,b.d)(c,t,r);e&&"touch"===n&&u>0?R.start(u,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,r){let n=d.current.openEvent,i=l.select("domReferenceElement")!==t;return!!e&&!!i||!e||!a||!!n&&!!s&&!r(n.type)}return{onPointerDown(e){h.current=e.pointerType},onMouseDown(r){let n=h.current,a=r.nativeEvent,s=l.select("open");if(0!==r.button||"click"===i||(0,w.Go)(n,!0)&&o)return;let u=t(s,r.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,y.EW)(a);if((0,v.$u)(c))return void e(u,a,c,n);let d=r.currentTarget;p.request(()=>{e(u,a,d,n)})},onClick(r){if("mousedown-only"===i)return;let n=h.current;if("mousedown"===i&&n){h.current=void 0;return}(0,w.Go)(n,!0)&&o||e(t(l.select("open"),r.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),r.nativeEvent,r.currentTarget,n)},onKeyDown(){h.current=void 0}}},[d,i,o,c,l,s,a,p,R,u]);return n.useMemo(()=>r?{reference:S}:f.t0,[r,S])}
1(rt,{enabled:!eg&&!tl&&eS,event:"mousedown-only",toggle:!1,touchOpenDelay:100*!tK,reason:P._J}),ri=function(e){var t,r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enabled:a=!0,escapeKey:s=!0,outsidePress:u=!0,outsidePressEvent:c="sloppy",referencePress:l=k,referencePressEvent:d="sloppy",bubbles:h,externalTree:f}=i,p="rootStore"in e?e.rootStore:e,m=p.useState("open"),A=p.useState("floatingElement"),{dataRef:C}=p.context,O=(0,T.cq)(f),j=(0,o.K)("function"==typeof u?u:()=>!1),D="function"==typeof u?j:u,F=!1!==D,N=(0,o.K)(()=>c),{escapeKey:U,outsidePress:M}={escapeKey:"boolean"==typeof h?h:null!=(t=null==h?void 0:h.escapeKey)&&t,outsidePress:"boolean"==typeof h?h:null==(r=null==h?void 0:h.outsidePress)||r},H=n.useRef(!1),L=n.useRef(!1),W=n.useRef(!1),B=n.useRef(!1),$=n.useRef(""),V=n.useRef(null),Q=(0,g.Z)(),K=(0,g.Z)(),G=(0,o.K)(()=>{K.clear(),C.current.insideReactTree=!1}),z=(0,o.K)(e=>{var t;let r=null==(t=C.current.floatingContext)?void 0:t.nodeId;return(O?(0,q.CM)(O.nodesRef.current,r):[]).some(t=>{var r;return(null==(r=t.context)?void 0:r.open)&&!t.context.dataRef.current[e]})}),J=(0,o.K)(e=>(0,v.F2)(e,p.select("floatingElement"))||(0,v.F2)(e,p.select("domReferenceElement"))),X=(0,o.K)(e=>{l()&&p.setOpen(!1,(0,b.d)(P.Ui,e.nativeEvent))}),Z=(0,o.K)(e=>{if(!m||!a||!s||"Escape"!==e.key||B.current||!U&&z("__escapeKeyBubbles"))return;let t=(0,w.O_)(e)?e.nativeEvent:e,r=(0,b.d)(P.jv,t);p.setOpen(!1,r),r.isCanceled||e.preventDefault(),U||r.isPropagationAllowed||e.stopPropagation()}),Y=(0,o.K)(()=>{C.current.insideReactTree=!0,K.start(0,G)}),ee=(0,o.K)(e=>{if(!m||!a||0!==e.button)return;let t=(0,y.EW)(e.nativeEvent);(0,y.gR)(p.select("floatingElement"),t)&&(H.current||(H.current=!0,L.current=!1))}),et=(0,o.K)(e=>{m&&a&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&H.current&&(L.current=!0)});n.useEffect(()=>{if(!m||!a)return;C.current.__escapeKeyBubbles=U,C.current.__outsidePressBubbles=M;let e=new g.E,t=new g.E;function r(){W.current=!0,t.start(0,()=>{W.current=!1})}function n(){H.current=!1,L.current=!1}function i(){let e=$.current,t=N(),r="function"==typeof t?t():t;return"string"==typeof r?r:r["pen"!==e&&e?e:"mouse"]}function o(e){var t;let r=null==(t=C.current.floatingContext)?void 0:t.nodeId,n=O&&(0,q.CM)(O.nodesRef.current,r).some(t=>{var r;return(0,v.F2)(e,null==(r=t.context)?void 0:r.elements.floating)});return J(e)||n}function u(e){if(function(e){let t=i();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e)){"click"===e.type||J(e)||(t.clear(),W.current=!1),G();return}if(C.current.insideReactTree)return void G();let r=(0,y.EW)(e),n="[".concat((0,I.F)("inert"),"]"),a=(0,x.vq)(r)?r.getRootNode():null,s=Array.from(((0,x.Ng)(a)?a:(0,E.R)(p.select("floatingElement"))).querySelectorAll(n)),u=p.context.triggerElements;if(r&&(u.hasElement(r)||u.hasMatchingElement(e=>(0,y.gR)(e,r))))return;let c=(0,x.vq)(r)?r:null;for(;c&&!(0,x.eu)(c);){let e=(0,x.$4)(c);if((0,x.eu)(e)||!(0,x.vq)(e))break;c=e}if(s.length&&(0,x.vq)(r)&&!(0,v.tZ)(r)&&!(0,y.gR)(r,p.select("floatingElement"))&&s.every(e=>!(0,y.gR)(c,e)))return;if((0,x.sb)(r)&&!("touches"in e)){let t=(0,x.eu)(r),n=(0,x.L9)(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,u=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,l=u&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(l||d)return}if(!o(e)){if("intentional"===i()&&W.current){t.clear(),W.current=!1;return}("function"!=typeof D||D(e))&&(z("__outsidePressBubbles")||(p.setOpen(!1,(0,b.d)(P.Np,e)),G()))}}function c(e){if("sloppy"!==i()||!p.select("open")||!a||J(e))return;let t=e.touches[0];t&&(V.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Q.start(1e3,()=>{V.current&&(V.current.dismissOnTouchEnd=!1,V.current.dismissOnMouseDown=!1)}))}function l(e,t){let r=(0,y.EW)(e);if(!r)return;let n=(0,R.q)(r,e.type,()=>{t(e),n()})}function d(e){Q.clear(),"pointerdown"===e.type&&($.current=e.pointerType),("mousedown"!==e.type||!V.current||V.current.dismissOnMouseDown)&&l(e,e=>{if("pointerdown"===e.type)"sloppy"!==i()||"touch"===e.pointerType||!p.select("open")||!a||J(e)||u(e);else u(e)})}function h(e){if(!H.current)return;let a=L.current;if(n(),"intentional"===i()){if("pointercancel"===e.type){a&&r();return}if(!o(e)){if(a)return void r();("function"!=typeof D||D(e))&&(t.clear(),W.current=!0,G())}}}function f(e){if("sloppy"!==i()||!V.current||J(e))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-V.current.startX),n=Math.abs(t.clientY-V.current.startY),a=Math.sqrt(r*r+n*n);a>5&&(V.current.dismissOnTouchEnd=!0),a>10&&(u(e),Q.clear(),V.current=null)}function w(e){"sloppy"!==i()||!V.current||J(e)||(V.current.dismissOnTouchEnd&&u(e),Q.clear(),V.current=null)}let T=(0,E.R)(A),_=(0,S.g)(s&&(0,S.g)((0,R.q)(T,"keydown",Z),(0,R.q)(T,"compositionstart",function(){e.clear(),B.current=!0}),(0,R.q)(T,"compositionend",function(){e.start(5*!!(0,x.Tc)(),()=>
1{B.current=!1})})),F&&(0,S.g)((0,R.q)(T,"click",d,!0),(0,R.q)(T,"pointerdown",d,!0),(0,R.q)(T,"pointerup",h,!0),(0,R.q)(T,"pointercancel",h,!0),(0,R.q)(T,"mousedown",d,!0),(0,R.q)(T,"mouseup",h,!0),(0,R.q)(T,"touchstart",function(e){$.current="touch",l(e,c)},!0),(0,R.q)(T,"touchmove",function(e){l(e,f)},!0),(0,R.q)(T,"touchend",function(e){l(e,w)},!0)));return()=>{_(),e.clear(),t.clear(),n(),W.current=!1}},[C,A,s,F,D,m,a,U,M,Z,G,N,z,J,O,p,Q]),n.useEffect(G,[D,G]);let er=n.useMemo(()=>({onKeyDown:Z,[_[d]]:X,..."intentional"!==d&&{onClick:X}}),[Z,X,d]),en=n.useMemo(()=>({onKeyDown:Z,onPointerDown:et,onMouseDown:et,onClickCapture:Y,onMouseDownCapture(e){Y(),ee(e)},onPointerDownCapture(e){Y(),ee(e)},onMouseUpCapture:Y,onTouchEndCapture:Y,onTouchMoveCapture:Y}),[Z,Y,ee,et]);return n.useMemo(()=>a?{reference:er,floating:en,trigger:er}:{},[a,er,en])}(rt,{enabled:!eg&&!tl&&!tQ,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!tQ||void 0,outsidePress(e){let t=(0,y.EW)(e);return!(0,y.gR)(tB,t)&&!(0,y.gR)(ti.current,t)&&!(0,y.gR)(tn.current,t)&&!(0,y.gR)(tV,t)}}),ra=function(e,t){let{listRef:r,activeIndex:i,onNavigate:s=()=>{},enabled:c=!0,selectedIndex:l=null,allowEscape:d=!1,loopFocus:h=!1,nested:f=!1,rtl:p=!1,virtual:g=!1,focusItemOnOpen:R="auto",focusItemOnHover:S=!0,openOnArrowKeyDown:I=!0,disabledIndices:q,orientation:_="vertical",parentOrientation:k,cols:N=1,id:U,resetOnPointerLeave:M=!0,externalTree:H}=t,L="rootStore"in e?e.rootStore:e,W=L.useState("open"),B=L.useState("floatingElement"),$=L.useState("domReferenceElement"),V=L.
1context.dataRef,Q=(0,v.nd)(B),K=(0,v.WZ)($),G=(0,u.u)(Q),z=(0,T.R1)(),J=(0,T.cq)(H),X=n.useRef(R),Z=n.useRef(null!=l?l:-1),Y=n.useRef(null),ee=n.useRef(!0),et=(0,o.K)(e=>{s(-1===Z.current?null:Z.current,e)}),er=n.useRef(et),en=n.useRef(!!B),ei=n.useRef(W),ea=n.useRef(!1),eo=n.useRef(!1),es=n.useRef(null),eu=(0,u.u)(q),ec=(0,u.u)(W),el=(0,u.u)(l),ed=(0,u.u)(M),eh=(0,m.N)(),ef=(0,m.N)(),ep=(0,o.K)(()=>{function e(e){g?null==J||J.events.emit("virtualfocus",e):es.current=(0,O.p)(e,{sync:ea.current,preventScroll:!0})}let t=r.current[Z.current],n=eo.current;t&&e(t),(ea.current?e=>e():e=>eh.request(e))(()=>{let i=r.current[Z.current]||t;if(i&&(t||e(i),eb&&(n||!ee.current))){var a;null==(a=i.scrollIntoView)||a.call(i,{block:"nearest",inline:"nearest"})}})});(0,a.g)(()=>{V.current.orientation=_},[V,_]),(0,a.g)(()=>{c&&(W&&B?(Z.current=null!=l?l:-1,X.current&&null!=l&&(eo.current=!0,et())):en.current&&(Z.current=-1,er.current()))},[c,W,B,l,et]),(0,a.g)(()=>{if(c){if(!W){ea.current=!1;return}if(B)if(null==i){if(ea.current=!1,null!=el.current)return;if(en.current&&(Z.current=-1,ep()),(!ei.current||!en.current)&&X.current&&(null!=Y.current||!0===X.current&&null==Y.current)){let e=0,t=()=>{null==r.current[0]?(e<2&&(e?e=>ef.request(e):queueMicrotask)(t),e+=1):(Z.current=null==Y.current||F(Y.current,_,p)||f?(0,A.Zb)(r):(0,A.vB)(r),Y.current=null,et())};t()}}else(0,A.du)(r.current,i)||(Z.current=i,ep(),eo.current=!1)}},[c,W,B,i,el,f,r,_,p,et,ep,ef]),(0,a.g)(()=>{var e,t;if(!c||B||!J||g||!en.current)return;let r=J.nodesRef.current,n=null==(t=r.find(e=>e.id===z))||null==(e=t.context)?void 0:e.elements.floating,i=(0,y.RS)((0,E.R)(B)),a=r.some(e=>e.context&&(0,y.gR)(e.context.elements.floating,i));n&&!a&&ee.current&&n.focus({preventScroll:!0})},[c,B,J,z,g]),(0,a.g)(()=>{er.current=et,ei.current=W,en.current=!!B}),(0,a.g)(()=>{W||(Y.current=null,X.current=R)},[W,R]);let em=null!=i,eg=(0,o.K)(e=>{if(!ec.current)return;let t=r.current.indexOf(e.currentTarget);-1!==t&&(Z.current!==t||i!==t)&&(Z.current=t,et(e))}),ey=(0,o.K)(()=>{var e,t,r;return null!=k?k:null==J||null==(r=J.nodesRef.current.find(e=>e.id===z))||null==(t=r.context)||null==(e=t.dataRef)?void 0:e.current.orientation}),ev=(0,o.K)(()=>(0,A.Zb)(r,eu.current)),ew=(0,o.K)(e=>{if(ee.current=!1,ea.current=!0,229===e.which||!ec.current&&e.currentTarget===G.current)return;if(f&&function(e,t,r,n){let i=r?e===C.RJ:e===C.eR,a=e===C.il;return"both"===t||"horizontal"===t&&n&&n>1?"Escape"===e:j(t,i,a)}(e.key,_,p,N)){D(e.key,ey())||(0,w.jo)(e),L.setOpen(!1,(0,b.d)(P.Dq,e.nativeEvent)),(0,x.sb)($)&&(g?null==J||J.events.emit("virtualfocus",$):$.focus());return}let t=Z.current,n=(0,A.Zb)(r,q),i=(0,A.vB)(r,q);if(K||("Home"===e.key&&((0,w.jo)(e),Z.current=n,et(e)),"End"===e.key&&((0,w.jo)(e),Z.current=i,et(e))),N>1){let t=Array.from({length:r.current.length},()=>({width:1,height:1})),a=(0,A.zf)(t,N,!1),o=a.findIndex(e=>null!=e&&!(0,A.FP)(r.current,e,q)),s=a.reduce((e,t,n)=>null==t||(0,A.FP)(r.current,t,q)?e:n,-1),u=a[(0,A.Kg)(a.map(e=>null!=e?r.current[e]:null),{event:e,orientation:_,loopFocus:h,rtl:p,cols:N,disabledIndices:(0,A.Y3)([...("function"!=typeof q?q:null)||r.current.map((e,t)=>(0,A.FP)(r.current,t,q)?t:void 0),void 0],a),minIndex:o,maxIndex:s,prevIndex:(0,A.fl)(Z.current>i?n:Z.current,t,a,N,e.key===C.Jd?"bl":e.key===(p?C.eR:C.RJ)?"tr":"tl"),stopEvent:!0})];if(null!=u&&(Z.current=u,et(e)),"both"===_)return}if(D(e.key,_)){if((0,w.jo)(e),W&&!g&&(0,y.RS)(e.currentTarget.ownerDocument)===e.currentTarget){Z.current=F(e.key,_,p)?n:i,et(e);return}F(e.key,_,p)?h?t>=i?d&&t!==r.current.length?Z.current=-1:(ea.current=!1,Z.current=n):Z.current=(0,A.BF)(r.current,{startingIndex:t,disabledIndices:q}):Z.current=Math.min(i,(0,A.BF)(r.current,{startingIndex:t,disabledIndices:q})):h?t<=n?d&&-1!==t?Z.current=r.current.length:(ea.current=!1,Z.current=i):Z.current=(0,A.BF)(r.current,{startingIndex:t,decrement:!0,disabledIndices:q}):Z.current=Math.max(n,(0,A.BF)(r.current,{startingIndex:t,decrement:!0,disabledIndices:q})),(0,A.du)(r.current,Z.current)&&(Z.current=-1),et(e)}}),eb=n.useMemo(()=>({onFocus(e){ea.current=!0,eg(e)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(e){ea.current=!0,eo.current=!1,S&&eg(e)},onPointerLeave(e){var t;if(!ec.current||!ee.current||"touch"===e.pointerType)return;ea.current=!0;let n=e.relatedTarget;if(!(!S||r.current.includes(n))&&ed.current&&(null==(t=es.current)||t.call(es),es.current=null,Z.current=-1,et(e),!g)){let e=G.current,t=(0,y.RS)((0,E.R)(e));e&&(0,y.gR)(e,t)&&e.focus({preventScroll:!0})}}}),[eg,ec,G,S,r,et,ed,g]),eP=n.useMemo(()=>g&&W&&em&&{"aria-activedescendant":"".concat(U,"-").concat(i)},[g,W,em,U,i]),eR=n.useMemo(()=>({"aria-orientation":"both"===_?void 0:_,...!K?eP:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&W&&!g){let t=(0,y.EW)(e.nativeEvent);if(t&&!(0,y.gR)(G.current,t))return;(0,w.jo)(e),L.setOpen(!1,(0,b.d)(P.Xn,e.nativeEvent)),(0,x.sb)($)&&$.focu
1s();return}ew(e)},onPointerMove(){ee.current=!0}}),[eP,ew,G,_,K,L,W,g,$]),eS=n.useMemo(()=>{function e(e){L.setOpen(!0,(0,b.d)(P.Dq,e.nativeEvent,e.currentTarget))}function t(e){"auto"===R&&(0,w.YF)(e.nativeEvent)&&(X.current=!g)}function r(e){X.current=R,"auto"===R&&(0,w.Pg)(e.nativeEvent)&&(X.current=!0)}return{onKeyDown(t){var r,n;let i=L.select("open");ee.current=!1;let a=t.key.startsWith("Arrow"),o=(r=t.key,n=ey(),j(n,p?r===C.eR:r===C.RJ,r===C.Jd)),s=D(t.key,_),u=(f?o:s)||"Enter"===t.key||""===t.key.trim();if(g&&i)return ew(t);if(i||I||!a){if(u){let e=D(t.key,ey());Y.current=f&&e?null:t.key}if(f){o&&((0,w.jo)(t),i?(Z.current=ev(),et(t)):e(t));return}s&&(null!=el.current&&(Z.current=el.current),(0,w.jo)(t),!i&&I?e(t):ew(t),i&&et(t))}},onFocus(e){L.select("open")&&!g&&(Z.current=-1,et(e))},onPointerDown:r,onPointerEnter:r,onMouseDown:t,onClick:t}},[ew,R,ev,f,et,L,I,_,ey,p,el,g]),eE=n.useMemo(()=>({...eP,...eS}),[eP,eS]);return n.useMemo(()=>c?{reference:eE,floating:eR,item:eb,trigger:eS}:{},[c,eE,eR,eS,eb])}(rt,{enabled:!eg&&!tl,id:eZ,listRef:e6,activeIndex:tM,selectedIndex:tH,virtual:!0,loopFocus:eI,allowEscape:eI&&!t,focusItemOnOpen:!e0&&("none"!==ed||!!t)&&"auto",focusItemOnHover:eT,resetOnPointerLeave:!ex,cols:ew?2:1,orientation:ew?"horizontal":void 0,rtl:"rtl"===eX,disabledIndices:f.Ml,onNavigate(e,t){(t||tS)&&"ending"!==tZ&&(t?t8({activeIndex:e,type:tt.current?"keyboard":"pointer"}):t8({activeIndex:e}))}}),ro=n.useMemo(()=>(0,J.v6)(ra.reference,ri.reference,rn.reference,rr.reference),[ra.reference,ri.reference,rn.reference,rr.reference]),rs=n.useMemo(()=>(0,J.v6)(z,ra.floating,ri.floating,rr.floating),[ra.floating,ri.floating,rr.floating]),ru=n.useMemo(()=>{let e=ra.item;return e?{...e,onFocus:void 0}:f.t0},[ra.item]),rc=n.useRef(!0);rc.current&&(rc.current=!1,tj.update({inline:eC,popupProps:rs,inputProps:ro,triggerProps:t0,itemProps:ru,setOpen:t9,setInputValue:t6,setSelectedValue:t2,setIndices:t8,onItemHighlighted:tN,handleSelection:t4,forceMount:t1,requestSubmit:t5})),(0,a.g)(()=>{tj.update({id:eZ,selectedValue:ty,open:tS,mounted:tJ,transitionStatus:tZ,items:eb,inline:eC,popupProps:rs,inputProps:ro,triggerProps:t0,openMethod:tY,itemProps:ru,selectionMode:ed,name:td,form:ep,disabled:tl,readOnly:eg,required:ey,grid:ew,isGrouped:tx,virtualized:eA,onOpenChangeComplete:tU,openOnInputClick:eS,itemToStringLabel:eq,modal:ej,autoHighlight:t,isItemEqualToValue:ek,submitOnItemClick:eM,hasInputValue:tp,requestSubmit:t5,inputOwnsFormValue:"none"===ed&&(eC||!tj.state.inputInsidePopup)})},[tj,eZ,ty,tS,tJ,tZ,eb,rs,ro,ru,tY,t0,ed,td,tl,eg,ey,eJ,ew,tx,eA,tU,eS,eq,ej,ek,eM,tp,eC,t5,t,ep]);let rl=(0,s.a)(ev,eJ.inputRef),rd=n.useMemo(()=>({query:tT,hasItems:tm,filteredItems:tC,flatFilteredItems:tO}),[tT,tm,tC,tO]),rh=n.useMemo(()=>Array.isArray(tD)?"":(0,$.T)(tD,e_),[tD,e_]),rf=th&&Array.isArray(ty)&&ty.length>0,rp=th||"none"===ed&&tG?void 0:td,rm=n.useMemo(()=>th&&Array.isArray(ty)&&td?ty.map(e=>{let t=(0,$.T)(e,e_);return(0,et.jsx)("input",{type:"hidden",form:ep,name:td,value:t},t)}):null,[th,ty,ep,td,e_]),rg=(0,et.jsxs)(n.Fragment,{children:[e.children,(0,et.jsx)("input",{...eJ.getInputValidationProps({onFocus(){var e;if(tK){null==tB||tB.focus();return}null==(e=e4.current||tB)||e.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||tl||eg){var t;null==(t=e.preventBaseUIHandler)||t.call(e);return}let r=e.currentTarget.value,n=(0,b.d)(P.dv,e.nativeEvent);function i(){if(th)return;if("none"===ed){eL(r!==eW.initialValue),t6(r,n),eB()&&eJ.commit(r);return}let e=tu.current.find(e=>(0,$.T)(e,e_).toLowerCase()===r.toLowerCase()||(0,$.yg)(e,eq).toLowerCase()===r.toLowerCase());null!=e&&(eL(e!==eW.initialValue),null==t2||t2(e,n),eB()&&eJ.commit(e))}eb?i():(t1(),queueMicrotask(i))}}),id:eZ&&null==rp?"".concat(eZ,"-hidden-input"):void 0,form:ep,name:rp,autoComplete:eN,disabled:tl,required:ey&&!rf,readOnly:eg,value:rh,ref:rl,style:rp?c.a:c.Q,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),rm]});return(0,et.jsx)(N.vx.Provider,{value:tj,children:(0,et.jsx)(N.Hw.Provider,{value:rt,children:(0,et.jsx)(N.kN.Provider,{value:rd,children:(0,et.jsx)(N.KR.Provider,{value:tP,children:rg})})})})}function en(e){let t,{openOnInputClick:r=!1,value:i,defaultValue:a,onValueChange:o,mode:s="list",itemToStringValue:u,...c}=e,l="inline"===s||"both"===s,d="inline"===s||"none"===s,h=void 0!==i,[f,p]=n.useState(null!=a?a:""),[m,g]=n.useState("");n.useEffect(()=>{h&&g("")},[i,h]),t=l&&""!==m?m:h?null!=i?i:"":f;let y=Q(),v=n.useMemo(()=>void 0!==c.filter?c.filter:y.contains,[c.filter,y]),w=String(h?i:f).trim(),b=n.useMemo(()=>"both"!==s?d?null:v:null===v?null:(e,t,r)=>v(e,w,r),[v,s,w,d]);return(0,et.jsx)(er,{...c,itemToStringLabel:u,openOnInputClick:r,selectionMode:"none",fillInputOnItemPress:!0,filter:b,autoComplete:s,inputValue:t,defaultInputValue:a,onInputValueChange:function(e,t){g(""),h||p(e),null==o||o(e,t)},onItemHighlighted:function(t,r){var n;null==(n=e.onItemHighlighted)||n.call(e,t,r),r.reason!==P.Wn&&(l?null==t?g(""):g((0,$.yg)(t,u)):g(""))}})}},49054:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(83986),i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},49086:(e,t,r)=>{"use strict";r.d(t,{Z:()=>R});var n=r(9451),i=r(61850),a=r(15346),o=r(38298),s=r(45208),u=r(26821),c=r(56116),l=r(83986),d=r.t(l,2),h=r(27965),f=r(69539),p=r(41371),m=r(30860),g=r(44673),y=r(8486);function v(e){var t=(0,a._)((0,l.useState)(function(){return e}),2),r=t[0],n=t[1];return(0,h.j)(r,e)||n(e),r}var w=d.use,b=r(49054),P=r(30227);function R(e){var t,r,d,R,S,E,x,T,I,q,_,k,A,C,O,j,D,F,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,M=(t=[N,U],(0,o._)(t)||(0,s._)(t)||(0,c._)(t)||(0,u._)()),H=M[0],L=M.slice(1),W=(0,a._)(L,1)[0],B=void 0===W?{}:W,$=B.skipSuspense,V=(0,i._)(B,["skipSuspense"]),Q=(0,g.r)(),K=(0,y.m)(),G=(0,m.I)(),z=(0,p.R)(),J=v(void 0===H?{}:H),X=v(V),Z=(0,l.useRef)(!0),Y=(0,l.useRef)(null),ee=(0,l.useRef)(G.status),et=(0,l.useMemo)(function(){var t=e(function(e,t){if(t){Z.current=!0;return}if(Z.current){var r=e.instantSearchInstance;e.widgetParams;var n=(0,i._)(e,["instantSearchInstance","widgetParams"]);(0,h.j)(n,Y.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===ee.current||(ei(n),Y.current=n,ee.current=r.status)}},function(){Z.current=!1});return(0,n._)({},t(J),X)},[e,J,X]),er=(0,a._)((0,l.useState)(function(){if(et.getWidgetRenderState){var e,t=z.getHelper(),r=z.getWidgetUiState({})[z.getIndexId()];t.state=(null==(e=et.getWidgetSearchParameters)?void 0:e.call(et,t.state,{uiState:r}))||t.state;var n=(0,f.J)(z),a=n.results,o=n.scopedResults,s=n.recommendResults,u=et.getWidgetRenderState({helper:t,parent:z,instantSearchInstance:G,results:"recommend"===et.dependsOn&&s&&K?s[K.recommendIdx.current++]:a,scopedResults:o,state:t.state,render
1State:G.renderState,templatesConfig:G.templatesConfig,createURL:z.createURL,searchMetadata:{isSearchStalled:"stalled"===G.status},status:G.status,error:G.error});return u.widgetParams,(0,i._)(u,["widgetParams"])}return{}}),2),en=er[0],ei=er[1];return E=(r={widget:et,parentIndex:z,props:J,shouldSsr:!!Q,skipSuspense:void 0!==$&&$}).widget,x=r.parentIndex,T=r.props,I=r.shouldSsr,q=r.skipSuspense,k=(_=(0,P.t)()).waitForResultsRef,A=_.countRef,_.ignoreMultipleHooksWarning,C=(0,l.useRef)(T),(0,l.useEffect)(function(){C.current=T},[T]),O=(0,l.useRef)(E),(0,l.useEffect)(function(){O.current=E},[E]),j=(0,l.useRef)(null),D=I&&!x.getWidgets().includes(E),F=(0,m.I)(),(0,b.E)(function(){var e=O.current;return j.current?(clearTimeout(j.current),(0,h.j)(T,C.current)||(x.removeWidgets([e]),x.addWidgets([E]))):I||x.addWidgets([E]),function(){j.current=setTimeout(function(){F._schedule(function(){F._preventWidgetCleanup||x.removeWidgets([e])})})}},[x,E,I,F,T]),(D||(null==k||null==(d=k.current)?void 0:d.status)==="pending")&&x.addWidgets([E]),(null==k?void 0:k.current)&&!q&&(w(k.current),"ais.dynamicWidgets"!==E.$$type&&(null==(S=F.helper)?void 0:S.lastResults)&&w(k.current)),(null==k||null==(R=k.current)?void 0:R.status)==="fulfilled"&&(A.current+=1),en}},49204:(e,t,r)=>{"use strict";var n=r(10727),i=r(35161),a=r(16208),o=r(81458);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return o(n,a,e)}},50991:(e,t,r)=>{"use strict";e.exports=r(84166).getPrototypeOf||null},51937:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{_:()=>n})},52714: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}},53854:(e,t,r)=>{"use strict";var n=r(53955),i=r(49204),a=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}},53955:(e,t,r)=>{"use strict";var n,i=r(84166),a=r(82795),o=r(77091),s=r(6654),u=r(72634),c=r(21518),l=r(35161),d=r(57737),h=r(58167),f=r(36645),p=r(4425),m=r(11087),g=r(68021),y=r(19275),v=r(46960),w=Function,b=function(e){try{return w('"use strict"; return ('+e+").constructor;")()}catch(e){}},P=r(39604),R=r(93045),S=function(){throw new l},E=P?function(){try{return arguments.callee,S}catch(e){try{return P(arguments,"callee").get}catch(e){return S}}}():S,x=r(23481)(),T=r(84739),I=r(50991),q=r(94759),_=r(3372),k=r(16208),A={},C="undefined"!=typeof Uint8Array&&T?T(Uint8Array):n,O={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":x&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":A,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":x&&T?T(T([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&T?T(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":P,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&T?T(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&T?T(""[Symbol.iterator]()):n,"%Symbol%":x?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":C,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":_,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":I,"%Math.abs%":h,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":q};if(T)try{null.error}catch(e){var j=T(T(e));O["%Error.prototype%"]=j}var D=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&T&&(r=T(i.prototype))}return O[t]=r,r},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=r(10727),U=r(21933),M=N.call(k,Array.prototype.concat),H=N.call(_,Array.prototype.splice),L=N.call(k,String.prototype.replace),W=N.call(k,String.prototype.slice),B=N.
1call(k,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,Q=function(e){var t=W(e,0,1),r=W(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return L(e,$,function(e,t,r,i){n[n.length]=r?L(i,V,"$1"):t||e}),n},K=function(e,t){var r,n=e;if(U(F,n)&&(n="%"+(r=F[n])[0]+"%"),U(O,n)){var i=O[n];if(i===A&&(i=D(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Q(e),n=r.length>0?r[0]:"",i=K("%"+n+"%",t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(n=u[0],H(r,M([0,1],u)));for(var d=1,h=!0;d<r.length;d+=1){var f=r[d],p=W(f,0,1),m=W(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==f&&h||(s=!0),n+="."+f,U(O,a="%"+n+"%"))o=O[a];else if(null!=o){if(!(f in o)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(P&&d+1>=r.length){var g=P(o,f);o=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:o[f]}else h=U(o,f),o=o[f];h&&!s&&(O[a]=o)}}return o}},53983:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},i=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},a=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var o,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var u=i(arguments,1),c=r(0,s.length-u.length),l=[],d=0;d<c;d++)l[d]="$"+d;if(o=Function("binder","return function ("+a(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=s.apply(this,n(u,arguments));return Object(t)===t?t:this}return s.apply(e,n(u,arguments))}),s.prototype){var h=function(){};h.prototype=s.prototype,o.prototype=new h,h.prototype=null}return o}},54617:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var n=r(43022),i=r(70236);let a=n.X.useInsertionEffect,o=a&&a!==n.X.useLayoutEffect?a:e=>e();function s(e){let t=(0,i.j)(u).current;return t.next=e,o(t.effect),t.trampoline}function u(){let e={next:void 0,callback:c,trampoline:function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return null==(t=e.callback)?void 0:t.call(e,...n)},effect:()=>{e.callback=e.next}};return e}function c(){}},54714:(e,t,r)=>{"use strict";r.d(t,{EW:()=>o,RS:()=>i,gR:()=>a});var n=r(15075);function i(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function a(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&(0,n.Ng)(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function o(e){return"composedPath"in e?e.composedPath()[0]:e.target}},55164:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var n=r(7741),i=r(37357),a=r(45812);let o={id:(0,n.M)(e=>e.id),labelId:(0,n.M)(e=>e.labelId),items:(0,n.M)(e=>e.items),selectedValue:(0,n.M)(e=>e.selectedValue),hasSelectionChips:(0,n.M)(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:(0,n.M)(e=>{let{selectedValue:t,selectionMode:r}=e;return null!=t&&(!("multiple"===r&&Array.isArray(t))||t.length>0)}),hasNullItemLabel:(0,n.M)((e,t)=>!!t&&(0,a.Dp)(e.items)),open:(0,n.M)(e=>e.open),mounted:(0,n.M)(e=>e.mounted),forceMounted:(0,n.M)(e=>e.forceMounted),inline:(0,n.M)(e=>e.inline),activeIndex:(0,n.M)(e=>e.activeIndex),selectedIndex:(0,n.M)(e=>e.selectedIndex),isActive:(0,n.M)((e,t)=>e.activeIndex===t),isSelected:(0,n.M)((e,t)=>{let r=e.isItemEqualToValue,n=e.selectedValue;return Array.isArray(n)?n.some(e=>(0,i.tl)(t,e,r)):(0,i.tl)(t,n,r)}),transitionStatus:(0,n.M)(e=>e.transitionStatus),popupProps:(0,n.M)(e=>e.popupProps),inputProps:(0,n.M)(e=>e.inputProps),triggerProps:(0,n.M)(e=>e.triggerProps),itemProps:(0,n.M)(e=>e.itemProps),positionerElement:(0,n.M)(e=>e.positionerElement),listElement:(0,n.M)(e=>e.listElement),triggerElement:(0,n.M)(e=>e.triggerElement),inputElement:(0,n.M)(e=>e.inputElement),inputGroupElement:(0,n.M)(e=>e.inputGroupElement),popupSide:(0,n.M)(e=>e.popupSide),openMethod:(0,n.M)(e=>e.openMethod),inputInsidePopup:(0,n.M)(e=>e.inputInsidePopup),inputOwnsFormValue:(0,n.M)(e=>e.inputOwnsFormValue),selectionMode:(0,n.M)(e=>e.selectionMode),name:(0,n.M)(e=>e.name),form:(0,n.M)(e=>e.form),disabled:(0,n.M)(e=>e.disabled),readOnly:(0,n.M)(e=>e.readOnly),required:(0,n.M)(e=>e.required),grid:(0,n.M)(e=>e.grid),virtualized:(0,n.M)(e=>e.virtualized),itemToStringLabel:(0,n.M)(e=>e.itemToStringLabel),isItemEqualToValue:(0,n.M)(e=>e.isItemEqualToValue),modal:(0,n.M)(e=>e.modal),autoHighlight:(0,n.M)(e=>e.autoHighlight),submitOnItemClick:(0,n.M)(e=>e.submitOnItemClick)}},56048:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},56058:(e,t,r)=>{"use strict";r.d(t,{GW:()=>d,jL:()=>l});var n=r(8752);let i=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=n.T.startingStyle]="startingStyle",e[e.endingStyle=n.T.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e}({}),a=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({});a.popupOpen;let o={[a.popupOpen]:"",[a.pressed]:""},s={[i.open]:""},u={[i.closed]:""},c={[i.anchorHidden]:""},l={open:e=>e?o:null},d={open:e=>e?s:u,anchorHidden:e=>e?c:null}},56107:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(60660);function i(e){return(0,n.B)(e,"base-ui")}},56116:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(93209);function i(e,t){if(e){if("string"==typeof e)return(0,n._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n._)(e,t)}}},56411:(e,t,r)=>{"use strict";r.d(t,{V$:()=>c,eZ:()=>u,er:()=>s});var n=r(37056),i=r(83986),a=r(62839),o=r(4647);let s={invalid:void 0,name:void 0,validityData:{state:o.ZV,errors:[],error:"",value:"",initialValue:null},setValidityData:a.tE,disabled:void 0,touched:o.HH.touched,setTouched:a.tE,dirty:o.HH.dirty,setDirty:a.tE,filled:o.HH.filled,setFilled:a.tE,focused:o.HH.focused,setFocused:a.tE,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:o.mk,markedDirtyRef:{current:!1},registerFieldControl:a.tE,validation:{getValidationProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.t0;return e},getInputValidationProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.t0;return e},inputRef:{current:null},commit:async()=>{}}},u=i.createContext(s);function c(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=i.useContext(u);if(t.setValidityData===a.tE&&!e)throw Error((0,n.A)(28));return t}},56599:(e,t,r)=>{"use strict";function n(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}r.d(t,{g:()=>n})},56627:(e,t,r)=>{"use strict";r.d(t,{FU:()=>c,sn:()=>l,ef:()=>p,S8:()=>f});var n=r(51937);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r(9451),o=r(11390),s=r(82475),u=r(69399),c={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},l={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function d(e){return(0,s.i)(e).replace(RegExp(c.highlightPreTag,"g"),l.highlightPreTag).replace(RegExp(c.highlightPostTag,"g"),l.highlightPostTag)}function h(e){return(0,u.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,o._)((0,a._)({},t),(0,n._)({},r,h(e[r])))},{}):Array.isArray(e)?e.map(h):(0,o._)((0,a._)({},e),{value:d(e.value)})}function f(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=i({},e);return r._highlightResult&&(r._highlightResult=h(r._highlightResult)),r._snippetResult&&(r._snippetResult=h(r._snippetResult)),r})).__escaped=!0),e}function p(e){return e.map(function(e){return(0,o._)((0,a._)({},e),{highlighted:d(e.highlighted)})})}},56794:(e,t,r)=>{"use strict";var n=r(22478),i=r(40282),a=r(37650),o=r(88974),s=r(7486);
1function u(e,t,r,i){return new n(e,t,r,i)}u.version=r(13311),u.AlgoliaSearchHelper=n,u.SearchParameters=o,u.RecommendParameters=i,u.SearchResults=s,u.RecommendResults=a,e.exports=u},57737:e=>{"use strict";e.exports=URIError},58167:e=>{"use strict";e.exports=Math.abs},58698:(e,t,r)=>{"use strict";function n(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}r.d(t,{r:()=>n})},59555:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(26406),i=r(32087),a=r(51937),o=r(97637),s=r(96330),u=function(e){e&&(window.document.title=e)},c=function(){function e(t){var r=this,i=t.windowTitle,o=t.writeDelay,c=t.createURL,l=t.parseURL,d=t.getLocation,h=t.start,f=t.dispose,p=t.push,m=t.cleanUrlOnDispose;(0,n._)(this,e),(0,a._)(this,"$$type","ais.browser"),(0,a._)(this,"windowTitle",void 0),(0,a._)(this,"writeDelay",void 0),(0,a._)(this,"_createURL",void 0),(0,a._)(this,"parseURL",void 0),(0,a._)(this,"getLocation",void 0),(0,a._)(this,"writeTimer",void 0),(0,a._)(this,"_onPopState",void 0),(0,a._)(this,"inPopState",!1),(0,a._)(this,"isDisposed",!1),(0,a._)(this,"latestAcknowledgedHistory",0),(0,a._)(this,"_start",void 0),(0,a._)(this,"_dispose",void 0),(0,a._)(this,"_push",void 0),(0,a._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=i,this.writeTimer=void 0,this.writeDelay=void 0===o?400:o,this._createURL=c,this.parseURL=l,this.getLocation=d,this._start=h,this._dispose=f,this._push=p,this._cleanUrlOnDispose=void 0===m||m,(0,s.x)(function(e){var t=e.window;u(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return(0,i._)(e,[{key:"read",value:function(){return this.parseURL({qsModule:o,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;(0,s.x)(function(r){var n=r.window,i=t.createURL(e),a=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){u(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())},(0,s.x)(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,(0,s.x)(function(t){var r=t.window;e._onPopState&&r.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return(0,s.x)(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&i&&e!==n.location.href})}}]),e}();function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,a=n.hostname,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,u=e.getLocation;return new c({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:o,getLocation:void 0===u?function(){return(0,s.x)(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:u,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}},60141:(e,t,r)=>{"use strict";var n,i=r(49204),a=r(39604);try{n=[].__proto__===Array.prototype}
1catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!n&&a&&a(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?i([o.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},60660:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var n=r(83986),i=r(43022);let a=0,o=i.X.useId;function s(e,t){if(void 0!==o){let r=o();return null!=e?e:t?"".concat(t,"-").concat(r):r}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mui",[r,i]=n.useState(e),o=e||r;return n.useEffect(()=>{null==r&&(a+=1,i("".concat(t,"-").concat(a)))},[r,t]),o}(e,t)}},60977:(e,t,r)=>{"use strict";r.d(t,{v:()=>c});var n=r(83986),i=r(54617),a=r(26351),o=r(79378),s=r(45822),u=r(8752);function c(e){let{enabled:t=!0,open:r,ref:c,onComplete:l}=e,d=(0,i.K)(l),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=(0,o.N)();return(0,i.K)(function(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.cancel();let c=(0,s.q)(e);if(null==c)return;let l=()=>{a.flushSync(i)};if("function"!=typeof c.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function d(){Promise.all(c.getAnimations().map(e=>e.finished)).then(()=>{(null==o?void 0:o.aborted)||l()}).catch(()=>{if(r){(null==o?void 0:o.aborted)||l();return}let e=c.getAnimations();!(null==o?void 0:o.aborted)&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&d()})}if(t){let e=u.T.startingStyle;if(!c.hasAttribute(e))return void n.request(d);let t=new MutationObserver(()=>{c.hasAttribute(e)||(t.disconnect(),d())});return t.observe(c,{attributes:!0,attributeFilter:[e]}),void(null==o||o.addEventListener("abort",()=>t.disconnect(),{once:!0}))}n.request(d)})}(c,r,!1);n.useEffect(()=>{if(!t)return;let e=new AbortController;return h(d,e.signal),()=>{e.abort()}},[t,r,d,h])}},61516:(e,t,r)=>{"use strict";var n=r(40484);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},[[],[]])}},61850:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i,a={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}r.d(t,{_:()=>n})},62416:(e,t,r)=>{"use strict";r.d(t,{XF:()=>S,vB:()=>P});var n=r(83986),i=r(26351),a=r(15075),o=r(63843),s=r(56599),u=r(60660),c=r(78933),l=r(54617),d=r(62839),h=r(66066),f=r(25334),p=r(97971),m=r(11745),g=r(47915),y=r(81082),v=r(2763),w=r(5498);let b=n.createContext(null),P=()=>n.useContext(b),R=(0,g.F)("portal"),S=n.forwardRef(function(e,t){let{render:r,className:g,style:S,children:E,container:x,renderGuards:T,...I}=e,{portalNode:q,portalSubtree:_}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,container:r,componentProps:o=d.t0,elementProps:s}=e,h=(0,u.B)(),f=P(),p=null==f?void 0:f.portalNode,[m,g]=n.useState(null),[v,w]=n.useState(null),b=(0,l.K)(e=>{null!==e&&w(e)}),S=n.useRef(null);(0,c.g)(()=>{var e,t;if(null===r){S.current&&(S.current=null,w(null),g(null));return}if(null==h)return;let n=null!=(t=null!=(e=r&&((0,a.Ll)(r)?r:r.current))?e:p)?t:document.body;if(null==n){S.current&&(S.current=null,w(null),g(null));return}S.current!==n&&(S.current=n,w(null),g(n))},[r,p,h]);let E=(0,y.o)("div",o,{ref:[t,b],props:[{id:h,[R]:""},s]});return{portalNode:v,portalSubtree:m&&E?i.createPortal(E,m):null}}({container:x,ref:t,componentProps:e,elementProps:I}),k=n.useRef(null),A=n.useRef(null),C=n.useRef(null),O=n.useRef(null),[j,D]=n.useState(null),F=n.useRef(!1),N=null==j?void 0:j.modal,U=null==j?void 0:j.open,M="boolean"==typeof T?T:!!j&&!j.modal&&j.open&&!!q;n.useEffect(()=>{if(q&&!N)return(0,s.g)((0,o.q)(q,"focusin",e,!0),(0,o.q)(q,"focusout",e,!0));function e(e){q&&e.relatedTarget&&(0,f.Qp)(e)&&("focusin"===e.type?F.current&&((0,f.yV)(q),F.current=!1):((0,f.N)(q),F.current=!0))}},[q,N]),n.useEffect(()=>{q&&!1===U&&((0,f.yV)(q),F.current=!1)},[U,q]);let H=n.useMemo(()=>({beforeOutsideRef:k,afterOutsideRef:A,beforeInsideRef:C,afterInsideRef:O,portalNode:q,setFocusManagerState:D}),[q]);return(0,w.jsxs)(n.Fragment,{children:[_,(0,w.jsxs)(b.Provider,{value:H,children:[M&&q&&(0,w.jsx)(h.U,{"data-type":"outside",ref:k,onFocus:e=>{if((0,f.Qp)(e,q)){var t;
1null==(t=C.current)||t.focus()}else{let e=j?j.domReference:null,t=(0,f.XJ)(e);null==t||t.focus()}}}),M&&q&&(0,w.jsx)("span",{"aria-owns":q.id,style:v.z_}),q&&i.createPortal(E,q),M&&q&&(0,w.jsx)(h.U,{"data-type":"outside",ref:A,onFocus:e=>{if((0,f.Qp)(e,q)){var t;null==(t=O.current)||t.focus()}else{let t=j?j.domReference:null,r=(0,f.vF)(t);null==r||r.focus(),(null==j?void 0:j.closeOnFocusOut)&&(null==j||j.onOpenChange(!1,(0,p.d)(m.Xn,e.nativeEvent)))}}})]})]})})},62839:(e,t,r)=>{"use strict";function n(){}r.d(t,{Ml:()=>i,t0:()=>a,tE:()=>n});let i=Object.freeze([]),a=Object.freeze({})},63702:(e,t,r)=>{"use strict";r.d(t,{f:()=>f});var n=r(9451),i=r(11390),a=r(61850),o=r(65971),s=r(46113),u=r(82475),c=r(83986),l=r(3836),d=r(12429);function h(e){var t=e.classNames,r=void 0===t?{}:t,i=(0,a._)(e,["classNames"]);return c.createElement(d.G,(0,n._)({classNames:{root:(0,l.cx)("ais-Highlight",r.root),highlighted:(0,l.cx)("ais-Highlight-highlighted",r.highlighted),nonHighlighted:(0,l.cx)("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:(0,l.cx)("ais-Highlight-separator",r.separator)}},i))}function f(e){var t=e.hit,r=e.attribute,l=e.highlightedTagName,d=e.nonHighlightedTagName,f=e.separator,p=(0,a._)(e,["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"]),m=(0,o.E)(t._highlightResult,r)||[],g=(Array.isArray(m)?m:[m]).map(function(e){return(0,s.I)((0,u.x)(e.value||""))});return c.createElement(h,(0,i._)((0,n._)({},p),{parts:g,highlightedTagName:l,nonHighlightedTagName:d,separator:f}))}},63843:(e,t,r)=>{"use strict";function n(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}r.d(t,{q:()=>n})},64145:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var n=(0,r(83986).createContext)(null)},65218:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(83986);let i=n.createContext(void 0);function a(){var e;let t=n.useContext(i);return null!=(e=null==t?void 0:t.direction)?e:"ltr"}},65693:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var n=(0,r(83986).createContext)(null)},65815:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},65971:(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})},66066:(e,t,r)=>{"use strict";r.d(t,{U:()=>u});var n=r(83986),i=r(78933),a=r(93387),o=r(88653),s=r(5498);let u=n.forwardRef(function(e,t){let[r,u]=n.useState();return(0,i.g)(()=>{a.nr&&u("button")},[]),(0,s.jsx)("span",{...e,ref:t,style:o.Q,"aria-hidden":!r||void 0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})})},66390: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.")}},67484:(e,t,r)=>{"use strict";var n=r(13637),i=r(45205),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=i(),u=function(e,t){return s.set(e,t),e},c=function(e){return s.has(e)},l=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),f=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},p=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:p,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(c(e)){var i=l(e)+1;return e[i]=t,d(e,i),e}var a=[].concat(e,t);return a.length>r?u(p(a,{plainObjects:n}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var u=o[s],c=a[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:u}),r.push(c))}return f(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,a){if(0===e.length)return e;var o=e;
1if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",u=0;u<o.length;u+=1024){for(var c=o.length>=1024?o.slice(u,u+1024):o,l=[],d=0;d<c.length;++d){var f=c.charCodeAt(d);if(45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===n.RFC1738&&(40===f||41===f)){l[l.length]=c.charAt(d);continue}if(f<128){l[l.length]=h[f];continue}if(f<2048){l[l.length]=h[192|f>>6]+h[128|63&f];continue}if(f<55296||f>=57344){l[l.length]=h[224|f>>12]+h[128|f>>6&63]+h[128|63&f];continue}d+=1,f=65536+((1023&f)<<10|1023&c.charCodeAt(d)),l[l.length]=h[240|f>>18]+h[128|f>>12&63]+h[128|f>>6&63]+h[128|63&f]}s+=l.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t))t.push(r);else if(!t||"object"!=typeof t)return[t,r];else if(c(t)){var i=l(t)+1;t[i]=r,d(t,i)}else(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(c(r)){for(var s=Object.keys(r),h=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},f=0;f<s.length;f++)h[parseInt(s[f],10)+1]=r[s[f]];return u(h,l(r)+1)}return[t].concat(r)}var m=t;return(o(t)&&!o(r)&&(m=p(t,n)),o(t)&&o(r))?(r.forEach(function(r,i){if(a.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var o=r[i];return a.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t},m)}}},68021:e=>{"use strict";e.exports=Math.pow},68305:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});var n=(0,r(83986).createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1})},69296: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(/^\\-/,"-")}}},69399:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(95428);function i(e){if((void 0===e?"undefined":(0,n._)(e))!=="object"||null===e||"[object Object]"!==(null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},69539:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var n=r(9451),i=r(11390),a=r(56794);function o(e){var t,r,n;return new a.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(r=e.page)?r:0,hitsPerPage:null!=(n=e.hitsPerPage)?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function s(e){var t=e.getHelper(),r=e.getResults()||o(t.state),a=e.getScopedResults().map(function(t){var a=t.indexId===e.getIndexId()?r:o(t.helper.state);return(0,i._)((0,n._)({},t),{results:t.results||a})});return{results:r,scopedResults:a,recommendResults:t.lastRecommendResults}}},69665:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(93209),i=r(45208),a=r(56116);function o(e){return function(e){if(Array.isArray(e))return(0,n._)(e)}(e)||(0,i._)(e)||(0,a._)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},69943:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var n=r(62839);let i=0;function a(e,t={}){let{preventScroll:r=!1,sync:o=!1,shouldFocus:s}=t;function u(){(!s||s())&&e?.focus({preventScroll:r})}if(cancelAnimationFrame(i),o)return u(),n.tE;let c=requestAnimationFrame(u);return i=c,()=>{i===c&&(cancelAnimationFrame(c),i=0)}}},69959: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;
1default: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("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)}},70203:(e,t,r)=>{"use strict";r.d(t,{K:()=>l});var n=r(83986),i=r(19341),a=r(62416),o=r(38898),s=r(32566),u=r(55164),c=r(5498);let l=n.forwardRef(function(e,t){let{keepMounted:r=!1,...n}=e,l=(0,o.Ee)(),d=(0,i.P)(l,u.T.mounted),h=(0,i.P)(l,u.T.forceMounted);return d||r||h?(0,c.jsx)(s.P.Provider,{value:r,children:(0,c.jsx)(a.XF,{ref:t,...n})}):null})},70236:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(83986);let i={};function a(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}},71853:(e,t,r)=>{"use strict";r.d(t,{P:()=>w});var n=r(15075),i=r(60660),a=r(78933),o=r(70236);class s{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let r=this.idMap.get(e);r!==t&&(void 0!==r&&this.elementsSet.delete(r),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}var u=r(96982),c=r(7741),l=r(83986),d=r(5741),h=r(19341),f=r(54617),p=r(62839);class m extends d.i{useSyncedValue(e,t){l.useDebugValue(e);let r=this;(0,a.g)(()=>{r.state[e]!==t&&r.set(e,t)},[r,e,t])}useSyncedValueWithCleanup(e,t){let r=this;(0,a.g)(()=>(r.state[e]!==t&&r.set(e,t),()=>{r.set(e,void 0)}),[r,e,t])}useSyncedValues(e){let t=this,r=Object.values(e);(0,a.g)(()=>{t.update(e)},[t,...r])}useControlledProp(e,t){l.useDebugValue(e);let r=this,n=void 0!==t;(0,a.g)(()=>{n&&!Object.is(r.state[e],t)&&r.setState({...r.state,[e]:t})},[r,e,t,n])}select(e,t,r,n){return(0,this.selectors[e])(this.state,t,r,n)}useState(e,t,r,n){return l.useDebugValue(e),(0,h.P)(this,this.selectors[e],t,r,n)}useContextCallback(e,t){l.useDebugValue(e);let r=(0,f.K)(null!=t?t:p.tE);this.context[e]=r}useStateSetter(e){let t=l.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let r,n=(r="function"==typeof e?e:this.selectors[e])(this.state);return t(n,n,this),this.subscribe(e=>{let i=r(e);
1if(!Object.is(n,i)){let e=n;n=i,t(i,e,this)}})}constructor(e,t={},r){super(e),this.context=t,this.selectors=r}}var g=r(21443);let y={open:(0,c.M)(e=>e.open),transitionStatus:(0,c.M)(e=>e.transitionStatus),domReferenceElement:(0,c.M)(e=>e.domReferenceElement),referenceElement:(0,c.M)(e=>e.positionReference??e.referenceElement),floatingElement:(0,c.M)(e=>e.floatingElement),floatingId:(0,c.M)(e=>e.floatingId)};class v extends m{constructor(e){let{syncOnly:t,nested:r,onOpenChange:n,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:function(){let e=new Map;return{emit(t,r){e.get(t)?.forEach(e=>e(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){e.get(t)?.delete(r)}}}(),nested:r,triggerElements:i},y),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,g.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let r={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",r)};setOpen=(e,t)=>{if(this.syncOnly)return void this.context.onOpenChange?.(e,t);this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}function w(e){let{open:t=!1,onOpenChange:r,elements:c={}}=e,l=(0,i.B)(),d=null!=(0,u.R1)(),h=(0,o.j)(()=>{var e,n;return new v({open:t,transitionStatus:void 0,onOpenChange:r,referenceElement:null!=(e=c.reference)?e:null,floatingElement:null!=(n=c.floating)?n:null,triggerElements:new s,floatingId:l,syncOnly:!1,nested:d})}).current;return(0,a.g)(()=>{let e={open:t,floatingId:l};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,n.vq)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),h.update(e)},[t,l,c.reference,c.floating,h]),h.context.onOpenChange=r,h.context.nested=d,h}},72350:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},72634:e=>{"use strict";e.exports=ReferenceError},72715:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},73309:(e,t,r)=>{"use strict";r.d(t,{p:()=>d});var n=r(83986),i=r(93023),a=r(88653),o=r(35446),s=r(97971),u=r(11745),c=r(38898),l=r(5498);let d=n.forwardRef(function(e,t){let r=(0,c.Ee)(),{buttonRef:n,getButtonProps:d}=(0,o.s)({native:!1}),h=(0,i.a)(t,n),f=d({onClick:function(e){r.state.setOpen(!1,(0,s.d)(u.SR,e.nativeEvent,e.currentTarget))}});return(0,l.jsx)("span",{ref:h,...f,"aria-label":"Dismiss",tabIndex:void 0,style:a.a})})},73724: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})}},74568:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},76011:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var n=r(62839),i=r(2763);function a(e){return"starting"===e?i.K2:n.t0}},77091:e=>{"use strict";e.exports=EvalError},77344:(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})},78933:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(83986);let i="undefined"!=typeof document?n.useLayoutEffect:()=>{}},79378:(e,t,r)=>{"use strict";r.d(t,{K:()=>s,N:()=>u});var n=r(70236),i=r(25153);globalThis.requestAnimationFrame;class a{request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}constructor(){this.callbacks=[],this.callbacksCount=0,this.nextId=1,this.startId=1,this.isScheduled=!1,this.tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1){var n;null==(n=t[r])||n.call(t,e)}}}}let o=new a;class s{static create(){return new s}static request(e){return o.request(e)}static cancel(e){return o.cancel(e)}request(e){this.cancel(),this.currentId=o.request(()=>{this.currentId=null,e()})}constructor(){this.currentId=null,this.cancel=()=>{null!==this.currentId&&(o.cancel(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.cancel}}function u(){let e=(0,n.j)(s.create).current;return(0,i.y)(e.disposeEffect),e}},79414:(e,t,r)=>{"use strict";r.d(t,{M:()=>a,t:()=>i});var n=0;function i(e){"recommend"===e.dependsOn&&(e.$$id=n++)}function a(){n=0}},80984:(e,t,r)=>{"use strict";r.d(t,{G:()=>ex});var n=r(61850),i=r(83986),a=r(29758),o=r(65693),s=r(9451),u=r(69665);
1function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var d=r(95428),h=r(26406),f=r(32087),p=r(51937);function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var y=r(69959),v=r(56794),w=r(11390),b=r(15346),P=r(96330);function R(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 S(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}var E=r(14868),x="2.17.2",T="https://cdn.jsdelivr.net/npm/search-insights@".concat(x,"/dist/search-insights.min.js");function I(){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,c=void 0!==o&&o,l=t;t||null===t||(0,P.x)(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(l=t[r]),l||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue||(t[r].queue=[]),t[r].queue.push(n)},t[r].version=x,t[r].shouldAddScript=!0),l=t[r])});var h=l||E.l;return function(e){var t,i,o,l=e.instantSearchInstance,f=l.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});l.unuse.apply(l,(0,u._)(f));var p=(0,b._)(R(l.client),2),m=p[0],g=p[1],y=void 0,v=void 0,P=void 0,x=h.queue;return Array.isArray(x)&&(v=(t=(0,b._)(["setUserToken","init"].map(function(e){return(0,b._)(S(x.slice().reverse(),function(t){return(0,b._)(t,1)[0]===e})||[],2)[1]}),2))[0],y=t[1]),h("getUserToken",null,function(e,t){P=_(t)}),(r||!q(h))&&h("init",(0,s._)({appId:m,apiKey:g,partial:!0},r)),{$$type:"ais.insights",$$internal:a,$$automatic:c,onStateChange:function(){},subscribe:function(){if(h.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");t.async=!0,t.src=T,t.onerror=function(){l.emit("error",Error(e))},document.body.appendChild(t),h.shouldAddScript=!1}catch(t){h.shouldAddScript=!1,l.emit("error",Error(e))}}},started:function(){h("addAlgoliaAgent","insights-middleware"),o=l.mainHelper;var e,t,u,f,p,m,g,E,x,T,I,k,A=h.queue;Array.isArray(A)&&(v=(T=(0,b._)(["setUserToken","init"].map(function(e){return(0,b._)(S(A.slice().reverse(),function(t){return(0,b._)(t,1)[0]===e})||[],2)[1]}),2))[0],y=T[1]),f=(null==(u=(e=l)._initialResults)||null==(t=u[e.indexName])?void 0:t.state)||{},p=e.mainHelper.state,i={userToken:f.userToken||p.userToken,clickAnalytics:f.clickAnalytics||p.clickAnalytics},c||o.overrideStateWithoutTriggeringChangeEvent((0,w._)((0,s._)({},o.state),{clickAnalytics:!0})),a||l.scheduleSearch();var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=_(e);if(r){var n=o.state.userToken;t?i():setTimeout(i,0)}function i(){o.overrideStateWithoutTriggeringChangeEvent((0,w._)((0,s._)({},o.state),{userToken:r})),n&&n!==e&&l.scheduleSearch()}};function O(e){C(e,!0),h("setUserToken",e)}var j=void 0,D=function(){if(("undefined"==typeof document?"undefined":(0,d._)(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)}}();j=D||"anonymous-".concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));var F=i.userToken;
1(null==r?void 0:r.userToken)&&(I=r.userToken),I?O(I):F?O(F):P?O(P):v?O(v):j&&(O(j),((null==r?void 0:r.useCookie)||(null==y?void 0:y.useCookie))&&(m=j,g=(null==r?void 0:r.cookieDuration)||(null==y?void 0:y.cookieDuration),(E=new Date).setTime(E.getTime()+(g||15552e6)),x="expires=".concat(E.toUTCString()),document.cookie="_ALGOLIA=".concat(m,";").concat(x,";path=/"))),h("onUserTokenChange",function(e){return C(e,!0)},{immediate:!0});var N=h;q(h)&&(N=function(e,t){var r=(0,b._)(R(l.client),2);return h(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var U=new Set;l.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==k)&&(k=t.queryID,U.clear())}),l.sendEventToInsights=function(e){if(n)n(e,N);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter(function(e){return!U.has(e)});if(0===r.length)return;r.forEach(function(e){return U.add(e)}),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],c&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),N(e.insightsMethod,e.payload)}}},unsubscribe:function(){h("onUserTokenChange",void 0),l.sendEventToInsights=E.l,o&&i&&(o.overrideStateWithoutTriggeringChangeEvent((0,s._)({},o.state,i)),l.scheduleSearch())}}}}function q(e){var t=(0,b._)((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){if(e)return"number"==typeof e?e.toString():e}function k(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 A(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 C=r(59555);function O(e){return e.configure,(0,n._)(e,["configure"])}function j(e){return e!==Object(e)}var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?(0,C.A)():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,w._)((0,s._)({},t),(0,p._)({},r,O(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){return(0,w._)((0,s._)({},t),(0,p._)({},r,O(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(0,w._)((0,s._)({},t),(0,p._)({},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;if(j(t)||j(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;var n=!0,i=!1,a=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value;if(!(u in r)||!e(t[u],r[u]))return!1}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0}(n,a))&&(r.write(a),n=a)},subscribe:function(){t._initialUiState=(0,s._)({},a,i.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null==(e=r.start)||e.call(r)},unsubscribe:function(){r.dispose()}}}},F=r(79414),N=r(31820),U=Promise.resolve();function M(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=U.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,(0,u._)(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 H(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var L=r(99798),W=r(90372),B=(0,L.V)({name:"index-widget"});function $(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 V(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,N.l)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function Q(e,t){var r=t.initialSearchParameters,i=(0,n._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,N.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):t.getWidgetSearchParameters(e,i)},r)}function K(e,t){var r=t.initialRecommendParameters,i=(0,n._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,N.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):e},r)}var G=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error(B("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,c=[],l={},d=null,h=null,f=null,m=null,y=null,b=!1,P=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:o,getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return f},getResults:function(){return(null==m?void 0:m.lastResults)?(m.lastResults._state=f.state,m.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,N.l)(e)||void 0===e.$$id?this.getResults():(null==f?void 0:f.lastRecommendResults)?f.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return y},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(N.l).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat((0,u._)(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return o?null:h},createURL:function(e){return"function"==typeof e?d._createURL((0,p._)({},i,e(l))):d._createURL((0,p._)({},i,V(c,{searchParameters:e,helper:f})))},scheduleLocalSearch:M(function(){o&&(null==f||f.search())}),getWidgets:function(){return c},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(B("The `addWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(B("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){e.parent=t,(0,N.l)(e)||(d&&"recommend"===e.dependsOn?d._hasRecommendWidget=!0:d?d._hasSearchWidget=!0:"recommend"===e.dependsOn?b=!0:P=!0,(0,F.t)(e))}),c=c.concat(r),d&&r.length&&($(f,{state:Q(c,{uiState:l,initialSearchParameters:f.state}),recommendState:K(c,{uiState:l,initialRecommendParameters:f.recommendState}),_uiState:l}
1),r.forEach(function(e){e.getRenderState&&z({renderState:e.getRenderState(d.renderState[t.getIndexId()]||{},k(d,t,d._initialUiState)),instantSearchInstance:d,parent:t})}),r.forEach(function(e){e.init&&e.init(k(d,t,d._initialUiState))}),o?this.scheduleLocalSearch():d.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(B("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(B("The widget definition expects a `dispose` method."));if((c=c.filter(function(e){return -1===r.indexOf(e)})).forEach(function(e){e.parent=void 0,(0,N.l)(e)||(d&&"recommend"===e.dependsOn?d._hasRecommendWidget=!0:d?d._hasSearchWidget=!0:"recommend"===e.dependsOn?b=!0:P=!0)}),d&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:f,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return g(n,v.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:f.state,cleanedRecommendState:f.recommendState}),i=n.cleanedSearchState,a=n.cleanedRecommendState,s=d.future.preserveSharedStateOnUnmount?Q(c,{uiState:l,initialSearchParameters:new v.SearchParameters({index:this.getIndexName()})}):Q(c,{uiState:V(c,{searchParameters:i,helper:f}),initialSearchParameters:i});l=V(c,{searchParameters:s,helper:f}),f.setState(s),f.recommendState=a,c.length&&(o?this.scheduleLocalSearch():d.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,s=e.parent,p=e.uiState;if(null===f){d=a,h=s,l=p[i]||{};var g=a.mainHelper,w=Q(c,{uiState:l,initialSearchParameters:new v.SearchParameters({index:r})}),R=K(c,{uiState:l,initialRecommendParameters:new v.RecommendParameters});(f=v(g.getClient(),w.index,w)).recommendState=R,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)}}),g):g.search()},f.searchWithoutTriggeringOnStateChange=function(){return g.search()},f.searchForFacetValues=function(e,t,r,i){var a=W.p.apply(void 0,[g.state].concat((0,u._)(H(n)))).setQueryParameters(i);return g.searchForFacetValues(e,t,r,a)};var S=r?f:v({},"__empty_index__",{});m=(o?S:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(s,g)).derive(function(){return W.p.apply(void 0,[g.state].concat((0,u._)(H(n))))},function(){return n.getHelper().recommendState});var E=null==(t=a._initialResults)?void 0:t[this.getIndexId()];if(null==E?void 0:E.results){var x=new v.SearchResults(new v.SearchParameters(E.state),E.results);m.lastResults=x,f.lastResults=x}if(null==E?void 0:E.recommendResults){var T=new v.RecommendResults(new v.RecommendParameters({params:E.recommendResults.params}),E.recommendResults.results);m.lastRecommendResults=T,f.lastRecommendResults=T}f.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(N.l);0!==r.length&&r.forEach(function(t){var r=t.getHelper();$(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}),e(t.getWidgets())})}(c)}),m.on("search",function(){a.scheduleStalledRender()}),m.on("result",function(e){var t=e.results;a.scheduleRender(),f.lastResults=t,y=null==t?void 0:t._state}),m.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),f.lastRecommendResults=t.results}),c.forEach(function(e){e.getRenderState&&z({renderState:e.getRenderState(a.renderState[n.getIndexId()]||{},k(a,n,p)),instantSearchInstance:a,parent:n})}),c.forEach(function(e){e.init&&e.init(k(a,n,p))}),f.on("change",function(e){var t=e.state,r=e._uiState;l=V(c,{searchParameters:t,helper:f},r||{}),a.onStateChange||a.onInternalStateChange()}),E&&a.scheduleRender(),b&&(a._hasRecommendWidget=!0),P&&(a._hasSearchWidget=!0)}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&y&&f.setState(y);var i=this.getResults()||(null==m?void 0:m.lastRecommendResults)||o&&!r?c:c.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})}
1)).forEach(function(e){e.getRenderState&&z({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},A(n,t,e)),instantSearchInstance:n,parent:t})}),i.forEach(function(e){e.render&&e.render(A(n,t,e))})},dispose:function(){var e=this;c.forEach(function(t){t.dispose&&f&&t.dispose({helper:f,state:f.state,recommendState:f.recommendState,parent:e})}),d=null,h=null,null==f||f.removeAllListeners(),f=null,null==m||m.detach(),m=null},getWidgetUiState:function(e){return c.filter(N.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,w._)((0,s._)({},e),(0,p._)({},i,(0,s._)({},e[i],l))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return Q(c,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){l=V(c,{searchParameters:this.getHelper().state,helper:this.getHelper()},l)},setIndexUiState:function(e){var t="function"==typeof e?e(l):e;d.setUiState(function(e){return(0,w._)((0,s._)({},e),(0,p._)({},i,t))})}}};function z(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,w._)((0,s._)({},r.renderState),(0,p._)({},i,(0,s._)({},r.renderState[i],t)))}var J=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):"")}},X=r(65971),Z=r(56627),Y=J("Highlight");function ee(e){var t=Z.sn.highlightPreTag,r=Z.sn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var et=r(82475),er=new RegExp(/\w/i);function en(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,o,u;return(0,w._)((0,s._)({},t),{isHighlighted:(a=e[r],o=(null==(n=e[r+1])?void 0:n.isHighlighted)||!0,u=(null==(i=e[r-1])?void 0:i.isHighlighted)||!0,er.test((0,et.x)(a.value))||u!==o?!a.isHighlighted:!u)})}):e.map(function(e){return(0,w._)((0,s._)({},e),{isHighlighted:!1})})}var ei=r(46113),ea=J("ReverseHighlight"),eo=J("Snippet"),es=J("ReverseSnippet"),eu=r(14940);function ec(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,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(N.l).forEach(function(t){return el(e,t)})}var ed=(0,L.V)({name:"instantsearch"});function eh(){return"#"}var ef={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},ep=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){(0,h._)(this,t),r=function(e,t,r){t=c(t);var n=l()?Reflect.construct(t,[],c(e).constructor):t.apply(e,void 0);if(n&&("object"===(0,d._)(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t),(0,p._)(r,"client",void 0),(0,p._)(r,"indexName",void 0),(0,p._)(r,"compositionID",void 0),(0,p._)(r,"insightsClient",void 0),(0,p._)(r,"onStateChange",null),(0,p._)(r,"future",void 0),(0,p._)(r,"helper",void 0),(0,p._)(r,"mainHelper",void 0),(0,p._)(r,"mainIndex",void 0),(0,p._)(r,"started",void 0),(0,p._)(r,"templatesConfig",void 0),(0,p._)(r,"renderState",{}),(0,p._)(r,"_stalledSearchDelay",void 0),(0,p._)(r,"_searchStalledTimer",void 0),(0,p._)(r,"_initialUiState",void 0),(0,p._)(r,"_initialResults",void 0),(0,p._)(r,"_manuallyResetScheduleSearch",!1),(0,p._)(r,"_resetScheduleSearch",void 0),(0,p._)(r,"_createURL",void 0),(0,p._)(r,"_searchFunction",void 0),(0,p._)(r,"_mainHelperSearch",void 0),(0,p._)(r,"_hasSearchWidget",!1),(0,p._)(r,"_hasRecommendWidget",!1),(0,p._)(r,"_insights",void 0),(0,p._)(r,"middleware",[]),(0,p._)(r,"sendEventToInsights",void 0),(0,p._)(r,"status","idle"),(0,p._)(r,"error",void 0),(0,p._)(r,"scheduleSearch",M(function(){r.started&&r.mainHelper.search()})),(0,p._)(r,"scheduleRender",M(function(){var e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(null==(e=r.mainHelper)?void 0:e.hasPendingRequests())||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,t&&(r.status="idle",r.error=void 0)),r.mainIndex.render({instantSearchInstance:r}),r.emit("render")})),(0,p._)(r,"onInternalStateChange",M(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var r,n=e.indexName,i=e.compositionID,a=e.numberLocale,o=e.initialUiState,u=e.routing,f=void 0===u?null:u,m=e.insights,g=void 0===m?void 0:m,y=e.searchFunction,v=e.stalledSearchDelay,b=e.searchClient,R=void 0===b?null:b,S=e.insightsClient,x=void 0===S?null:S,T=e.onStateChange,q=e.future,_=void 0===q?(0,s._)({},ef,e.future||{}):q;if(null===R)throw Error(ed("The `searchClient` option is required."));if("function"!=typeof R.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 R.addAlgoliaAgent&&R.addAlgoliaAgent("instantsearch.js (".concat("4.95.0",")")),x&&"function"!=typeof x)throw Error(ed("The `insightsClient` option should be a function."));if(r.client=R,r.future=_,r.insightsClient=x,r.indexName=void 0===n?"":n,r.compositionID=i,r.helper=null,r.mainHelper=null,r.mainIndex=G({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===T?null:T,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;
1return r=Number(t(e)),r.toLocaleString(a)},highlight:function(e,t){try{var r,n,i,a,o,u,c,l,d,h=JSON.parse(e);return t((n=(r=(0,w._)((0,s._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,u=r.cssClasses,c=void 0===u?{}:u,l=((0,X.E)(o._highlightResult,n)||{}).value,d=Y({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===l?"":l).replace(RegExp(Z.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(d,'">')).replace(RegExp(Z.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,u,c,l,d,h=JSON.parse(e);return t((n=(r=(0,w._)((0,s._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,u=r.cssClasses,c=void 0===u?{}:u,l=((0,X.E)(o._highlightResult,n)||{}).value,d=ea({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),ee(en((0,ei.I)(void 0===l?"":l))).replace(RegExp(Z.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(d,'">')).replace(RegExp(Z.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,u,c,l,d,h=JSON.parse(e);return t((n=(r=(0,w._)((0,s._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,u=r.cssClasses,c=void 0===u?{}:u,l=((0,X.E)(o._snippetResult,n)||{}).value,d=eo({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===l?"":l).replace(RegExp(Z.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(d,'">')).replace(RegExp(Z.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,u,c,l,d,h=JSON.parse(e);return t((n=(r=(0,w._)((0,s._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,u=r.cssClasses,c=void 0===u?{}:u,l=((0,X.E)(o._snippetResult,n)||{}).value,d=es({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),ee(en((0,ei.I)(void 0===l?"":l))).replace(RegExp(Z.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(d,'">')).replace(RegExp(Z.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n The reverseSnippet helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r,n=JSON.parse(e),i=n.method,a=n.payload;return t((r=(0,s._)({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":(0,d._)(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=(0,eu.h)(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},r._stalledSearchDelay=void 0===v?200:v,r._searchStalledTimer=null,r._createURL=eh,r._initialUiState=void 0===o?{}:o,r._initialResults=null,r._insights=g,y&&(r._searchFunction=y),r.sendEventToInsights=E.l,f){var A="boolean"==typeof f?{}:f;A.$$internal=!0,r.use(D(A))}if(g){var C="boolean"==typeof g?{}:g;C.$$internal=!0,r.use(I(C))}return(0,P.x)(function(e){var t,r;return(null==(r=e.window.navigator)||null==(t=r.userAgent)?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&r.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.$$internal,r=void 0!==t&&t;return function(e){var t=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),a=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var e;n.ua=(e=t.client).transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function e(t,r,n){var i=k(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})),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e),(0,f._)(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.map(function(t){var r=(0,s._)({$$type:"__unknown__",$$internal:!1,subscribe:E.l,started:E.l,unsubscribe:E.l,onStateChange:E.l},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,(0,u._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(ed("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,N.l)(e)&&!e._isolated}))throw Error(ed("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(ed("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(ed("The `start` method has already been called once."));var t=this.mainHelper||v(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(E.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=v(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(!g(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!1),e.emit("error",r)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce(function(e,r){var n=t[r],i=n.state,a=n.requestParams,o=n.results,u=o&&i?o.map(function(e,t){return(0,s._)({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:ec((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=(0,b._)(t.split("="),2),n=r[0],i=r[1];
1return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(u)},[])],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(0,w._)((0,s._)({},e),{params:ec(e.params)})}):ec(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[o].concat((0,u._)(n))},function(){return i.apply(void 0,[t].concat((0,u._)(n)))})},e.transporter.responsesCache.set({method:"search",args:r},{results:n})}if(!("transporter"in e)){var a="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=(0,w._)((0,s._)({},e.cache),(0,p._)({},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?(0,s._)({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=M(E.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:M(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(I({$$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(ed("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){el("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(el(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(ed("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(ed("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(y),em=r(46315),eg="7.31.0",ey=r(27965),ev=r(44673),ew=r(8486),eb=r(30227),eP=r(55036),eR=["react (".concat(i.version,")"),"react-instantsearch (".concat(eg,")"),"react-instantsearch-core (".concat(eg,")")],eS="react-instantsearch-server (".concat(eg,")");function eE(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function ex(e){var t=e.children,r=function(e){var t=(0,b._)((0,i.useReducer)(function(e){return e+1},0),2)[1],r=(0,ev.r)(),n=(0,ew.m)(),a=(0,eb.t)().waitForResultsRef,o=null==n?void 0:n.initialResults,c=(0,i.useRef)(e),l=r||o||a,d=(0,i.useRef)(null);if((null==n?void 0:n.ssrSearchRef)&&(d=n.ssrSearchRef),null===d.current){var h,f,p=new ep(e);p._schedule=function(e){p._schedule.queue.push(e),clearTimeout(p._schedule.timer),p._schedule.timer=setTimeout(function(){p._schedule.queue.forEach(function(e){e()}),p._schedule.queue=[]},0)},p._schedule.queue=[],l&&(p._initialResults=o||{},p._manuallyResetScheduleSearch=!0),eE(e.searchClient,(0,u._)(eR).concat([r&&eS,(f="undefined"!=typeof window&&(null==(h=window.next)?void 0:h.version)||(void 0!==eP?null==eP.env?void 0:"":void 0))?"next.js (".concat(f,")"):null])),l&&p.start(),r&&r.notifyServer({search:p}
1),e.routing,d.current=p}var m,g=d.current,y=c.current;y.indexName!==e.indexName&&(g.helper.setIndex(e.indexName||"").search(),c.current=e),y.searchClient!==e.searchClient&&(eE(e.searchClient,(0,u._)(eR).concat([r&&eS])),g.mainHelper.setClient(e.searchClient).search(),c.current=e),y.onStateChange!==e.onStateChange&&(g.onStateChange=e.onStateChange,c.current=e),y.searchFunction!==e.searchFunction&&(g._searchFunction=e.searchFunction,c.current=e),y.stalledSearchDelay!==e.stalledSearchDelay&&(g._stalledSearchDelay=null!=(m=e.stalledSearchDelay)?m:200,c.current=e),(0,ey.j)(y.future,e.future)||(g.future=(0,s._)({},ef,e.future),c.current=e);var v=(0,i.useRef)(null);return(0,em.useSyncExternalStore)((0,i.useCallback)(function(){var e=d.current;return null===v.current?e.started||(e.start(),t()):(clearTimeout(v.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),v.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return d.current},function(){return d.current})}((0,n._)(e,["children"]));return r.started?i.createElement(o.t.Provider,{value:r},i.createElement(a.m.Provider,{value:r.mainIndex},t,i.createElement(eT,{search:r}))):null}function eT(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}},81082:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var n=r(37056),i=r(83986),a=r(93023),o=r(37975);function s(e){if(!i.isValidElement(e))return null;let t=e.props;return((0,o._)(19)?t?.ref:e.ref)??null}var u=r(58698),c=r(62839),l=r(47747);function d(e,t,r={}){let o=t.render,f=function(e,t={}){var r;let{className:n,style:i,render:o}=e,{state:d=c.t0,ref:h,props:f,stateAttributesMapping:p,enabled:m=!0}=t,g=m?"function"==typeof n?n(d):n:void 0,y=m?"function"==typeof i?i(d):i:void 0,v=m?function(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}(d,p):c.t0,w=m&&f?Array.isArray(r=f)?(0,l.lZ)(r):(0,l.v6)(void 0,r):void 0,b=m?(0,u.r)(v,w)??{}:c.t0;return("undefined"!=typeof document&&(m?Array.isArray(h)?b.ref=(0,a.U)([b.ref,s(o),...h]):b.ref=(0,a.a)(b.ref,s(o),h):(0,a.a)(null,null)),m)?(void 0!==g&&(b.className=(0,l.VN)(b.className,g)),void 0!==y&&(b.style=(0,u.r)(b.style,y)),b):c.t0}(t,r);return!1===r.enabled?null:function(e,t,r,a){if(t){if("function"==typeof t)return t(r,a);let e=(0,l.v6)(r,t.props);e.ref=r.ref;let n=t;return n?.$$typeof===h&&(n=i.Children.toArray(t)[0]),i.cloneElement(n,e)}if(e&&"string"==typeof e){var o,s;return o=e,s=r,"button"===o?(0,i.createElement)("button",{type:"button",...s,key:s.key}):"img"===o?(0,i.createElement)("img",{alt:"",...s,key:s.key}):i.createElement(o,s)}throw Error((0,n.A)(8))}(e,o,f,r.state??c.t0)}let h=Symbol.for("react.lazy")},81345:(e,t,r)=>{"use strict";var n=r(82765);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},81458:(e,t,r)=>{"use strict";var n=r(10727),i=r(3372),a=r(16208);e.exports=r(65815)||n.call(a,i)},82475:(e,t,r)=>{"use strict";r.d(t,{i:()=>o,x:()=>l});var n={"&":"&","<":"<",">":">",'"':""","'":"'"},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={"&":"&","<":"<",">":">",""":'"',"'":"'"},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}},82765: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}},82795:e=>{"use strict";e.exports=Error},82868:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},82881:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(9451),i=r(51937),a=r(11390),o=r(56794),s=r(69399),u=r(99798),c=r(90372),l=r(14868),d=(0,u.V)({name:"configure",connector:!0});function h(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return(0,a._)((0,n._)({},e),(0,i._)({},t,void 0))},{}))}var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.l;return function(r){if(!r||!(0,s.Q)(r.searchParameters))throw Error(d("The `searchParameters` option expects an object."));var i={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,a._)((0,n._)({},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(0,a._)((0,n._)({},e),{configure:(0,a._)((0,n._)({},i),{widgetParams:(0,a._)((0,n._)({},i.widgetParams),{searchParameters:(0,c.p)(new o.SearchParameters(null==(r=e.configure)?void 0:r.widgetParams.searchParameters),new o.SearchParameters(i.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return i.refine||(i.refine=function(e){var n=h(t.state,r),i=(0,c.p)(n,new o.SearchParameters(e));r.searchParameters=e,t.setState(i).search()}),{refine:i.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var i=t.uiState;return(0,c.p)(e,new o.SearchParameters((0,n._)({},i.configure,r.searchParameters)))},getWidgetUiState:function(e){return(0,a._)((0,n._)({},e),{configure:(0,n._)({},e.configure,r.searchParameters)})}}}},p=r(49086);function m(e){var t,r;return t=(0,n._)({},e),r={$$widgetType:"ais.configure"},(0,p.Z)(f,{searchParameters:t},r),null}},83634:(e,t,r)=>{"use strict";r.d(t,{O:()=>o,Z:()=>a});var n=r(37056),i=r(83986);let a=i.createContext(void 0);function o(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,n.A)(21));return t}},83990:(e,t,r)=>{"use strict";var n=r(83986),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},84166:e=>{"use strict";e.exports=Object},84739:(e,t,r)=>{"use strict";var n=r(94759),i=r(50991),a=r(60141);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:a?function(e){return a(e)}:null},86480:(e,t,r)=>{"use strict";var n=r(45205),i=r(67484),a=r(13637),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},d=Date.prototype.toISOString,h=a.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset
1:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,r,a,o,s,c,d,h,m,g,y,v,w,b,P,R,S,E){for(var x,T,I=t,q=E,_=0,k=!1;void 0!==(q=q.get(p))&&!k;){var A=q.get(t);if(_+=1,void 0!==A)if(A===_)throw RangeError("Cyclic object value");else k=!0;void 0===q.get(p)&&(_=0)}if("function"==typeof g?I=g(r,I):I instanceof Date?I=w(I):"comma"===a&&u(I)&&(I=i.maybeMap(I,function(e){return e instanceof Date?w(e):e})),null===I){if(c)return m&&!R?m(r,f.encoder,S,"key",b):r;I=""}if("string"==typeof(x=I)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||i.isBuffer(I))return m?[P(R?r:m(r,f.encoder,S,"key",b))+"="+P(m(I,f.encoder,S,"value",b))]:[P(r)+"="+P(String(I))];var C=[];if(void 0===I)return C;if("comma"===a&&u(I))R&&m&&(I=i.maybeMap(I,m)),T=[{value:I.length>0?I.join(",")||null:void 0}];else if(u(g))T=g;else{var O=Object.keys(I);T=y?O.sort(y):O}var j=h?String(r).replace(/\./g,"%2E"):String(r),D=o&&u(I)&&1===I.length?j+"[]":j;if(s&&u(I)&&0===I.length)return D+"[]";for(var F=0;F<T.length;++F){var N=T[F],U="object"==typeof N&&N&&void 0!==N.value?N.value:I[N];if(!d||null!==U){var M=v&&h?String(N).replace(/\./g,"%2E"):String(N),H=u(I)?"function"==typeof a?a(D,M):D:D+(v?"."+M:"["+M+"]");E.set(t,_);var L=n();L.set(p,E),l(C,e(U,H,a,o,s,c,d,h,"comma"===a&&R&&u(I)?null:m,g,y,v,w,b,P,R,S,L))}}return C},g=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!o.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],c=f.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var r,i=e,a=g(t);"function"==typeof a.filter?i=(0,a.filter)("",i):u(a.filter)&&(r=a.filter);var o=[];if("object"!=typeof i||null===i)return"";var c=s[a.arrayFormat],d="comma"===c&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var h=n(),f=0;f<r.length;++f){var p=r[f],y=i[p];a.skipNulls&&null===y||l(o,m(y,p,c,d,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}var v=o.join(a.delimiter),w=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},88653:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i,a:()=>a});
vendor: 15,170 bytes, line 1
1let n={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},i={...n,position:"fixed",top:0,left:0},a={...n,position:"absolute"}},88974:(e,t,r)=>{"use strict";var n=r(94347),i=r(40484),a=r(36238),o=r(82765),s=r(56048),u=r(52714),c=r(66390),l=r(26309),d=r(6635);function h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return h(t[r],e)}):e===t}function f(e){var t=e?f._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!==f.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function p(e){var t=parseFloat(e);return isFinite(t)?t:null}f.PARAMETERS=Object.keys(new f),f._parseNumbers=function(e){if(e instanceof f)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);isNaN(i)?t[r]=n:isFinite(i)?t[r]=i:t[r]=null}else"number"!=typeof n||isFinite(n)||(t[r]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return o(e,t)},f.make=function(e){var t=new f(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},f.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},f.prototype={constructor:f,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&&h(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||{}).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 h(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=f.validate(this,e);if(t)throw t;var r=this,n=f._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=f},90372:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(9451),i=r(61850),a=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=(0,i._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)},o=function(e,t){var r=[].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},s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r,i,s,u,c,l,d,h;return a((h=o((r=e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)}),i=r.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},r.hierarchicalFacets)}),s=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},i),u=s.setQueryParameters({numericRefinements:(0,n._)({},s.numericRefinements,t.numericRefinements)}),c=u.setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},u.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)}),l=c.setQueryParameters({facetsExcludes:(0,n._)({},c.facetsExcludes,t.facetsExcludes)}),d=l.setQueryParameters({facetsRefinements:(0,n._)({},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)},h)),t)})}},90753:(e,t,r)=>{"use strict";var n=r(69959);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(72715)(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},93023:(e,t,r)=>{"use strict";r.d(t,{U:()=>a,a:()=>i});var n=r(70236);function i(e,t,r,i){var a,u,c,l,d;let h=(0,n.j)(o).current;return a=h,u=e,c=t,l=r,d=i,(a.refs[0]!==u||a.refs[1]!==c||a.refs[2]!==l||a.refs[3]!==d)&&s(h,[e,t,r,i]),h.callback}function a(e){var t,r;let i=(0,n.j)(o).current;return t=i,r=e,(t.refs.length!==r.length||t.refs.some((e,t)=>e!==r[t]))&&s(i,e),i.callback}function o(){return{callback:null,cleanup:null,refs:[]}}function s(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(r);"function"==typeof t&&(n[e]=t);break}case"object":i.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}},93045:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},93209:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{_:()=>n})},93387:(e,t,r)=>{"use strict";r.d(t,{KT:()=>h,Tc:()=>s,gm:()=>c,m0:()=>d,nr:()=>l,un:()=>u});let n="undefined"!=typeof navigator,i=function(){if(!n)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),a=function(){if(!n)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),o=function(){if(!n)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),s="undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),u="MacIntel"===i.platform&&i.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(i.platform),c=n&&/firefox/i.test(o),l=n&&/apple/i.test(navigator.vendor);n&&/Edg/i.test(o);let d=n&&/android/i.test(a)||/android/i.test(o);n&&a.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;let h=o.includes("jsdom/")},93493:(e,t,r)=>{"use strict";r.d(t,{B1:()=>q,C0:()=>h,Dz:()=>y,Jx:()=>u,LI:()=>o,PG:()=>p,RI:()=>s,Sg:()=>f,T9:()=>a,TV:()=>g,WJ:()=>w,_3:()=>d,bV:()=>T,jk:()=>i,lP:()=>x,nI:()=>I,qE:()=>l,r_:()=>n,sq:()=>m,w7:()=>v});let n=["top","right","bottom","left"],i=Math.min,a=Math.max,o=Math.round,s=Math.floor,u=e=>({x:e,y:e}
1),c={left:"right",right:"left",bottom:"top",top:"bottom"};function l(e,t,r){return a(e,i(t,r))}function d(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function y(e){return p(g(e))}function v(e,t,r){void 0===r&&(r=!1);let n=f(e),i=y(e),a=m(i),o="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=T(o)),[o,T(o)]}function w(e){let t=T(e);return[b(e),t,b(t)]}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let P=["left","right"],R=["right","left"],S=["top","bottom"],E=["bottom","top"];function x(e,t,r,n){let i=f(e),a=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?R:P;return t?P:R;case"left":case"right":return t?S:E;default:return[]}}(h(e),"start"===r,n);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(b)))),a}function T(e){let t=h(e);return c[t]+e.slice(t.length)}function I(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function q(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}},94347: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},{})}},94759:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},95316:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n,c,l,d,h,f=e.hierarchicalFacets[r],p=e.hierarchicalFacetsRefinements[f.name]&&e.hierarchicalFacetsRefinements[f.name][0]||"",m=e._getHierarchicalFacetSeparator(f),g=e._getHierarchicalRootPath(f),y=e._getHierarchicalShowParentLevel(f),v=a(e._getHierarchicalFacetSortBy(f)),w=t.every(function(e){return e.exhaustive}),b=(n=v,c=m,l=g,d=y,h=p,function(e,t,r){var a=e;if(r>0){var f=0;for(a=e;f<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),f++}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=h,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(h),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(b,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:w,data:null})}};var n=r(69296),i=r(40484),a=r(61516),o=r(73724),s=n.escapeFacetValue,u=n.unescapeFacetValue},95428:(e,t,r)=>{"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},96330:(e,t,r)=>{"use strict";function n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window:window})}r.d(t,{x:()=>n})},96982:(e,t,r)=>{"use strict";r.d(t,{R1:()=>o,cq:()=>s});var n=r(83986);r(5498);let i=n.createContext(null),a=n.createContext(null),o=()=>{var e;return(null==(e=n.useContext(i))?void 0:e.id)||null},s=e=>{let t=n.useContext(a);return null!=e?e:t}},97637:(e,t,r)=>{"use strict";var n=r(86480),i=r(42918);e.exports={formats:r(13637),parse:i,stringify:n}},97971:(e,t,r)=>{"use strict";r.d(t,{M:()=>a,d:()=>i});var n=r(62839);function i(e,t,r,i){let a=!1,o=!1,s=i??n.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){a=!0},allowPropagation(){o=!0},get isCanceled(){return a},get isPropagationAllowed(){return o},trigger:r,...s}}function a(e,t,r){let i=r??n.t0;return{reason:e,event:t??new Event("base-ui"),...i}}},98102:(e,t,r)=>{"use strict";function n(e,t){let r=[],n=e.find(e=>e.id===t)?.parentId;for(;n;){let t=e.find(e=>e.id===n);n=t?.parentId,t&&(r=r.concat(t))}return r}r.d(t,{$4:()=>n,CM:()=>function e(t,r,n=!0){return t.filter(e=>e.parentId===r).flatMap(r=>[...!n||r.context?.open?[r]:[],...e(t,r.id,n)])}})},98626:(e,t,r)=>{"use strict";r.d(t,{K:()=>y});var n=r(83986),i=r(26351),a=r(19341),o=r(78933),s=r(38898),u=r(22429);let c=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});var l=r(81082);let d=n.createContext(void 0);var h=r(55164),f=r(35446);let p=n.createContext(!1);var m=r(37357),g=r(5498);let y=n.memo(n.forwardRef(function(e,t){let{render:r,className:y,style:v,value:w=null,index:b,disabled:P=!1,nativeButton:R=!1,...S}=e,E=n.useRef(!1),x=n.useRef(null),T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{label:t,metadata:r,textRef:i,indexGuessBehavior:a,index:s}=e,{register:l,unregister:d,subscribeMapChange:h,elementsRef:f,labelsRef:p,nextIndexRef:m}=(0,u.M)(),g=n.useRef(-1),[y,v]=n.useState(null!=s?s:a===c.GuessFromOrder?()=>{if(-1===g.current){let e=m.current;m.current+=1,g.current=e}return g.current}:-1),w=n.useRef(null),b=n.useCallback(e=>{if(w.current=e,-1!==y&&null!==e&&(f.current[y]=e,p)){var r,n;let a=void 0!==t;p.current[y]=a?t:null!=(n=null==i||null==(r=i.current)?void 0:r.textContent)?n:e.textContent}},[y,f,p,t,i]);return(0,o.g)(()=>
1{if(null!=s)return;let e=w.current;if(e)return l(e,r),()=>{d(e)}},[s,l,d,r]),(0,o.g)(()=>{if(null==s)return h(e=>{var t;let r=w.current?null==(t=e.get(w.current))?void 0:t.index:null;null!=r&&v(r)})},[s,h,v]),n.useMemo(()=>({ref:b,index:y}),[y,b])}({index:b,textRef:x,indexGuessBehavior:c.GuessFromOrder}),I=(0,s.Ee)(),q=n.useContext(p),{flatFilteredItems:_,hasItems:k}=(0,s.Dc)(),A=(0,a.P)(I,h.T.open),C=(0,a.P)(I,h.T.selectionMode),O=(0,a.P)(I,h.T.readOnly),j=(0,a.P)(I,h.T.virtualized),D=(0,a.P)(I,h.T.isItemEqualToValue),F="none"!==C,N=null!=b?b:j?(0,m.Vz)(_,w,D):T.index,U=-1!==T.index,M=(0,a.P)(I,h.T.id),H=(0,a.P)(I,h.T.isActive,N),L=(0,a.P)(I,h.T.isSelected,w),W=(0,a.P)(I,h.T.itemProps),B=n.useRef(null),$=null!=M&&U?"".concat(M,"-").concat(N):void 0,V=L&&F;(0,o.g)(()=>{if(!(U&&(j||null!=b)))return;let e=I.state.listRef.current;return e[N]=B.current,()=>{delete e[N]}},[U,j,N,b,I]),(0,o.g)(()=>{if(!U||k)return;let e=I.state.valuesRef.current;return e[N]=w,"none"!==C&&I.state.allValuesRef.current.push(w),()=>{delete e[N]}},[U,k,N,w,I,C]),(0,o.g)(()=>{if(!A){E.current=!1;return}if(!U||k)return;let e=I.state.selectedValue,t=Array.isArray(e)?e[e.length-1]:e;(0,m.tl)(w,t,D)&&I.set("selectedIndex",N)},[U,k,A,I,N,w,D]);let{getButtonProps:Q,buttonRef:K}=(0,f.s)({disabled:P,focusableWhenDisabled:!0,native:R,composite:!0});function G(e){function t(){I.state.handleSelection(e,w)}I.state.submitOnItemClick?(i.flushSync(t),I.state.requestSubmit()):t()}let z=(0,l.o)("div",e,{ref:[K,t,T.ref,B],state:{disabled:P,selected:V,highlighted:H},props:[W,{id:$,role:q?"gridcell":"option","aria-selected":F?V:void 0,tabIndex:void 0,onPointerDownCapture(e){E.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){P||O||G(e.nativeEvent)},onMouseUp(e){let t=E.current;E.current=!1,P||O||0!==e.button||t||!H||G(e.nativeEvent)}},S,Q]}),J=n.useMemo(()=>({selected:V,textRef:x}),[V,x]);return(0,g.jsx)(d.Provider,{value:J,children:z})}))},99798:(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})}}]);
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.