"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36069],{24858:(e,t,r)=>{r.d(t,{s:()=>c});var n=r(4604),a=r(30192),u=r(55117);function l(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&(0,a.U)(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{l(e,t)})})}function s(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,a){(0,n.V)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let l=[];return t.forEach(e=>{l.push((0,u._)(e,r,{transitionOverride:a}))}),Promise.all(l)},set:r=>((0,n.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?l(t,n):"string"==typeof n?l(t,[n]):(0,a.U)(t,n)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}var o=r(4095),i=r(18624);let c=function(){let e=(0,o.M)(s);return(0,i.E)(e.mount,[]),e}},35034:(e,t,r)=>{r.d(t,{l:()=>P});var n=r(4095),a=r(77169),u=r(32863),l=r(6566),s=r(20839),o=r(22677),i=r(79899),c=r(38126),f=r(93748),d=r(52668),h=r(26738);function p(e){return"object"==typeof e&&!Array.isArray(e)}function v(e,t,r,n){return"string"==typeof e&&p(t)?(0,h.KJ)(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}var m=r(38995);function g(e,t,r,n){var a;return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?r:null!=(a=n.get(t))?a:e}var y=r(26621);function E(e,t){return(0,y.h)(e)?e[((e,t,r)=>{let n=t-e;return((r-e)%n+n)%n+e})(0,e.length,t)]:e}var b=r(68290),C=r(28727);function M(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}var k=r(4604);function w(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function I(e,t){return t[e]||(t[e]=[]),t[e]}let S=e=>"number"==typeof e,A=e=>e.every(S);var L=r(85117),x=r(18840),O=r(33855),R=r(88651),V=r(60771),j=r(69867),N=r(16305);class F extends N.B{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let r=e[t];if("string"==typeof r||"number"==typeof r)return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,j.ge)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function D(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=(0,O.x)(e)?new R.l(t):new V.M(t);r.mount(e),L.C.set(e,r)}function W(e){let t=new F({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),L.C.set(e,t)}var _=r(47966);function B(e,t,r,n){let a=[];if((0,d.S)(e)||"number"==typeof e||"string"==typeof e&&!p(t))a.push((0,_.z)(e,p(t)&&t.default||t,r&&r.default||r));else{let u=v(e,t,n),l=u.length;(0,k.V)(!!l,"No valid elements provided.");for(let e=0;e{var d;let h=Array.isArray(d=e)?d:[d],{delay:p=0,times:v=(0,i.Z)(h),type:g="keyframes",repeat:y,repeatType:M,repeatDelay:w=0,...I}=r,{ease:S=t.ease||"easeOut",duration:O}=r,R="function"==typeof p?p(l,f):p,V=h.length,N=(0,m.W)(g)?g:null==a?void 0:a[g];if(V<=2&&N){let e=100;2===V&&A(h)&&(e=Math.abs(h[1]-h[0]));let t={...I};void 0!==O&&(t.duration=(0,o.f)(O));let r=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),a=Math.min((0,s.t)(n),s.Y);return{type:"keyframes",ease:e=>n.next(a*e).value/t,duration:(0,o.X)(a)}}(t,e,N);S=r.ease,O=r.duration}null!=O||(O=u);let F=L+R;1===v.length&&0===v[0]&&(v[1]=1);let D=v.length-h.length;if(D>0&&(0,c.f)(v,D),1===h.length&&h.unshift(null),y){(0,k.V)(y<20,"Repeat count too high, must be less than 20");O*=y+1;let e=[...h],t=[...v],r=[...S=Array.isArray(S)?[...S]:[S]];for(let n=0;na&&r.at{for(let a in e){let u=e[a];u.sort(M);let s=[],o=[],i=[];for(let e=0;e{n.push(...B(r,e,t))}),n}(t,r,e):B(t,r,n,e);let h=new u.P(a);return e&&e.animations.push(h),h}}function P(){var e;let t=(0,n.M)(()=>({current:null,animations:[]})),r=(0,n.M)(()=>J(t));return e=()=>{t.animations.forEach(e=>e.stop())},(0,a.useEffect)(()=>()=>e(),[]),[t,r]}J()},47576:(e,t,r)=>{r.d(t,{z:()=>f});var n=r(77169),a=r(52668),u=r(62049),l=r(71686),s=r(18624),o=r(34360),i=r(50892);function c(e){return"number"==typeof e?e:parseFloat(e)}function f(e,t={}){let{isStatic:r}=(0,n.useContext)(l.Q),d=(0,n.useRef)(null),h=(0,u.d)((0,a.S)(e)?c(e.get()):e),p=(0,n.useRef)(h.get()),v=(0,n.useRef)(()=>{}),m=()=>{let e=d.current;e&&0===e.time&&e.sample(i.uv.delta),g(),d.current=(0,o.L)({keyframes:[h.get(),p.current],velocity:h.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:v.current})},g=()=>{d.current&&d.current.stop()};return(0,n.useInsertionEffect)(()=>h.attach((e,t)=>r?t(e):(p.current=e,v.current=t,i.Gt.update(m),h.get()),g),[JSON.stringify(t)]),(0,s.E)(()=>{if((0,a.S)(e))return e.on("change",e=>h.set(c(e)))},[h]),h}},62049:(e,t,r)=>{r.d(t,{d:()=>s});var n=r(77169),a=r(99661),u=r(71686),l=r(4095);function s(e){let t=(0,l.M)(()=>(0,a.OQ)(e)),{isStatic:r}=(0,n.useContext)(u.Q);if(r){let[,r]=(0,n.useState)(e);(0,n.useEffect)(()=>t.on("change",r),[])}return t}},69279:(e,t,r)=>{r.d(t,{y:()=>a});var n=r(14449);function a(e=.1,{startDelay:t=0,from:r=0,ease:u}={}){return(a,l)=>{let s=e*Math.abs(("number"==typeof r?r:function(e,t){if("first"===e)return 0;{let r=t-1;return"last"===e?r:r/2}}(r,l))-a);if(u){let t=l*e;s=(0,n.K)(u)(s/t)*t}return t+s}}},70220:(e,t,r)=>{r.d(t,{W:()=>l});var n=r(77169),a=r(26738);let u={some:0,all:1};function l(e,{root:t,margin:r,amount:s,once:o=!1}={}){let[i,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!e.current||o&&i)return;let n={root:t&&t.current||void 0,margin:r,amount:s};return function(e,t,{root:r,margin:n,amount:l="some"}={}){let s=(0,a.KJ)(e),o=new WeakMap,i=new IntersectionObserver(e=>{e.forEach(e=>{let r=o.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e);"function"==typeof r?o.set(e.target,r):i.unobserve(e.target)}else r&&(r(e),o.delete(e.target))})},{root:r,rootMargin:n,threshold:"number"==typeof l?l:u[l]});return s.forEach(e=>i.observe(e)),()=>i.disconnect()}(e.current,()=>(c(!0),o?void 0:()=>c(!1)),n)},[t,e,r,o,s]),i}},90875:(e,t,r)=>{r.d(t,{GL:()=>o});var n=r(43703),a=r(77169),u=r(5717);let l=e=>{var t,r;let{animationId:n,autoplay:l,backgroundColor:s,className:o,createDotLottie:i,data:c,dotLottieRefCallback:f,layout:d,loop:h,mode:p,playOnHover:v,renderConfig:m,segment:g,speed:y,src:E,stateMachineConfig:b,stateMachineId:C,style:M,themeData:k,themeId:w,useFrameInterpolation:I,workerId:S,...A}=e,L=(0,a.useRef)(null),x=(0,a.useRef)(null),O=(0,a.useRef)(f),R={speed:y,mode:p,loop:h,useFrameInterpolation:I,segment:g,backgroundColor:s,autoplay:l,themeId:w,workerId:S,src:E,data:c,layout:d,renderConfig:m,animationId:n,stateMachineConfig:b,stateMachineId:C},V=(0,a.useRef)(R);O.current=f,V.current=R;let j=(0,a.useCallback)(e=>{var t,r;x.current=e,e?L.current=i({...V.current,canvas:e}):(null==(t=L.current)||t.destroy(),L.current=null),null==(r=O.current)||r.call(O,L.current)},[]);return(0,a.useEffect)(()=>{var e,t;let r=e=>{var t,r;v&&("mouseenter"===e.type&&(null==(t=L.current)||t.play()),"mouseleave"===e.type&&(null==(r=L.current)||r.pause()))};return null==(e=x.current)||e.addEventListener("mouseenter",r),null==(t=x.current)||t.addEventListener("mouseleave",r),()=>{var e,t;null==(e=x.current)||e.removeEventListener("mouseenter",r),null==(t=x.current)||t.removeEventListener("mouseleave",r)}},[v]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setSpeed(null!=y?y:1)},[y]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setMode(null!=p?p:"forward")},[p]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setLoop(null!=h&&h)},[h]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setUseFrameInterpolation(null==I||I)},[I]),(0,a.useEffect)(()=>{var e,t;"number"==typeof(null==g?void 0:g[0])&&"number"==typeof g[1]?null==(e=L.current)||e.setSegment(g[0],g[1]):null==(t=L.current)||t.resetSegment()},[g]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setBackgroundColor(null!=s?s:"")},[s]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setRenderConfig(null!=m?m:{})},[JSON.stringify(m)]),(0,a.useEffect)(()=>{var e;"string"!=typeof c&&"object"!=typeof c||null==(e=L.current)||e.load({data:c,...V.current})},[c]),(0,a.useEffect)(()=>{var e;"string"==typeof E&&(null==(e=L.current)||e.load({src:E,...V.current}))},[E]),(0,a.useEffect)(()=>{var e,t;null==(e=L.current)||e.setMarker(null!=(t=A.marker)?t:"")},[A.marker]),(0,a.useEffect)(()=>{var e;(null==(e=L.current)?void 0:e.isLoaded)&&L.current.activeAnimationId!==n&&L.current.loadAnimation(null!=n?n:"")},[n]),(0,a.useEffect)(()=>{var e;"string"==typeof w&&(null==(e=L.current)||e.setTheme(w))},[w]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setThemeData(null!=k?k:"")},[k]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.setLayout(null!=d?d:{})},[null==d?void 0:d.fit,null==d||null==(t=d.align)?void 0:t[0],null==d||null==(r=d.align)?void 0:r[1]]),(0,a.useEffect)(()=>{var e;(null==(e=L.current)?void 0:e.isLoaded)&&("string"==typeof C&&C?L.current.stateMachineLoad(C)&&L.current.stateMachineStart():L.current.stateMachineStop())},[C]),(0,a.useEffect)(()=>{var e;null==(e=L.current)||e.stateMachineSetConfig(null!=b?b:null)},[b]),(0,u.jsx)("div",{className:o,...!o&&{style:{width:"100%",height:"100%",lineHeight:0,...M}},children:(0,u.jsx)("canvas",{ref:j,style:{width:"100%",height:"100%"},...A})})},s=e=>new n.j(e),o=e=>(0,u.jsx)(l,{...e,createDotLottie:s})}}]);