"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7932],{67932:(t,e,n)=>{n.d(e,{i:()=>F,W:()=>B});var r=n(12128),a=n(24896),l=n(4331);let s=(t,e,n)=>{let r=e-t;return((n-t)%r+r)%r+t};var u=n(22363);function o(t,e){return(0,u.h)(t)?t[s(0,t.length,e)]:t}var i=n(96185),f=n(46395),h=n(14570);function p(t){return"object"==typeof t&&!Array.isArray(t)}function c(t,e,n,a){return"string"==typeof t&&p(e)?(0,r.KJ)(t,n,a):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function g(t,e,n,r){var a;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(a=r.get(e))&&void 0!==a?a:t}var y=n(21109);function d(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function v(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function m(t,e){return e[t]||(e[t]=[]),e[t]}let A=t=>"number"==typeof t,b=t=>t.every(A);var w=n(65511),k=n(19578),x=n(66373),C=n(27885),M=n(75245),S=n(81786),V=n(77212);class O extends V.B{readValueFromInstance(t,e){if(e in t){let n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,S.ge)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,e){let{output:n}=e;Object.assign(t,n)}sortInstanceNodePosition(){return 0}constructor(){super(...arguments),this.type="object"}}function E(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=(0,x.x)(t)?new C.l(e):new M.M(e);n.mount(t),w.C.set(t,n)}function I(t){let e=new O({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),w.C.set(t,e)}var N=n(35580);function j(t,e,n,r){let a=[];if((0,h.S)(t)||"number"==typeof t||"string"==typeof t&&!p(e))a.push((0,N.z)(t,p(e)&&e.default||e,n&&n.default||n));else{let s=c(t,e,r),u=s.length;(0,l.V1)(!!u,"No valid elements provided.");for(let t=0;t<u;t++){let r=s[t],l=r instanceof Element?E:I;w.C.has(r)||l(r);let o=w.C.get(r),i={...n};"delay"in i&&"function"==typeof i.delay&&(i.delay=i.delay(t,u)),a.push(...(0,k.$)(o,{...e,transition:i},{}))}}return a}function B(t){return function(e,n,s){let u=[];u=Array.isArray(e)&&e.some(Array.isArray)?function(t,e,n){let s=[];return(function(t){let{defaultTransition:e={},...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,u=e.duration||.3,p=new Map,A=new Map,w={},k=new Map,x=0,C=0,M=0;for(let n=0;n<t.length;n++){let p=t[n];if("string"==typeof p){k.set(p,C);continue}if(!Array.isArray(p)){k.set(p.name,g(C,p.at,x,k));continue}let[d,O,E={}]=p;void 0!==E.at&&(C=g(C,E.at,x,k));let I=0,N=function(t,n,a){var h;let p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,g=Array.isArray(h=t)?h:[h],{delay:d=0,times:v=(0,i.Z)(g),type:m="keyframes",repeat:A,repeatType:w,repeatDelay:k=0,...x}=n,{ease:S=e.ease||"easeOut",duration:V}=n,O="function"==typeof d?d(p,c):d,E=g.length,N=(0,r.WH)(m)?m:null==s?void 0:s[m];if(E<=2&&N){let t=100;2===E&&b(g)&&(t=Math.abs(g[1]-g[0]));let e={...x};void 0!==V&&(e.duration=(0,l.fD)(V));let n=(0,r.XG)(e,t,N);S=n.ease,V=n.duration}null!=V||(V=u);let j=C+O;1===v.length&&0===v[0]&&(v[1]=1);let B=v.length-g.length;if(B>0&&(0,f.f)(v,B),1===g.length&&g.unshift(null),A){(0,l.V1)(A<20,"Repeat count too high, must be less than 20");V*=A+1;let t=[...g],e=[...v],n=[...S=Array.isArray(S)?[...S]:[S]];for(let r=0;r<A;r++){g.push(...t);for(let a=0;a<t.length;a++)v.push(e[a]+(r+1)),S.push(0===a?"linear":o(n,a-1))}!function(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}(v,A)}let F=j+V;(function(t,e,n,r,a,s){!function(t,e,n){for(let r=0;r<t.length;r++){let a=t[r];a.at>e&&a.at<n&&((0,l.Ai)(t,a),r--)}}(t,a,s);for(let l=0;l<e.length;l++)t.push({value:e[l],at:(0,y.k)(a,s,r[l]),easing:o(n,l)})})(a,g,S,v,j,F),I=Math.max(O+V,I),M=Math.max(F,M)};if((0,h.S)(d))N(O,E,m("default",v(d,A)));else{let t=c(d,O,a,w),e=t.length;for(let n=0;n<e;n++){let r=v(t[n],A);for(let t in O){var S,V;N(O[t],(S=E,V=t,S&&S[V]?{...S,...S[V]}:{...S}),m(t,r),n,e)}}}x=C,C+=I}return A.forEach((t,r)=>{for(let a in t){let s=t[a];s.sort(d);let u=[],o=[],i=[];for(let t=0;t<s.length;t++){let{at:e,value:n,easing:r}=s[t];u.push(n),o.push((0,l.qB)(0,M,e)),i.push(r||"easeOut")}0!==o[0]&&(o.unshift(0),u.unshift(u[0]),i.unshift("easeInOut")),1!==o[o.length-1]&&(o.push(1),u.push(null)),p.has(r)||p.set(r,{keyframes:{},transition:{}});let f=p.get(r);f.keyframes[a]=u,f.transition[a]={...e,duration:M,ease:i,times:o,...n}}}),p})(t,e,n,{spring:a.o}).forEach((t,e)=>{let{keyframes:n,transition:r}=t;s.push(...j(e,n,r))}),s}(e,n,t):j(e,n,s,t);let p=new r.P6(u);return t&&t.animations.push(p),p}}let F=B()}}]);