1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7305],{6437:(t,e,i)=>{i.d(e,{default:()=>r.a});var n=i(55594),r=i.n(n)},11340:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},13125:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(89656);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},15506:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(89656),r=i(68045);function s(t=!0){let e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{t&&a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},20705:(t,e,i)=>{i.d(e,{H4:()=>w,_V:()=>b,bL:()=>x});var n=i(89656),r=i(44259),s=i(75810),o=i(9220),a=i(51620),l=i(10388),u="Avatar",[h,c]=(0,r.A)(u),[d,p]=h(u),f=n.forwardRef((t,e)=>{let{__scopeAvatar:i,...r}=t,[s,o]=n.useState("idle");return(0,l.jsx)(d,{scope:i,imageLoadingStatus:s,onImageLoadingStatusChange:o,children:(0,l.jsx)(a.sG.span,{...r,ref:e})})});f.displayName=u;var m="AvatarImage",g=n.forwardRef((t,e)=>{let{__scopeAvatar:i,src:r,onLoadingStatusChange:u=()=>{},...h}=t,c=p(m,i),d=function(t,e){let[i,r]=n.useState("idle");return(0,o.N)(()=>{if(!t){r("error");return}let i=!0,n=new window.Image,s=t=>()=>{i&&r(t)};return r("loading"),n.onload=s("loaded"),n.onerror=s("error"),n.src=t,e&&(n.referrerPolicy=e),()=>{i=!1}},[t,e]),i}(r,h.referrerPolicy),f=(0,s.c)(t=>{u(t),c.onImageLoadingStatusChange(t)});return(0,o.N)(()=>{"idle"!==d&&f(d)},[d,f]),"loaded"===d?(0,l.jsx)(a.sG.img,{...h,ref:e,src:r}):null});g.displayName=m;var v="AvatarFallback",y=n.forwardRef((t,e)=>{let{__scopeAvatar:i,delayMs:r,...s}=t,o=p(v,i),[u,h]=n.useState(void 0===r);return n.useEffect(()=>{if(void 0!==r){let t=window.setTimeout(()=>h(!0),r);return()=>window.clearTimeout(t)}},[r]),u&&"loaded"!==o.imageLoadingStatus?(0,l.jsx)(a.sG.span,{...s,ref:e}):null});y.displayName=v;var x=f,b=g,w=y},23869:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=i(54127)},26039:(t,e,i)=>{i.d(e,{A:()=>r});let n={direction:"forward",speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function r(t={}){let e,i,s,o,a,l=0,u=!1,h=!1;function c(){if(s||u)return;i.emit("autoScroll:play");let t=i.internalEngine(),{ownerWindow:n}=t;l=n.setTimeout(()=>{t.scrollBody=function(t){let{location:n,previousLocation:r,offsetLocation:s,target:o,scrollTarget:a,index:l,indexPrevious:u,limit:{reachedMin:h,reachedMax:c,constrain:p},options:{loop:f}}=t,m="forward"===e.direction?-1:1,g=()=>P,v=0,y=0,x=n.get(),b=0,w=!1,P={direction:()=>y,duration:()=>-1,velocity:()=>v,settled:()=>w,seek:function(){let t=0;r.set(n),v=m*e.speed,x+=v,n.add(v),o.set(n),y=Math.sign(x-b),b=x;let g=a.byDistance(0,!1).index;l.get()!==g&&(u.set(l.get()),l.set(g),i.emit("select"));let S="forward"===e.direction?h(s.get()):c(s.get());if(!f&&S){w=!0;let t=p(n.get());n.set(t),o.set(n),d()}return P},useBaseFriction:g,useBaseDuration:g,useFriction:g,useDuration:g};return P}(t),t.animation.start()},o),u=!0}function d(){if(s||!u)return;i.emit("autoScroll:stop");let t=i.internalEngine(),{ownerWindow:e}=t;t.scrollBody=a,e.clearTimeout(l),l=0,u=!1}function p(){h||d()}function f(){h||y()}function m(){h=!0,d()}function g(){h=!1,c()}function v(){i.off("settle",v),c()}function y(){i.on("settle",v)}return{name:"autoScroll",options:t,init:function(l,u){i=l;let{mergeOptions:h,optionsAtMedia:v}=u,y=h(n,r.globalOptions);if(e=v(h(y,t)),i.scrollSnapList().length<=1)return;o=e.startDelay,s=!1,a=i.internalEngine().scrollBody;let{eventStore:x}=i.internalEngine(),b=!!i.internalEngine().options.watchDrag,w=function(t,e){let i=t.rootNode();return e&&e(i)||i}(i,e.rootNode);b&&i.on("pointerDown",p),b&&!e.stopOnInteraction&&i.on("pointerUp",f),e.stopOnMouseEnter&&x.add(w,"mouseenter",m),e.stopOnMouseEnter&&!e.stopOnInteraction&&x.add(w,"mouseleave",g),e.stopOnFocusIn&&i.on("slideFocusStart",d),e.stopOnFocusIn&&!e.stopOnInteraction&&x.add(i.containerNode(),"focusout",c),e.playOnInit&&c()},destroy:function(){i.off("pointerDown",p).off("pointerUp",f).off("slideFocusStart",d).off("settle",v),d(),s=!0,u=!1},play:function(t){void 0!==t&&(o=t),c()},stop:function(){u&&d()},reset:function(){u&&(d(),y())},isPlaying:function(){return u}}}r.globalOptions=void 0}
1,26357:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(89656).createContext)({})},26869:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{bindSnapshot:function(){return o},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return a}});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(t){return t}}let r="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return r?new r:new n}function o(t){return r?r.bind(t):n.bind(t)}function a(){return r?r.snapshot():function(t,...e){return t(...e)}}},37755:(t,e,i)=>{i.d(e,{A:()=>A});var n=i(89656);function r(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function s(t,e){let i=Object.keys(t),n=Object.keys(e);return i.length===n.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&i.every(i=>{let n=t[i],o=e[i];return"function"==typeof n?`${n}`==`${o}`:r(n)&&r(o)?s(n,o):n===o})}function o(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function a(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return Math.abs(t)}function d(t){return Math.sign(t)}function p(t){return v(t).map(Number)}function f(t){return t[m(t)]}function m(t){return Math.max(0,t.length-1)}function g(t,e=0){return Array.from(Array(t),(t,i)=>e+i)}function v(t){return Object.keys(t)}function y(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function x(){let t=[],e={add:function(i,n,r,s={passive:!0}){let o;return"addEventListener"in i?(i.addEventListener(n,r,s),o=()=>i.removeEventListener(n,r,s)):(i.addListener(r),o=()=>i.removeListener(r)),t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function b(t=0,e=0){let i=c(t-e);function n(i){return i<t||i>e}return{length:i,max:e,min:t,constrain:function(i){return n(i)?i<t?t:e:i},reachedAny:n,reachedMax:function(t){return t>e},reachedMin:function(e){return e<t},removeOffset:function(t){return i?t-i*Math.ceil((t-e)/i):t}}}function w(t){let e=t;function i(t){return a(t)?t:t.get()}return{get:function(){return e},set:function(t){e=i(t)},add:function(t){e+=i(t)},subtract:function(t){e-=i(t)}}}function P(t,e){let i="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},n=e.style,r=null,s=!1;return{clear:function(){s||(n.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(s)return;let o=Math.round(100*t.direction(e))/100;o!==r&&(n.transform=i(o),r=o)},toggleActive:function(t){s=!t}}}let S={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function T(t,e,i){let n,r,s,o,A,E=t.ownerDocument,M=E.defaultView,D=function(t){function e(t,e){return function t(e,i){return[e,i].reduce((e,i)=>(v(i).forEach(n=>{let r=e[n],s=i[n],o=h(r)&&h(s);e[n]=o?t(r,s):s}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(i){let n=i.breakpoints||{},r=v(n).filter(e=>t.matchMedia(e).matches).map(t=>n[t]).reduce((t,i)=>e(t,i),{});return e(i,r)},optionsMediaQueries:function(e){return e.map(t=>v(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(M),V=(A=[],{init:function(t,e){return(A=e.filter(({options:t})=>!1!==D.optionsAtMedia(t).active)).forEach(e=>e.init(t,D)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){A=A.filter(t=>t.destroy())}}),C=x(),k=function(){let t,e={},i={init:function(e){t=e}
1,emit:function(n){return(e[n]||[]).forEach(e=>e(t,n)),i},off:function(t,n){return e[t]=(e[t]||[]).filter(t=>t!==n),i},on:function(t,n){return e[t]=(e[t]||[]).concat([n]),i},clear:function(){e={}}};return i}(),{mergeOptions:R,optionsAtMedia:j,optionsMediaQueries:L}=D,{on:F,off:O,emit:B}=k,I=!1,U=R(S,T.globalOptions),N=R(U),$=[];function W(e,i){if(I)return;N=j(U=R(U,e)),$=i||$;let{container:h,slides:S}=N;s=(l(h)?t.querySelector(h):h)||t.children[0];let T=l(S)?s.querySelectorAll(S):S;o=[].slice.call(T||s.children),n=function e(i){let n=function(t,e,i,n,r,s,o){let h,S,{align:T,axis:A,direction:E,startIndex:M,loop:D,duration:V,dragFree:C,dragThreshold:k,inViewThreshold:R,slidesToScroll:j,skipSnaps:L,containScroll:F,watchResize:O,watchSlides:B,watchDrag:I,watchFocus:U}=s,N={measure:function(t){let{offsetTop:e,offsetLeft:i,offsetWidth:n,offsetHeight:r}=t;return{top:e,right:i+n,bottom:e+r,left:i,width:n,height:r}}},$=N.measure(e),W=i.map(N.measure),z=function(t,e){let i="rtl"===e,n="y"===t,r=!n&&i?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":i?"right":"left",endEdge:n?"bottom":i?"left":"right",measureSize:function(t){let{height:e,width:i}=t;return n?e:i},direction:function(t){return t*r}}}(A,E),H=z.measureSize($),_={measure:function(t){return t/100*H}},X=function(t,e){let i={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(n,r){return l(t)?i[t](n):t(e,n,r)}}}(T,H),Y=!D&&!!F,{slideSizes:q,slideSizesWithGaps:K,startGap:G,endGap:Z}=function(t,e,i,n,r,s){let{measureSize:o,startEdge:a,endEdge:l}=t,u=i[0]&&r,h=function(){if(!u)return 0;let t=i[0];return c(e[a]-t[a])}(),d=u?parseFloat(s.getComputedStyle(f(n)).getPropertyValue(`margin-${l}`)):0,p=i.map(o),g=i.map((t,e,i)=>{let n=e===m(i);return e?n?p[e]+d:i[e+1][a]-t[a]:p[e]+h}).map(c);return{slideSizes:p,slideSizesWithGaps:g,startGap:h,endGap:d}}(z,$,W,i,D||!!F,r),Q=function(t,e,i,n,r,s,o,l,u){let{startEdge:h,endEdge:d,direction:g}=t,v=a(i);return{groupSlides:function(t){return v?p(t).filter(t=>t%i==0).map(e=>t.slice(e,e+i)):t.length?p(t).reduce((i,a,u)=>{let p=f(i)||0,v=a===m(t),y=r[h]-s[p][h],x=r[h]-s[a][d],b=n||0!==p?0:g(o),w=c(x-(!n&&v?g(l):0)-(y+b));return u&&w>e+2&&i.push(a),v&&i.push(t.length),i},[]).map((e,i,n)=>{let r=Math.max(n[i-1]||0);return t.slice(r,e)}):[]}}}(z,H,j,D,$,W,G,Z,0),{snaps:J,snapsAligned:tt}=function(t,e,i,n,r){let{startEdge:s,endEdge:o}=t,{groupSlides:a}=r,l=a(n).map(t=>f(t)[o]-t[0][s]).map(c).map(e.measure),u=n.map(t=>i[s]-t[s]).map(t=>-c(t)),h=a(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:h}}(z,X,$,W,Q),te=-f(J)+f(K),{snapsContained:ti,scrollContainLimit:tn}=function(t,e,i,n,r){let s=b(-e+t,0),o=i.map((t,e)=>{let{min:n,max:r}=s,o=s.constrain(t),a=e===m(i);return e?a||function(t,e){return 1>=c(t-e)}(n,o)?n:function(t,e){return 1>=c(t-e)}(r,o)?r:o:r}).map(t=>parseFloat(t.toFixed(3))),a=function(){let t=o[0],e=f(o);return b(o.lastIndexOf(t),o.indexOf(e)+1)}();function l(t,e){return 1>=c(t-e)}return{snapsContained:function(){if(e<=t+2)return[s.max];if("keepSnaps"===n)return o;let{min:i,max:r}=a;return o.slice(i,r)}(),scrollContainLimit:a}}(H,te,tt,F,0),tr=Y?ti:tt,{limit:ts}=function(t,e,i){let n=e[0];return{limit:b(i?n-t:f(e),n)}}(te,tr,D),to=function t(e,i,n){let{constrain:r}=b(0,e),s=e+1,o=a(i);function a(t){return n?c((s+t)%s):r(t)}function l(){return t(e,o,n)}let u={get:function(){return o},set:function(t){return o=a(t),u},add:function(t){return l().set(o+t)},clone:l};return u}(m(tr),M,D),ta=to.clone(),tl=p(i),tu=({dragHandler:t,scrollBody:e,scrollBounds:i,options:{loop:n}})=>
1{n||i.constrain(t.pointerDown()),e.seek()},th=({scrollBody:t,translate:e,location:i,offsetLocation:n,previousLocation:r,scrollLooper:s,slideLooper:o,dragHandler:a,animation:l,eventHandler:u,scrollBounds:h,options:{loop:c}},d)=>{let p=t.settled(),f=!h.shouldConstrain(),m=c?p:p&&f;m&&!a.pointerDown()&&(l.stop(),u.emit("settle")),m||u.emit("scroll");let g=i.get()*d+r.get()*(1-d);n.set(g),c&&(s.loop(t.direction()),o.loop()),e.to(n.get())},tc=function(t,e,i,n){let r=x(),s=1e3/60,o=null,a=0,l=0;function u(t){if(!l)return;o||(o=t,i(),i());let r=t-o;for(o=t,a+=r;a>=s;)i(),a-=s;n(a/s),l&&(l=e.requestAnimationFrame(u))}function h(){e.cancelAnimationFrame(l),o=null,a=0,l=0}return{init:function(){r.add(t,"visibilitychange",()=>{t.hidden&&(o=null,a=0)})},destroy:function(){h(),r.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:h,update:i,render:n}}(n,r,()=>tu(tA),t=>th(tA,t)),td=tr[to.get()],tp=w(td),tf=w(td),tm=w(td),tg=w(td),tv=function(t,e,i,n,r,s){let o=0,a=0,l=r,u=.68,h=t.get(),p=0;function f(t){return l=t,g}function m(t){return u=t,g}let g={direction:function(){return a},duration:function(){return l},velocity:function(){return o},seek:function(){let e=n.get()-t.get(),r=0;return l?(i.set(t),o+=e/l,o*=u,h+=o,t.add(o),r=h-p):(o=0,i.set(n),t.set(n),r=e),a=d(r),p=h,g},settled:function(){return .001>c(n.get()-e.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return f(r)},useFriction:m,useDuration:f};return g}(tp,tm,tf,tg,V,.68),ty=function(t,e,i,n,r){let{reachedAny:s,removeOffset:o,constrain:a}=n;function l(t){return t.concat().sort((t,e)=>c(t)-c(e))[0]}function u(e,n){let r=[e,e+i,e-i];if(!t)return e;if(!n)return l(r);let s=r.filter(t=>d(t)===n);return s.length?l(s):f(r)-i}return{byDistance:function(i,n){let l=r.get()+i,{index:h,distance:d}=function(i){let n=t?o(i):a(i),{index:r}=e.map((t,e)=>({diff:u(t-n,0),index:e})).sort((t,e)=>c(t.diff)-c(e.diff))[0];return{index:r,distance:n}}(l),p=!t&&s(l);if(!n||p)return{index:h,distance:i};let f=i+u(e[h]-d,0);return{index:h,distance:f}},byIndex:function(t,i){let n=u(e[t]-r.get(),i);return{index:t,distance:n}},shortcut:u}}(D,tr,te,ts,tg),tx=function(t,e,i,n,r,s,o){function a(r){let a=r.distance,l=r.index!==e.get();s.add(a),a&&(n.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(i.set(e.get()),e.set(r.index),o.emit("select"))}return{distance:function(t,e){a(r.byDistance(t,e))},index:function(t,i){let n=e.clone().set(t);a(r.byIndex(n.get(),i))}}}(tc,to,ta,tv,ty,tg,o),tb=function(t){let{max:e,length:i}=t;return{get:function(t){return i?-((t-e)/i):0}}}(ts),tw=x(),tP=function(t,e,i,n){let r,s={},o=null,a=null,l=!1;return{init:function(){r=new IntersectionObserver(t=>{l||(t.forEach(t=>{s[e.indexOf(t.target)]=t}),o=null,a=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:n}),e.forEach(t=>r.observe(t))},destroy:function(){r&&r.disconnect(),l=!0},get:function(t=!0){if(t&&o)return o;if(!t&&a)return a;let e=v(s).reduce((e,i)=>{let n=parseInt(i),{isIntersecting:r}=s[n];return(t&&r||!t&&!r)&&e.push(n),e},[]);return t&&(o=e),t||(a=e),e}}}(e,i,o,R),{slideRegistry:tS}=function(t,e,i,n,r,s){let{groupSlides:o}=r,{min:a,max:l}=n;return{slideRegistry:function(){let n=o(s);return 1===i.length?[s]:t&&"keepSnaps"!==e?n.slice(a,l).map((t,e,i)=>{let n=e===m(i);return e?n?g(m(s)-f(i)[0]+1,f(i)[0]):t:g(f(i[0])+1)}):n}()}}(Y,F,tr,tn,Q,tl),tT=function(t,e,i,n,r,s,o,l){let h={passive:!0,capture:!0},c=0;function d(t){"Tab"===t.code&&(c=new Date().getTime())}return{init:function(p){l&&(s.add(document,"keydown",d,!1),e.forEach((e,d)=>{s.add(e,"focus",e=>{(u(l)||l(p,e))&&function(e){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;let s=i.findIndex(t=>t.includes(e));a(s)&&(r.useDuration(0),n.index(s,0),o.emit("slideFocus"))}(d)},h)}))}}}(t,i,tS,tx,tv,tw,o,U),tA={ownerDocument:n,ownerWindow:r,eventHandler:o,containerRect:$,slideRects:W,animation:tc,axis:z,dragHandler:function(t,e,i,n,r,s,o,a,l,h,p,f,m,g,v,w,P,S,T){let{cross:A,direction:E}=t,M=["INPUT","SELECT","TEXTAREA"],D={passive:!1},V=x(),C=x(),k=b(50,225).constrain(g.measure(20)),R={mouse:300,touch:400},j={mouse:500,touch:600},L=v?43:25,F=!1,O=0,B=0,I=!1,U=!1,N=!1,$=!1;function W(t){if(!y(t,n)&&t.touches.length>=2)return z(t);let e=s.readPoint(t),i=s.readPoint(t,A),o=c(e-O),l=c(i-B);if(!U&&!$&&(!t.cancelable||!(U=o>l)))return z(t);let u=s.pointerMove(t);o>w&&(N=!0),h.useFriction(.3).useDuration(.75),a.start(),r.add(E(u)),t.preventDefault()}function z(t){let e=p.byDistance(0,!1).index!==f.get(),i=s.pointerUp(t)*(v?j:R)[$?"mouse":"touch"],n=function(t,e){let i=f.add(-+d(t)),n=p.b
1yDistance(t,!v).distance;return v||c(t)<k?n:P&&e?.5*n:p.byIndex(i.get(),0).distance}(E(i),e),r=function(t,e){var i,n;if(0===t||0===e||c(t)<=c(e))return 0;let r=(i=c(t),n=c(e),c(i-n));return c(r/t)}(i,n);U=!1,I=!1,C.clear(),h.useDuration(L-10*r).useFriction(.68+r/50),l.distance(n,!v),$=!1,m.emit("pointerUp")}function H(t){N&&(t.stopPropagation(),t.preventDefault(),N=!1)}return{init:function(t){T&&V.add(e,"dragstart",t=>t.preventDefault(),D).add(e,"touchmove",()=>void 0,D).add(e,"touchend",()=>void 0).add(e,"touchstart",a).add(e,"mousedown",a).add(e,"touchcancel",z).add(e,"contextmenu",z).add(e,"click",H,!0);function a(a){(u(T)||T(t,a))&&function(t){let a=y(t,n);if($=a,N=v&&a&&!t.buttons&&F,F=c(r.get()-o.get())>=2,(!a||0===t.button)&&!function(t){let e=t.nodeName||"";return M.includes(e)}(t.target)){I=!0,s.pointerDown(t),h.useFriction(0).useDuration(0),r.set(o);let n=$?i:e;C.add(n,"touchmove",W,D).add(n,"touchend",z).add(n,"mousemove",W,D).add(n,"mouseup",z),O=s.readPoint(t),B=s.readPoint(t,A),m.emit("pointerDown")}}(a)}},destroy:function(){V.clear(),C.clear()},pointerDown:function(){return I}}}(z,t,n,r,tg,function(t,e){let i,n;function r(t){return t.timeStamp}function s(i,n){let r=n||t.scroll,s=`client${"x"===r?"X":"Y"}`;return(y(i,e)?i:i.touches[0])[s]}return{pointerDown:function(t){return i=t,n=t,s(t)},pointerMove:function(t){let e=s(t)-s(n),o=r(t)-r(i)>170;return n=t,o&&(i=t),e},pointerUp:function(t){if(!i||!n)return 0;let e=s(n)-s(i),o=r(t)-r(i),a=r(t)-r(n)>170,l=e/o;return o&&!a&&c(l)>.1?l:0},readPoint:s}}(z,r),tp,tc,tx,tv,ty,to,o,_,C,k,L,0,I),eventStore:tw,percentOfView:_,index:to,indexPrevious:ta,limit:ts,location:tp,offsetLocation:tm,previousLocation:tf,options:s,resizeHandler:function(t,e,i,n,r,s,o){let a,l,h=[t].concat(n),d=[],p=!1;function f(t){return r.measureSize(o.measure(t))}return{init:function(r){s&&(l=f(t),d=n.map(f),a=new ResizeObserver(i=>{(u(s)||s(r,i))&&function(i){for(let s of i){if(p)return;let i=s.target===t,o=n.indexOf(s.target),a=i?l:d[o];if(c(f(i?t:n[o])-a)>=.5){r.reInit(),e.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{h.forEach(t=>a.observe(t))}))},destroy:function(){p=!0,a&&a.disconnect()}}}(e,o,r,i,z,O,N),scrollBody:tv,scrollBounds:function(t,e,i,n,r){let s=r.measure(10),o=r.measure(50),a=b(.1,.99),l=!1;function u(){return!!(!l&&t.reachedAny(i.get())&&t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(r){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",h=c(t[l]-e.get()),d=i.get()-e.get(),p=a.constrain(h/o);i.subtract(d*p),!r&&c(d)<s&&(i.set(t.constrain(i.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}(ts,tm,tg,tv,_),scrollLooper:function(t,e,i,n){let{reachedMin:r,reachedMax:s}=b(e.min+.1,e.max+.1);return{loop:function(e){if(!(1===e?s(i.get()):-1===e&&r(i.get())))return;let o=-(t*+e);n.forEach(t=>t.add(o))}}}(te,ts,tm,[tp,tm,tf,tg]),scrollProgress:tb,scrollSnapList:tr.map(tb.get),scrollSnaps:tr,scrollTarget:ty,scrollTo:tx,slideLooper:function(t,e,i,n,r,s,o,a,l){let u=p(r),h=p(r).reverse(),c=m(f(h,o[0]),i,!1).concat(m(f(u,e-o[0]-1),-i,!0));function d(t,e){return t.reduce((t,e)=>t-r[e],e)}function f(t,e){return t.reduce((t,i)=>d(t,e)>0?t.concat([i]):t,[])}function m(r,o,u){let h=s.map((t,i)=>({start:t-n[i]+.5+o,end:t+e-.5+o}));return r.map(e=>{let n=u?0:-i,r=u?i:0,s=h[e][u?"end":"start"];return{index:e,loopPoint:s,slideLocation:w(-1),translate:P(t,l[e]),target:()=>a.get()>s?n:r}})}return{canLoop:function(){return c.every(({index:t})=>.1>=d(u.filter(e=>e!==t),e))},clear:function(){c.forEach(t=>t.translate.clear())},loop:function(){c.forEach(t=>{let{target:e,translate:i,slideLocation:n}=t,r=e();r!==n.get()&&(i.to(r),n.set(r))})},loopPoints:c}}(z,H,te,q,K,J,tr,tm,i),slideFocus:tT,slidesHandler:(S=!1,{init:function(t){B&&(h=new MutationObserver(e=>{!S&&(u(B)||B(t,e))&&function(e){for(let i of e)if("childList"===i.type){t.reInit(),o.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){h&&h.disconnect(),S=!0}}),slidesInView:tP,slideIndexes:tl,slideRegistry:tS,slidesToScroll:Q,target:tg,translate:P(z,e)};return tA}(t,s,o,E,M,i,k);return i.loop&&!n.slideLooper.canLoop()?e(Object.assign({},i,{loop:!1})):n}(N),L([U,...$.map(({options:t})=>
1t)]).forEach(t=>C.add(t,"change",z)),N.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(Y),n.eventHandler.init(Y),n.resizeHandler.init(Y),n.slidesHandler.init(Y),n.options.loop&&n.slideLooper.loop(),s.offsetParent&&o.length&&n.dragHandler.init(Y),r=V.init(Y,$))}function z(t,e){let i=X();H(),W(R({startIndex:i},t),e),k.emit("reInit")}function H(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),V.destroy(),C.clear()}function _(t,e,i){N.active&&!I&&(n.scrollBody.useBaseFriction().useDuration(!0===e?0:N.duration),n.scrollTo.index(t,i||0))}function X(){return n.index.get()}let Y={canScrollNext:function(){return n.index.add(1).get()!==X()},canScrollPrev:function(){return n.index.add(-1).get()!==X()},containerNode:function(){return s},internalEngine:function(){return n},destroy:function(){I||(I=!0,C.clear(),H(),k.emit("destroy"),k.clear())},off:O,on:F,emit:B,plugins:function(){return r},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:z,rootNode:function(){return t},scrollNext:function(t){_(n.index.add(1).get(),t,-1)},scrollPrev:function(t){_(n.index.add(-1).get(),t,1)},scrollProgress:function(){return n.scrollProgress.get(n.location.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:_,selectedScrollSnap:X,slideNodes:function(){return o},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};
1return W(e,i),setTimeout(()=>k.emit("init"),0),Y}function A(t={},e=[]){let i=(0,n.useRef)(t),r=(0,n.useRef)(e),[a,l]=(0,n.useState)(),[u,h]=(0,n.useState)(),c=(0,n.useCallback)(()=>{a&&a.reInit(i.current,r.current)},[a]);return(0,n.useEffect)(()=>{s(i.current,t)||(i.current=t,c())},[t,c]),(0,n.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let i=o(t),n=o(e);return i.every((t,e)=>s(t,n[e]))}(r.current,e)&&(r.current=e,c())},[e,c]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){T.globalOptions=A.globalOptions;let t=T(u,i.current,r.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[h,a]}T.globalOptions=void 0,A.globalOptions=void 0},37788:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});let n=i(10388),r=i(89656),s=i(43867);function o(t){return{default:t&&"default"in t?t.default:t}}i(85030);let a={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},l=function(t){let e={...a,...t},i=(0,r.lazy)(()=>e.loader().then(o)),l=e.loading;function u(t){let o=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,a=!e.ssr||!!e.loading,u=a?r.Suspense:r.Fragment,h=e.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(i,{...t})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(i,{...t})});return(0,n.jsx)(u,{...a?{fallback:o}:{},children:h})}return u.displayName="LoadableComponent",u}},43867:(t,e,i)=>{function n(t){let{reason:e,children:i}=t;return i}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),i(90863)},53671:(t,e,i)=>{i.d(e,{default:()=>r.a});var n=i(65692),r=i.n(n)},54127:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,i(26869).createAsyncLocalStorage)()},55594:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(98209),r=i(23378),s=i(53658),o=n._(i(50322));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,828,1200,1920],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},59383:(t,e,i)=>{i.d(e,{default:()=>s});var n=i(93995),r=i(10388);function s({locale:t,...e}){if(!t)throw Error(void 0);return(0,r.jsx)(n.Dk,{locale:t,...e})}},61396:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(89656).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},65692:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});let n=i(98209)._(i(37788));function r(t,e){var i;let r={};"function"==typeof t&&(r.loader=t);let s={...r,...e};return(0,n.default)({...s,modules:null==(i=s.loadableGenerated)?void 0:i.modules})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},66343:(t,e,i)=>{let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,n){if("function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}return e}function a(t,e,i){let n=t.getProps();return o(n,e,void 0!==i?i:n.custom,t)}function l(t,e){return t?t[e]||t.default||t:void 0}i.d(e,{P:()=>sv});let u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set(u),c=new Set(["width","height","top","left","right","bottom",...u]),d=t=>Array.isArray(t),p=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),f=t=>d(t)?t[t.length-1]||0:t,m={skipAnimations:!1,useManualTiming:!1},g=t=>t,v=["read","resolveKeyframes","update","preRender","render","postRender"],y={value:null,addProjectionMetrics:null};function x(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=v.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),e&&y.value&&y.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let s=m.useManualTiming?r.timestamp:performance.now();i=!1,m.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(p))},f=()=>{i=!0,n=!0,r.isProcessing||t(p)};return{schedule:v.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||f(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<v.length;e++)o[v[e]].cancel(t)},state:r,steps:o}}let{schedule:b,cancel:w,state:P,steps:S}=x("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:g,!0);function T(){n=void 0}let A={now:()=>(void 0===n&&A.set(P.isProcessing||m.useManualTiming?P.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(T)}};function E(t,e){-1===t.indexOf(e)&&t.push(e)}function M(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class D{constructor(){this.subscriptions=[]}add(t){return E(this.subscriptions,t),()=>M(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let V=t=>!isNaN(parseFloat(t)),C={current:void 0};class k{constructor(t,e={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=A.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=A.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=V(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new D);let i=this.events[t].add(e);return"change"===t?()=>{i(),b.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return C.current&&C.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=A.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function R(t,e){return new k(t,e)}let j=t=>!!(t&&t.getVelocity);function L(t,e){let i=t.getValue("willChange");if(j(i)&&i.add)return i.add(e)}let F=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),O="data-"+F("framerAppearId");function B(t){let e;return()=>(void 0===e&&(e=t()),e)}let I=B(()=>void 0!==window.ScrollTimeline);class U{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>I()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>
1{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class N extends U{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}let $=t=>1e3*t,W=t=>t/1e3,z={current:!1};function H(t){return"function"==typeof t}function _(t,e){t.timeline=e,t.onfinish=null}let X=t=>Array.isArray(t)&&"number"==typeof t[0],Y={linearEasing:void 0},q=function(t,e){let i=B(t);return()=>{var t;return null!==(t=Y[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),K=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},G=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t(K(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`},Z=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,Q={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Z([0,.65,.55,1]),circOut:Z([.55,0,1,.45]),backIn:Z([.31,.01,.66,-.59]),backOut:Z([.33,1.53,.69,.99])},J=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tt(t,e,i,n){if(t===e&&i===n)return g;let r=e=>(function(t,e,i,n,r){let s,o,a=0;do(s=J(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:J(r(t),e,n)}let te=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ti=t=>e=>1-t(1-e),tn=tt(.33,1.53,.69,.99),tr=ti(tn),ts=te(tr),to=t=>(t*=2)<1?.5*tr(t):.5*(2-Math.pow(2,-10*(t-1))),ta=t=>1-Math.sin(Math.acos(t)),tl=ti(ta),tu=te(ta),th=t=>/^0[^.\s]+$/u.test(t),tc=(t,e,i)=>i>e?e:i<t?t:i,td={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tp={...td,transform:t=>tc(0,1,t)},tf={...td,default:1},tm=t=>Math.round(1e5*t)/1e5,tg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ty=(t,e)=>i=>!!("string"==typeof i&&tv.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tx=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tg);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tb=t=>tc(0,255,t),tw={...td,transform:t=>Math.round(tb(t))},tP={test:ty("rgb","red"),parse:tx("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tw.transform(t)+", "+tw.transform(e)+", "+tw.transform(i)+", "+tm(tp.transform(n))+")"},tS={test:ty("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tP.transform},tT=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tA=tT("deg"),tE=tT("%"),tM=tT("px"),tD=tT("vh"),tV=tT("vw"),tC={...tE,parse:t=>tE.parse(t)/100,transform:t=>tE.transform(100*t)},tk={test:ty("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tE.transform(tm(e))+", "+tE.transform(tm(i))+", "+tm(tp.transform(n))+")"},tR={test:t=>tP.test(t)||tS.test(t)||tk.test(t),parse:t=>tP.test(t)?tP.parse(t):tk.test(t)?tk.parse(t):tS.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tP.transform(t):tk.transform(t)},tj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tL="number",tF="color",tO=/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 tB(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tO,t=>(tR.test(t)?(n.color.push(s),r.push(tF),i.push(tR.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tL),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tI(t){return tB(t).values}function tU(t){let{split:e,types:i}=tB(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tL?r+=tm(t[s]):e===tF?r+=tR.transform(t[s]):r+=t[s]}return r}}let tN=t=>"number"==typeof t?0:t,t$={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tg))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(tj))||void 0===i?void 0:i.length)||0)>0},parse:tI,createTransformer:tU,getAnimatableNone:function(t){let e=tI(t);return tU(t)(e.map(tN))}},tW=new Set(["brightness","contrast","saturate","opacity"]);function tz(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tg)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tW.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tH=/\b([a-z-]*)\(.*?\)/gu,t_={...t$,getAnimatableNone:t=>{let e=t.match(tH);return e?e.map(tz).join(" "):t}},tX={...td,transform:Math.round},tY={borderWidth:tM,borderTopWidth:tM,borderRightWidth:tM,borderBottomWidth:tM,borderLeftWidth:tM,borderRadius:tM,radius:tM,borderTopLeftRadius:tM,borderTopRightRadius:tM,borderBottomRightRadius:tM,borderBottomLeftRadius:tM,width:tM,maxWidth:tM,height:tM,maxHeight:tM,top:tM,right:tM,bottom:tM,left:tM,padding:tM,paddingTop:tM,paddingRight:tM,paddingBottom:tM,paddingLeft:tM,margin:tM,marginTop:tM,marginRight:tM,marginBottom:tM,marginLeft:tM,backgroundPositionX:tM,backgroundPositionY:tM,rotate:tA,rotateX:tA,rotateY:tA,rotateZ:tA,scale:tf,scaleX:tf,scaleY:tf,scaleZ:tf,skew:tA,
1skewX:tA,skewY:tA,distance:tM,translateX:tM,translateY:tM,translateZ:tM,x:tM,y:tM,z:tM,perspective:tM,transformPerspective:tM,opacity:tp,originX:tC,originY:tC,originZ:tM,zIndex:tX,size:tM,fillOpacity:tp,strokeOpacity:tp,numOctaves:tX},tq={...tY,color:tR,backgroundColor:tR,outlineColor:tR,fill:tR,stroke:tR,borderColor:tR,borderTopColor:tR,borderRightColor:tR,borderBottomColor:tR,borderLeftColor:tR,filter:t_,WebkitFilter:t_},tK=t=>tq[t];function tG(t,e){let i=tK(t);return i!==t_&&(i=t$),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tZ=new Set(["auto","none","0"]),tQ=t=>t===td||t===tM,tJ=(t,e)=>parseFloat(t.split(", ")[e]),t0=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return tJ(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tJ(e[1],t):0}},t1=new Set(["x","y","z"]),t5=u.filter(t=>!t1.has(t)),t2={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:t0(4,13),y:t0(5,14)};t2.translateX=t2.x,t2.translateY=t2.y;let t3=new Set,t6=!1,t9=!1;function t8(){if(t9){let t=Array.from(t3).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return t5.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t9=!1,t6=!1,t3.forEach(t=>t.complete()),t3.clear()}function t4(){t3.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t9=!0)})}class t7{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t3.add(this),t6||(t6=!0,b.read(t4),b.resolveKeyframes(t8))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t3.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t3.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let et=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ee=t=>e=>"string"==typeof e&&e.startsWith(t),ei=ee("--"),en=ee("var(--"),er=t=>!!en(t)&&es.test(t.split("/*")[0].trim()),es=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ea=t=>e=>e.test(t),el=[td,tM,tE,tA,tV,tD,{test:t=>"auto"===t,parse:t=>t}],eu=t=>el.find(ea(t));class eh extends t7{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&er(n=n.trim())){let r=function t(e,i,n=1){g(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=eo.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return et(t)?parseFloat(t):t}return er(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!c.has(i)||2!==t.length)return;let[n,r]=t,s=eu(n),o=eu(r);if(s!==o)if(tQ(s)&&tQ(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||th(n))&&i.push(e)}if(i.length){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tZ.has(e)&&tB(e).values.length&&(n=t[r]),r++}if(n&&e)for(let r of i)t[r]=tG(e,n)}}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t2[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=t2[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let ec=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t$.test(t)||"0"===t)&&!t.startsWith("url(")),ed=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(ed),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}class ef{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=A.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(t4(),t8()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=A.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ec(r,e),a=ec(s,e);return g(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||H(i))&&n)}(t,i,n,r))if(z.current||!s){a&&a(ep(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function em(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let eg={layout:0,mainThread:0,waapi:0},ev=(t,e,i)=>t+(e-t)*i;function ey(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ex(t,e){return i=>i>0?e:t}let eb=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},ew=[tS,tP,tk],eP=t=>ew.find(e=>e.test(t));function eS(t){let e=eP(t);if(g(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tk&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=ey(a,n,t+1/3),s=ey(a,n,t),o=ey(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let eT=(t,e)=>{let i=eS(t),n=eS(e);if(!i||!n)return ex(t,e);let r={...i};return t=>(r.red=eb(i.red,n.red,t),r.green=eb(i.green,n.green,t),r.blue=eb(i.blue,n.blue,t),r.alpha=ev(i.alpha,n.alpha,t),tP.transform(r))},eA=(t,e)=>i=>e(t(i)),eE=(...t)=>t.reduce(eA),eM=new Set(["none","hidden"]);function eD(t,e){return i=>ev(t,e,i)}function eV(t){return"number"==typeof t?eD:"string"==typeof t?er(t)?ex:tR.test(t)?eT:eR:Array.isArray(t)?eC:"object"==typeof t?tR.test(t)?eT:ek:ex}function eC(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>eV(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function ek(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eV(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let eR=(t,e)=>{let i=t$.createTransformer(e),n=tB(t),r=tB(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?eM.has(t)&&!r.values.length||eM.has(e)&&!n.values.length?function(t,e){return eM.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):eE(eC(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):(g(!0,`Complex values '${t}' and '${e}
1' 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.`),ex(t,e))};function ej(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?ev(t,e,i):eV(t)(t,e)}function eL(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let eF={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eO(t,e){return t*Math.sqrt(1-e*e)}let eB=["duration","bounce"],eI=["stiffness","damping","mass"];function eU(t,e){return e.some(e=>void 0!==t[e])}function eN(t=eF.visualDuration,e=eF.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:eF.velocity,stiffness:eF.stiffness,damping:eF.damping,mass:eF.mass,isResolvedFromDuration:!1,...t};if(!eU(t,eI)&&eU(t,eB))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*tc(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:eF.mass,stiffness:n,damping:r}}else{let i=function({duration:t=eF.duration,bounce:e=eF.bounce,velocity:i=eF.velocity,mass:n=eF.mass}){let r,s;g(t<=$(eF.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=tc(eF.minDamping,eF.maxDamping,o),t=tc(eF.minDuration,eF.maxDuration,W(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/eO(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=eO(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=$(t),isNaN(a))return{stiffness:eF.stiffness,damping:eF.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:eF.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-W(n.velocity||0)}),m=p||0,v=h/(2*Math.sqrt(u*c)),y=a-o,x=W(Math.sqrt(u/c)),b=5>Math.abs(y);if(r||(r=b?eF.restSpeed.granular:eF.restSpeed.default),s||(s=b?eF.restDelta.granular:eF.restDelta.default),v<1){let t=eO(x,v);i=e=>a-Math.exp(-v*x*e)*((m+v*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===v)i=t=>a-Math.exp(-x*t)*(y+(m+x*y)*t);else{let t=x*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*x*e),n=Math.min(t*e,300);return a-i*((m+v*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let w={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let n=0;v<1&&(n=0===t?$(m):eL(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(em(w),2e4),e=G(e=>w.next(t*e).value,t,30);return t+"ms "+e}};return w}function e$({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=i*e,y=p+v,x=void 0===o?y:o(y);x!==y&&(v=x-p);let b=t=>-v*Math.exp(-t/n),w=t=>x+b(t),P=t=>{let e=b(t),i=w(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},S=t=>{m(f.value)&&(c=t,d=eN({keyframes:[f.value,g(f.value)],velocity:eL(w,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),S(t)),void 0!==c&&t>=c)?d.next(t-c):(e||P(t),f)}}}let eW=tt(.42,0,1,1),ez=tt(0,0,.58,1),eH=tt(.42,0,.58,1),e_=t=>Array.isArray(t)&&"number"!=typeof t[0],eX={linear:g,easeIn:eW,easeInOut:eH,easeOut:ez,circIn:ta,circInOut:tu,circOut:tl,backIn:tr,backInOut:ts,backOut:tn,anticipate:to},eY=t=>{if(X(t)){g(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return tt(e,i,n,r)}return"string"==typeof t?(g(void 0!==eX[t],`Invalid easing type '${t}'`),eX[t]):t};function eq({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=e_(n)?n.map(eY):eY(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;
1if(g(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||ej,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=eE(Array.isArray(e)?e[i]||g:e,s)),n.push(s)}return n}(e,n,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=K(t[n],t[n+1],i);return a[n](r)};return i?e=>u(tc(t[0],t[s-1],e)):u}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=K(0,e,n);t.push(ev(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||eH).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let eK=t=>{let e=({timestamp:e})=>t(e);return{start:()=>b.update(e,!0),stop:()=>w(e),now:()=>P.isProcessing?P.timestamp:A.now()}},eG={decay:e$,inertia:e$,tween:eq,keyframes:eq,spring:eN},eZ=t=>t/100;class eQ extends ef{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||t7;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=H(n)?n:eG[n]||eq;l!==eq&&"number"!=typeof t[0]&&(e=eE(eZ,ej(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=em(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;eg.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=tc(0,1,i)*h}let b=v?{done:!1,value:a[0]}:x.next(y);o&&(b.value=o(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==n&&(b.value=ep(a,this.options,n)),m&&m(b.value),P&&this.finish(),b}get duration(){let{resolved:t}=this;return t?W(t.calculatedDuration):0}get time(){return W(this.currentTime)}set time(t){t=$(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=W(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eK,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),eg.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eJ=new Set(["opacity","clipPath","filter","transform"]),e0=B(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e1={anticipate:to,backInOut:ts,circInOut:tu};class e5 extends ef{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new eh(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&q()&&s in e1&&(s=e1[s]),H((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&q()||!e||"string"==typeof e&&(e in Q||q())||X(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eQ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,r=h.times,s=h.ease,o="keyframes"}let h=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&q()?G(e,i):X(e)?Z(e):Array.isArray(e)?e.map(e=>t(e,i)||Q.easeOut):Q[e]}(a,r);Array.isArray(h)&&(u.easing=h),y.value&&eg.waapi++;let c=t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"});return y.value&&c.finished.finally(()=>{eg.waapi--}),c}(a.owner.current,l,t,{...this.options,duration:n,times:r,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(_(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(ep(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:r,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return W(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return W(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=$(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return g;let{animation:i}=e;_(i,t)}else this.pendingTimeline=t;return g}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eQ({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),c=$(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
1static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e0()&&i&&eJ.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let e2={type:"spring",stiffness:500,damping:25,restSpeed:10},e3=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),e6={type:"keyframes",duration:.8},e9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e8=(t,{keyframes:e})=>e.length>2?e6:h.has(t)?t.startsWith("scale")?e3(e[1]):e2:e9,e4=(t,e,i,n={},r,s)=>o=>{let a=l(n,t)||{},u=a.delay||n.delay||0,{elapsed:h=0}=n;h-=$(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(c={...c,...e8(t,c)}),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(z.current||m.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!s&&void 0!==e.get()){let t=ep(c.keyframes,a);if(void 0!==t)return b.update(()=>{c.onUpdate(t),c.onComplete()}),new N([])}return!s&&e5.supports(c)?new e5(c):new eQ(c)};function e7(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:u,...h}=e;n&&(o=n);let d=[],p=r&&t.animationState&&t.animationState.getState()[r];for(let e in h){let n=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),r=h[e];if(void 0===r||p&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(p,e))continue;let a={delay:i,...l(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[O];if(i){let t=window.MotionHandoffAnimation(i,e,b);null!==t&&(a.startTime=t,u=!0)}}L(t,e),n.start(e4(e,n,r,t.shouldReduceMotion&&c.has(e)?{type:!1}:a,t,u));let f=n.animation;f&&d.push(f)}return u&&Promise.all(d).then(()=>{b.update(()=>{u&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=a(t,e)||{};for(let e in r={...r,...i}){let i=f(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,R(i))}}(t,u)})}),d}function it(t,e,i={}){var n;let r=a(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(e7(t,r,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ie).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(it(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([o(),l(i.delay)]);{let[t,e]="beforeChildren"===u?[o,l]:[l,o];return t().then(()=>e())}}function ie(t,e){return t.sortNodePosition(e)}function ii(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function ir(t){return"string"==typeof t||Array.isArray(t)}let is=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],io=["initial",...is],ia=io.length,il=[...is].reverse(),iu=is.length;function ih(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ic(){return{animate:ih(!0),whileInView:ih(),whileHover:ih(),whileTap:ih(),whileDrag:ih(),whileFocus:ih(),exit:ih()}}class id{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ip extends id{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>it(t,e,i)));else if("string"==typeof e)n=it(t,e,i);else{let r="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(e7(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ic(),n=!0,s=e=>(i,n)=>{var r;let s=a(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ia;t++){let n=io[t],r=e.props[n];(ir(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},h=[],c=new Set,p={},f=1/0;for(let e=0;e<iu;e++){var m,g;let a=il[e],v=i[a],y=void 0!==l[a]?l[a]:u[a],x=ir(y),b=a===o?v.isActive:null;!1===b&&(f=e);let w=y===u[a]&&y!==l[a]&&x;if(w&&n&&t.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...p},!v.isActive&&null===b||!y&&!v.prevProp||r(y)||"boolean"==typeof y)continue;let P=(m=v.prevProp,"string"==typeof(g=y)?g!==m:!!Array.isArray(g)&&!ii(g,m)),S=P||a===o&&v.isActive&&!w&&x||e>f&&x,T=!1,A=Array.isArray(y)?y:[y],E=A.reduce(s(a),{});!1===b&&(E={});let{prevResolvedValues:M={}}=v,D={...M,...E},V=e=>{S=!0,c.has(e)&&(T=!0,c.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=E[t],i=M[t];if(p.hasOwnProperty(t))continue;let n=!1;(d(e)&&d(i)?ii(e,i):e===i)?void 0!==e&&c.has(t)?V(t):v.protectedKeys[t]=!0:null!=e?V(t):c.add(t)}v.prevProp=y,v.prevResolvedValues=E,v.isActive&&(p={...p,...E}),n&&t.blockInitialAnimation&&(S=!1);let C=!(w&&P)||T;S&&C&&h.push(...A.map(t=>({animation:t,options:{type:a}})))}if(c.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),h.push({animation:e})}let v=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),n=!1,v?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ic(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let im=0;class ig extends id{constructor(){super(...arguments),this.id=im++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let iv={x:!1,y:!1},iy=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ix(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function ib(t){return{point:{x:t.pageX,y:t.pageY}}}let iw=t=>e=>iy(e)&&t(e,ib(e));function iP(t,e,i,n){return ix(t,e,iw(i),n)}let iS=(t,e)=>Math.abs(t-e);class iT{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iM(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iS(t.x,e.x)**2+iS(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=P;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iA(e,this.transformPagePoint),b.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iM("pointercancel"===t.type?this.lastMoveEventInfo:iA(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!iy(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=iA(ib(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=P;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iM(s,this.history)),this.removeListeners=eE(iP(this.contextWindow,"pointermove",this.handlePointerMove),iP(this.contextWindow,"pointerup",this.handlePointerUp),iP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),w(this.updatePoint)}}function iA(t,e){return e?{point:e(t.point)}:t}function iE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iM({point:t},e){return{point:t,delta:iE(t,iD(e)),offset:iE(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=iD(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>$(.1)));)i--;if(!n)return{x:0,y:0};let s=W(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iD(t){return t[t.length-1]}function iV(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iC(t){return t.max-t.min}function ik(t,e,i,n=.5){t.origin=n,t.originPoint=ev(e.min,e.max,t.origin),t.scale=iC(i)/iC(e),t.translate=ev(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iR(t,e,i,n){ik(t.x,e.x,i.x,n?n.originX:void 0),ik(t.y,e.y,i.y,n?n.originY:void 0)}function ij(t,e,i){t.min=i.min+e.min,t.max=t.min+iC(e)}function iL(t,e,i){t.min=e.min-i.min,t.max=t.min+iC(e)}function iF(t,e,i){iL(t.x,e.x,i.x),iL(t.y,e.y,i.y)}function iO(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iB(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function iI(t,e,i){return{min:iU(t,e),max:iU(t,i)}}function iU(t,e){return"number"==typeof t?t:t[e]||0}let iN=()=>({translate:0,scale:1,origin:0,originPoint:0}),i$=()=>({x:iN(),y:iN()}),iW=()=>({min:0,max:0}),iz=()=>({x:iW(),y:iW()});function iH(t){return[t("x"),t("y")]}function i_({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function iX(t){return void 0===t||1===t}function iY({scale:t,scaleX:e,scaleY:i}){return!iX(t)||!iX(e)||!iX(i)}function iq(t){return iY(t)||iK(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iK(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iG(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iZ(t,e=0,i=1,n,r){t.min=iG(t.min,e,i,n,r),t.max=iG(t.max,e,i,n,r)}function iQ(t,{x:e,y:i}){iZ(t.x,e.translate,e.scale,e.originPoint),iZ(t.y,i.translate,i.scale,i.originPoint)}function iJ(t,e){t.min=t.min+e,t.max=t.max+e}function i0(t,e,i,n,r=.5){let s=ev(t.min,t.max,r);iZ(t,e,i,s,n)}function i1(t,e){i0(t.x,e.x,e.scaleX,e.scale,e.originX),i0(t.y,e.y,e.scaleY,e.scale,e.originY)}function i5(t,e){return i_(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let i2=({current:t})=>t?t.ownerDocument.defaultView:null,i3=new WeakMap;class i6{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iz(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iT(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ib(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(iv[t])return null;else return iv[t]=!0,()=>{iv[t]=!1};return iv.x||iv.y?null:(iv.x=iv.y=!0,()=>{iv.x=iv.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iH(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tE.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=iC(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&b.postRender(()=>r(t,e)),L(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iH(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:i2(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&b.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!i9(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?ev(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?ev(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&iV(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iO(t.x,i,r),y:iO(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iI(t,"left","right"),y:iI(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iH(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iV(e))return!1;let n=e.current;g(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=i5(t,i),{scroll:r}=e;return r&&(iJ(n.x,r.offset.x),iJ(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:iB((t=r.layout.layoutBox).x,s.x),y:iB(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=i_(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iH(o=>{if(!i9(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return L(this.visualElement,t),i.start(e4(t,i,0,e,this.visualElement,!1))}stopAnimation(){iH(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iH(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iH(e=>{let{drag:i}=this.getProps();if(!i9(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-ev(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iV(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iH(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iC(t),r=iC(e);return r>n?i=K(e.min,e.max-n,t.min):n>r&&(i=K(t.min,t.max-r,e.min)),tc(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iH(e=>{if(!i9(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(ev(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;i3.set(this.visualElement,this);let t=iP(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iV(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),b.read(e);let r=ix(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iH(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function i9(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i8 extends id{constructor(t){super(t),this.removeGroupControls=g,this.removeListeners=g,this.controls=new i6(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||g}unmount(){this.removeGroupControls(),this.removeListeners()}}let i4=t=>(e,i)=>{t&&b.postRender(()=>t(e,i))};class i7 extends id{constructor(){super(...arguments),this.removePointerDownListener=g}onPointerDown(t){this.session=new iT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i2(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i4(t),onStart:i4(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&b.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=iP(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nt,ne,ni=i(10388),nn=i(89656),nr=i(15506),ns=i(26357);let no=(0,nn.createContext)({}),na={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nu={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tM.test(t))return t;else t=parseFloat(t);let i=nl(t,e.target.x),n=nl(t,e.target.y);return`${i}% ${n}%`}},nh={},{schedule:nc,cancel:nd}=x(queueMicrotask,!1);class np extends nn.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;for(let t in nm)nh[t]=nm[t],ei(t)&&(nh[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),na.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||b.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nf(t){let[e,i]=(0,nr.xQ)(),n=(0,nn.useContext)(ns.L);return(0,ni.jsx)(np,{...t,layoutGroup:n,switchLayoutGroup:(0,nn.useContext)(no),isPresent:e,safeToRemove:i})}let nm={borderRadius:{...nu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nu,borderTopRightRadius:nu,borderBottomLeftRadius:nu,borderBottomRightRadius:nu,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t$.parse(t);if(n.length>5)return t;let r=t$.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=ev(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},ng=(t,e)=>t.depth-e.depth;class nv{constructor(){this.children=[],this.isDirty=!1}add(t){E(this.children,t),this.isDirty=!0}remove(t){M(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ng),this.isDirty=!1,this.children.forEac
1h(t)}}function ny(t){let e=j(t)?t.get():t;return p(e)?e.toValue():e}let nx=["TopLeft","TopRight","BottomLeft","BottomRight"],nb=nx.length,nw=t=>"string"==typeof t?parseFloat(t):t,nP=t=>"number"==typeof t||tM.test(t);function nS(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nT=nE(0,.5,tl),nA=nE(.5,.95,g);function nE(t,e,i){return n=>n<t?0:n>e?1:i(K(t,e,n))}function nM(t,e){t.min=e.min,t.max=e.max}function nD(t,e){nM(t.x,e.x),nM(t.y,e.y)}function nV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nC(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nk(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tE.test(e)&&(e=parseFloat(e),e=ev(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=ev(s.min,s.max,n);t===s&&(a-=e),t.min=nC(t.min,e,i,a,r),t.max=nC(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nR=["x","scaleX","originX"],nj=["y","scaleY","originY"];function nL(t,e,i,n){nk(t.x,e,nR,i?i.x:void 0,n?n.x:void 0),nk(t.y,e,nj,i?i.y:void 0,n?n.y:void 0)}function nF(t){return 0===t.translate&&1===t.scale}function nO(t){return nF(t.x)&&nF(t.y)}function nB(t,e){return t.min===e.min&&t.max===e.max}function nI(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nU(t,e){return nI(t.x,e.x)&&nI(t.y,e.y)}function nN(t){return iC(t.x)/iC(t.y)}function n$(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nW{constructor(){this.members=[]}add(t){E(this.members,t),t.scheduleRender()}remove(t){if(M(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nH=["","X","Y","Z"],n_={visibility:"hidden"},nX=0;function nY(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nq({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nX++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,y.value&&(nz.nodes=nz.calculatedTargetDeltas=nz.calculatedProjections=0),this.nodes.forEach(nZ),this.nodes.forEach(n3),this.nodes.forEach(n6),this.nodes.forEach(nQ),y.addProjectionMetrics&&y.addProjectionMetrics(nz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nv)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new D),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=A.now(),n=({timestamp:r})=>{let s=r-i;s>=250&&(w(n),t(s-e))};return b.read(n,!0),()=>w(n)}(n,250),na.hasAnimatedSinceResize&&(na.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(n2))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||re,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),u=!this.targetLayout||!nU(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...l(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||n2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,w(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(n9),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[O];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",b,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n0);return}this.isUpdating||this.nodes.forEach(n1),this.isUpdating=!1,this.nodes.forEach(n5),this.nodes.forEach(nK),this.nodes.forEach(nG),this.clearAllSnapshots();let t=A.now();P.delta=tc(0,1e3/60,t-P.timestamp),P.timestamp=t,P.isProcessing=!0,S.update.process(P),S.preRender.process(P),S.render.process(P),P.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nJ),this.sharedNodes.forEach(n8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,b.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){b.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iC(this.snapshot.measuredBox.x)||iC(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iz(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nO(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||iq(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rr((e=n).x),rr(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iz();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ro))){let{scroll:t}=this.root;t&&(iJ(i.x,t.offset.x),iJ(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iz();if(nD(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nD(i,t),iJ(i.x,r.offset.x),iJ(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iz();nD(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&i1(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iq(n.latestValues)&&i1(i,n.latestValues)}return iq(this.latestValues)&&i1(i,this.latestValues),i}removeTransform(t){let e=iz();nD(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iq(i.latestValues))continue;iY(i.latestValues)&&i.updateSnapshot();let n=iz();nD(n,i.measurePageBox()),nL(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iq(this.latestValues)&&nL(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==P.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=P.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iz(),this.relativeTargetOrigin=iz(),iF(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nD(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iz(),this.targetWithTransforms=iz()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,ij(i.x,n.x,r.x),ij(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nD(this.target,this.layout.layoutBox),iQ(this.target,this.targetDelta)):nD(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iz(),this.relativeTargetOrigin=iz(),iF(this.relativeTargetOrigin,this.target,t.target),nD(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}y.value&&nz.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iY(this.parent.latestValues)||iK(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)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===P.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nD(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&i1(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iQ(t,s)),n&&iq(r.latestValues)&&i1(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iz());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nV(this.prevProjectionDelta.x,this.projectionDelta.x),nV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iR(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&n$(this.projectionDelta.x,this.prevProjectionDelta.x)&&n$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),y.value&&nz.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=i$(),this.projectionDelta=i$(),this.projectionDeltaWithTransform=i$()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=i$();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iz(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(rt));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n4(o.x,t.x,n),n4(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,g;if(iF(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=n,n7(p.x,f.x,m.x,g),n7(p.y,f.y,m.y,g),i&&(u=this.relativeTarget,d=i,nB(u.x,d.x)&&nB(u.y,d.y)))this.isProjectionDirty=!1;i||(i=iz()),nD(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=ev(0,void 0!==i.opacity?i.opacity:1,nT(n)),t.opacityExit=ev(void 0!==e.opacity?e.opacity:1,0,nA(n))):s&&(t.opacity=ev(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nb;r++){let s=`border${nx[r]}Radius`,o=nS(e,s),a=nS(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nP(o)===nP(a)?(t[s]=Math.max(ev(nw(o),nw(a),n),0),(tE.test(a)||tE.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=ev(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(w(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=b.update(()=>{na.hasAnimatedSinceResize=!0,eg.layout++,this.currentAnimation=function(t,e,i){let n=j(0)?0:R(t);return n.start(e4("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{eg.layout--},onComplete:()=>{eg.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),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 t=this.getStack();t&&t.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 t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rs(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iz();let e=iC(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iC(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nD(e,i),i1(e,r),iR(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nW),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nY("z",t,n,this.animationValues);for(let e=0;e<nH.length;e++)nY(`rotate${nH[e]}`,t,n,this.animationValues),nY(`skew${nH[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return n_;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=ny(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ny(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iq(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,nh){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:r}=nh[t],a="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=a}else r?this.options.visualElement.renderState.vars[t]=a:n[t]=a}return this.options.layoutId&&(n.pointerEvents=s===this?ny(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(n0),this.root.sharedNodes.clear()}}}function nK(t){t.updateLayout()}function nG(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?iH(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=iC(n);n.min=e[t].min,n.max=n.min+r}):rs(r,i.layoutBox,e)&&iH(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iC(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=i$();iR(o,e,i.layoutBox);let a=i$();s?iR(a,t.applyTransform(n,!0),i.measuredBox):iR(a,e,i.layoutBox);let l=!nO(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iz();iF(o,i.layoutBox,r.layoutBox);let a=iz();iF(a,e,s.layoutBox),nU(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nZ(t){y.value&&nz.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nQ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nJ(t){t.clearSnapshot()}function n0(t){t.clearMeasurements()}function n1(t){t.isLayoutDirty=!1}function n5(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n2(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n3(t){t.resolveTargetDelta()}function n6(t){t.calcProjection()}function n9(t){t.resetSkewAndRotation()}function n8(t){t.removeLeadSnapshot()}function n4(t,e,i){t.translate=ev(e.translate,0,i),t.scale=ev(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n7(t,e,i,n){t.min=ev(e.min,i.min,n),t.max=ev(e.max,i.max,n)}function rt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let re={duration:.45,ease:[.4,0,.1,1]},ri=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rn=ri("applewebkit/")&&!ri("chrome/")?Math.round:g;function rr(t){t.min=rn(t.min),t.max=rn(t.max)}function rs(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nN(e)-nN(i)))}function ro(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ra=nq({attachResizeListener:(t,e)=>ix(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rl={current:void 0},ru=nq({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rl.current){let t=new ra({});t.mount(window),t.setOptions({layoutScroll:!0}),rl.current=t}return rl.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});
1function rh(t,e){let i=function(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let e=document,i=(n=void 0,e.querySelectorAll(t));return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rc(t){return!("touch"===t.pointerType||iv.x||iv.y)}function rd(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&b.postRender(()=>r(e,ib(e)))}class rp extends id{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rh(t,i),o=t=>{if(!rc(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{rc(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(rd(this.node,e,"Start"),t=>rd(this.node,t,"End"))))}unmount(){}}class rf extends id{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=eE(ix(this.node.current,"focus",()=>this.onFocus()),ix(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rm=(t,e)=>!!e&&(t===e||rm(t,e.parentElement)),rg=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rv=new WeakSet;function ry(t){return e=>{"Enter"===e.key&&t(e)}}function rx(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let rb=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=ry(()=>{if(rv.has(i))return;rx(i,"down");let t=ry(()=>{rx(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rx(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function rw(t){return iy(t)&&!(iv.x||iv.y)}function rP(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&b.postRender(()=>r(e,ib(e)))}class rS extends id{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rh(t,i),o=t=>{let n=t.currentTarget;if(!rw(t)||rv.has(n))return;rv.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rw(t)&&rv.has(n)&&(rv.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||rm(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{!rg.has(t.tagName)&&-1===t.tabIndex&&null===t.getAttribute("tabindex")&&(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>rb(t,r),r)}),s}(t,(t,e)=>(rP(this.node,e,"Start"),(t,{success:e})=>rP(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rT=new WeakMap,rA=new WeakMap,rE=t=>{let e=rT.get(t.target);e&&e(t)},rM=t=>{t.forEach(rE)},rD={some:0,all:1};class rV extends id{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rD[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rA.has(i)||rA.set(i,{});let n=rA.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rM,{root:t,...e})),n[r]}(e);return rT.set(t,i),n.observe(t),()=>{rT.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let rC=(0,nn.createContext)({strict:!1});var rk=i(61396);let rR=(0,nn.createContext)({});function rj(t){return r(t.animate)||io.some(e=>ir(t[e]))}function rL(t){return!!(rj(t)||t.variants)}function rF(t){return Array.isArray(t)?t.join(" "):t}var rO=i(11340);let rB={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"]},rI={};for(let t in rB)rI[t]={isEnabled:e=>rB[t].some(t=>!!e[t])};let rU=Symbol.for("motionComponentSymbol");var rN=i(68045),r$=i(83222);function rW(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nh[t]||"opacity"===t)}let rz=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r_=u.length;function rX(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(h.has(t)){o=!0;continue}if(ei(t)){r[t]=i;continue}{let e=rz(i,tY[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<r_;s++){let o=u[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=rz(a,tY[o]);if(!l){r=!1;let e=rH[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let rY=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rq(t,e,i){for(let n in e)j(e[n])||rW(n,i)||(t[n]=e[n])}let rK=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","ignoreStrict","viewport"]);function rG(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rK.has(t)}let rZ=t=>!rG(t);try{!function(t){t&&(rZ=e=>e.startsWith("on")?!rG(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let rQ=["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 rJ(t){if("string"!=typeof t||t.includes("-"));else if(rQ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let r0={offset:"stroke-dashoffset",array:"stroke-dasharray"},r1={offset:"strokeDashoffset",array:"strokeDasharray"};function r5(t,e,i){return"string"==typeof t?t:tM.transform(e+i*t)}function r2(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(rX(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=r5(e,t.x,t.width),r=r5(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?r0:r1;t[s.offset]=tM.transform(-n);let o=tM.transform(e),a=tM.transform(i);t[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let r3=()=>({...rY(),attrs:{}}),r6=t=>"string"==typeof t&&"svg"===t.toLowerCase();var r9=i(13125);let r8=t=>(e,i)=>{let n=(0,nn.useContext)(rR),s=(0,nn.useContext)(rN.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,s,a){let l={latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=ny(a[t]);let{initial:l,animate:u}=t,h=rj(t),c=rL(t);e&&c&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=o(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,s,a,t),renderState:e()};return i&&(l.onMount=t=>i({props:n,current:t,...l}),l.onUpdate=t=>i(t)),l})(t,e,n,s);return i?a():(0,r9.M)(a)};function r4(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(j(r[o])||e.style&&j(e.style[o])||rW(o,t)||(null===(n=null==i?void 0:i.getValue(o))||void 0===n?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}let r7={useVisualState:r8({scrapeMotionValuesFromProps:r4,createRenderState:rY})};function st(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}function se(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let si=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"]);
1function sn(t,e,i,n){for(let i in se(t,e,void 0,n),e.attrs)t.setAttribute(si.has(i)?i:F(i),e.attrs[i])}function sr(t,e,i){let n=r4(t,e,i);for(let i in t)(j(t[i])||j(e[i]))&&(n[-1!==u.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let ss=["x","y","width","height","cx","cy","r"],so={useVisualState:r8({scrapeMotionValuesFromProps:sr,createRenderState:r3,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(h.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<ss.length;i++){let n=ss[i];t[n]!==e[n]&&(o=!0)}o&&b.read(()=>{st(i,n),b.render(()=>{r2(n,r,r6(i.tagName),t.transformTemplate),sn(i,n)})})}})},sa={current:null},sl={current:!1},su=[...el,tR,t$],sh=t=>su.find(ea(t)),sc=new WeakMap,sd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sp{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t7,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 t=A.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,b.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=rj(e),this.isVariantNode=rL(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&j(e)&&e.set(a[t],!1)}}mount(t){if(this.current=t,sc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),!sl.current&&(sl.current=!0,rO.B))if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sa.current=t.matches;t.addListener(e),e()}else sa.current=!1;this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sa.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),w(this.notifyUpdate),w(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&b.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rI){let e=rI[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iz()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<sd.length;e++){let i=sd[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(j(r))t.addValue(n,r);else if(j(s))t.addValue(n,R(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,R(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=R(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(et(n)||th(n))?n=parseFloat(n):!sh(n)&&t$.test(e)&&(n=tG(t,e)),this.setBaseTarget(t,j(n)?n.get():n)),j(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=o(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||j(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new D),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sf extends sp{constructor(){super(...arguments),this.KeyframeResolver=eh}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;j(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sm extends sf{constructor(){super(...arguments),this.type="html",this.renderInstance=se}readValueFromInstance(t,e){if(h.has(e)){let t=tK(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(ei(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i5(t,e)}build(t,e,i){rX(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return r4(t,e,i)}}class sg extends sf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iz,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&st(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=tK(e);return t&&t.default||0}return e=si.has(e)?e:F(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sr(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&b.postRender(this.updateDimensions)}build(t,e,i){r2(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){sn(t,e,i,n)}mount(t){this.isSVGTag=r6(t.tagName),super.mount(t)}}let sv=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((nt={animation:{Feature:ip},exit:{Feature:ig},inView:{Feature:rV},tap:{Feature:rS},focus:{Feature:rf},hover:{Feature:rp},pan:{Feature:i7},drag:{Feature:i8,ProjectionNode:ru,MeasureLayout:nf},layout:{ProjectionNode:ru,MeasureLayout:nf}},ne=(t,e)=>rJ(t)?new sg(e):new sm(e,{allowProjection:t!==nn.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){var s,o;function a(t,s){var o,a,l;let u,h={...(0,nn.useContext)(rk.Q),...t,layoutId:function({layoutId:t}){let e=(0,nn.useContext)(ns.L).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:c}=h,d=function(t){let{initial:e,animate:i}=function(t,e){if(rj(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ir(e)?e:void 0,animate:ir(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,nn.useContext)(rR));return(0,nn.useMemo)(()=>({initial:e,animate:i}),[rF(e),rF(i)])}(t),p=n(t,c);if(!c&&rO.B){a=0,l=0,(0,nn.useContext)(rC).strict;let t=function(t){let{drag:e,layout:i}=rI;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);u=t.MeasureLayout,d.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,nn.useContext)(rR),l=(0,nn.useContext)(rC),u=(0,nn.useContext)(rN.t),h=(0,nn.useContext)(rk.Q).reducedMotion,c=(0,nn.useRef)(null);n=n||l.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,nn.useContext)(no);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iV(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(c.current,i,r,p);let f=(0,nn.useRef)(!1);(0,nn.useInsertionEffect)(()=>{d&&f.current&&d.update(i,u)});let m=i[O],g=(0,nn.useRef)(!!m&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,m))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,m)));return(0,r$.E)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),nc.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,nn.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)}),g.current=!1))}),d}(r,p,h,e,t.ProjectionNode)}return(0,ni.jsxs)(rR.Provider,{value:d,children:[u&&d.visualElement?(0,ni.jsx)(u,{visualElement:d.visualElement,...h}):null,i(r,t,(o=d.visualElement,(0,nn.useCallback)(t=>{t&&p.onMount&&p.onMount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):iV(s)&&(s.current=t))},[o])),p,c,d.visualElement)]})}t&&function(t){for(let e in t)rI[e]={...rI[e],...t[e]}}(t),a.displayName=`motion.${"string"==typeof r?r:`create(${null!==(o=null!==(s=r.displayName)&&void 0!==s?s:r.name)&&void 0!==o?o:""})`}`;let l=(0,nn.forwardRef)(a);return l[rU]=r,l}({...rJ(t)?so:r7,preloadedFeatures:nt,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>
1{let o=(rJ(e)?function(t,e,i,n){let r=(0,nn.useMemo)(()=>{let i=r3();return r2(i,e,r6(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};rq(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return rq(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,nn.useMemo)(()=>{let i=rY();return rX(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(rZ(r)||!0===i&&rG(r)||!e&&!rG(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==nn.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,nn.useMemo)(()=>j(u)?u.get():u,[u]);return(0,nn.createElement)(e,{...l,children:h})}}(e),createVisualElement:ne,Component:t})}))},68045:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(89656).createContext)(null)},68803:(t,e,i)=>{i.d(e,{N:()=>v});var n=i(10388),r=i(89656),s=i(26357),o=i(13125),a=i(68045),l=i(61396);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:t,isPresent:e,anchorX:i}){let s=(0,r.useId)(),o=(0,r.useRef)(null),a=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=(0,r.useContext)(l.Q);return(0,r.useInsertionEffect)(()=>{let{width:t,height:n,top:r,left:l,right:u}=a.current;if(e||!o.current||!t||!n)return;let c="left"===i?`left: ${l}`:`right: ${u}`;o.current.dataset.motionPopId=s;let d=document.createElement("style");return h&&(d.nonce=h),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` 2 [data-motion-pop-id="${s}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${n}px !important; 6 ${c}px !important; 7 top: ${r}px !important; 8 } 9 `),()=>{document.head.removeChild(d)}},[e]),(0,n.jsx)(u,{isPresent:e,childRef:o,sizeRef:a,children:r.cloneElement(t,{ref:o})})}let c=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:l,presenceAffectsLayout:u,mode:c,anchorX:p})=>{let f=(0,o.M)(d),m=(0,r.useId)(),g=(0,r.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;s&&s()},[f,s]),v=(0,r.useMemo)(()=>({id:m,initial:e,isPresent:i,custom:l,onExitComplete:g,register:t=>(f.set(t,!1),()=>f.delete(t))}),u?[Math.random(),g]:[i,g]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[i]),r.useEffect(()=>{i||f.size||!s||s()},[i]),"popLayout"===c&&(t=(0,n.jsx)(h,{isPresent:i,anchorX:p,children:t})),(0,n.jsx)(a.t.Provider,{value:v,children:t})};function d(){return new Map}var p=i(15506);let f=t=>t.key||"";function m(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var g=i(83222);let v=({children:t,custom:e,initial:i=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync",propagate:h=!1,anchorX:d="left"})=>{let[v,y]=(0,p.xQ)(h),x=(0,r.useMemo)(()=>m(t),[t]),b=h&&!v?[]:x.map(f),w=(0,r.useRef)(!0),P=(0,r.useRef)(x),S=(0,o.M)(()=>new Map),[T,A]=(0,r.useState)(x),[E,M]=(0,r.useState)(x);(0,g.E)(()=>{w.current=!1,P.current=x;for(let t=0;t<E.length;t++){let e=f(E[t]);b.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[E,b.length,b.join("-")]);let D=[];if(x!==T){let t=[...x];for(let e=0;e<E.length;e++){let i=E[e],n=f(i);b.includes(n)||(t.splice(e,0,i),D.push(i))}return"wait"===u&&D.length&&(t=D),M(m(t)),A(x),null}let{forceRender:V}=(0,r.useContext)(s.L);return(0,n.jsx)(n.Fragment,{children:E.map(t=>{let r=f(t),s=(!h||!!v)&&(x===E||b.includes(r));return(0,n.jsx)(c,{isPresent:s,initial:(!w.current||!!i)&&void 0,custom:e,presenceAffectsLayout:l,mode:u,onExitComplete:s?void 0:()=>
9{if(!S.has(r))return;S.set(r,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==V||V(),M(P.current),h&&(null==y||y()),a&&a())},anchorX:d,children:t},r)})})}},83222:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(89656);let r=i(11340).B?n.useLayoutEffect:n.useEffect},85030:(t,e,i)=>{function n(t){let{moduleIds:e}=t;return null}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PreloadChunks",{enumerable:!0,get:function(){return n}}),i(10388),i(38521),i(23869),i(62676)}}]);
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.