1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3699],{902:(e,t,r)=>{var i=r(36762);r.o(i,"usePathname")&&r.d(t,{usePathname:function(){return i.usePathname}}),r.o(i,"useRouter")&&r.d(t,{useRouter:function(){return i.useRouter}}),r.o(i,"useSearchParams")&&r.d(t,{useSearchParams:function(){return i.useSearchParams}})},2506:(e,t,r)=>{r.d(t,{w:()=>ef});var i={};r.r(i),r.d(i,{abtestingV3Client:()=>M,apiClientVersion:()=>k});var a={};r.r(a),r.d(a,{abtestingClient:()=>O,apiClientVersion:()=>U});var s={};r.r(s),r.d(s,{analyticsClient:()=>N,apiClientVersion:()=>j});var n={};r.r(n),r.d(n,{apiClientVersion:()=>L,insightsClient:()=>G});var o={};r.r(o),r.d(o,{apiClientVersion:()=>$,personalizationClient:()=>K});var l={};r.r(l),r.d(l,{apiClientVersion:()=>H,querySuggestionsClient:()=>Q});var h={};r.r(h),r.d(h,{apiClientVersion:()=>Y,searchClient:()=>X});var u={};r.r(u),r.d(u,{apiClientVersion:()=>_,ingestionClient:()=>er,isOnDemandTrigger:()=>Z,isScheduleTrigger:()=>ee,isSubscriptionTrigger:()=>et});var d={};r.r(d),r.d(d,{apiClientVersion:()=>ei,monitoringClient:()=>ea});var c={};function m(){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 i=(e,i)=>setTimeout(()=>{r.abort(),t({status:0,content:i,isTimedOut:!0})},e),a=i(e.connectTimeout,"Connection timeout"),s;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===s&&(clearTimeout(a),s=i(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(s),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(s),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}}}function p(e){let t,r=`algolia-client-js-${e.key}`;function i(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(i().getItem(r)||"{}")}function s(e){i().setItem(r,JSON.stringify(e))}return{get:(t,r,i={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>{let r,i;return r=e.timeToLive?1e3*e.timeToLive:null,s(i=Object.fromEntries(Object.entries(a()).filter(([,e])=>void 0!==e.timestamp))),r&&s(Object.fromEntries(Object.entries(i).filter(([,e])=>{let t=new Date().getTime();return!(e.timestamp+r<t)}))),a()[JSON.stringify(t)]}).then(e=>Promise.all([e?e.value:r(),void 0!==e])).then(([e,t])=>Promise.all([e,t||i.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve().then(()=>{let s=a();return s[JSON.stringify(e)]={timestamp:new Date().getTime(),value:t},i().setItem(r,JSON.stringify(s)),t}),delete:e=>Promise.resolve().then(()=>{let t=a();delete t[JSON.stringify(e)],i().setItem(r,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{i().removeItem(r)})}}function g(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,i,a={miss:()=>Promise.resolve()})=>r.get(e,i,a).catch(()=>g({caches:t}).get(e,i,a)),set:(e,i)=>r.set(e,i).catch(()=>g({caches:t}).set(e,i)),delete:e=>r.delete(e).catch(()=>g({caches:t}).delete(e)),clear:()=>r.clear().catch(()=>g({caches:t}).clear())}}function f(e={serializable:!0}){let t={};return{get(r,i,a={miss:()=>Promise.resolve()}){let s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);let n=i();return n.then(e=>a.miss(e)).then(()=>n)},set:(r,i)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(i):i,Promise.resolve(i)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function y(e,t,r="WithinHeaders"){let i={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?i:{},queryParameters:()=>"WithinQueryParameters"===r?i:{}}}function v({func:e,validate:t,aggregator:r,error:i,timeout:a=()=>0}){let s=n=>new Promise((o,l)=>{e(n).then(async e=>(r&&await r(e),await t(e))?o(e):i&&await i.validate(e)?l(Error(await i.message(e))):setTimeout(()=>{s(e).then(o).catch(l)},await a())).catch(e=>{l(e)})});return s()}
1function w({algoliaAgents:e,client:t,version:r}){let i,a=(i={value:`Algolia for JavaScript (${r})`,add(e){let t=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===i.value.indexOf(t)&&(i.value=`${i.value}${t}`),i}}).add({segment:t,version:r});return e.forEach(e=>a.add(e)),a}function P(){return{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()}}function E(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(c),r.d(c,{apiClientVersion:()=>es,recommendClient:()=>en});var T=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},q=class extends T{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},x=class extends q{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")}},S=class extends q{status;constructor(e,t,r,i="ApiError"){super(e,r,i),this.status=t}},b=class extends T{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},I=class extends S{error;
1constructor(e,t,r,i){super(e,t,i,"DetailedApiError"),this.error=r}};function D(e){for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),i=e[t];e[t]=e[r],e[r]=i}return e}function C(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 A({hosts:e,hostsCache:t,baseHeaders:r,logger:i,baseQueryParameters:a,algoliaAgent:s,timeouts:n,requester:o,requestsCache:l,responsesCache:h}){async function u(e){let r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(E(e))))),i=r.filter(e=>e.isUp()),a=r.filter(e=>e.isTimedOut()),s=[...i,...a];return{hosts:s.length>0?s:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}async function d(l,h,c=!0){var m,p;let g,f,y=[],v=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})}(l,h),w=(m=l.headers,p=h.headers,g={Accept:"application/json",...r,...m,...p},f={},Object.keys(g).forEach(e=>{let t=g[e];f[e.toLowerCase()]=t}),f),P="GET"===l.method?{...l.data,...h.data}:{},T={...a,...l.queryParameters,...P};if(s.value&&(T["x-algolia-agent"]=s.value),h&&h.queryParameters)for(let e of Object.keys(h.queryParameters))h.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(h.queryParameters[e])?T[e]=h.queryParameters[e].toString():T[e]=h.queryParameters[e];let q=0,D=async(e,r)=>{var a,s;let u,d,m=e.pop();if(void 0===m)throw new x(y.map(e=>C(e)));let p={...n,...h.timeouts},g={data:v,headers:w,method:l.method,url:(s=l.path,u=Object.keys(a=T).filter(e=>void 0!==a[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replace(/\+/g,"%20")}`).join("&"),d=`${m.protocol}://${m.url}${m.port?`:${m.port}`:""}/${"/"===s.charAt(0)?s.substring(1):s}`,u.length&&(d+=`?${u}`),d),connectTimeout:r(q,p.connect),responseTimeout:r(q,c?p.read:p.write)},f=t=>{let r={request:g,response:t,host:m,triesLeft:e.length};return y.push(r),r},P=await o.send(g);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)}(P)){let a=f(P);return P.isTimedOut&&q++,i.info("Retryable failure",C(a)),await t.set(m,E(m,P.isTimedOut?"timed out":"down")),D(e,r)}if(function({status:e}){return 2==~~(e/100)}(P)){try{return JSON.parse(P.content)}catch(e){throw new b(e.message,P)}}throw f(P),function({content:e,status:t},r){try{let i=JSON.parse(e);if("error"in i)return new I(i.message,t,i.error,r);return new S(i.message,t,r)}catch{}return new S(e,t,r)}(P,y)},A=e.filter(e=>"readWrite"===e.accept||(c?"read"===e.accept:"write"===e.accept)),k=await u(A);return D([...k.hosts].reverse(),k.getTimeout)}return{hostsCache:t,requester:o,timeouts:n,logger:i,algoliaAgent:s,baseHeaders:r,baseQueryParameters:a,hosts:e,request:function(e,t={}){let i=e.useReadTransporter||"GET"===e.method;if(!i)return d(e,t,i);if(!0!==(t.cacheable||e.cacheable))return d(e,t);let s={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return h.get(s,()=>l.get(s,()=>l.set(s,d(e,t)).then(e=>Promise.all([l.delete(s),e]),e=>Promise.all([l.delete(s),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>h.set(s,e)})},requestsCache:l,responsesCache:h}}var k="1.4.0",R=["de","us"];function M(e,t,r,i){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||!R.includes(r)))throw Error(`\`region\` must be one of the following: ${R.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:a,...s}){let n=y(e,t,r),o=A({hosts:[{url:a?"analytics.{region}.algolia.com".replace("{region}",a):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...s,algoliaAgent:w({algoliaAgents:i,client:"AbtestingV3",version:k}),baseHeaders:{"content-type":"text/plain",...n.headers(),...s.baseHeaders},baseQueryParameters:{...n.queryParameters(),...s.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},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 o.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 i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return o.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return o.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 o.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 o.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 o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getTimeseries({id:e,startDate:t,endDate:r,metric:i},a){if(!e)throw Error("Parameter `id` is required when calling `getTimeseries`.");let s="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),n={};return void 0!==t&&(n.startDate=t.toString()),void 0!==r&&(n.endDate=r.toString()),void 0!==i&&(n.metric=i.toString()),o.request({method:"GET",path:s,queryParameters:n,headers:{}},a)},listABTests({offset:e,limit:t,indexPrefix:r,indexSuffix:i,direction:a}={},s){let n={};return void 0!==e&&(n.offset=e.toString()),void 0!==t&&(n.limit=t.toString()),void 0!==r&&(n.indexPrefix=r.toString()),void 0!==i&&(n.indexSuffix=i.toString()),void 0!==a&&(n.direction=a.toString()),o.request({method:"GET",path:"/3/abtests",queryParameters:n,headers:{}},s)},scheduleABTest(e,t){if(!e)throw Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.metrics)throw Error("Parameter `scheduleABTestsRequest.metrics` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");return o.request({method:"POST",path:"/3/abtests/schedule",queryParameters:{},headers:{},data:e},t)},stopABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `stopABTest`.");let r="/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return o.request({method:"POST",path:r,queryParameters:{},headers:{}},t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${k}-${e}`}),f()]}),...i})}var U="5.38.0",V=["de","us"];function O(e,t,r,i){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||!V.includes(r)))throw Error(`\`region\` must be one of the following: ${V.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:a,...s}){let n=y(e,t,r),o=A({hosts:[{url:a?"analytics.{region}.algolia.com".replace("{region}",a):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...s,algoliaAgent:w({algoliaAgents:i,client:"Abtesting",version:U}),baseHeaders:{"content-type":"text/plain",...n.headers(),...s.baseHeaders},baseQueryParameters:{...n.queryParameters(),...s.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},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 o.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 i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return o.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return o.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 o.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 o.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 o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},listABTests({offset:e,limit:t,indexPrefix:r,indexSuffix:i}={},a){let s={};return void 0!==e&&(s.offset=e.toString()),void 0!==t&&(s.limit=t.toString()),void 0!==r&&(s.indexPrefix=r.toString()),void 0!==i&&(s.indexSuffix=i.toString()),o.request({method:"GET",path:"/2/abtests",queryParameters:s,headers:{}},a)},scheduleABTest(e,t){if(!e)throw Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");return o.request({method:"POST",path:"/2/abtests/schedule",queryParameters:{},headers:{},data:e},t)},stopABTest({id:e},t){if(!e)throw Error("Parameter `id` is required when calling `stopABTest`.");let r="/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(e));return o.request({method:"POST",path:r,queryParameters:{},headers:{}},t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${U}-${e}`}),f()]}),...i})}var j="5.38.0",B=["de","us"];function N(e,t,r,i){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||!B.includes(r)))throw Error(`\`region\` must be one of the following: ${B.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:a,...s}){let n=y(e,t,r),o=A({hosts:[{url:a?"analytics.{region}.algolia.com".replace("{region}",a):"analytics.algolia.com",accept:"readWrite",protocol:"https"}],...s,algoliaAgent:w({algoliaAgents:i,client:"Analytics",version:j}),baseHeaders:{"content-type":"text/plain",...n.headers(),...s.baseHeaders},baseQueryParameters:{...n.queryParameters(),...s.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 i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return o.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return o.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},getAddToCartRate({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getAddToCartRate`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/conversions/addToCartRate",queryParameters:s,headers:{}},a)},getAverageClickPosition({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getAverageClickPosition`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/clicks/averageClickPosition",queryParameters:s,headers:{}},a)},getClickPositions({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getClickPositions`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/clicks/positions",queryParameters:s,headers:{}},a)},getClickThroughRate({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getClickThroughRate`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/clicks/clickThroughRate",queryParameters:s,headers:{}},a)},getConversionRate({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getConversionRate`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/conversions/conversionRate",queryParameters:s,headers:{}},a)},getNoClickRate({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getNoClickRate`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/searches/noClickRate",queryParameters:s,headers:{}},a)},getNoResultsRate({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getNoResultsRate`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/searches/noResultRate",queryParameters:s,headers:{}},a)},getPurchaseRate({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getPurchaseRate`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/conversions/purchaseRate",queryParameters:s,headers:{}},a)},getRevenue({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getRevenue`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/conversions/revenue",queryParameters:s,headers:{}},a)},getSearchesCount({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getSearchesCount`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/searches/count",queryParameters:s,headers:{}},a)},getSearchesNoClicks({index:e,startDate:t,endDate:r,limit:i,offset:a,tags:s},n){if(!e)throw Error("Parameter `index` is required when calling `getSearchesNoClicks`.");let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==r&&(l.endDate=r.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==a&&(l.offset=a.toString()),void 0!==s&&(l.tags=s.toString()),o.request({method:"GET",path:"/2/searches/noClicks",queryParameters:l,headers:{}},n)},getSearchesNoResults({index:e,startDate:t,endDate:r,limit:i,offset:a,tags:s},n){if(!e)throw Error("Parameter `index` is required when calling `getSearchesNoResults`.");let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==r&&(l.endDate=r.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==a&&(l.offset=a.toString()),void 0!==s&&(l.tags=s.toString()),o.request({method:"GET",path:"/2/searches/noResults",queryParameters:l,headers:{}},n)},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()),o.request({method:"GET",path:"/2/status",queryParameters:r,headers:{}},t)},getTopCountries({index:e,startDate:t,endDate:r,limit:i,offset:a,tags:s},n){if(!e)throw Error("Parameter `index` is required when calling `getTopCountries`.");let l={};return void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.startDate=t.toString()),void 0!==r&&(l.endDate=r.toString()),void 0!==i&&(l.limit=i.toString()),void 0!==a&&(l.offset=a.toString()),void 0!==s&&(l.tags=s.toString()),o.request({method:"GET",path:"/2/countries",queryParameters:l,headers:{}},n)},getTopFilterAttributes({index:e,search:t,startDate:r,endDate:i,limit:a,offset:s,tags:n},l){if(!e)throw Error("Parameter `index` is required when calling `getTopFilterAttributes`.");let h={};return void 0!==e&&(h.index=e.toString()),void 0!==t&&(h.search=t.toString()),void 0!==r&&(h.startDate=r.toString()),void 0!==i&&(h.endDate=i.toString()),void 0!==a&&(h.limit=a.toString()),void 0!==s&&(h.offset=s.toString()),void 0!==n&&(h.tags=n.toString()),o.request({method:"GET",path:"/2/filters",queryParameters:h,headers:{}},l)},getTopFilterForAttribute({attribute:e,index:t,search:r,startDate:i,endDate:a,limit:s,offset:n,tags:l},h){if(!e)throw Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!t)throw Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");let u="/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!==i&&(d.startDate=i.toString()),void 0!==a&&(d.endDate=a.toString()),void 0!==s&&(d.limit=s.toString()),void 0!==n&&(d.offset=n.toString()),void 0!==l&&(d.tags=l.toString()),o.request({method:"GET",path:u,queryParameters:d,headers:{}},h)},getTopFiltersNoResults({index:e,search:t,startDate:r,endDate:i,limit:a,offset:s,tags:n},l){if(!e)throw Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");let h={};return void 0!==e&&(h.index=e.toString()),void 0!==t&&(h.search=t.toString()),void 0!==r&&(h.startDate=r.toString()),void 0!==i&&(h.endDate=i.toString()),void 0!==a&&(h.limit=a.toString()),void 0!==s&&(h.offset=s.toString()),void 0!==n&&(h.tags=n.toString()),o.request({method:"GET",path:"/2/filters/noResults",queryParameters:h,headers:{}},l)},getTopHits({index:e,search:t,clickAnalytics:r,revenueAnalytics:i,startDate:a,endDate:s,limit:n,offset:l,tags:h},u){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!==i&&(d.revenueAnalytics=i.toString()),void 0!==a&&(d.startDate=a.toString()),void 0!==s&&(d.endDate=s.toString()),void 0!==n&&(d.limit=n.toString()),void 0!==l&&(d.offset=l.toString()),void 0!==h&&(d.tags=h.toString()),o.request({method:"GET",path:"/2/hits",queryParameters:d,headers:{}},u)},getTopSearches({index:e,clickAnalytics:t,revenueAnalytics:r,startDate:i,endDate:a,orderBy:s,direction:n,limit:l,offset:h,tags:u},d){if(!e)throw Error("Parameter `index` is required when calling `getTopSearches`.");let c={};return void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.clickAnalytics=t.toString()),void 0!==r&&(c.revenueAnalytics=r.toString()),void 0!==i&&(c.startDate=i.toString()),void 0!==a&&(c.endDate=a.toString()),void 0!==s&&(c.orderBy=s.toString()),void 0!==n&&(c.direction=n.toString()),void 0!==l&&(c.limit=l.toString()),void 0!==h&&(c.offset=h.toString()),void 0!==u&&(c.tags=u.toString()),o.request({method:"GET",path:"/2/searches",queryParameters:c,headers:{}},d)},getUsersCount({index:e,startDate:t,endDate:r,tags:i},a){if(!e)throw Error("Parameter `index` is required when calling `getUsersCount`.");let s={};return void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString()),o.request({method:"GET",path:"/2/users/count",queryParameters:s,headers:{}},a)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${j}-${e}`}),f()]}),...i})}var L="5.38.0",F=["de","us"];
1function G(e,t,r,i){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||!F.includes(r)))throw Error(`\`region\` must be one of the following: ${F.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:a,...s}){let n=y(e,t,r),o=A({hosts:[{url:a?"insights.{region}.algolia.io".replace("{region}",a):"insights.algolia.io",accept:"readWrite",protocol:"https"}],...s,algoliaAgent:w({algoliaAgents:i,client:"Insights",version:L}),baseHeaders:{"content-type":"text/plain",...n.headers(),...s.baseHeaders},baseQueryParameters:{...n.queryParameters(),...s.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 i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return o.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return o.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 o.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 o.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:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${L}-${e}`}),f()]}),...i})}var $="5.38.0",W=["eu","us"];function K(e,t,r,i){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||!W.includes(r)))throw Error(`\`region\` is required and must be one of the following: ${W.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:a,...s}){let n=y(e,t,r),o=A({hosts:[{url:"personalization.{region}.algolia.com".replace("{region}",a),accept:"readWrite",protocol:"https"}],...s,algoliaAgent:w({algoliaAgents:i,client:"Personalization",version:$}),baseHeaders:{"content-type":"text/plain",...n.headers(),...s.baseHeaders},baseQueryParameters:{...n.queryParameters(),...s.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 i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return o.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return o.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 o.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},getPersonalizationStrategy:e=>o.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 o.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 o.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:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${$}-${e}`}),f()]}),...i})}var H="5.38.0",z=["eu","us"];function Q(e,t,r,i){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:i,region:a,...s}){let n=y(e,t,r),o=A({hosts:[{url:"query-suggestions.{region}.algolia.com".replace("{region}",a),accept:"readWrite",protocol:"https"}],...s,algoliaAgent:w({algoliaAgents:i,client:"QuerySuggestions",version:H}),baseHeaders:{"content-type":"text/plain",...n.headers(),...s.baseHeaders},baseQueryParameters:{...n.queryParameters(),...s.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},createConfig(e,t){if(!e)throw Error("Parameter `configurationWithIndex` is required when calling `createConfig`.");return o.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 i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return o.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return o.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 o.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},getAllConfigs:e=>o.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 o.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 o.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 o.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 i="/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e));return o.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},r)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${H}-${e}`}),f()]}),...i})}var Y="5.38.0";function X(e,t,r){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,...a}){let s=y(e,t,r),n=A({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(D([{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"}])),...a,algoliaAgent:w({algoliaAgents:i,client:"Search",version:Y}),baseHeaders:{"content-type":"text/plain",...s.headers(),...a.baseHeaders},baseQueryParameters:{...s.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>void 0),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?n.baseQueryParameters["x-algolia-api-key"]=e:n.baseHeaders["x-algolia-api-key"]=e},waitForTask({indexName:e,taskID:t,maxRetries:r=50,timeout:i=e=>Math.min(200*e,5e3)},a){let s=0;return v({func:()=>this.getTask({indexName:e,taskID:t},a),validate:e=>"published"===e.status,aggregator:()=>s+=1,error:{validate:()=>s>=r,message:()=>`The maximum number of retries exceeded. (${s}/${r})`},timeout:()=>i(s)})},waitForAppTask({taskID:e,maxRetries:t=50,timeout:r=e=>Math.min(200*e,5e3)},i){let a=0;return v({func:()=>this.getAppTask({taskID:e},i),validate:e=>"published"===e.status,aggregator:()=>a+=1,error:{validate:()=>a>=t,message:()=>`The maximum number of retries exceeded. (${a}/${t})`},timeout:()=>r(a)})},waitForApiKey({operation:e,key:t,apiKey:r,maxRetries:i=50,timeout:a=e=>Math.min(200*e,5e3)},s){let n=0,o={aggregator:()=>n+=1,error:{validate:()=>n>=i,message:()=>`The maximum number of retries exceeded. (${n}/${i})`},timeout:()=>a(n)};if("update"===e){if(!r)throw Error("`apiKey` is required when waiting for an `update` operation.");return v({...o,func:()=>this.getApiKey({key:t},s),validate:e=>{for(let t of Object.keys(r)){let i=r[t],a=e[t];if(Array.isArray(i)&&Array.isArray(a)){if(i.length!==a.length||i.some((e,t)=>e!==a[t]))return!1}else if(i!==a)return!1}return!0}})}return v({...o,func:()=>this.getApiKey({key:t},s).catch(e=>{if(404!==e.status)throw e}),validate:t=>"add"===e?void 0!==t:void 0===t})},browseObjects({indexName:e,browseParams:t,...r},i){return v({func:r=>
1this.browse({indexName:e,browseParams:{cursor:r?r.cursor:void 0,hitsPerPage:1e3,...t}},i),validate:e=>void 0===e.cursor,...r})},browseRules({indexName:e,searchRulesParams:t,...r},i){let a={...t,hitsPerPage:t?.hitsPerPage||1e3};return v({func:t=>this.searchRules({indexName:e,searchRulesParams:{...a,page:t?t.page+1:a.page||0}},i),validate:e=>e.hits.length<a.hitsPerPage,...r})},browseSynonyms({indexName:e,searchSynonymsParams:t,...r},i){let a={...t,page:t?.page||0,hitsPerPage:1e3};return v({func:t=>{let r=this.searchSynonyms({indexName:e,searchSynonymsParams:{...a,page:a.page}},i);return a.page+=1,r},validate:e=>e.hits.length<a.hitsPerPage,...r})},async chunkedBatch({indexName:e,objects:t,action:r="addObject",waitForTasks:i,batchSize:a=1e3},s){let n=[],o=[];for(let[i,l]of t.entries())n.push({action:r,body:l}),(n.length===a||i===t.length-1)&&(o.push(await this.batch({indexName:e,batchWriteParams:{requests:n}},s)),n=[]);if(i)for(let t of o)await this.waitForTask({indexName:e,taskID:t.taskID});return o},async saveObjects({indexName:e,objects:t,waitForTasks:r,batchSize:i},a){return await this.chunkedBatch({indexName:e,objects:t,action:"addObject",waitForTasks:r,batchSize:i},a)},async deleteObjects({indexName:e,objectIDs:t,waitForTasks:r,batchSize:i},a){return await this.chunkedBatch({indexName:e,objects:t.map(e=>({objectID:e})),action:"deleteObject",waitForTasks:r,batchSize:i},a)},async partialUpdateObjects({indexName:e,objects:t,createIfNotExists:r,waitForTasks:i,batchSize:a},s){return await this.chunkedBatch({indexName:e,objects:t,action:r?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:a,waitForTasks:i},s)},async replaceAllObjects({indexName:e,objects:t,batchSize:r,scopes:i},a){let s=Math.floor(1e6*Math.random())+1e5,n=`${e}_tmp_${s}`;void 0===i&&(i=["settings","rules","synonyms"]);try{let s=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:n,scope:i}},a),o=await this.chunkedBatch({indexName:n,objects:t,waitForTasks:!0,batchSize:r},a);await this.waitForTask({indexName:n,taskID:s.taskID}),s=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:n,scope:i}},a),await this.waitForTask({indexName:n,taskID:s.taskID});let l=await this.operationIndex({indexName:n,operationIndexParams:{operation:"move",destination:e}},a);return await this.waitForTask({indexName:n,taskID:l.taskID}),{copyOperationResponse:s,batchResponses:o,moveOperationResponse:l}}catch(e){throw await this.deleteIndex({indexName:n}),e}},async indexExists({indexName:e}
1){try{await this.getSettings({indexName:e})}catch(e){if(e instanceof S&&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 n.request({method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:e},t)},addOrUpdateObject({indexName:e,objectID:t,body:r},i){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 a="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return n.request({method:"PUT",path:a,queryParameters:{},headers:{},data:r},i)},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 n.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 i={};return void 0!==e&&(i["X-Algolia-User-ID"]=e.toString()),n.request({method:"POST",path:"/1/clusters/mapping",queryParameters:{},headers:i,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 i="/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,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 i={};return void 0!==e&&(i["X-Algolia-User-ID"]=e.toString()),n.request({method:"POST",path:"/1/clusters/mapping/batch",queryParameters:{},headers:i,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 i="/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(e));return n.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},r)},browse({indexName:e,browseParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `browse`.");let i="/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,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 n.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 i="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(e)),a={};return void 0!==t&&(a.forwardToReplicas=t.toString()),n.request({method:"POST",path:i,queryParameters:a,headers:{}},r)},clearSynonyms({indexName:e,forwardToReplicas:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `clearSynonyms`.");let i="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(e)),a={};return void 0!==t&&(a.forwardToReplicas=t.toString()),n.request({method:"POST",path:i,queryParameters:a,headers:{}},r)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let i="/{path}".replace("{path}",e);return n.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return n.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return n.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return n.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 n.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 i="/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,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 n.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 i="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return n.request({method:"DELETE",path:i,queryParameters:{},headers:{}},r)},deleteRule({indexName:e,objectID:t,forwardToReplicas:r},i){if(!e)throw Error("Parameter `indexName` is required when calling `deleteRule`.");if(!t)throw Error("Parameter `objectID` is required when calling `deleteRule`.");let a="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==r&&(s.forwardToReplicas=r.toString()),n.request({method:"DELETE",path:a,queryParameters:s,headers:{}},i)},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 n.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},deleteSynonym({indexName:e,objectID:t,forwardToReplicas:r},i){if(!e)throw Error("Parameter `indexName` is required when calling `deleteSynonym`.");if(!t)throw Error("Parameter `objectID` is required when calling `deleteSynonym`.");let a="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==r&&(s.forwardToReplicas=r.toString()),n.request({method:"DELETE",path:a,queryParameters:s,headers:{}},i)},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 n.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 n.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getDictionaryLanguages:e=>n.request({method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}},e),getDictionarySettings:e=>n.request({method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}},e),getLogs({offset:e,length:t,indexName:r,type:i}={},a){let s={};return void 0!==e&&(s.offset=e.toString()),void 0!==t&&(s.length=t.toString()),void 0!==r&&(s.indexName=r.toString()),void 0!==i&&(s.type=i.toString()),n.request({method:"GET",path:"/1/logs",queryParameters:s,headers:{}},a)},getObject({indexName:e,objectID:t,attributesToRetrieve:r},i){if(!e)throw Error("Parameter `indexName` is required when calling `getObject`.");if(!t)throw Error("Parameter `objectID` is required when calling `getObject`.");let a="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};return void 0!==r&&(s.attributesToRetrieve=r.toString()),n.request({method:"GET",path:a,queryParameters:s,headers:{}},i)},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 n.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 i="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return n.request({method:"GET",path:i,queryParameters:{},headers:{}},r)},getSettings({indexName:e,getVersion:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `getSettings`.");let i="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),a={};return void 0!==t&&(a.getVersion=t.toString()),n.request({method:"GET",path:i,queryParameters:a,headers:{}},r)},getSources:e=>n.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 i="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t));return n.request({method:"GET",path:i,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 i="/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{taskID}",encodeURIComponent(t));return n.request({method:"GET",path:i,queryParameters:{},headers:{}},r)},getTopUserIds:e=>n.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 n.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},hasPendingMappings({getClusters:e}={},t){let r={};return void 0!==e&&(r.getClusters=e.toString()),n.request({method:"GET",path:"/1/clusters/mapping/pending",queryParameters:r,headers:{}},t)},listApiKeys:e=>n.request({method:"GET",path:"/1/keys",queryParameters:{},headers:{}}
1,e),listClusters:e=>n.request({method:"GET",path:"/1/clusters",queryParameters:{},headers:{}},e),listIndices({page:e,hitsPerPage:t}={},r){let i={};return void 0!==e&&(i.page=e.toString()),void 0!==t&&(i.hitsPerPage=t.toString()),n.request({method:"GET",path:"/1/indexes",queryParameters:i,headers:{}},r)},listUserIds({page:e,hitsPerPage:t}={},r){let i={};return void 0!==e&&(i.page=e.toString()),void 0!==t&&(i.hitsPerPage=t.toString()),n.request({method:"GET",path:"/1/clusters/mapping",queryParameters:i,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 n.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 i="/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},r)},partialUpdateObject({indexName:e,objectID:t,attributesToUpdate:r,createIfNotExists:i},a){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 s="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),o={};return void 0!==i&&(o.createIfNotExists=i.toString()),n.request({method:"POST",path:s,queryParameters:o,headers:{},data:r},a)},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 n.request({method:"DELETE",path:r,queryParameters:{},headers:{}},t)},replaceSources({source:e},t){if(!e)throw Error("Parameter `source` is required when calling `replaceSources`.");return n.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 n.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 i="/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},r)},saveRule({indexName:e,objectID:t,rule:r,forwardToReplicas:i},a){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 s="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),o={};return void 0!==i&&(o.forwardToReplicas=i.toString()),n.request({method:"PUT",path:s,queryParameters:o,headers:{},data:r},a)},saveRules({indexName:e,rules:t,forwardToReplicas:r,clearExistingRules:i},a){if(!e)throw Error("Parameter `indexName` is required when calling `saveRules`.");if(!t)throw Error("Parameter `rules` is required when calling `saveRules`.");let s="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(e)),o={};return void 0!==r&&(o.forwardToReplicas=r.toString()),void 0!==i&&(o.clearExistingRules=i.toString()),n.request({method:"POST",path:s,queryParameters:o,headers:{},data:t},a)},saveSynonym({indexName:e,objectID:t,synonymHit:r,forwardToReplicas:i},a){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 s="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),o={};return void 0!==i&&(o.forwardToReplicas=i.toString()),n.request({method:"PUT",path:s,queryParameters:o,headers:{},data:r},a)},saveSynonyms({indexName:e,synonymHit:t,forwardToReplicas:r,replaceExistingSynonyms:i},a){if(!e)throw Error("Parameter `indexName` is required when calling `saveSynonyms`.");if(!t)throw Error("Parameter `synonymHit` is required when calling `saveSynonyms`.");let s="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(e)),o={};return void 0!==r&&(o.forwardToReplicas=r.toString()),void 0!==i&&(o.replaceExistingSynonyms=i.toString()),n.request({method:"POST",path:s,queryParameters:o,headers:{},data:t},a)},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 n.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 i="/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(e));return n.request({method:"POST",path:i,queryParameters:{},headers:{},data:t,useReadTransporter:!0,cacheable:!0},r)},searchForFacetValues({indexName:e,facetName:t,searchForFacetValuesRequest:r}
1,i){if(!e)throw Error("Parameter `indexName` is required when calling `searchForFacetValues`.");if(!t)throw Error("Parameter `facetName` is required when calling `searchForFacetValues`.");let a="/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(e)).replace("{facetName}",encodeURIComponent(t));return n.request({method:"POST",path:a,queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0},i)},searchRules({indexName:e,searchRulesParams:t},r){if(!e)throw Error("Parameter `indexName` is required when calling `searchRules`.");let i="/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,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 i="/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,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 i="/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(e));return n.request({method:"POST",path:i,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 n.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 n.request({method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:e},t)},setSettings({indexName:e,indexSettings:t,forwardToReplicas:r},i){if(!e)throw Error("Parameter `indexName` is required when calling `setSettings`.");if(!t)throw Error("Parameter `indexSettings` is required when calling `setSettings`.");let a="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==r&&(s.forwardToReplicas=r.toString()),n.request({method:"PUT",path:a,queryParameters:s,headers:{},data:t},i)},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 i="/1/keys/{key}".replace("{key}",encodeURIComponent(e));return n.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},r)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${Y}-${e}`}),f()]}),...r})}var _="1.38.0",J=["eu","us"];function Z(e){return"onDemand"===e.type}function ee(e){return"schedule"===e.type}function et(e){return"subscription"===e.type}function er(e,t,r,i){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||!J.includes(r)))throw Error(`\`region\` is required and must be one of the following: ${J.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:a,...s}){let n=y(e,t,r),o=A({hosts:[{url:"data.{region}.algolia.com".replace("{region}",a),accept:"readWrite",protocol:"https"}],...s,algoliaAgent:w({algoliaAgents:i,client:"Ingestion",version:_}),baseHeaders:{"content-type":"text/plain",...n.headers(),...s.baseHeaders},baseQueryParameters:{...n.queryParameters(),...s.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},async chunkedPush({indexName:e,objects:t,action:r="addObject",waitForTasks:i,batchSize:a=1e3,referenceIndexName:s},n){let o=[],l=0,h=[],u=Math.floor(a/10)||a;for(let[d,c]of t.entries())if(o.push(c),(o.length===a||d===t.length-1)&&(h.push(await this.push({indexName:e,pushTaskPayload:{action:r,records:o},referenceIndexName:s},n)),o=[]),i&&h.length>0&&(h.length%u==0||d===t.length-1)){for(let e of h.slice(l,l+u)){if(!e.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");let t=0;await v({func:async()=>
1{if(void 0===e.eventID||!e.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:e.runID,eventID:e.eventID}).catch(e=>{if(404!==e.status)throw e})},validate:e=>void 0!==e,aggregator:()=>t+=1,error:{validate:()=>t>=50,message:()=>`The maximum number of retries exceeded. (${t}/50)`},timeout:()=>Math.min(500*t,5e3)})}l+=u}return h},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 o.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 o.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 o.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 o.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 o.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 o.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 i="/{path}".replace("{path}",e);return o.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return o.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return o.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return o.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 o.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 o.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 o.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 o.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 o.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 o.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 o.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 o.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 o.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 o.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 o.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 o.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 i="/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t));return o.request({method:"GET",path:i,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 o.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 o.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 o.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 o.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 o.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},listAuthentications({itemsPerPage:e,page:t,type:r,platform:i,sort:
1a,order:s}={},n){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==t&&(l.page=t.toString()),void 0!==r&&(l.type=r.toString()),void 0!==i&&(l.platform=i.toString()),void 0!==a&&(l.sort=a.toString()),void 0!==s&&(l.order=s.toString()),o.request({method:"GET",path:"/1/authentications",queryParameters:l,headers:{}},n)},listDestinations({itemsPerPage:e,page:t,type:r,authenticationID:i,transformationID:a,sort:s,order:n}={},l){let h={};return void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==t&&(h.page=t.toString()),void 0!==r&&(h.type=r.toString()),void 0!==i&&(h.authenticationID=i.toString()),void 0!==a&&(h.transformationID=a.toString()),void 0!==s&&(h.sort=s.toString()),void 0!==n&&(h.order=n.toString()),o.request({method:"GET",path:"/1/destinations",queryParameters:h,headers:{}},l)},listEvents({runID:e,itemsPerPage:t,page:r,status:i,type:a,sort:s,order:n,startDate:l,endDate:h},u){if(!e)throw Error("Parameter `runID` is required when calling `listEvents`.");let d="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),c={};return void 0!==t&&(c.itemsPerPage=t.toString()),void 0!==r&&(c.page=r.toString()),void 0!==i&&(c.status=i.toString()),void 0!==a&&(c.type=a.toString()),void 0!==s&&(c.sort=s.toString()),void 0!==n&&(c.order=n.toString()),void 0!==l&&(c.startDate=l.toString()),void 0!==h&&(c.endDate=h.toString()),o.request({method:"GET",path:d,queryParameters:c,headers:{}},u)},listRuns({itemsPerPage:e,page:t,status:r,type:i,taskID:a,sort:s,order:n,startDate:l,endDate:h}={},u){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!==i&&(d.type=i.toString()),void 0!==a&&(d.taskID=a.toString()),void 0!==s&&(d.sort=s.toString()),void 0!==n&&(d.order=n.toString()),void 0!==l&&(d.startDate=l.toString()),void 0!==h&&(d.endDate=h.toString()),o.request({method:"GET",path:"/1/runs",queryParameters:d,headers:{}},u)},listSources({itemsPerPage:e,page:t,type:r,authenticationID:i,sort:a,order:s}={},n){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==t&&(l.page=t.toString()),void 0!==r&&(l.type=r.toString()),void 0!==i&&(l.authenticationID=i.toString()),void 0!==a&&(l.sort=a.toString()),void 0!==s&&(l.order=s.toString()),o.request({method:"GET",path:"/1/sources",queryParameters:l,headers:{}},n)},listTasks({itemsPerPage:e,page:t,action:r,enabled:i,sourceID:a,sourceType:s,destinationID:n,triggerType:l,withEmailNotifications:h,sort:u,order:d}={},c){let m={};return void 0!==e&&(m.itemsPerPage=e.toString()),void 0!==t&&(m.page=t.toString()),void 0!==r&&(m.action=r.toString()),void 0!==i&&(m.enabled=i.toString()),void 0!==a&&(m.sourceID=a.toString()),void 0!==s&&(m.sourceType=s.toString()),void 0!==n&&(m.destinationID=n.toString()),void 0!==l&&(m.triggerType=l.toString()),void 0!==h&&(m.withEmailNotifications=h.toString()),void 0!==u&&(m.sort=u.toString()),void 0!==d&&(m.order=d.toString()),o.request({method:"GET",path:"/2/tasks",queryParameters:m,headers:{}},c)},listTasksV1({itemsPerPage:e,page:t,action:r,enabled:i,sourceID:a,destinationID:s,triggerType:n,sort:l,order:h}={},u){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!==i&&(d.enabled=i.toString()),void 0!==a&&(d.sourceID=a.toString()),void 0!==s&&(d.destinationID=s.toString()),void 0!==n&&(d.triggerType=n.toString()),void 0!==l&&(d.sort=l.toString()),void 0!==h&&(d.order=h.toString()),o.request({method:"GET",path:"/1/tasks",queryParameters:d,headers:{}},u)},listTransformations({itemsPerPage:e,page:t,sort:r,order:i,type:a}={},s){let n={};return void 0!==e&&(n.itemsPerPage=e.toString()),void 0!==t&&(n.page=t.toString()),void 0!==r&&(n.sort=r.toString()),void 0!==i&&(n.order=i.toString()),void 0!==a&&(n.type=a.toString()),o.request({method:"GET",path:"/1/transformations",queryParameters:n,headers:{}},s)},push({indexName:e,pushTaskPayload:t,watch:r,referenceIndexName:i},a){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 s="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),n={};return void 0!==r&&(n.watch=r.toString()),void 0!==i&&(n.referenceIndexName=i.toString()),a={timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},o.request({method:"POST",path:s,queryParameters:n,headers:{},data:t},a)},pushTask({taskID:e,pushTaskPayload:t,watch:r}
1,i){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 a="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),s={};return void 0!==r&&(s.watch=r.toString()),i={timeouts:{connect:18e4,read:18e4,write:18e4,...i?.timeouts}},o.request({method:"POST",path:a,queryParameters:s,headers:{},data:t},i)},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 i="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return o.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},r)},runSource({sourceID:e,runSourcePayload:t},r){if(!e)throw Error("Parameter `sourceID` is required when calling `runSource`.");let i="/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},r)},runTask({taskID:e,runTaskPayload:t},r){if(!e)throw Error("Parameter `taskID` is required when calling `runTask`.");let i="/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t||{}},r)},runTaskV1({taskID:e,runTaskPayload:t},r){if(!e)throw Error("Parameter `taskID` is required when calling `runTaskV1`.");let i="/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return o.request({method:"POST",path:i,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 o.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 o.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 o.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 o.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 o.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 o.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}},o.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 o.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 i="/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e));return o.request({method:"POST",path:i,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 i="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return o.request({method:"PATCH",path:i,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 i="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return o.request({method:"PATCH",path:i,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 i="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return o.request({method:"PATCH",path:i,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 i="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return o.request({method:"PATCH",path:i,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 i="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return o.request({method:"PATCH",path:i,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 i="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return o.request({method:"PUT",path:i,queryParameters:{},headers:{},data:t},r)},validateSource:(e,t)=>(t={timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},o.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 i="/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e));return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},o.request({method:"POST",path:i,queryParameters:{},headers:{},data:t},r)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:25e3,read:25e3,write:25e3},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${_}-${e}`}),f()]}),...i})}var ei="1.38.0";function ea(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:i,...a}){let s=y(e,t,r),n=A({hosts:[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}],...a,algoliaAgent:w({algoliaAgents:i,client:"Monitoring",version:ei}),baseHeaders:{"content-type":"text/plain",...s.headers(),...a.baseHeaders},baseQueryParameters:{...s.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>void 0),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?n.baseQueryParameters["x-algolia-api-key"]=e:n.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let i="/{path}".replace("{path}",e);return n.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return n.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return n.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return n.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},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 n.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 n.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getIncidents:e=>n.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 n.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 n.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 i="/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(e)).replace("{period}",encodeURIComponent(t));return n.request({method:"GET",path:i,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 n.request({method:"GET",path:r,queryParameters:{},headers:{}},t)},getServers:e=>n.request({method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}},e),getStatus:e=>n.request({method:"GET",path:"/1/status",queryParameters:{},headers:{}},e)}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${ei}-${e}`}),f()]}),...r})}var es="5.38.0";function en(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:i,...a}){let s=y(e,t,r),n=A({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(D([{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"}])),...a,algoliaAgent:w({algoliaAgents:i,client:"Recommend",version:es}),baseHeaders:{"content-type":"text/plain",...s.headers(),...a.baseHeaders},baseQueryParameters:{...s.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>void 0),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?n.baseQueryParameters["x-algolia-api-key"]=e:n.baseHeaders["x-algolia-api-key"]=e},batchRecommendRules({indexName:e,model:t,recommendRule:r},i){if(!e)throw Error("Parameter `indexName` is required when calling `batchRecommendRules`.");if(!t)throw Error("Parameter `model` is required when calling `batchRecommendRules`.");let a="/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return n.request({method:"POST",path:a,queryParameters:{},headers:{},data:r||{}},i)},customDelete({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let i="/{path}".replace("{path}",e);return n.request({method:"DELETE",path:i,queryParameters:t||{},headers:{}},r)},customGet({path:e,parameters:t},r){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let i="/{path}".replace("{path}",e);return n.request({method:"GET",path:i,queryParameters:t||{},headers:{}},r)},customPost({path:e,parameters:t,body:r}
1,i){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let a="/{path}".replace("{path}",e);return n.request({method:"POST",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let a="/{path}".replace("{path}",e);return n.request({method:"PUT",path:a,queryParameters:t||{},headers:{},data:r||{}},i)},deleteRecommendRule({indexName:e,model:t,objectID:r},i){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 a="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(r));return n.request({method:"DELETE",path:a,queryParameters:{},headers:{}},i)},getRecommendRule({indexName:e,model:t,objectID:r},i){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 a="/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(r));return n.request({method:"GET",path:a,queryParameters:{},headers:{}},i)},getRecommendStatus({indexName:e,model:t,taskID:r},i){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 a="/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{taskID}",encodeURIComponent(r));return n.request({method:"GET",path:a,queryParameters:{},headers:{}},i)},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 n.request(r,t)},searchRecommendRules({indexName:e,model:t,searchRecommendRulesParams:r},i){if(!e)throw Error("Parameter `indexName` is required when calling `searchRecommendRules`.");if(!t)throw Error("Parameter `model` is required when calling `searchRecommendRules`.");let a="/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t));return n.request({method:"POST",path:a,queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0},i)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:P(),requester:m(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:f(),requestsCache:f({serializable:!1}),hostsCache:g({caches:[p({key:`${es}-${e}`}),f()]}),...r})}var eo=Object.defineProperty,el=Object.getOwnPropertyDescriptor,eh=Object.getOwnPropertyNames,eu=Object.prototype.hasOwnProperty,ed=(e,t)=>{for(var r in t)eo(e,r,{get:t[r],enumerable:!0})},ec=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of eh(t))eu.call(e,a)||a===r||eo(e,a,{get:()=>t[a],enumerable:!(i=el(t,a))||i.enumerable});return e},em=(e,t,r)=>(ec(e,t,"default"),r&&ec(r,t,"default")),ep={};ed(ep,{algoliasearch:()=>ef,apiClientVersion:()=>Y});var eg={};function ef(e,t,r){let i;if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let a=X(e,t,r);if(r?.transformation){if(!r.transformation.region)throw Error("`region` must be provided when leveraging the transformation pipeline");i=er(e,t,r.transformation.region,r)}return{...a,async saveObjectsWithTransformation({indexName:e,objects:t,waitForTasks:a},s){if(!i)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 i.chunkedPush({indexName:e,objects:t,action:"addObject",waitForTasks:a},s)},async partialUpdateObjectsWithTransformation({indexName:e,objects:t,createIfNotExists:a,waitForTasks:s},n){if(!i)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 i.chunkedPush({indexName:e,objects:t,action:a?"partialUpdateObject":"partialUpdateObjectNoCreate",waitForTasks:s},n)}
1,async replaceAllObjectsWithTransformation({indexName:e,objects:t,batchSize:a,scopes:s},n){if(!i)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 o=Math.floor(1e6*Math.random())+1e5,l=`${e}_tmp_${o}`;void 0===s&&(s=["settings","rules","synonyms"]);try{let r=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:l,scope:s}},n),o=await i.chunkedPush({indexName:l,objects:t,waitForTasks:!0,batchSize:a,referenceIndexName:e},n);await this.waitForTask({indexName:l,taskID:r.taskID}),r=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:l,scope:s}},n),await this.waitForTask({indexName:l,taskID:r.taskID});let h=await this.operationIndex({indexName:l,operationIndexParams:{operation:"move",destination:e}},n);return await this.waitForTask({indexName:l,taskID:h.taskID}),{copyOperationResponse:r,watchResponses:o,moveOperationResponse:h}}catch(e){throw await this.deleteIndex({indexName:l}),e}},get _ua(){return a.transporter.algoliaAgent.value},initAbtesting:r=>O(r.appId||e,r.apiKey||t,r.region,r.options),initAbtestingV3:r=>M(r.appId||e,r.apiKey||t,r.region,r.options),initAnalytics:r=>N(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=>G(r.appId||e,r.apiKey||t,r.region,r.options),initMonitoring:(r={})=>ea(r.appId||e,r.apiKey||t,r.options),initPersonalization:r=>K(r.appId||e,r.apiKey||t,r.region,r.options),initQuerySuggestions:r=>Q(r.appId||e,r.apiKey||t,r.region,r.options),initRecommend:(r={})=>en(r.appId||e,r.apiKey||t,r.options)}}ed(eg,{apiClientVersion:()=>Y}),em(eg,i),em(eg,a),em(eg,s),em(eg,n),em(eg,o),em(eg,l),em(eg,h),em(eg,u),em(eg,d),em(eg,c),em(ep,eg)},5223:(e,t,r)=>{r.d(t,{xQ:()=>s});var i=r(7620),a=r(64320);function s(e=!0){let t=(0,i.useContext)(a.t);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:o}=t,l=(0,i.useId)();(0,i.useEffect)(()=>{if(e)return o(l)},[e]);let h=(0,i.useCallback)(()=>e&&n&&n(l),[l,n,e]);return!r&&n?[!1,h]:[!0]}},5367:(e,t,r)=>{r.d(t,{default:()=>a.a});var i=r(37452),a=r.n(i)},5651:(e,t,r)=>{r.d(t,{E:()=>a});var i=r(7620);let a="u">typeof window?i.useLayoutEffect:i.useEffect},15724:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let i=r(54568),a=r(7620),s=r(68459);function n(e){return{default:e&&"default"in e?e.default:e}}r(84022);let o={loader:()=>Promise.resolve(n(()=>null)),loading:null,ssr:!0},l=function(e){let t={...o,...e},r=(0,a.lazy)(()=>t.loader().then(n)),l=t.loading;function h(e){let n=l?(0,i.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,h=o?a.Suspense:a.Fragment,u=t.ssr?(0,i.jsxs)(i.Fragment,{children:[null,(0,i.jsx)(r,{...e})]}):(0,i.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,i.jsx)(r,{...e})});return(0,i.jsx)(h,{...o?{fallback:n}:{},children:u})}return h.displayName="LoadableComponent",h}},27900:(e,t,r)=>{r.d(t,{G:()=>i});function i(e){return"object"==typeof e&&null!==e}},35513:(e,t,r)=>{r.d(t,{Q:()=>i});let i=(0,r(7620).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},37116:(e,t,r)=>{r.d(t,{s:()=>a});var i=r(27900);function a(e){return(0,i.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},37452:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=r(9437)._(r(15724));function a(e,t){let r={};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,i.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37690:(e,t,r)=>{r.d(t,{M:()=>a});var i=r(7620);function a(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},41364:(e,t,r)=>{r.d(t,{CY:()=>y});var i=r(7620);let a={prefix:String(Math.round(1e10*Math.random())),current:0},s=(i.createContext(a),i.createContext(!1));function n(){return!1}function o(){return!0}function l(e){return()=>{}}"u">typeof window&&window.document&&window.document.createElement,new WeakMap;i.useId;
1let h=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),u=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function d(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return h.has(t)}let t=e.split("-")[0];return u.has(t)}function c(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:d(e)?"rtl":"ltr"}}let m=c(),p=new Set;function g(){for(let e of(m=c(),p))e(m)}let f=i.createContext(null);function y(e){let{locale:t,children:r}=e,a=function(){let e="function"==typeof i.useSyncExternalStore?i.useSyncExternalStore(l,n,o):(0,i.useContext)(s),[t,r]=(0,i.useState)(m);return((0,i.useEffect)(()=>(0===p.size&&window.addEventListener("languagechange",g),p.add(r),()=>{p.delete(r),0===p.size&&window.removeEventListener("languagechange",g)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}(),h=t?{locale:t,direction:d(t)?"rtl":"ltr"}:a;return i.createElement(f.Provider,{value:h},r)}new WeakMap},57564:(e,t,r)=>{let i,a,s,n;r.d(t,{P:()=>sN});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set(o),h=(e,t,r)=>r>t?t:r<e?e:r,u={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},d={...u,transform:e=>h(0,1,e)},c={...u,default:1},m=e=>Math.round(1e5*e)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,g=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f=(e,t)=>r=>!!("string"==typeof r&&g.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),y=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[a,s,n,o]=i.match(p);return{[e]:parseFloat(a),[t]:parseFloat(s),[r]:parseFloat(n),alpha:void 0!==o?parseFloat(o):1}},v={...u,transform:e=>Math.round(h(0,255,e))},w={test:f("rgb","red"),parse:y("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+v.transform(e)+", "+v.transform(t)+", "+v.transform(r)+", "+m(d.transform(i))+")"},P={test:f("#"),parse:function(e){let t="",r="",i="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}},transform:w.transform},E=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),T=E("deg"),q=E("%"),x=E("px"),S=E("vh"),b=E("vw"),I={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(100*e)},D={test:f("hsl","hue"),parse:y("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+q.transform(m(t))+", "+q.transform(m(r))+", "+m(d.transform(i))+")"},C={test:e=>w.test(e)||P.test(e)||D.test(e),parse:e=>w.test(e)?w.parse(e):D.test(e)?D.parse(e):P.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?w.transform(e):D.transform(e),getAnimatableNone:e=>{let t=C.parse(e);return t.alpha=0,C.transform(t)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,k="number",R="color",M=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function U(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},a=[],s=0,n=t.replace(M,e=>(C.test(e)?(i.color.push(s),a.push(R),r.push(C.parse(e))):e.startsWith("var(")?(i.var.push(s),a.push("var"),r.push(e)):(i.number.push(s),a.push(k),r.push(parseFloat(e))),++s,"${}")).split("${}");return{values:r,split:n,indexes:i,types:a}}function V({split:e,types:t}){let r=e.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=e[s],void 0!==i[s]){let e=t[s];e===k?a+=m(i[s]):e===R?a+=C.transform(i[s]):a+=i[s]}return a}}let O={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(p)?.length||0)+(e.match(A)?.length||0)>0},parse:function(e){return U(e).values},createTransformer:function(e){return V(U(e))},getAnimatableNone:function(e){let t=U(e);return V(t)(t.values.map((e,r)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:C.test(e)?C.getAnimatableNone(e):e)(e,t.split[r])))}},j=new Set(["brightness","contrast","saturate","opacity"]);function B(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=r.match(p)||[];if(!i)return e;let a=r.replace(i,""),s=+!!j.has(t);return i!==r&&(s*=100),t+"("+s+a+")"}let N=/\b([a-z-]*)\(.*?\)/gu,L={...O,getAnimatableNone:e=>{let t=e.match(N);return t?t.map(B).join(" "):e}},F={...O,getAnimatableNone:e=>{let t=O.parse(e);return O.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},G={...u,transform:Math.round},$={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,fontSize:x,backgroundPositionX:x,backgroundPositionY:x,rotate:T,rotateX:T,rotateY:T,rotateZ:T,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:T,skewX:T,skewY:T,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:d,originX:I,originY:I,originZ:x,zIndex:G,fillOpacity:d,strokeOpacity:d,numOctaves:G},W={...$,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:L,WebkitFilter:L,mask:F,WebkitMask:F},K=e=>W[e],H=()=>({translate:0,scale:1,origin:0,originPoint:0}),z=()=>({x:H(),y:H()}),Q=()=>({min:0,max:0}),Y=()=>({x:Q(),y:Q()}),X=e=>!!(e&&e.getVelocity),_=new Set(["width","height","top","left","right","bottom",...o]),J=e=>t=>t.test(e),Z=[u,x,q,T,b,S,{test:e=>"auto"===e,parse:e=>e}],ee=e=>Z.find(J(e));r(40459);let et=()=>{},er=()=>{},ei=e=>t=>"string"==typeof t&&t.startsWith(e),ea=ei("--"),es=ei("var(--"),en=e=>!!es(e)&&eo.test(e.split("/*")[0].trim()),eo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function el(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eu=e=>180*e/Math.PI,ed=e=>em(eu(Math.atan2(e[1],e[0]))),ec={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ed,rotateZ:ed,skewX:e=>
1eu(Math.atan(e[1])),skewY:e=>eu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},em=e=>((e%=360)<0&&(e+=360),e),ep=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ef={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ep,scaleY:eg,scale:e=>(ep(e)+eg(e))/2,rotateX:e=>em(eu(Math.atan2(e[6],e[5]))),rotateY:e=>em(eu(Math.atan2(-e[2],e[0]))),rotateZ:ed,rotate:ed,skewX:e=>eu(Math.atan(e[4])),skewY:e=>eu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ey(e){return+!!e.includes("scale")}function ev(e,t){let r,i;if(!e||"none"===e)return ey(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)r=ef,i=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ec,i=t}if(!i)return ey(t);let s=r[t],n=i[1].split(",").map(ew);return"function"==typeof s?s(n):n[s]}function ew(e){return parseFloat(e.trim())}let eP=e=>e===u||e===x,eE=new Set(["x","y","z"]),eT=o.filter(e=>!eE.has(e)),eq={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:i})=>{let a=e.max-e.min;return"border-box"===i?a:a-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:i})=>{let a=e.max-e.min;return"border-box"===i?a:a-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ev(t,"x"),y:(e,{transform:t})=>ev(t,"y")};eq.translateX=eq.x,eq.translateY=eq.y;let ex=e=>e,eS={},eb=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eI(e,t){let r=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,n=eb.reduce((e,r)=>(e[r]=function(e,t){let r=new Set,i=new Set,a=!1,s=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(t){n.has(t)&&(u.schedule(t),e()),l++,t(o)}let u={schedule:(e,t=!1,s=!1)=>{let o=s&&a?r:i;return t&&n.add(e),o.add(e),e},cancel:e=>{i.delete(e),n.delete(e)},process:e=>{if(o=e,a){s=!0;return}a=!0;let n=r;r=i,i=n,r.forEach(h),t,l=0,r.clear(),a=!1,s&&(s=!1,u.process(e))}};return u}(s,t?r:void 0),e),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:m,postRender:p}=n,g=()=>{let s=eS.useManualTiming,n=s?a.timestamp:performance.now();r=!1,s||(a.delta=i?1e3/60:Math.max(Math.min(n-a.timestamp,40),1)),a.timestamp=n,a.isProcessing=!0,o.process(a),l.process(a),h.process(a),u.process(a),d.process(a),c.process(a),m.process(a),p.process(a),a.isProcessing=!1,r&&t&&(i=!1,e(g))};return{schedule:eb.reduce((t,s)=>{let o=n[s];return t[s]=(t,s=!1,n=!1)=>(!r&&(r=!0,i=!0,a.isProcessing||e(g)),o.schedule(t,s,n)),t},{}),cancel:e=>{for(let t=0;t<eb.length;t++)n[eb[t]].cancel(e)},state:a,steps:n}}let{schedule:eD,cancel:eC,state:eA,steps:ek}=eI("u">typeof requestAnimationFrame?requestAnimationFrame:ex,!0),eR=new Set,eM=!1,eU=!1,eV=!1;function eO(){if(eU){let e=Array.from(eR).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,i=(t=[],eT.forEach(r=>{let i=e.getValue(r);void 0!==i&&(t.push([r,i.get()]),i.set(+!!r.startsWith("scale")))}),t);i.length&&(r.set(e,i),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eU=!1,eM=!1,eR.forEach(e=>e.complete(eV)),eR.clear()}function ej(){eR.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eU=!0)})}class eB{constructor(e,t,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eR.add(this),eM||(eM=!0,eD.read(ej),eD.resolveKeyframes(eO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;if(null===e[0]){let a=i?.get(),s=e[e.length-1];if(void 0!==a)e[0]=a;else if(r&&t){let i=r.readValue(t,s);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=s),i&&void 0===a&&i.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eR.delete(this)}cancel(){"scheduled"===this.state&&(eR.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eN=new Set([L,F]);function eL(e,t){let r=K(e);return eN.has(r)||(r=O),r.getAnimatableNone?r.getAnimatableNone(t):void 0}
1let eF=new Set(["auto","none","0"]);class eG extends eB{constructor(e,t,r,i,a){super(e,t,r,i,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let i=e[r];if("string"==typeof i&&en(i=i.trim())){let a=function e(t,r,i=1){er(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[a,s]=function(e){let t=eh.exec(e);if(!t)return[,];let[,r,i,a]=t;return[`--${r??i}`,a]}(t);if(!a)return;let n=window.getComputedStyle(r).getPropertyValue(a);if(n){let e=n.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return en(s)?e(s,r,i+1):s}(i,t.current);void 0!==a&&(e[r]=a),r===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!_.has(r)||2!==e.length)return;let[i,a]=e,s=ee(i),n=ee(a);if(el(i)!==el(a)&&eq[r]){this.needsMeasurement=!0;return}if(s!==n)if(eP(s)&&eP(n))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else eq[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let i,a=0;for(;a<e.length&&!i;){let t=e[a];"string"==typeof t&&!eF.has(t)&&U(t).values.length&&(i=e[a]),a++}if(i&&r)for(let a of t)e[a]=eL(r,i)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eq[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(r,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let a=r.length-1,s=r[a];r[a]=eq[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let e$=e=>1e3*e;function eW(e,t){-1===e.indexOf(t)&&e.push(t)}function eK(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class eH{constructor(){this.subscriptions=[]}add(e){return eW(this.subscriptions,e),()=>eK(this.subscriptions,e)}notify(e,t,r){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,r);else for(let a=0;a<i;a++){let i=this.subscriptions[a];i&&i(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ez(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function eQ(e){let t;return()=>(void 0===t&&(t=e()),t)}let eY={};function eX(e,t){let r=eQ(e);return()=>eY[t]??r()}let e_=eX(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eJ=e=>null!==e;function eZ(e,{repeat:t,repeatType:r="loop"},i,a=1){let s=e.filter(eJ),n=a<0||t&&"loop"!==r&&t%2==1?0:s.length-1;return n&&void 0!==i?i:s[n]}class e0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e1={layout:0,mainThread:0,waapi:0},e2=e=>Array.isArray(e)&&"number"==typeof e[0],e3=eX(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e5=(e,t,r=10)=>{let i="",a=Math.max(Math.round(t/r),2);for(let t=0;t<a;t++)i+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},e4=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,e6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e4([0,.65,.55,1]),circOut:e4([.55,0,1,.45]),backIn:e4([.31,.01,.66,-.59]),backOut:e4([.33,1.53,.69,.99])};function e9(e){return"function"==typeof e&&"applyToOptions"in e}class e8 extends e0{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:n,onComplete:o}=e;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=e,er(e.type);const l=function({type:e,...t}){return e9(e)&&e3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:i=0,duration:a=300,repeat:s=0,repeatType:n="loop",ease:o="easeOut",times:l}={},h){let u={[t]:r};l&&(u.offset=l);let d=function e(t,r){if(t)return"function"==typeof t?e3()?e5(t,r):"ease-out":e2(t)?e4(t):Array.isArray(t)?t.map(t=>e(t,r)||e6.easeOut):e6[t]}(o,a);Array.isArray(d)&&(u.easing=d);let c={delay:i,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===n?"alternate":"normal"};h&&(c.pseudoElement=h);let m=e.animate(u,c);return m}(t,r,i,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=eZ(i,this.options,n,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ez(t,r,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=e$(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e_())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),ex):i(this)}}let e7=new Set(["opacity","clipPath","filter","transform"]),{schedule:te}=eI(queueMicrotask,!1);function tt(){i=void 0}let tr={now:()=>(void 0===i&&tr.set(eA.isProcessing||eS.useManualTiming?eA.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(tt)}};class ti{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tr.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eH);let r=this.events[e].add(t);return"change"===e?()=>{r(),eD.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ta(e,t){return new ti(e,t)}let ts=[...Z,C,O],tn=new WeakMap;function to(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tl(e){return"string"==typeof e||Array.isArray(e)}let th=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tu=["initial",...th];function td(e){return to(e.animate)||tu.some(t=>tl(e[t]))}function tc(e){return!!(td(e)||e.variants)}let tm={current:null},tp={current:!1},tg="u">typeof window;function tf(e){let t=[{},{}];
1return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function ty(e,t,r,i){if("function"==typeof t){let[a,s]=tf(i);t=t(void 0!==r?r:e.custom,a,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,s]=tf(i);t=t(void 0!==r?r:e.custom,a,s)}return t}let tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tw={};class tP{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:s,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eD.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=n;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=h,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=td(t),this.isVariantNode=tc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&X(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tn.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tp.current||function(){if(tp.current=!0,tg)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tm.current=e.matches;e.addEventListener("change",t),t()}else tm.current=!1}(),this.shouldReduceMotion=tm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eC(this.notifyUpdate),eC(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&e7.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:i,times:a,ease:s,duration:n}=t.accelerate,o=new e8({element:this.current,name:e,keyframes:i,times:a,ease:s,duration:e$(n)}),l=r(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let i=l.has(e);i&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eD.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tw){let t=tw[e];if(!t)continue;let{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tv.length;t++){let r=tv[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,r){for(let i in t){let a=t[i],s=r[i];if(X(a))e.addValue(i,a);else if(X(s))e.addValue(i,ta(a,{owner:e}));else if(s!==a)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{let t=e.getStaticValue(i);e.addValue(i,ta(void 0!==t?t:a,{owner:e}))}}for(let i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=ta(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let i,a;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(a=r,/^0[^.\s]+$/u.test(a))))r=parseFloat(r);else{let i;i=r,!ts.find(J(i))&&O.test(t)&&(r=eL(e,t))}this.setBaseTarget(e,X(r)?r.get():r)}return X(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=ty(this.props,r,this.presenceContext?.custom);i&&(t=i[e])}if(r&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||X(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new eH),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){te.render(this.render)}}class tE extends tP{constructor(){super(...arguments),this.KeyframeResolver=eG}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;X(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tT(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tq=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tS=o.length;function tb(e,t,r){let{style:i,vars:a,transformOrigin:s}=e,n=!1,h=!1;for(let e in t){let r=t[e];if(l.has(e)){n=!0;continue}if(ea(e)){a[e]=r;continue}{let t=tq(r,$[e]);e.startsWith("origin")?(h=!0,s[e]=t):i[e]=t}}if(!t.transform&&(n||r?i.transform=function(e,t,r){let i="",a=!0;for(let s=0;s<tS;s++){let n=o[s],l=e[n];if(void 0===l)continue;let h=!0;if("number"==typeof l)h=l===+!!n.startsWith("scale");else{let e=parseFloat(l);h=n.startsWith("scale")?1===e:0===e}if(!h||r){let e=tq(l,$[n]);if(!h){a=!1;let t=tx[n]||n;i+=`${t}(${e}) `}r&&(t[n]=e)}}return i=i.trim(),r?i=r(t,a?"":i):a&&(i="none"),i}(t,e.transform,r):i.transform&&(i.transform="none")),h){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let tI={offset:"stroke-dashoffset",array:"stroke-dasharray"},tD={offset:"strokeDashoffset",array:"strokeDasharray"},tC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tA(e,{attrX:t,attrY:r,attrScale:i,pathLength:a,pathSpacing:s=1,pathOffset:n=0,...o}
1,l,h,u){if(tb(e,o,h),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:c}=e;for(let e of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),tC))void 0!==d[e]&&(c[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==i&&(d.scale=i),void 0!==a&&function(e,t,r=1,i=0,a=!0){e.pathLength=1;let s=a?tI:tD;e[s.offset]=`${-i}`,e[s.array]=`${t} ${r}`}(d,a,s,n,!1)}let tk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tR=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tM(e,{style:t,vars:r},i,a){let s,n=e.style;for(s in t)n[s]=t[s];for(s in a?.applyProjectionStyles(n,i),r)n.setProperty(s,r[s])}function tU(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tV={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!x.test(e))return e;else e=parseFloat(e);let r=tU(e,t.target.x),i=tU(e,t.target.y);return`${r}% ${i}%`}},tO=(e,t,r)=>e+(t-e)*r,tj={borderRadius:{...tV,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tV,borderTopRightRadius:tV,borderBottomLeftRadius:tV,borderBottomRightRadius:tV,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let i=O.parse(e);if(i.length>5)return e;let a=O.createTransformer(e),s=+("number"!=typeof i[0]),n=r.x.scale*t.x,o=r.y.scale*t.y;i[0+s]/=n,i[1+s]/=o;let l=tO(n,o,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),a(i)}}};function tB(e,{layout:t,layoutId:r}){return l.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!tj[e]||"opacity"===e)}function tN(e,t,r){let i=e.style,a=t?.style,s={};if(!i)return s;for(let t in i)(X(i[t])||a&&X(a[t])||tB(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(s[t]=i[t]);return s}function tL(e,t,r){let i=tN(e,t,r);for(let r in e)(X(e[r])||X(t[r]))&&(i[-1!==o.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return i}class tF extends tE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.has(t)){let e=K(t);return e&&e.default||0}return t=tk.has(t)?t:tT(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return tL(e,t,r)}build(e,t,r){tA(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,i){for(let r in tM(e,t,void 0,i),t.attrs)e.setAttribute(tk.has(r)?r:tT(r),t.attrs[r])}mount(e){this.isSVGTag=tR(e.tagName),super.mount(e)}}function tG({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function t$(e){return void 0===e||1===e}function tW({scale:e,scaleX:t,scaleY:r}){return!t$(e)||!t$(t)||!t$(r)}function tK(e){return tW(e)||tH(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tH(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function tz(e,t,r,i,a){return void 0!==a&&(e=i+a*(e-i)),i+r*(e-i)+t}function tQ(e,t=0,r=1,i,a){e.min=tz(e.min,t,r,i,a),e.max=tz(e.max,t,r,i,a)}function tY(e,{x:t,y:r}){tQ(e.x,t.translate,t.scale,t.originPoint),tQ(e.y,r.translate,r.scale,r.originPoint)}function tX(e,t){e.min+=t,e.max+=t}function t_(e,t,r,i,a=.5){let s=tO(e.min,e.max,a);tQ(e,t,r,s,i)}function tJ(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function tZ(e,t,r){let i=r??e;t_(e.x,tJ(t.x,i.x),t.scaleX,t.scale,t.originX),t_(e.y,tJ(t.y,i.y),t.scaleY,t.scale,t.originY)}function t0(e,t){return tG(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}class t1 extends tE{constructor(){super(...arguments),this.type="html",this.renderInstance=tM}readValueFromInstance(e,t){if(l.has(t))return this.projection?.isProjecting?ey(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return ev(r,t)})(e,t);{let r=window.getComputedStyle(e),i=(ea(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t0(e,t)}build(e,t,r){tb(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return tN(e,t,r)}}var t2,t3=r(7620);let t5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t4(e){if("string"!=typeof e||e.includes("-"));else if(t5.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t6=r(54568),t9=r(74206);let t8=(0,t3.createContext)({strict:!1});var t7=r(35513);let re=(0,t3.createContext)({});function rt(e){return Array.isArray(e)?e.join(" "):e}let rr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ri(e,t,r){for(let i in t)X(t[i])||tB(i,r)||(e[i]=t[i])}let ra=()=>({...rr(),attrs:{}}),rs=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function rn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rs.has(e)}let ro=e=>!rn(e);try{t2=require("@emotion/is-prop-valid").default,"function"==typeof t2&&(ro=e=>e.startsWith("on")?!rn(e):t2(e))}catch{}function rl(e){return X(e)?e.get():e}var rh=r(64320),ru=r(37690);let rd=e=>(t,r)=>{let i=(0,t3.useContext)(re),a=(0,t3.useContext)(rh.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,i,a){return{latestValues:function(e,t,r,i){let a={},s=i(e,{});for(let e in s)a[e]=rl(s[e]);let{initial:n,animate:o}=e,l=td(e),h=tc(e);t&&h&&!l&&!1!==e.inherit&&(void 0===n&&(n=t.initial),void 0===o&&(o=t.animate));let u=!!r&&!1===r.initial,d=(u=u||!1===n)?o:n;if(d&&"boolean"!=typeof d&&!to(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){let i=ty(e,t[r]);if(i){let{transitionEnd:e,transition:t,...r}=i;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}(r,i,a,e),renderState:t()}})(e,t,i,a);return r?s():(0,ru.M)(s)},rc=rd({scrapeMotionValuesFromProps:tN,createRenderState:rr}),rm=rd({scrapeMotionValuesFromProps:tL,createRenderState:ra}),rp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rg=!1;function rf(){return!function(){if(rg)return;let e={};for(let t in rp)e[t]={isEnabled:e=>rp[t].some(t=>!!e[t])};tw=e,rg=!0}(),tw}let ry=Symbol.for("motionComponentSymbol"),rv="data-"+tT("framerAppearId"),rw=(0,t3.createContext)({});function rP(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var rE=r(5651);function rT(e,{forwardMotionProps:t=!1,type:r}={},i,a){i&&function(e){let t=rf();for(let r in e)t[r]={...t[r],...e[r]};tw=t}(i);let s=r?"svg"===r:t4(e),n=s?rm:rc;function o(r,i){var o;let l,h,u,d={...(0,t3.useContext)(t7.Q),...r,layoutId:function({layoutId:e}){let t=(0,t3.useContext)(t9.L).id;return t&&void 0!==e?t+"-"+e:e}(r)}
1,{isStatic:c}=d,m=function(e){let{initial:t,animate:r}=function(e,t){if(td(e)){let{initial:t,animate:r}=e;return{initial:!1===t||tl(t)?t:void 0,animate:tl(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,t3.useContext)(re));return(0,t3.useMemo)(()=>({initial:t,animate:r}),[rt(t),rt(r)])}(r),p=n(r,c);if(!c&&"u">typeof window){(0,t3.useContext)(t8).strict;let t=function(e){let{drag:t,layout:r}=rf();if(!t&&!r)return{};let i={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(d);l=t.MeasureLayout,m.visualElement=function(e,t,r,i,a,s){let{visualElement:n}=(0,t3.useContext)(re),o=(0,t3.useContext)(t8),l=(0,t3.useContext)(rh.t),h=(0,t3.useContext)(t7.Q),u=h.reducedMotion,d=h.skipAnimations,c=(0,t3.useRef)(null),m=(0,t3.useRef)(!1);i=i||o.renderer,!c.current&&i&&(c.current=i(e,{visualState:t,parent:n,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:s}),m.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let p=c.current,g=(0,t3.useContext)(rw);p&&!p.projection&&a&&("html"===p.type||"svg"===p.type)&&function(e,t,r,i){let{layoutId:a,layout:s,drag:n,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!n||o&&rP(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(c.current,r,a,g);let f=(0,t3.useRef)(!1);(0,t3.useInsertionEffect)(()=>{p&&f.current&&p.update(r,l)});let y=r[rv],v=(0,t3.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,rE.E)(()=>{m.current=!0,p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,t3.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(e,p,d,a,t.ProjectionNode,s)}return(0,t6.jsxs)(re.Provider,{value:m,children:[l&&m.visualElement?(0,t6.jsx)(l,{visualElement:m.visualElement,...d}):null,function(e,t,r,{latestValues:i},a,s=!1,n){let o=(n??t4(e)?function(e,t,r,i){let a=(0,t3.useMemo)(()=>{let r=ra();return tA(r,t,tR(i),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};ri(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let r,i,a={},s=(r=e.style||{},ri(i={},r,e),Object.assign(i,function({transformTemplate:e},t){return(0,t3.useMemo)(()=>{let r=rr();return tb(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),i);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=s,a})(t,i,a,e),l=function(e,t,r){let i={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!X(e[a])&&(ro(a)||!0===r&&rn(a)||!t&&!rn(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}(t,"string"==typeof e,s),h=e!==t3.Fragment?{...l,...o,ref:r}:{},{children:u}=t,d=(0,t3.useMemo)(()=>X(u)?u.get():u,[u]);return(0,t3.createElement)(e,{...h,children:d})}(e,r,(o=m.visualElement,h=(0,t3.useRef)(i),(0,t3.useInsertionEffect)(()=>{h.current=i}),u=(0,t3.useRef)(null),(0,t3.useCallback)(e=>{e&&p.onMount?.(e);let t=h.current;if("function"==typeof t)if(e){let r=t(e);"function"==typeof r&&(u.current=r)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e);o&&(e?o.mount(e):o.unmount())}
1,[o])),p,c,t,s)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t3.forwardRef)(o);return l[ry]=e,l}class rq{constructor(e){this.isMounted=!1,this.node=e}update(){}}function rx(e,t,r){let i=e.getProps();return ty(i,t,void 0!==r?r:i.custom,e)}function rS(e,t){if(e?.inherit&&t){let{inherit:r,...i}=e;return{...t,...i}}return e}function rb(e,t){let r=e?.[t]??e?.default??e;return r!==e?rS(r,e):r}let rI=e=>Array.isArray(e);function rD(e,t){let r=e.getValue("willChange");if(X(r)&&r.add)return r.add(t);if(!r&&eS.WillChange){let r=new eS.WillChange("auto");e.addValue("willChange",r),r.add(t)}}let rC=(e,t)=>r=>t(e(r)),rA=(...e)=>e.reduce(rC);function rk(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function rR(e,t){return r=>r>0?t:e}let rM=(e,t,r)=>{let i=e*e,a=r*(t*t-i)+i;return a<0?0:Math.sqrt(a)},rU=[P,w,D];function rV(e){let t=rU.find(t=>t.test(e));if(et(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===D&&(r=function({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,r/=100;let a=0,s=0,n=0;if(t/=100){let i=r<.5?r*(1+t):r+t-r*t,o=2*r-i;a=rk(o,i,e+1/3),s=rk(o,i,e),n=rk(o,i,e-1/3)}else a=s=n=r;return{red:Math.round(255*a),green:Math.round(255*s),blue:Math.round(255*n),alpha:i}}(r)),r}let rO=(e,t)=>{let r=rV(e),i=rV(t);if(!r||!i)return rR(e,t);let a={...r};return e=>(a.red=rM(r.red,i.red,e),a.green=rM(r.green,i.green,e),a.blue=rM(r.blue,i.blue,e),a.alpha=tO(r.alpha,i.alpha,e),w.transform(a))},rj=new Set(["none","hidden"]);function rB(e,t){return r=>tO(e,t,r)}function rN(e){return"number"==typeof e?rB:"string"==typeof e?en(e)?rR:C.test(e)?rO:rG:Array.isArray(e)?rL:"object"==typeof e?C.test(e)?rO:rF:rR}function rL(e,t){let r=[...e],i=r.length,a=e.map((e,r)=>rN(e)(e,t[r]));return e=>{for(let t=0;t<i;t++)r[t]=a[t](e);return r}}function rF(e,t){let r={...e,...t},i={};for(let a in r)void 0!==e[a]&&void 0!==t[a]&&(i[a]=rN(e[a])(e[a],t[a]));return e=>{for(let t in i)r[t]=i[t](e);return r}}let rG=(e,t)=>{let r=O.createTransformer(t),i=U(e),a=U(t);if(!(i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length))return et(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),rR(e,t);if(rj.has(e)&&!a.values.length||rj.has(t)&&!i.values.length)return rj.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return rA(rL(function(e,t){let r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let s=t.types[a],n=e.indexes[s][i[s]],o=e.values[n]??0;r[a]=o,i[s]++}return r}(i,a),a.values),r)};function r$(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tO(e,t,r):rN(e)(e,t)}let rW=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eD.update(t,e),stop:()=>eC(t),now:()=>eA.isProcessing?eA.timestamp:tr.now()}};function rK(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let rH=.01,rz=2,rQ=.005,rY=.5;function rX(e,t){return e*Math.sqrt(1-t*t)}let r_=["duration","bounce"],rJ=["stiffness","damping","mass"];function rZ(e,t){return t.some(t=>void 0!==e[t])}function r0(e=.3,t=.3){let r,i,a,s,n,o,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:d}=l,c=l.keyframes[0],m=l.keyframes[l.keyframes.length-1],p={done:!1,value:c},{stiffness:g,damping:f,mass:y,duration:v,velocity:w,isResolvedFromDuration:P}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rZ(e,rJ)&&rZ(e,r_))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),i=r*r,a=2*h(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:a}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:i=1}){let a,s;et(e$(10));let n=1-t;n=h(.05,1,n),e=h(.01,10,e/1e3),n<1?(a=t=>{let i=t*n,a=i*e;return .001-(i-r)/rX(t,n)*Math.exp(-a)},s=t=>{let i=t*n*e,s=Math.pow(n,2)*Math.pow(t,2)*e,o=Math.exp(-i),l=rX(Math.pow(t,2),n);return(i*r+r-s)*o*(-a(t)+.001>0?-1:1)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),s=t=>e*e*(r-t)*Math.exp(-t*e));let o=function(e,t,r){let i=r;for(let r=1;r<12;r++)i-=e(i)/t(i);return i}(a,s,5/e);if(e=e$(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*i;return{stiffness:t,damping:2*n*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),E=w||0,T=f/(2*Math.sqrt(g*y)),q=m-c,x=Math.sqrt(g/y)/1e3,S=5>Math.abs(q);if(u||(u=S?rH:rz),d||(d=S?rQ:rY),T<1)a=rX(x,T),s=(E+T*x*q)/a,r=e=>
1m-Math.exp(-T*x*e)*(s*Math.sin(a*e)+q*Math.cos(a*e)),n=T*x*s+q*a,o=T*x*q-s*a,i=e=>Math.exp(-T*x*e)*(n*Math.sin(a*e)+o*Math.cos(a*e));else if(1===T){r=e=>m-Math.exp(-x*e)*(q+(E+x*q)*e);let e=E+x*q;i=t=>Math.exp(-x*t)*(x*e*t-E)}else{let e=x*Math.sqrt(T*T-1);r=t=>{let r=Math.exp(-T*x*t),i=Math.min(e*t,300);return m-r*((E+T*x*q)*Math.sinh(i)+e*q*Math.cosh(i))/e};let t=(E+T*x*q)/e,a=T*x*t-q*e,s=T*x*q-t*e;i=t=>{let r=Math.exp(-T*x*t),i=Math.min(e*t,300);return r*(a*Math.sinh(i)+s*Math.cosh(i))}}let b={calculatedDuration:P&&v||null,velocity:e=>e$(i(e)),next:e=>{if(!P&&T<1){let t=Math.exp(-T*x*e),r=Math.sin(a*e),i=Math.cos(a*e),l=m-t*(s*r+q*i);return p.done=Math.abs(e$(t*(n*r+o*i)))<=u&&Math.abs(m-l)<=d,p.value=p.done?m:l,p}let t=r(e);return P?p.done=e>=v:p.done=Math.abs(e$(i(e)))<=u&&Math.abs(m-t)<=d,p.value=p.done?m:t,p},toString:()=>{let e=Math.min(rK(b),2e4),t=e5(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function r1(e,t,r){var i,a;let s=Math.max(t-5,0);return i=r-e(s),(a=t-s)?1e3/a*i:0}function r2({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:n,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,m=e[0],p={done:!1,value:m},g=r*t,f=m+g,y=void 0===n?f:n(f);y!==f&&(g=y-m);let v=e=>-g*Math.exp(-e/i),w=e=>y+v(e),P=e=>{let t=v(e),r=w(e);p.done=Math.abs(t)<=h,p.value=p.done?y:r},E=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var r;d=e,c=r0({keyframes:[p.value,(r=p.value,void 0===o?l:void 0===l||Math.abs(o-r)<Math.abs(l-r)?o:l)],velocity:r
11(w,e,p.value),damping:a,stiffness:s,restDelta:h,restSpeed:u})}};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==d||(t=!0,P(e),E(e)),void 0!==d&&e>=d)?c.next(e-d):(t||P(e),p)}}}r0.applyToOptions=e=>{let t=function(e,t=100,r){let i=r({...e,keyframes:[0,t]}),a=Math.min(rK(i),2e4);return{type:"keyframes",ease:e=>i.next(a*e).value/t,duration:a/1e3}}(e,100,r0);return e.ease=t.ease,e.duration=e$(t.duration),e.type="keyframes",e};let r3=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function r5(e,t,r,i){return e===t&&r===i?ex:a=>0===a||1===a?a:r3(function(e,t,r,i,a){let s,n,o=0;do(s=r3(n=t+(r-t)/2,i,a)-e)>0?r=n:t=n;while(Math.abs(s)>1e-7&&++o<12);return n}(a,0,1,e,r),t,i)}let r4=r5(.42,0,1,1),r6=r5(0,0,.58,1),r9=r5(.42,0,.58,1),r8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,r7=e=>t=>1-e(1-t),ie=r5(.33,1.53,.69,.99),it=r7(ie),ir=r8(it),ii=e=>e>=1?1:(e*=2)<1?.5*it(e):.5*(2-Math.pow(2,-10*(e-1))),ia=e=>1-Math.sin(Math.acos(e)),is=r7(ia),io=r8(ia),il={linear:ex,easeIn:r4,easeInOut:r9,easeOut:r6,circIn:ia,circInOut:io,circOut:is,backIn:it,backInOut:ir,backOut:ie,anticipate:ii},ih=e=>{if(e2(e)){er(e.length);let[t,r,i,a]=e;return r5(t,r,i,a)}return"string"==typeof e?(er(il[e],`Invalid easing type '${e}'`),il[e]):e},iu=(e,t,r)=>{let i=t-e;return 0===i?1:(r-e)/i};function id({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){var a;let s,n=Array.isArray(i)&&"number"!=typeof i[0]?i.map(ih):ih(i),o={done:!1,value:t[0]},l=function(e,t,{clamp:r=!0,ease:i,mixer:a}={}){let s=e.length;if(er(t.length),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let n=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,r){let i=[],a=r||eS.mix||r$,s=e.length-1;for(let r=0;r<s;r++){let s=a(e[r],e[r+1]);t&&(s=rA(Array.isArray(t)?t[r]||ex:t,s)),i.push(s)}return i}(t,i,a),l=o.length,u=r=>{if(n&&r<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(r<e[i+1]);i++);let a=iu(e[i],e[i+1],r);return o[i](a)};return r?t=>u(h(e[0],e[s-1],t)):u}((a=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let a=iu(0,t,i);e.push(tO(r,1,a))}}(s=[0],t.length-1),s),a.map(t=>t*e)),t,{ease:Array.isArray(n)?n:t.map(()=>n||r9).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let ic={decay:r2,inertia:r2,tween:id,keyframes:id,spring:r0};function im(e){"string"==typeof e.type&&(e.type=ic[e.type])}let ip=e=>e/100;class ig extends e0{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tr.now()&&this.tick(tr.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e1.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;im(e);let{type:t=id,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=e,{keyframes:n}=e,o=t||id;o!==id&&"number"!=typeof n[0]&&(this.mixKeyframes=rA(ip,r$(n[0],n[1])),n=[0,100]);let l=o({...e,keyframes:n});"mirror"===a&&(this.mirroredGenerator=o({...e,keyframes:[...n].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=rK(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:i,totalDuration:a,mixKeyframes:s,mirroredGenerator:n,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:d,repeat:c,repeatType:m,repeatDelay:p,type:g,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>a;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=a);let P=this.currentTime,E=i;if(c){let e=Math.min(this.currentTime,a)/o,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,c+1))%2&&("reverse"===m?(r=1-r,p&&(r-=p/o)):"mirror"===m&&(E=n)),P=h(0,1,r)*o}w?(this.delayState.value=d[0],r=this.delayState):r=E.next(P),s&&
1!w&&(r.value=s(r.value));let{done:T}=r;w||null===l||(T=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let q=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return q&&g!==r2&&(r.value=eZ(d,this.options,y,this.speed)),f&&f(r.value),q&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=e$(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return r1(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tr.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=rW,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tr.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,e1.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let iy={anticipate:ii,backInOut:ir,circInOut:io};class iv extends e8{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in iy&&(e.ease=iy[e.ease])}(e),im(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let n=new ig({...s,autoplay:!1}),o=Math.max(10,tr.now()-this.startTime),l=h(0,10,o-10),u=n.sample(o).value,{name:d}=this.options;a&&d&&ez(a,d,u),t.setWithVelocity(n.sample(Math.max(0,o-l)).value,u,l),n.stop()}}let iw=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(O.test(e)||"0"===e)&&!e.startsWith("url("));function iP(e){e.duration=0,e.type="keyframes"}let iE=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,iT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iq=eQ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ix extends e0{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:n,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tr.now();const d={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:a,repeatType:s,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||eB;this.keyframeResolver=new c(n,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,i){let a;this.keyframeResolver=void 0;let{name:s,type:n,velocity:o,delay:l,isHandoff:h,onUpdate:u}=r;this.resolvedAt=tr.now();let d=!0;!function(e,t,r,i){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],n=iw(a,t),o=iw(s,t);return et(`You are trying to animate ${t} from "${a}" to "${s}". "${n?s:a}" is not an animatable value.`),!!n&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||e9(r))&&i)}(e,s,n,o)&&(d=!1,(eS.instantAnimations||!l)&&u?.(eZ(e,r,t)),e[0]=e[e.length-1],iP(r),r.repeat=0);let c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},m=d&&!h&&function(e){let{motionValue:t,name:r,repeatDelay:i,repeatType:a,damping:s,type:n,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:l,transformTemplate:h}=t.owner.getProps();return iq()&&r&&(e7.has(r)||iT.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&iE.test(e[t]))return!0;return!1}(o))&&("transform"!==r||!h)&&!l&&!i&&"mirror"!==a&&0!==s&&"inertia"!==n}(c),p=c.motionValue?.owner?.current;if(m)try{a=new iv({...c,element:p})}catch{a=new ig(c)}else a=new ig(c);a.finished.then(()=>{this.notifyFinished()}).catch(ex),this.pendingTimeline&&(this.stopTimeline=a.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=a}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eV=!0,ej(),eO(),eV=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let iS={type:"spring",stiffness:500,damping:25,restSpeed:10},ib={type:"keyframes",duration:.8},iI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iD=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iC=(e,t,r,i={},a,s)=>n=>{let o=rb(i,e)||{},h=o.delay||i.delay||0,{elapsed:u=0}=i;u-=e$(h);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{n(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:a};!function(e){for(let t in e)if(!iD.has(t))return!0;return!1}(o)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?ib:l.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:iS:iI)(e,d)),d.duration&&(d.duration=e$(d.duration)),d.repeatDelay&&(d.repeatDelay=e$(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(iP(d),0===d.delay&&(c=!0)),(eS.instantAnimations||eS.skipAnimations||a?.shouldSkipAnimations)&&(c=!0,iP(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,c&&!s&&void 0!==t.get()){let e=eZ(d.keyframes,o);if(void 0!==e)return void eD.update(()=>{d.onUpdate(e),d.onComplete()})}return o.isSync?new ig(d):new ix(d)};function iA(e,t,{delay:r=0,transitionOverride:i,type:a}={}){let{transition:s,transitionEnd:n,...o}=t,l=e.getDefaultTransition();s=s?rS(s,l):l;let h=s?.reduceMotion;i&&(s=i);let u=[],d=a&&e.animationState&&e.animationState.getState()[a];for(let t in o){let i=e.getValue(t,e.latestValues[t]??null),a=o[t];if(void 0===a||d&&function({protectedKeys:e,needsAnimating:t},r){let i=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,i}(d,t))continue;let n={delay:r,...rb(s||{},t)},l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(a)&&a===l&&!n.velocity){eD.update(()=>i.set(a));continue}let c=!1;if(window.MotionHandoffAnimation){let r=e.props[rv];if(r){let e=window.MotionHandoffAnimation(r,t,eD);null!==e&&(n.startTime=e,c=!0)}}rD(e,t);let m=h??e.shouldReduceMotion;i.start(iC(t,i,a,m&&_.has(t)?{type:!1}:n,e,c));let p=i.animation;p&&u.push(p)}if(n){let t=()=>eD.update(()=>{n&&function(e,t){let{transitionEnd:r={},transition:i={},...a}=rx(e,t)||{};for(let t in a={...a,...r}){var s;let r=rI(s=a[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ta(r))}}(e,n)});u.length?Promise.all(u).then(t):t()}return u}function ik(e,t,r,i=0,a=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),n=e.size,o=(n-1)*i;return"function"==typeof r?r(s,n):1===a?s*i:o-s*i}function iR(e,t,r={}){let i=rx(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(a=r.transitionOverride);let s=i?()=>Promise.all(iA(e,i,r)):()=>Promise.resolve(),n=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:n,staggerDirection:o}=a;return function(e,t,r=0,i=0,a=0,s=1,n){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(iR(l,t,{...n,delay:r+("function"==typeof i?0:i)+ik(e.variantChildren,l,i,a,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,i,s,n,o,r)}:()=>Promise.resolve(),{when:o}=a;if(!o)return Promise.all([s(),n(r.delay)]);{let[e,t]="beforeChildren"===o?[s,n]:[n,s];return e().then(()=>t())}}let iM=tu.length;function iU(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}let iV=[...th].reverse(),iO=th.length;function ij(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iB(){return{animate:ij(!0),whileInView:ij(),whileHover:ij(),whileTap:ij(),whileDrag:ij(),whileFocus:ij(),exit:ij()}}class iN extends rq{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>iR(e,t,r)));else if("string"==typeof t)i=iR(e,t,r);else{let a="function"==typeof t?rx(e,t,r.custom):t;i=Promise.all(iA(e,a,r))}return i.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,r))),r=iB(),i=!0,a=!1,s=t=>(r,i)=>{let a=rx(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...i}=a;r={...r,...i,...t}}return r};function n(n){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<iM;e++){let i=tu[e],a=t.props[i];(tl(a)||!1===a)&&(r[i]=a)}return r}(e.parent)||{},h=[],u=new Set,d={},c=1/0;for(let t=0;t<iO;t++){var m,p;let g=iV[t],f=r[g],y=void 0!==o[g]?o[g]:l[g],v=tl(y),w=g===n?f.isActive:null;!1===w&&(c=t);let P=y===l[g]&&y!==o[g]&&v;if(P&&(i||a)&&e.manuallyAnimateOnMount&&(P=!1),f.protectedKeys={...d},!f.isActive&&null===w||!y&&!f.prevProp||to(y)||"boolean"==typeof y)continue;if("exit"===g&&f.isActive&&!0!==w){f.prevResolvedValues&&(d={...d,...f.prevResolvedValues});continue}let E=(m=f.prevProp,"string"==typeof(p=y)?p!==m:!!Array.isArray(p)&&!iU(p,m)),T=E||g===n&&f.isActive&&!P&&v||t>c&&v,q=!1,x=Array.isArray(y)?y:[y],S=x.reduce(s(g),{});!1===w&&(S={});let{prevResolvedValues:b={}}=f,I={...b,...S},D=t=>{T=!0,u.has(t)&&(q=!0,u.delete(t)),f.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in I){let t=S[e],r=b[e];if(!d.hasOwnProperty(e))(rI(t)&&rI(r)?iU(t,r):t===r)?void 0!==t&&u.has(e)?D(e):f.protectedKeys[e]=!0:null!=t?D(e):u.add(e)}f.prevProp=y,f.prevResolvedValues=S,f.isActive&&(d={...d,...S}),(i||a)&&e.blockInitialAnimation&&(T=!1);let C=P&&E,A=!C||q;T&&A&&h.push(...x.map(t=>{let r={type:g};if("string"==typeof t&&(i||a)&&!C&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,a=rx(i,t);if(i.enteringChildren&&a){let{delayChildren:t}=a.transition||{};r.delay=ik(i.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(u.size){let t={};if("boolean"!=typeof o.initial){let r=rx(e,Array.isArray(o.initial)?o.initial[0]:o.initial);r&&r.transition&&(t.transition=r.transition)}u.forEach(r=>{let i=e.getBaseTarget(r),a=e.getValue(r);a&&(a.liveStyle=!0),t[r]=i??null}),h.push({animation:t})}let g=!!h.length;return i&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,a=!1,g?t(h):Promise.resolve()}return{animateChanges:n,setActive:function(t,i){if(r[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),r[t].isActive=i;let a=n(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=iB(),a=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();to(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iL=0;class iF extends rq{constructor(){super(...arguments),this.id=iL++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){let r=rx(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...i}=r;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let iG={x:!1,y:!1};function i$(e){return[e("x"),e("y")]}function iW(e){return e.max-e.min}function iK(e,t,r,i=.5){e.origin=i,e.originPoint=tO(t.min,t.max,e.origin),e.scale=iW(r)/iW(t),e.translate=tO(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function iH(e,t,r,i){iK(e.x,t.x,r.x,i?i.originX:void 0),iK(e.y,t.y,r.y,i?i.originY:void 0)}function iz(e,t,r,i=0){e.min=(i?tO(r.min,r.max,i):r.min)+t.min,e.max=e.min+iW(t)}function iQ(e,t,r,i=0){let a=i?tO(r.min,r.max,i):r.min;e.min=t.min-a,e.max=e.min+iW(t)}
1function iY(e,t,r,i){iQ(e.x,t.x,r.x,i?.x),iQ(e.y,t.y,r.y,i?.y)}let iX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),i_=new Set(["INPUT","SELECT","TEXTAREA"]);function iJ(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}var iZ=r(27900);function i0(e){return(0,iZ.G)(e)&&"ownerSVGElement"in e}function i1(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let a=r?.[e]??i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(e=>null!=e)}let i2=new WeakMap,i3=(e,t,r)=>(i,a)=>a&&a[0]?a[0][e+"Size"]:i0(i)&&"getBBox"in i?i.getBBox()[t]:i[r],i5=i3("inline","width","offsetWidth"),i4=i3("block","height","offsetHeight");function i6({target:e,borderBoxSize:t}){i2.get(e)?.forEach(r=>{r(e,{get width(){return i5(e,t)},get height(){return i4(e,t)}})})}function i9(e){e.forEach(i6)}let i8=new Set;function i7(e,t){let r;return"function"==typeof e?(i8.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};i8.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{i8.delete(e),i8.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!a&&"u">typeof ResizeObserver&&(a=new ResizeObserver(i9)),(r=i1(e)).forEach(e=>{let r=i2.get(e);r||(r=new Set,i2.set(e,r)),r.add(t),a?.observe(e)}),()=>{r.forEach(e=>{let r=i2.get(e);r?.delete(t),r?.size||a?.unobserve(e)})})}let ae=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function at(e){return{point:{x:e.pageX,y:e.pageY}}}function ar(e,t,r,i){return iJ(e,t,e=>ae(e)&&r(e,at(e)),i)}let ai=({current:e})=>e?e.ownerDocument.defaultView:null,aa=(e,t)=>Math.abs(e-t),as=new Set(["auto","scroll"]);class an{constructor(e,t,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3,element:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ao(this.lastRawMoveEventInfo,this.transformPagePoint));let r=ah(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,a=(e=r.offset,t={x:0,y:0},Math.sqrt(aa(e.x,t.x)**2+aa(e.y,t.y)**2)>=this.distanceThreshold);if(!i&&!a)return;let{point:s}=r,{timestamp:n}=eA;this.history.push({...s,timestamp:n});let{onStart:o,onMove:l}=this.handlers;
1i||(o&&o(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ao(t,this.transformPagePoint),eD.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:a}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&a&&a(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=ah("pointercancel"===e.type?this.lastMoveEventInfo:ao(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,s),i&&i(e,s)},!ae(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=ao(at(e),this.transformPagePoint),{point:l}=o,{timestamp:h}=eA;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=t;u&&u(e,ah(o,this.history)),this.removeListeners=rA(ar(this.contextWindow,"pointermove",this.handlePointerMove),ar(this.contextWindow,"pointerup",this.handlePointerUp),ar(this.contextWindow,"pointercancel",this.handlePointerUp)),n&&this.startScrollTracking(n)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(as.has(e.overflowX)||as.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:i.x-t.x,y:i.y-t.y};(0!==a.x||0!==a.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,i),eD.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eC(this.updatePoint)}}function ao(e,t){return t?{point:t(e.point)}:e}function al(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ah({point:e},t){return{point:e,delta:al(e,au(t)),offset:al(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,i=au(e);for(;t>=0&&(r=e[t],!(i.timestamp-r.timestamp>e$(.1)));)t--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*e$(.1)&&(r=e[1]);let a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};let s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function au(e){return e[e.length-1]}function ad(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ac(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function am(e,t,r){return{min:ap(e,t),max:ap(e,r)}}function ap(e,t){return"number"==typeof e?e:e[t]||0}let ag=new WeakMap;class af{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let a=e=>{t&&this.snapToCursor(at(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:r,dragPropagation:i,onDragStart:a}=this.getProps();if(r&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(iG[e])return null;else return iG[e]=!0,()=>{iG[e]=!1};return iG.x||iG.y?null:(iG.x=iG.y=!0,()=>{iG.x=iG.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i$
1(e=>{let t=this.getAxisMotionValue(e).get()||0;if(q.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[e];i&&(t=iW(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),a&&eD.update(()=>a(e,t),!1,!0),rD(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},n=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:a,onDrag:s}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:n}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(n),null!==this.currentDirection&&a&&a(this.currentDirection);return}this.updateAxis("x",t.point,n),this.updateAxis("y",t.point,n),this.visualElement.render(),s&&eD.update(()=>s(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new an(e,{onSessionStart:a,onStart:s,onMove:n,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:ai(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:s}=i;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&eD.postRender(()=>n(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:i}=this.getProps();if(!r||!av(e,i,this.currentDirection))return;let a=this.getAxisMotionValue(e),s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:r},i){return void 0!==t&&e<t?e=i?tO(t,e,i.min):Math.max(e,t):void 0!==r&&e>r&&(e=i?tO(r,e,i.max):Math.min(e,r)),e}(s,this.constraints[e],this.elastic[e])),a.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&rP(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:i,right:a}){return{x:ad(e.x,r,a),y:ad(e.y,t,i)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:am(e,"left","right"),y:am(e,"top","bottom")}}(t),i!==this.constraints&&!rP(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&i$(e=>{var t,i;let a;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],i=this.constraints[e],a={},void 0!==i.min&&(a.min=i.min-t.min),void 0!==i.max&&(a.max=i.max-t.min),a))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rP(t))return!1;let i=t.current;er();let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;let s=function(e,t,r){let i=t0(e,r),{scroll:a}=t;return a&&(tX(i.x,a.offset.x),tX(i.y,a.offset.y)),i}(i,a.root,this.visualElement.getTransformPagePoint()),n=(e=a.layout.layoutBox,{x:ac(e.x,s.x),y:ac(e.y,s.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(n));this.hasMutatedConstraints=!!e,e&&(n=tG(e))}return n}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:n}=this.getProps(),o=this.constraints||{};return Promise.all(i$(n=>{if(!av(n,t,this.currentDirection))return;let l=o&&o[n]||{};(!0===s||s===n)&&(l={min:0,max:0});let h={type:"inertia",velocity:r?e[n]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(n,h)})).then(n)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return rD(this.visualElement,e),r.start(iC(e,r,0,t,this.visualElement,!1))}stopAnimation(){i$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){i$(t=>{let{drag:r}=this.getProps();if(!av(t,r,this.currentDirection))return;let{projection:i}=this.visualElement,a=this.getAxisMotionValue(t);if(i&&i.layout){let{min:r,max:s}=i.layout.layoutBox[t],n=a.get()||0;a.set(e[t]-tO(r,s,.5)+n)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rP(t)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};i$(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,a;let s,n,o,l=t.get();i[e]=(r={min:l,max:l},a=this.constraints[e],s=.5,n=iW(r),(o=iW(a))>n?s=iu(a.min,a.max-n,r.min):n>o&&(s=iu(r.min,r.max-o,a.min)),h(0,1,s))}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),i$(t=>{if(!av(t,e,null))return;let r=this.getAxisMotionValue(t),{min:a,max:s}=this.constraints[t];r.set(tO(a,s,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;ag.set(this.visualElement,this);let t=this.visualElement.current,r=ar(t,"pointerdown",e=>{let{drag:r,dragListener:i=!0}=this.getProps(),a=e.target,s=a!==t&&(i_.has(a.tagName)||!0===a.isContentEditable);r&&i&&!s&&this.start(e)}),i=()=>{var r,i,a;let s,n,{dragConstraints:o}=this.getProps();rP(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,
1i=o.current,s=i7(r,ay(a=()=>this.scalePositionWithinConstraints())),n=i7(i,ay(a)),e=()=>{s(),n()}))},{projection:a}=this.visualElement,s=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),eD.read(i);let n=iJ(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(i$(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),r(),s(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=.35,dragMomentum:n=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:n}}}function ay(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function av(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class aw extends rq{constructor(e){super(e),this.removeGroupControls=ex,this.removeListeners=ex,this.controls=new af(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ex}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let aP=e=>(t,r)=>{e&&eD.update(()=>e(t,r),!1,!0)};class aE extends rq{constructor(){super(...arguments),this.removePointerDownListener=ex}onPointerDown(e){this.session=new an(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ai(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:aP(e),onStart:aP(t),onMove:aP(r),onEnd:(e,t)=>{delete this.session,i&&eD.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=ar(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let aT={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var aq=r(5223);let ax=!1;class aS extends t3.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=e;a&&(t.group&&t.group.add(a),r&&r.register&&i&&r.register(a),ax&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),aT.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),ax=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==a?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||eD.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),te.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;ax=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ab(e){let[t,r]=(0,aq.xQ)(),i=(0,t3.useContext)(t9.L);return(0,t6.jsx)(aS,{...e,layoutGroup:i,switchLayoutGroup:(0,t3.useContext)(rw),isPresent:t,safeToRemove:r})}let aI=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],aD=aI.length,aC=e=>"string"==typeof e?parseFloat(e):e,aA=e=>"number"==typeof e||x.test(e);function ak(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let aR=aU(0,.5,is),aM=aU(.5,.95,ex);function aU(e,t,r){return i=>i<e?0:i>t?1:r(iu(e,t,i))}function aV(e,t){e.min=t.min,e.max=t.max}function aO(e,t){aV(e.x,t.x),aV(e.y,t.y)}function aj(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function aB(e,t,r,i,a){return e-=t,e=i+1/r*(e-i),void 0!==a&&(e=i+1/a*(e-i)),e}function aN(e,t,[r,i,a],s,n){!function(e,t=0,r=1,i=.5,a,s=e,n=e){if(q.test(t)&&(t=parseFloat(t),t=tO(n.min,n.max,t/100)-n.min),"number"!=typeof t)return;let o=tO(s.min,s.max,i);e===s&&(o-=t),e.min=aB(e.min,t,r,o,a),e.max=aB(e.max,t,r,o,a)}(e,t[r],t[i],t[a],t.scale,s,n)}let aL=["x","scaleX","originX"],aF=["y","scaleY","originY"];
1function aG(e,t,r,i){aN(e.x,t,aL,r?r.x:void 0,i?i.x:void 0),aN(e.y,t,aF,r?r.y:void 0,i?i.y:void 0)}function a$(e){return 0===e.translate&&1===e.scale}function aW(e){return a$(e.x)&&a$(e.y)}function aK(e,t){return e.min===t.min&&e.max===t.max}function aH(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function az(e,t){return aH(e.x,t.x)&&aH(e.y,t.y)}function aQ(e){return iW(e.x)/iW(e.y)}function aY(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aX{constructor(){this.members=[]}add(e){eW(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let i=r.instance;i&&!1!==i.isConnected||r.snapshot||(eK(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(eK(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=r.options,{layoutDependency:a}=e.options;(void 0===i||i!==a)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let a_=(e,t)=>e.depth-t.depth;class aJ{constructor(){this.children=[],this.isDirty=!1}add(e){eW(this.children,e),this.isDirty=!0}remove(e){eK(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(a_),this.isDirty=!1,this.children.forEach(e)}}let aZ=["","X","Y","Z"],a0=0;function a1(e,t,r,i){let{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function a2({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(e={},r=t?.()){this.id=a0++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(a4),this.nodes.forEach(sa),this.nodes.forEach(ss),this.nodes.forEach(a6)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new aJ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eH),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=i0(t)&&!(i0(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||r)&&(this.isLayoutDirty=!0),e){let r,i=0,a=()=>this.root.updateBlockedByResize=!1;eD.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==i){let t,s;i=e,this.root.updateBlockedByResize=!0,r&&r(),t=tr.now(),s=({timestamp:e})=>{let r=e-t;r>=250&&(eC(s),a())},eD.setup(s,!0),r=()=>eC(s),aT.hasAnimatedSinceResize&&(aT.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(si))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||a.getDefaultTransition()||sd,{onLayoutAnimationStart:n,onLayoutAnimationComplete:o}=a.getProps(),l=!this.targetLayout||!az(this.targetLayout,i),h=!t&&r;if(this.options.layoutRoot||this.resumeFrom||h||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...rb(s,"layout"),onPlay:n,onComplete:o};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h)}else t||si(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eC(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sn),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let i=r.props[rv];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",eD,!(e||r))}let{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&e(a)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(a7),this.nodes.forEach(a8);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(se);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(st),this.nodes.forEach(sr),this.nodes.forEach(a3),this.nodes.forEach(a5)):this.nodes.forEach(se),this.clearAllSnapshots();let e=tr.now();eA.delta=h(0,1e3/60,e-eA.timestamp),eA.timestamp=e,eA.isProcessing=!0,ek.update.process(eA),ek.preRender.process(eA),ek.render.process(eA),eA.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,te.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(a9),this.sharedNodes.forEach(so)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eD.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eD.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iW(this.snapshot.measuredBox.x)||iW(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Y()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!aW(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||tK(this.latestValues)||s)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),i=this.removeElementScroll(r);return e&&(i=this.removeTransform(i)),sp((t=i).x),sp(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sf))){let{scroll:e}=this.root;e&&(tX(t.x,e.offset.x),tX(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(aO(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let i=this.path[r],{scroll:a,options:s}=i;i!==this.root&&a&&s.layoutScroll&&(a.wasRoot&&aO(t,e),tX(t.x,a.offset.x),tX(t.y,a.offset.y))}return t}applyTransform(e,t=!1,r){let i=r||Y();aO(i,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(tX(i.x,-r.scroll.offset.x),tX(i.y,-r.scroll.offset.y)),tK(r.latestValues)&&tZ(i,r.latestValues,r.layout?.layoutBox)}return tK(this.latestValues)&&tZ(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=Y();aO(t,e);for(let e=0;e<this.path.length;e++){let r,i=this.path[e];tK(i.latestValues)&&(i.instance&&(tW(i.latestValues)&&i.updateSnapshot(),aO(r=Y(),i.measurePageBox())),aG(t,i.latestValues,i.snapshot?.layoutBox,r))}return tK(this.latestValues)&&aG(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eA.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=eA.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var n,o,l,h;this.forceRelativeParentToResolveTarget(),n=this.target,o=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,iz(n.x,o.x,l.x,h?.x),iz(n.y,o.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):aO(this.target,this.layout.layoutBox),tY(this.target,this.targetDelta)):aO(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tW(this.parent.latestValues)||tH(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),iY(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),aO(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eA.timestamp&&(r=!1),r)return;let{layout:i,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||a))return;aO(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,n=this.treeScale.y;!function(e,t,r,i=!1){let a,s,n=r.length;if(n){t.x=t.y=1;for(let o=0;o<n;o++){s=(a=r[o]).projectionDelta;let{visualElement:n}=a.options;(!n||!n.props.style||"contents"!==n.props.style.display)&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(tX(e.x,-a.scroll.offset.x),tX(e.y,-a.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,tY(e,s)),i&&tK(a.latestValues)&&tZ(e,a.latestValues,a.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(aj(this.prevProjectionDelta.x,this.projectionDelta.x),aj(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iH(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===n&&aY(this.projectionDelta.x,this.prevProjectionDelta.x)&&aY(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=z(),this.projectionDelta=z(),this.projectionDeltaWithTransform=z()}setAnimationOrigin(e,t=!1){let r,i=this.snapshot,a=i?i.latestValues:{},s={...this.latestValues},n=z();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Y(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(su));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(sl(n.x,e.x,i),sl(n.y,e.y,i),this.setTargetDelta(n),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,m,p,g,f;iY(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,p=this.relativeTargetOrigin,g=o,f=i,sh(m.x,p.x,g.x,f),sh(m.y,p.y,g.y,f),r&&(h=this.relativeTarget,c=r,aK(h.x,c.x)&&aK(h.y,c.y))&&(this.isProjectionDirty=!1),r||(r=Y()),aO(r,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,r,i,a,s){a?(e.opacity=tO(0,r.opacity??1,aR(i)),e.opacityExit=tO(t.opacity??1,0,aM(i))):s&&(e.opacity=tO(t.opacity??1,r.opacity??1,i));for(let a=0;a<aD;a++){let s=aI[a],n=ak(t,s),o=ak(r,s);(void 0!==n||void 0!==o)&&(n||(n=0),o||(o=0),0===n||0===o||aA(n)===aA(o)?(e[s]=Math.max(tO(aC(n),aC(o),i),0),(q.test(o)||q.test(n))&&(e[s]+="
1%")):e[s]=o)}(t.rotate||r.rotate)&&(e.rotate=tO(t.rotate||0,r.rotate||0,i))}(s,a,this.latestValues,i,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eD.update(()=>{var t,r,i;let a;aT.hasAnimatedSinceResize=!0,e1.layout++,this.motionValue||(this.motionValue=ta(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,r=[0,1e3],i={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e1.layout--},onComplete:()=>{e1.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(a=X(t)?t:ta(t)).start(iC("",a,r,i)),a.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:i,latestValues:a}=e;if(t&&r&&i){if(this!==e&&this.layout&&i&&sg(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||Y();let t=iW(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let i=iW(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+i}aO(t,r),tZ(t,a),iH(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new aX),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let i=this.getStack();i&&i.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let i={};r.z&&a1("z",e,i,this.animationValues);for(let t=0;t<aZ.length;t++)a1(`rotate${aZ[t]}`,e,i,this.animationValues),a1(`skew${aZ[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=rl(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rl(t?.pointerEvents)||""),this.hasProjected&&!tK(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let a=i.animationValues||i.latestValues;this.applyTransformsToTarget();let s=function(e,t,r){let i="",a=e.x.translate/t.x,s=e.y.translate/t.y,n=r?.z||0;if((a||s||n)&&(i=`translate3d(${a}px, ${s}px, ${n}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:a,rotateY:s,skewX:n,skewY:o}=r;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),a&&(i+=`rotateX(${a}deg) `),s&&(i+=`rotateY(${s}deg) `),n&&(i+=`skewX(${n}deg) `),o&&(i+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(i+=`scale(${o}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);r&&(s=r(a,s)),e.transform=s;let{x:n,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*n.origin}% ${100*o.origin}% 0`,i.animationValues?e.opacity=i===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:e.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,tj){if(void 0===a[t])continue;let{correct:r,applyTo:n,isCSSVariable:o}=tj[t],l="none"===s?a[t]:r(a[t],i);if(n){let t=n.length;for(let r=0;r<t;r++)e[n[r]]=l}
1else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=i===this?rl(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(a8),this.root.sharedNodes.clear()}}}function a3(e){e.updateLayout()}function a5(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;if("size"===a)i$(e=>{let i=s?t.measuredBox[e]:t.layoutBox[e],a=iW(i);i.min=r[e].min,i.max=i.min+a});else if("x"===a||"y"===a){let e="x"===a?"y":"x";aV(s?t.measuredBox[e]:t.layoutBox[e],r[e])}else sg(a,t.layoutBox,r)&&i$(i=>{let a=s?t.measuredBox[i]:t.layoutBox[i],n=iW(r[i]);a.max=a.min+n,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+n)});let n=z();iH(n,r,t.layoutBox);let o=z();s?iH(o,e.applyTransform(i,!0),t.measuredBox):iH(o,r,t.layoutBox);let l=!aW(n),h=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:a,layout:s}=i;if(a&&s){let n=e.options.layoutAnchor||void 0,o=Y();iY(o,t.layoutBox,a.layoutBox,n);let l=Y();iY(l,r,s.layoutBox,n),az(o,l)||(h=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:o,layoutDelta:n,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function a4(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function a6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function a9(e){e.clearSnapshot()}function a8(e){e.clearMeasurements()}function a7(e){e.isLayoutDirty=!0,e.updateLayout()}function se(e){e.isLayoutDirty=!1}function st(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sr(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function si(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sa(e){e.resolveTargetDelta()}function ss(e){e.calcProjection()}function sn(e){e.resetSkewAndRotation()}function so(e){e.removeLeadSnapshot()}function sl(e,t,r){e.translate=tO(t.translate,0,r),e.scale=tO(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function sh(e,t,r,i){e.min=tO(t.min,r.min,i),e.max=tO(t.max,r.max,i)}function su(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sd={duration:.45,ease:[.4,0,.1,1]},sc=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sm=sc("applewebkit/")&&!sc("chrome/")?Math.round:ex;function sp(e){e.min=sm(e.min),e.max=sm(e.max)}function sg(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(aQ(t)-aQ(r)))}function sf(e){return e!==e.root&&e.scroll?.wasRoot}let sy=a2({attachResizeListener:(e,t)=>iJ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sv={current:void 0},sw=a2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sv.current){let e=new sy({});e.mount(window),e.setOptions({layoutScroll:!0}),sv.current=e}return sv.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sP(e,t){let r=i1(e),i=new AbortController;return[r,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function sE(e,t,r){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===r);let a=i["onHover"+r];a&&eD.postRender(()=>a(t,at(t)))}class sT extends rq{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,a,s]=sP(e,r);
1return i.forEach(e=>{let r,i=!1,s=!1,n=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},o=e=>{i=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),s&&(s=!1,n(e))},l=e=>{if("touch"!==e.pointerType){if(i){s=!0;return}n(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||iG.x||iG.y)return;s=!1;let n=t(e,i);"function"==typeof n&&(r=n,e.addEventListener("pointerleave",l,a))},a),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",o,a),window.addEventListener("pointercancel",o,a)},a)}),s}(e,(e,t)=>(sE(this.node,t,"Start"),e=>sE(this.node,e,"End"))))}unmount(){}}class sq extends rq{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rA(iJ(this.node.current,"focus",()=>this.onFocus()),iJ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var sx=r(37116);let sS=(e,t)=>!!t&&(e===t||sS(e,t.parentElement)),sb=new WeakSet;function sI(e){return t=>{"Enter"===t.key&&e(t)}}function sD(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sC(e){return ae(e)&&!(iG.x||iG.y)}let sA=new WeakSet;function sk(e,t,r){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===r);let a=i["onTap"+("End"===r?"":r)];a&&eD.postRender(()=>a(t,at(t)))}class sR extends rq{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[i,a,s]=sP(e,r),n=e=>{let i=e.currentTarget;if(!sC(e)||sA.has(e))return;sb.add(i),r.stopPropagation&&sA.add(e);let s=t(i,e),n=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sb.has(i)&&sb.delete(i),sC(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{n(e,i===window||i===document||r.useGlobalTarget||sS(i,e.target))},l=e=>{n(e,!1)};window.addEventListener("pointerup",o,a),window.addEventListener("pointercancel",l,a)};return i.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",n,a),(0,sx.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let i=sI(()=>{if(sb.has(r))return;sD(r,"down");let e=sI(()=>{sD(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>sD(r,"cancel"),t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)})(e,a)),iX.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sk(this.node,t,"Start"),(e,{success:t})=>sk(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}let sM=new WeakMap,sU=new WeakMap,sV=e=>{let t=sM.get(e.target);t&&t(e)},sO=e=>{e.forEach(sV)},sj={some:0,all:1};class sB extends rq{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:i,margin:a,amount:s="some",once:n}=r,o={root:i?i.current:void 0,rootMargin:a,threshold:"number"==typeof s?s:sj[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,n&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),a=t?r:i;a&&a(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let r=e||document;sU.has(r)||sU.set(r,{});let i=sU.get(r),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(sO,{root:e,...t})),i[a]}(o),sM.set(e,l),t.observe(e),()=>{sM.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let sN=function(e,t){if("u"<typeof Proxy)return rT;let r=new Map,i=(r,i)=>rT(r,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(a,s)=>"create"===s?i:(r.has(s)||r.set(s,rT(s,void 0,e,t)),r.get(s))})}({animation:{Feature:iN},exit:{Feature:iF},inView:{Feature:sB},tap:{Feature:sR},focus:{Feature:sq},hover:{Feature:sT},pan:{Feature:aE},drag:{Feature:aw,ProjectionNode:sw,MeasureLayout:ab},layout:{ProjectionNode:sw,MeasureLayout:ab}},(e,t)=>t.isSVG??t4(e)?new tF(t):new t1(t,{allowProjection:e!==t3.Fragment}))},64320:(e,t,r)=>{r.d(t,{t:()=>i});let i=(0,r(7620).createContext)(null)},74206:(e,t,r)=>{r.d(t,{L:()=>i});let i=(0,r(7620).createContext)({})},98971:(e,t,r)=>{r.d(t,{N:()=>w});var i=r(54568),a=r(7620),s=r(74206),n=r(37690),o=r(5651),l=r(64320),h=r(37116),u=r(35513);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class c extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,h.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,h.s)(e)&&e.offsetWidth||0,i=(0,h.s)(e)&&e.offsetHeight||0,a=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=r-s.width-s.left,s.bottom=i-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:t,anchorX:r,anchorY:s,root:n,pop:o}){let l=(0,a.useId)(),h=(0,a.useRef)(null),p=(0,a.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=(0,a.useContext)(u.Q),f=function(...e){return a.useCallback(function(...e){return t=>{let r=!1,i=e.map(e=>{let i=d(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof r?r():d(e[t],null)}}}}(...e),e)}(h,e.props?.ref??e?.ref);return(0,a.useInsertionEffect)(()=>{let{width:e,height:i,top:a,left:u,right:d,bottom:c}=p.current;if(t||!1===o||!h.current||!e||!i)return;
1let m="left"===r?`left: ${u}`:`right: ${d}`,f="bottom"===s?`bottom: ${c}`:`top: ${a}`;h.current.dataset.motionPopId=l;let y=document.createElement("style");g&&(y.nonce=g);let v=n??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${l}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${i}px !important; 6 ${m}px !important; 7 ${f}px !important; 8 } 9 `),()=>{h.current?.removeAttribute("data-motion-pop-id"),v.contains(y)&&v.removeChild(y)}},[t]),(0,i.jsx)(c,{isPresent:t,childRef:h,sizeRef:p,pop:o,children:!1===o?e:a.cloneElement(e,{ref:f})})}let p=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:o,presenceAffectsLayout:h,mode:u,anchorX:d,anchorY:c,root:p})=>{let f=(0,n.M)(g),y=(0,a.useId)(),v=!0,w=(0,a.useMemo)(()=>(v=!1,{id:y,initial:t,isPresent:r,custom:o,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;s&&s()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[r,f,s]);return h&&v&&(w={...w}),(0,a.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[r]),a.useEffect(()=>{r||f.size||!s||s()},[r]),e=(0,i.jsx)(m,{pop:"popLayout"===u,isPresent:r,anchorX:d,anchorY:c,root:p,children:e}),(0,i.jsx)(l.t.Provider,{value:w,children:e})};function g(){return new Map}var f=r(5223);let y=e=>e.key||"";function v(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let w=({children:e,custom:t,initial:r=!0,onExitComplete:l,presenceAffectsLayout:h=!0,mode:u="sync",propagate:d=!1,anchorX:c="left",anchorY:m="top",root:g})=>{let[w,P]=(0,f.xQ)(d),E=(0,a.useMemo)(()=>v(e),[e]),T=d&&!w?[]:E.map(y),q=(0,a.useRef)(!0),x=(0,a.useRef)(E),S=(0,n.M)(()=>new Map),b=(0,a.useRef)(new Set),[I,D]=(0,a.useState)(E),[C,A]=(0,a.useState)(E);(0,o.E)(()=>{q.current=!1,x.current=E;for(let e=0;e<C.length;e++){let t=y(C[e]);T.includes(t)?(S.delete(t),b.current.delete(t)):!0!==S.get(t)&&S.set(t,!1)}},[C,T.length,T.join("-")]);let k=[];if(E!==I){let e=[...E];for(let t=0;t<C.length;t++){let r=C[t],i=y(r);T.includes(i)||(e.splice(t,0,r),k.push(r))}return"wait"===u&&k.length&&(e=k),A(v(e)),D(E),null}let{forceRender:R}=(0,a.useContext)(s.L);return(0,i.jsx)(i.Fragment,{children:C.map(e=>{let a=y(e),s=(!d||!!w)&&(E===C||T.includes(a));return(0,i.jsx)(p,{isPresent:s,initial:(!q.current||!!r)&&void 0,custom:t,presenceAffectsLayout:h,mode:u,root:g,onExitComplete:s?void 0:()=>{if(b.current.has(a)||!S.has(a))return;b.current.add(a),S.set(a,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(R?.(),A(x.current),d&&P?.(),l&&l())},anchorX:c,anchorY:m,children:e},a)})})}}}]);
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.