(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2304],{6400:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}n.d(e,{Ul:function(){return a},gK:function(){return i},gY:function(){return r}})},499:function(t,e,n){"use strict";n.d(e,{v:function(){return F}});var r,i,o,a,s,l,u,c,d,h,f,p,m,v,g,y,b,x=n(6400),w=n(9882),E=n(8701),S=n(8728);function T(){for(var t=arguments.length,e=Array(t),n=0;n=i))&&!e.resolveDisabled(t)});if(-1===r)return r;return n.length-1-r;case v.Next:return n.findIndex(function(t,n){return!(n<=i)&&!e.resolveDisabled(t)});case v.Last:var o=n.slice().reverse().findIndex(function(t){return!e.resolveDisabled(t)});if(-1===o)return o;return n.length-1-o;case v.Specific:return n.findIndex(function(n){return e.resolveId(n)===t.id});case v.Nothing:return null;default:!function(t){throw Error("Unexpected object: "+t)}(t)}}();return -1===o?r:o}(e,{resolveItems:function(){return t.items},resolveActiveIndex:function(){return t.activeItemIndex},resolveId:function(t){return t.id},resolveDisabled:function(t){return t.dataRef.current.disabled}});return""===t.searchQuery&&t.activeItemIndex===n?t:(0,x.gY)({},t,{searchQuery:"",activeItemIndex:n})},g[b.Search]=function(t,e){var n=t.searchQuery+e.value.toLowerCase(),r=t.items.findIndex(function(t){var e;return(null==(e=t.dataRef.current.textValue)?void 0:e.startsWith(n))&&!t.dataRef.current.disabled});return -1===r||r===t.activeItemIndex?(0,x.gY)({},t,{searchQuery:n}):(0,x.gY)({},t,{searchQuery:n,activeItemIndex:r})},g[b.ClearSearch]=function(t){return""===t.searchQuery?t:(0,x.gY)({},t,{searchQuery:""})},g[b.RegisterItem]=function(t,e){return(0,x.gY)({},t,{items:[].concat(t.items,[{id:e.id,dataRef:e.dataRef}])})},g[b.UnregisterItem]=function(t,e){var n=t.items.slice(),r=null!==t.activeItemIndex?n[t.activeItemIndex]:null,i=n.findIndex(function(t){return t.id===e.id});return -1!==i&&n.splice(i,1),(0,x.gY)({},t,{items:n,activeItemIndex:i===t.activeItemIndex||null===r?null:n.indexOf(r)})},g),I=(0,w.createContext)(null);function L(t){var e=(0,w.useContext)(I);if(null===e){var n=Error("<"+t+" /> is missing a parent <"+F.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,L),n}return e}function j(t,e){return(0,E.E)(e.type,R,t,e)}I.displayName="MenuContext";var D=w.Fragment;function F(t){var e,n,r,i,o,a=(0,w.useReducer)(j,{menuState:y.Closed,buttonRef:(0,w.createRef)(),itemsRef:(0,w.createRef)(),items:[],searchQuery:"",activeItemIndex:null}),s=a[0],l=s.menuState,u=s.itemsRef,c=s.buttonRef,d=a[1];e="mousedown",n=function(t){var e,n,r,i,o,a=t.target;l!==y.Open||(null==(r=c.current)?void 0:r.contains(a))||null!=(i=u.current)&&i.contains(a)||(d({type:b.CloseMenu}),void 0===(e=m.Loose)&&(e=m.Strict),a!==document.body&&(0,E.E)(e,((n={})[m.Strict]=function(){return a.matches(A)},n[m.Loose]=function(){for(var t=a;null!==t;){if(t.matches(A))return!0;t=t.parentElement}return!1},n))||(t.preventDefault(),null==(o=c.current)||o.focus()))},(i=(0,w.useRef)(n)).current=n,(0,w.useEffect)(function(){function t(t){i.current.call(window,t)}return window.addEventListener(e,t,r),function(){return window.removeEventListener(e,t,r)}},[e,r]);var h=(0,w.useMemo)(function(){return{open:l===y.Open}},[l]);return w.createElement(I.Provider,{value:a},w.createElement(V.up,{value:(0,E.E)(l,((o={})[y.Open]=V.ZM.Open,o[y.Closed]=V.ZM.Closed,o))},(0,S.sY)({props:t,slot:h,defaultTag:D,name:"Menu"})))}var B=(0,S.yV)(function t(e,n){var r,i,o,a,s,l=L([F.name,t.name].join(".")),u=l[0],c=l[1],h=T(u.buttonRef,n),f="headlessui-menu-button-"+(0,C.M)(),p=O(),m=(0,w.useCallback)(function(t){switch(t.key){case d.Space:case d.Enter:case d.ArrowDown:t.preventDefault(),t.stopPropagation(),c({type:b.OpenMenu}),p.nextFrame(function(){return c({type:b.GoToItem,focus:v.First})});break;case d.ArrowUp:t.preventDefault(),t.stopPropagation(),c({type:b.OpenMenu}),p.nextFrame(function(){return c({type:b.GoToItem,focus:v.Last})})}},[c,p]),g=(0,w.useCallback)(function(t){t.key===d.Space&&t.preventDefault()},[]),E=(0,w.useCallback)(function(t){if(function(t){for(var e,n,r=t.parentElement,i=null;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(i=r),r=r.parentElement;var o=null!=(e=(null==(n=r)?void 0:n.getAttribute("disabled"))==="")&&e;return!(o&&function(t){if(!t)return!1;for(var e=t.previousElementSibling;null!==e;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}(i))&&o}(t.currentTarget))return t.preventDefault();e.disabled||(u.menuState===y.Open?(c({type:b.CloseMenu}),p.nextFrame(function(){var t;return null==(t=u.buttonRef.current)?void 0:t.focus({preventScroll:!0})})):(t.preventDefault(),t.stopPropagation(),c({type:b.OpenMenu})))},[c,p,u,e.disabled]),A=(0,w.useMemo)(function(){return{open:u.menuState===y.Open}},[u]),V={ref:h,id:f,type:(r=u.buttonRef,o=(i=(0,w.useState)(function(){return M(e)}))[0],a=i[1],(0,P.e)(function(){a(M(e))},[e.type,e.as]),(0,P.e)(function(){!o&&r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&a("button")},[o,r]),o),"aria-haspopup":!0,"aria-controls":null==(s=u.itemsRef.current)?void 0:s.id,"aria-expanded":e.disabled?void 0:u.menuState===y.Open,onKeyDown:m,onKeyUp:g,onClick:E};return(0,S.sY)({props:(0,x.gY)({},e,V),slot:A,defaultTag:"button",name:"Menu.Button"})}),U=S.AN.RenderStrategy|S.AN.Static,N=(0,S.yV)(function t(e,n){var r,i,o,a,s,l,u,c,h,f,p=L([F.name,t.name].join(".")),m=p[0],g=p[1],E=T(m.itemsRef,n),A="headlessui-menu-items-"+(0,C.M)(),M=O(),R=(0,V.oJ)(),I=null!==R?R===V.ZM.Open:m.menuState===y.Open;(0,w.useEffect)(function(){var t=m.itemsRef.current;t&&m.menuState===y.Open&&t!==document.activeElement&&t.focus({preventScroll:!0})},[m.menuState,m.itemsRef]),i=(r={container:m.itemsRef.current,enabled:m.menuState===y.Open,accept:function(t){return"menuitem"===t.getAttribute("role")?NodeFilter.FILTER_REJECT:t.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(t){t.setAttribute("role","none")}}).container,o=r.accept,a=r.walk,l=void 0===(s=r.enabled)||s,u=(0,w.useRef)(o),c=(0,w.useRef)(a),(0,w.useEffect)(function(){u.current=o,c.current=a},[o,a]),(0,P.e)(function(){if(i&&l)for(var t=u.current,e=c.current,n=Object.assign(function(e){return t(e)},{acceptNode:t}),r=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,n,!1);r.nextNode();)e(r.currentNode)},[i,l,u,c]);var j=(0,w.useCallback)(function(t){switch(M.dispose(),t.key){case d.Space:if(""!==m.searchQuery)return t.preventDefault(),t.stopPropagation(),g({type:b.Search,value:t.key});case d.Enter:if(t.preventDefault(),t.stopPropagation(),g({type:b.CloseMenu}),null!==m.activeItemIndex){var e,n=m.items[m.activeItemIndex].id;null==(e=document.getElementById(n))||e.click()}(0,k.k)().nextFrame(function(){var t;return null==(t=m.buttonRef.current)?void 0:t.focus({preventScroll:!0})});break;case d.ArrowDown:return t.preventDefault(),t.stopPropagation(),g({type:b.GoToItem,focus:v.Next});case d.ArrowUp:return t.preventDefault(),t.stopPropagation(),g({type:b.GoToItem,focus:v.Previous});case d.Home:case d.PageUp:return t.preventDefault(),t.stopPropagation(),g({type:b.GoToItem,focus:v.First});case d.End:case d.PageDown:return t.preventDefault(),t.stopPropagation(),g({type:b.GoToItem,focus:v.Last});case d.Escape:t.preventDefault(),t.stopPropagation(),g({type:b.CloseMenu}),(0,k.k)().nextFrame(function(){var t;return null==(t=m.buttonRef.current)?void 0:t.focus({preventScroll:!0})});break;case d.Tab:t.preventDefault(),t.stopPropagation();break;default:1===t.key.length&&(g({type:b.Search,value:t.key}),M.setTimeout(function(){return g({type:b.ClearSearch})},350))}},[g,M,m]),D=(0,w.useCallback)(function(t){t.key===d.Space&&t.preventDefault()},[]),B=(0,w.useMemo)(function(){return{open:m.menuState===y.Open}},[m]),N={"aria-activedescendant":null===m.activeItemIndex?void 0:null==(h=m.items[m.activeItemIndex])?void 0:h.id,"aria-labelledby":null==(f=m.buttonRef.current)?void 0:f.id,id:A,onKeyDown:j,onKeyUp:D,role:"menu",tabIndex:0,ref:E};return(0,S.sY)({props:(0,x.gY)({},e,N),slot:B,defaultTag:"div",features:U,visible:I,name:"Menu.Items"})}),_=w.Fragment;F.Button=B,F.Items=N,F.Item=function t(e){var n=e.disabled,r=void 0!==n&&n,i=e.onClick,o=(0,x.gK)(e,["disabled","onClick"]),a=L([F.name,t.name].join(".")),s=a[0],l=a[1],u="headlessui-menu-item-"+(0,C.M)(),c=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===u;(0,P.e)(function(){if(s.menuState===y.Open&&c){var t=(0,k.k)();return t.nextFrame(function(){var t;return null==(t=document.getElementById(u))?void 0:null==t.scrollIntoView?void 0:t.scrollIntoView({block:"nearest"})}),t.dispose}},[u,c,s.menuState]);var d=(0,w.useRef)({disabled:r});(0,P.e)(function(){d.current.disabled=r},[d,r]),(0,P.e)(function(){var t,e;d.current.textValue=null==(t=document.getElementById(u))?void 0:null==(e=t.textContent)?void 0:e.toLowerCase()},[d,u]),(0,P.e)(function(){return l({type:b.RegisterItem,id:u,dataRef:d}),function(){return l({type:b.UnregisterItem,id:u})}},[d,u]);var h=(0,w.useCallback)(function(t){return r?t.preventDefault():(l({type:b.CloseMenu}),(0,k.k)().nextFrame(function(){var t;return null==(t=s.buttonRef.current)?void 0:t.focus({preventScroll:!0})}),i)?i(t):void 0},[l,s.buttonRef,r,i]),f=(0,w.useCallback)(function(){if(r)return l({type:b.GoToItem,focus:v.Nothing});l({type:b.GoToItem,focus:v.Specific,id:u})},[r,u,l]),p=(0,w.useCallback)(function(){!r&&(c||l({type:b.GoToItem,focus:v.Specific,id:u}))},[r,c,u,l]),m=(0,w.useCallback)(function(){!r&&c&&l({type:b.GoToItem,focus:v.Nothing})},[r,c,l]),g=(0,w.useMemo)(function(){return{active:c,disabled:r}},[c,r]);return(0,S.sY)({props:(0,x.gY)({},o,{id:u,role:"menuitem",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,disabled:void 0,onClick:h,onFocus:f,onPointerMove:p,onMouseMove:p,onPointerLeave:m,onMouseLeave:m}),slot:g,defaultTag:_,name:"Menu.Item"})}},2659:function(t,e,n){"use strict";n.d(e,{u:function(){return M}});var r,i,o,a,s=n(6400),l=n(9882),u=n(8701),c=n(8728),d=n(196),h=n(1572),f=n(5117),p=n(4813),m=n(9102);function v(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i0&&(e=t.classList).add.apply(e,r)}function g(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i0&&(e=t.classList).remove.apply(e,r)}function y(t,e,n,r,i,a){var s,l=(0,m.k)(),u=void 0!==a?(s={called:!1},function(){if(!s.called)return s.called=!0,a.apply(void 0,arguments)}):function(){};return g.apply(void 0,[t].concat(i)),v.apply(void 0,[t].concat(e,n)),l.nextFrame(function(){g.apply(void 0,[t].concat(n)),v.apply(void 0,[t].concat(r)),l.add(function(t,e){var n=(0,m.k)();if(!t)return n.dispose;var r=getComputedStyle(t),i=[r.transitionDuration,r.transitionDelay].map(function(t){var e=t.split(",").filter(Boolean).map(function(t){return t.includes("ms")?parseFloat(t):1e3*parseFloat(t)}).sort(function(t,e){return e-t})[0];return void 0===e?0:e}),a=i[0],s=i[1];return 0!==a?n.setTimeout(function(){e(o.Finished)},a+s):e(o.Finished),n.add(function(){return e(o.Cancelled)}),n.dispose}(t,function(n){return g.apply(void 0,[t].concat(r,e)),v.apply(void 0,[t].concat(i)),u(n)}))}),l.add(function(){return g.apply(void 0,[t].concat(e,n,r,i))}),l.add(function(){return u(o.Cancelled)}),l.dispose}function b(t){return void 0===t&&(t=""),(0,l.useMemo)(function(){return t.split(" ").filter(function(t){return t.trim().length>1})},[t])}(r=o||(o={})).Finished="finished",r.Cancelled="cancelled";var x=(0,l.createContext)(null);x.displayName="TransitionContext",(i=a||(a={})).Visible="visible",i.Hidden="hidden";var w=(0,l.createContext)(null);function E(t){return"children"in t?E(t.children):t.current.filter(function(t){return t.state===a.Visible}).length>0}function S(t){var e,n=(0,l.useRef)(t),r=(0,l.useRef)([]),i=(e=(0,l.useRef)(!1),(0,l.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),e);(0,l.useEffect)(function(){n.current=t},[t]);var o=(0,l.useCallback)(function(t,e){void 0===e&&(e=c.l4.Hidden);var o,s=r.current.findIndex(function(e){return e.id===t});-1!==s&&((0,u.E)(e,((o={})[c.l4.Unmount]=function(){r.current.splice(s,1)},o[c.l4.Hidden]=function(){r.current[s].state=a.Hidden},o)),!E(r)&&i.current&&(null==n.current||n.current()))},[n,i,r]),s=(0,l.useCallback)(function(t){var e=r.current.find(function(e){return e.id===t});return e?e.state!==a.Visible&&(e.state=a.Visible):r.current.push({id:t,state:a.Visible}),function(){return o(t,c.l4.Unmount)}},[r,o]);return(0,l.useMemo)(function(){return{children:r,register:s,unregister:o}},[s,o,r])}function T(){}w.displayName="NestingContext";var P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function C(t){for(var e,n={},r=(0,s.Ul)(P);!(e=r()).done;){var i,o=e.value;n[o]=null!=(i=t[o])?i:T}return n}var A=c.AN.RenderStrategy;function V(t){var e,n,r,i=t.beforeEnter,m=t.afterEnter,v=t.beforeLeave,g=t.afterLeave,T=t.enter,P=t.enterFrom,V=t.enterTo,M=t.entered,k=t.leave,O=t.leaveFrom,R=t.leaveTo,I=(0,s.gK)(t,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),L=(0,l.useRef)(null),j=(0,l.useState)(a.Visible),D=j[0],F=j[1],B=I.unmount?c.l4.Unmount:c.l4.Hidden,U=function(){var t=(0,l.useContext)(x);if(null===t)throw Error("A is used but it is missing a parent or .");return t}(),N=U.show,_=U.appear,H=U.initial,z=function(){var t=(0,l.useContext)(w);if(null===t)throw Error("A is used but it is missing a parent or .");return t}(),Y=z.register,$=z.unregister,W=(0,f.M)(),Z=(0,l.useRef)(!1),q=S(function(){Z.current||(F(a.Hidden),$(W),tn.current.afterLeave())});(0,d.e)(function(){if(W)return Y(W)},[Y,W]),(0,d.e)(function(){var t;if(B===c.l4.Hidden&&W){if(N&&D!==a.Visible){F(a.Visible);return}(0,u.E)(D,((t={})[a.Hidden]=function(){return $(W)},t[a.Visible]=function(){return Y(W)},t))}},[D,W,Y,$,N,B]);var G=b(T),X=b(P),K=b(V),Q=b(M),J=b(k),tt=b(O),te=b(R),tn=(e={beforeEnter:i,afterEnter:m,beforeLeave:v,afterLeave:g},n=(0,l.useRef)(C(e)),(0,l.useEffect)(function(){n.current=C(e)},[e]),n),tr=(0,h.H)();(0,l.useEffect)(function(){if(tr&&D===a.Visible&&null===L.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[L,D,tr]);var ti=H&&!_;return(0,d.e)(function(){var t=L.current;if(t&&!ti)return Z.current=!0,N&&tn.current.beforeEnter(),N||tn.current.beforeLeave(),N?y(t,G,X,K,Q,function(t){Z.current=!1,t===o.Finished&&tn.current.afterEnter()}):y(t,J,tt,te,Q,function(t){Z.current=!1,t!==o.Finished||E(q)||(F(a.Hidden),$(W),tn.current.afterLeave())})},[tn,W,Z,$,q,L,ti,N,G,X,K,J,tt,te]),l.createElement(w.Provider,{value:q},l.createElement(p.up,{value:(0,u.E)(D,((r={})[a.Visible]=p.ZM.Open,r[a.Hidden]=p.ZM.Closed,r))},(0,c.sY)({props:(0,s.gY)({},I,{ref:L}),defaultTag:"div",features:A,visible:D===a.Visible,name:"Transition.Child"})))}function M(t){var e,n,r=t.show,i=t.appear,o=void 0!==i&&i,d=t.unmount,h=(0,s.gK)(t,["show","appear","unmount"]),f=(0,p.oJ)();if(void 0===r&&null!==f&&(r=(0,u.E)(f,((n={})[p.ZM.Open]=!0,n[p.ZM.Closed]=!1,n))),![!0,!1].includes(r))throw Error("A is used but it is missing a `show={true | false}` prop.");var m=(0,l.useState)(r?a.Visible:a.Hidden),v=m[0],g=m[1],y=S(function(){g(a.Hidden)}),b=(e=(0,l.useRef)(!0),(0,l.useEffect)(function(){e.current=!1},[]),e.current),T=(0,l.useMemo)(function(){return{show:r,appear:o||!b,initial:b}},[r,o,b]);(0,l.useEffect)(function(){r?g(a.Visible):E(y)||g(a.Hidden)},[r,y]);var P={unmount:d};return l.createElement(w.Provider,{value:y},l.createElement(x.Provider,{value:T},(0,c.sY)({props:(0,s.gY)({},P,{as:l.Fragment,children:l.createElement(V,Object.assign({},P,h))}),defaultTag:l.Fragment,features:A,visible:v===a.Visible,name:"Transition"})))}M.Child=function(t){var e=null!==(0,l.useContext)(x),n=null!==(0,p.oJ)();return!e&&n?l.createElement(M,Object.assign({},t)):l.createElement(V,Object.assign({},t))},M.Root=M},5117:function(t,e,n){"use strict";n.d(e,{M:function(){return l}});var r=n(9882),i=n(196),o=n(1572),a=0;function s(){return++a}function l(){var t=(0,o.H)(),e=(0,r.useState)(t?s:null),n=e[0],a=e[1];return(0,i.e)(function(){null===n&&a(s())},[n]),null!=n?""+n:void 0}},196:function(t,e,n){"use strict";n.d(e,{e:function(){return i}});var r=n(9882),i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},1572:function(t,e,n){"use strict";n.d(e,{H:function(){return o}});var r=n(9882),i={serverHandoffComplete:!1};function o(){var t=(0,r.useState)(i.serverHandoffComplete),e=t[0],n=t[1];return(0,r.useEffect)(function(){!0!==e&&n(!0)},[e]),(0,r.useEffect)(function(){!1===i.serverHandoffComplete&&(i.serverHandoffComplete=!0)},[]),e}},4813:function(t,e,n){"use strict";n.d(e,{ZM:function(){return i},oJ:function(){return s},up:function(){return l}});var r,i,o=n(9882),a=(0,o.createContext)(null);function s(){return(0,o.useContext)(a)}function l(t){var e=t.value,n=t.children;return o.createElement(a.Provider,{value:e},n)}a.displayName="OpenClosedContext",(r=i||(i={}))[r.Open=0]="Open",r[r.Closed=1]="Closed"},9102:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});var r=n(6400);function i(){var t=[],e={requestAnimationFrame:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=requestAnimationFrame.apply(void 0,arguments);e.add(function(){return cancelAnimationFrame(t)})}),nextFrame:function(){for(var t=arguments.length,n=Array(t),r=0;r2?i-2:0),a=2;a0){if(!(0,l.isValidElement)(m)||Array.isArray(m)&&m.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(h).map(function(t){return" - "+t}).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(function(t){return" - "+t}).join("\n")].join("\n"));return(0,l.cloneElement)(m,Object.assign({},function(t,e,n){for(var r,i=Object.assign({},t),o=(0,s.Ul)(n);!(r=o()).done;)!function(){var n,o=r.value;void 0!==t[o]&&void 0!==e[o]&&Object.assign(i,((n={})[o]=function(n){n.defaultPrevented||t[o](n),n.defaultPrevented||e[o](n)},n))}();return i}(function(t){var e=Object.assign({},t);for(var n in e)void 0===e[n]&&delete e[n];return e}(f(h,["ref"])),m.props,["onClick"]),p))}return(0,l.createElement)(u,Object.assign({},f(h,["ref"]),u!==l.Fragment&&p),m)}function h(t){var e;return Object.assign((0,l.forwardRef)(t),{displayName:null!=(e=t.displayName)?e:t.name})}function f(t,e){void 0===e&&(e=[]);for(var n,r=Object.assign({},t),i=(0,s.Ul)(e);!(n=i()).done;){var o=n.value;o in r&&delete r[o]}return r}(r=o||(o={}))[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",(i=a||(a={}))[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden"},4139:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,(function(e){return t[e]}).bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e){t.exports=n(3985)},function(t,e){t.exports=n(9882)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(0),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},s=0,l=r.forwardRef(function(t,e){var n=t.title,i=void 0===n?null:n,l=t.description,u=void 0===l?null:l,c=t.size,d=void 0===c?null:c,h=t.color,f=void 0===h?"currentColor":h,p=t.horizontal,m=void 0===p?null:p,v=t.vertical,g=void 0===v?null:v,y=t.rotate,b=void 0===y?null:y,x=t.spin,w=void 0===x?null:x,E=t.style,S=void 0===E?{}:E,T=t.children,P=a(t,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);s++;var C,A=null!==w&&w,V=r.Children.map(T,function(t){!0!==A&&(A=!0===(null===w?t.props.spin:w));var e=t.props.size;"number"==typeof d&&"number"==typeof t.props.size&&(e=t.props.size/d);var n={size:e,color:null===f?t.props.color:f,horizontal:null===m?t.props.horizontal:m,vertical:null===g?t.props.vertical:g,rotate:null===b?t.props.rotate:b,spin:null===w?t.props.spin:w,inStack:!0};return r.cloneElement(t,n)});null!==d&&(S.width="string"==typeof d?d:1.5*d+"rem");var M,k="stack_labelledby_"+s,O="stack_describedby_"+s;if(i)C=u?k+" "+O:k;else if(M="presentation",u)throw Error("title attribute required when description is set");return r.createElement("svg",o({ref:e,viewBox:"0 0 24 24",style:S,role:M,"aria-labelledby":C},P),i&&r.createElement("title",{id:k},i),u&&r.createElement("desc",{id:O},u),A&&r.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg) } }","@keyframes spin-inverse { to { transform: rotate(-360deg) } }"),V)});l.displayName="Stack",l.propTypes={size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),children:i.oneOfType([i.arrayOf(i.node),i.node]).isRequired,className:i.string,style:i.object},l.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null},n.d(e,"Icon",function(){return h}),n.d(e,"Stack",function(){return l});var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},d=0,h=r.forwardRef(function(t,e){var n=t.path,i=t.id,o=void 0===i?++d:i,a=t.title,s=void 0===a?null:a,l=t.description,h=void 0===l?null:l,f=t.size,p=void 0===f?null:f,m=t.color,v=void 0===m?"currentColor":m,g=t.horizontal,y=void 0!==g&&g,b=t.vertical,x=void 0!==b&&b,w=t.rotate,E=void 0===w?0:w,S=t.spin,T=void 0!==S&&S,P=t.style,C=void 0===P?{}:P,A=t.inStack,V=void 0!==A&&A,M=c(t,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),k={},O=[];null!==p&&(V?O.push("scale("+p+")"):(C.width="string"==typeof p?p:1.5*p+"rem",C.height=C.width)),y&&O.push("scaleX(-1)"),x&&O.push("scaleY(-1)"),0!==E&&O.push("rotate("+E+"deg)"),null!==v&&(k.fill=v);var R=r.createElement("path",u({d:n,style:k},V?M:{})),I=R;O.length>0&&(C.transform=O.join(" "),C.transformOrigin="center",V&&(I=r.createElement("g",{style:C},R,r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var L,j=I,D=!0===T||"number"!=typeof T?2:T,F=!V&&(y||x);if(D<0&&(F=!F),T&&(j=r.createElement("g",{style:{animation:"spin"+(F?"-inverse":"")+" linear "+Math.abs(D)+"s infinite",transformOrigin:"center"}},I,!(y||x||0!==E)&&r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),V)return j;var B,U="icon_labelledby_"+o,N="icon_describedby_"+o;if(s)L=h?U+" "+N:U;else if(B="presentation",h)throw Error("title attribute required when description is set");return r.createElement("svg",u({ref:e,viewBox:"0 0 24 24",style:C,role:B,"aria-labelledby":L},M),s&&r.createElement("title",{id:U},s),h&&r.createElement("desc",{id:N},h),!V&&T&&(F?r.createElement("style",null,"@keyframes spin-inverse { to { transform: rotate(-360deg) } }"):r.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg) } }")),j)});h.displayName="Icon",h.propTypes={path:i.string.isRequired,size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),style:i.object,inStack:i.bool,className:i.string},h.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},e.default=h}])},7256:function(t,e){var n;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e{})}}function v(t){return"string"==typeof t?t:s.formatUrl(t)}let g=o.default.forwardRef(function(t,e){let n,r;let{href:s,as:p,children:g,prefetch:y,passHref:b,replace:x,shallow:w,scroll:E,locale:S,onClick:T,onMouseEnter:P,onTouchStart:C,legacyBehavior:A=!1}=t,V=i(t,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=g,A&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let M=!1!==y,k=o.default.useContext(u.RouterContext),O=o.default.useContext(c.AppRouterContext),R=null!=k?k:O,I=!k,{href:L,as:j}=o.default.useMemo(()=>{if(!k){let t=v(s);return{href:t,as:p?v(p):t}}let[e,n]=a.resolveHref(k,s,!0);return{href:e,as:p?a.resolveHref(k,p):n||e}},[k,s,p]),D=o.default.useRef(L),F=o.default.useRef(j);A&&(r=o.default.Children.only(n));let B=A?r&&"object"==typeof r&&r.ref:e,[U,N,_]=d.useIntersection({rootMargin:"200px"}),H=o.default.useCallback(t=>{(F.current!==j||D.current!==L)&&(_(),F.current=j,D.current=L),U(t),B&&("function"==typeof B?B(t):"object"==typeof B&&(B.current=t))},[j,B,L,_,U]);o.default.useEffect(()=>{R&&N&&M&&m(R,L,j,{locale:S})},[j,L,N,S,M,null==k?void 0:k.locale,R]);let z={ref:H,onClick(t){A||"function"!=typeof T||T(t),A&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(t),R&&!t.defaultPrevented&&function(t,e,n,r,i,s,l,u,c,d){let{nodeName:h}=t.currentTarget,f="A"===h.toUpperCase();if(f&&(function(t){let{target:e}=t.currentTarget;return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!a.isLocalURL(n)))return;t.preventDefault();let p=()=>{"beforePopState"in e?e[i?"replace":"push"](n,r,{shallow:s,locale:u,scroll:l}):e[i?"replace":"push"](r||n,{forceOptimisticNavigation:!d})};c?o.default.startTransition(p):p()}(t,R,L,j,x,w,E,S,I,M)},onMouseEnter(t){A||"function"!=typeof P||P(t),A&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),R&&(M||!I)&&m(R,L,j,{locale:S,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart(t){A||"function"!=typeof C||C(t),A&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),R&&(M||!I)&&m(R,L,j,{locale:S,priority:!0,bypassPrefetchedCheck:!0})}};if(!A||b||"a"===r.type&&!("href"in r.props)){let Y=void 0!==S?S:null==k?void 0:k.locale,$=(null==k?void 0:k.isLocaleDomain)&&h.getDomainLocale(j,Y,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);z.href=$||f.addBasePath(l.addLocale(j,Y,null==k?void 0:k.defaultLocale))}return A?o.default.cloneElement(r,z):o.default.createElement("a",Object.assign({},V,z),n)});e.default=g,("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)},5873:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeLocalePath=void 0;let r=(t,e)=>n(4950).normalizeLocalePath(t,e);e.normalizeLocalePath=r,("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)},6496:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useIntersection=function(t){let{rootRef:e,rootMargin:n,disabled:l}=t,u=l||!o,[c,d]=r.useState(!1),[h,f]=r.useState(null);r.useEffect(()=>{if(o){if(!u&&!c&&h&&h.tagName){let t=function(t,e,n){let{id:r,observer:i,elements:o}=function(t){let e;let n={root:t.root||null,margin:t.rootMargin||""},r=s.find(t=>t.root===n.root&&t.margin===n.margin);if(r&&(e=a.get(r)))return e;let i=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{let e=i.get(t.target),n=t.isIntersecting||t.intersectionRatio>0;e&&n&&e(n)})},t);return e={id:n,observer:o,elements:i},s.push(n),a.set(n,e),e}(n);return o.set(t,e),i.observe(t),function(){if(o.delete(t),i.unobserve(t),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(t=>t.root===r.root&&t.margin===r.margin);e>-1&&s.splice(e,1)}}}(h,t=>t&&d(t),{root:null==e?void 0:e.current,rootMargin:n});return t}}else if(!c){let r=i.requestIdleCallback(()=>d(!0));return()=>i.cancelIdleCallback(r)}},[h,u,n,e,c]);let p=r.useCallback(()=>{d(!1)},[]);return[f,c,p]};var r=n(9882),i=n(583);let o="function"==typeof IntersectionObserver,a=new Map,s=[];("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)},9430:function(t,e,n){"use strict";n.d(e,{v4q:function(){return i}});var r=n(9882),i=function(t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},t),r.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}},5526:function(t,e,n){"use strict";n.d(e,{E:function(){return i3}});var r,i,o,a,s,l=n(9882);let u=(0,l.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),c=(0,l.createContext)({});var d=n(4029),h=n(6851);let f=(0,l.createContext)({strict:!1});function p(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function v(t){return"object"==typeof t&&"function"==typeof t.start}let g=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function y(t){return v(t.animate)||g.some(e=>m(t[e]))}function b(t){return Boolean(y(t)||t.variants)}function x(t){return Array.isArray(t)?t.join(" "):t}let w=t=>({isEnabled:e=>t.some(t=>!!e[t])}),E={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};var S=n(6856),T=n(3831);let P={hasAnimatedSinceResize:!0,hasEverUpdated:!1},C=1;var A=n(7842);class V extends l.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}let M=(0,l.createContext)({}),k=Symbol.for("motionComponentSymbol"),O=["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 R(t){if("string"!=typeof t||t.includes("-"));else if(O.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let I={},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(L);function D(t,{layout:e,layoutId:n}){return j.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!I[t]||"opacity"===t)}let F=t=>!!(null==t?void 0:t.getVelocity),B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U=(t,e)=>L.indexOf(t)-L.indexOf(e);function N(t){return t.startsWith("--")}let _=(t,e)=>e&&"number"==typeof t?e.transform(t):t,H=(t,e,n)=>Math.min(Math.max(n,t),e),z={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Y={...z,transform:t=>H(0,1,t)},$={...z,default:1},W=t=>Math.round(1e5*t)/1e5,Z=/(-)?([\d]*\.?[\d])+/g,q=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function X(t){return"string"==typeof t}let K=t=>({test:e=>X(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Q=K("deg"),J=K("%"),tt=K("px"),te=K("vh"),tn=K("vw"),tr={...J,parse:t=>J.parse(t)/100,transform:t=>J.transform(100*t)},ti={...z,transform:Math.round},to={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,radius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,size:tt,top:tt,right:tt,bottom:tt,left:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:$,scaleX:$,scaleY:$,scaleZ:$,skew:Q,skewX:Q,skewY:Q,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:Y,originX:tr,originY:tr,originZ:tt,zIndex:ti,fillOpacity:Y,strokeOpacity:Y,numOctaves:ti};function ta(t,e,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=t;s.length=0;let u=!1,c=!1,d=!0;for(let h in e){let f=e[h];if(N(h)){o[h]=f;continue}let p=to[h],m=_(f,p);if(j.has(h)){if(u=!0,a[h]=m,s.push(h),!d)continue;f!==(p.default||0)&&(d=!1)}else h.startsWith("origin")?(c=!0,l[h]=m):i[h]=m}if(!e.transform&&(u||r?i.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let s of(e.sort(U),e))a+=`${B[s]||s}(${t[s]}) `;return n&&!t.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(t,i?"":a):r&&i&&(a="none"),a}(t,n,d,r):i.transform&&(i.transform="none")),c){let{originX:v="50%",originY:g="50%",originZ:y=0}=l;i.transformOrigin=`${v} ${g} ${y}`}}let ts=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function tl(t,e,n){for(let r in e)F(e[r])||D(r,n)||(t[r]=e[r])}function tu(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return tl(i,r,t),Object.assign(i,function({transformTemplate:t},e,n){return(0,l.useMemo)(()=>{let r=ts();return ta(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),r.style=i,r}let tc=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function td(t){return tc.has(t)}let th=t=>!td(t);try{(r=require("@emotion/is-prop-valid").default)&&(th=t=>t.startsWith("on")?!td(t):r(t))}catch(tf){}function tp(t,e,n){return"string"==typeof t?t:tt.transform(e+n*t)}let tm={offset:"stroke-dashoffset",array:"stroke-dasharray"},tv={offset:"strokeDashoffset",array:"strokeDasharray"};function tg(t,{attrX:e,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c,d){if(ta(t,l,u,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:f,dimensions:p}=t;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(t,e,n){let r=tp(e,t.x,t.width),i=tp(n,t.y,t.height);return`${r} ${i}`}(p,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==o&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;let o=i?tm:tv;t[o.offset]=tt.transform(-r);let a=tt.transform(e),s=tt.transform(n);t[o.array]=`${a} ${s}`}(h,o,a,s,!1)}let ty=()=>({...ts(),attrs:{}}),tb=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tx(t,e,n,r){let i=(0,l.useMemo)(()=>{let n=ty();return tg(n,e,{enableHardwareAcceleration:!1},tb(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let o={};tl(o,t.style,t),i.style={...o,...i.style}}return i}let tw=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tE(t,{style:e,vars:n},r,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(o,n[o])}let tS=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"]);function tT(t,e,n,r){for(let i in tE(t,e,void 0,r),e.attrs)t.setAttribute(tS.has(i)?i:tw(i),e.attrs[i])}function tP(t){let{style:e}=t,n={};for(let r in e)(F(e[r])||D(r,t))&&(n[r]=e[r]);return n}function tC(t){let e=tP(t);for(let n in t)if(F(t[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;e[r]=t[n]}return e}function tA(t,e,n,r={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}let tV=t=>Array.isArray(t),tM=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),tk=t=>tV(t)?t[t.length-1]||0:t;function tO(t){let e=F(t)?t.get():t;return tM(e)?e.toValue():e}let tR=t=>(e,n)=>{let r=(0,l.useContext)(c),i=(0,l.useContext)(d.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){let a={latestValues:function(t,e,n,r){let i={},o=r(t);for(let a in o)i[a]=tO(o[a]);let{initial:s,animate:l}=t,u=y(t),c=b(t);e&&c&&!u&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===l&&(l=e.animate));let d=!!n&&!1===n.initial;d=d||!1===s;let h=d?l:s;if(h&&"boolean"!=typeof h&&!v(h)){let f=Array.isArray(h)?h:[h];f.forEach(e=>{let n=tA(t,e);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let s in a){let l=a[s];if(Array.isArray(l)){let u=d?l.length-1:0;l=l[u]}null!==l&&(i[s]=l)}for(let c in r)i[c]=r[c]})}return i}(r,i,o,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a})(t,e,r,i);return n?o():(0,T.h)(o)},tI={useVisualState:tR({scrapeMotionValuesFromProps:tC,createRenderState:ty,onMount:(t,e,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}tg(n,r,{enableHardwareAcceleration:!1},tb(e.tagName),t.transformTemplate),tT(e,n)}})},tL={useVisualState:tR({scrapeMotionValuesFromProps:tP,createRenderState:ts})};function tj(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function tD(t,e,n,r){(0,l.useEffect)(()=>{let i=t.current;if(n&&i)return tj(i,e,n,r)},[t,e,n,r])}function tF(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function tB(t){let e=!!t.touches;return e}(i=a||(a={})).Animate="animate",i.Hover="whileHover",i.Tap="whileTap",i.Drag="whileDrag",i.Focus="whileFocus",i.InView="whileInView",i.Exit="exit";let tU={pageX:0,pageY:0};function tN(t,e="page"){return{point:tB(t)?function(t,e="page"){let n=t.touches[0]||t.changedTouches[0],r=n||tU;return{x:r[e+"X"],y:r[e+"Y"]}}(t,e):function(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}(t,e)}}let t_=(t,e=!1)=>{let n=e=>t(e,tN(e));return e?t=>{let e=t instanceof MouseEvent,r=!e||e&&0===t.button;r&&n(t)}:n},tH=()=>S.j&&null===window.onpointerdown,tz=()=>S.j&&null===window.ontouchstart,tY=()=>S.j&&null===window.onmousedown,t$={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},tW={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function tZ(t){if(tH());else if(tz())return tW[t];else if(tY())return t$[t];return t}function tq(t,e,n,r){return tj(t,tZ(e),t_(n,"pointerdown"===e),r)}function tG(t,e,n,r){return tD(t,tZ(e),n&&t_(n,"pointerdown"===e),r)}function tX(t){let e=null;return()=>{let n=()=>{e=null};return null===e&&(e=t,n)}}let tK=tX("dragHorizontal"),tQ=tX("dragVertical");function tJ(t){let e=!1;if("y"===t)e=tQ();else if("x"===t)e=tK();else{let n=tK(),r=tQ();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function t0(){let t=tJ(!0);return!t||(t(),!1)}function t1(t,e,n){return(r,i)=>{!(!tF(r)||t0())&&(t.animationState&&t.animationState.setActive(a.Hover,e),n&&n(r,i))}}let t2=(t,e)=>!!e&&(t===e||t2(t,e.parentElement));var t5=n(3651);let t3=(t,e)=>n=>e(t(n)),t4=(...t)=>t.reduce(t3);var t9=n(4074),t8=n(7204);let t6=new WeakMap,t7=new WeakMap,et=t=>{let e=t6.get(t.target);e&&e(t)},ee=t=>{t.forEach(et)},en={some:0,all:1};function er(t,e,n,{root:r,margin:i,amount:o="some",once:s}){(0,l.useEffect)(()=>{if(!t||!n.current)return;let l={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:en[o]},u=t=>{let{isIntersecting:r}=t;if(e.isInView===r||(e.isInView=r,s&&!r&&e.hasEnteredView))return;r&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(a.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(t)};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;t7.has(n)||t7.set(n,{});let r=t7.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(ee,{root:t,...e})),r[i]}(e);return t6.set(t,n),r.observe(t),()=>{t6.delete(t),r.unobserve(t)}}(n.current,l,u)},[t,r,i,o])}function ei(t,e,n,{fallback:r=!0}){(0,l.useEffect)(()=>{t&&r&&("production"!==t9.O&&(0,t8.O)(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{e.hasEnteredView=!0;let{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(a.InView,!0)}))},[t])}let eo=t=>e=>(t(e),null),ea={inView:eo(function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,l.useRef)({hasEnteredView:!1,isInView:!1}),a=Boolean(e||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ei:er;s(a,o.current,t,i)}),tap:eo(function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:r,visualElement:i}){let o=(0,l.useRef)(!1),s=(0,l.useRef)(null),u={passive:!(e||t||n||p)};function c(){s.current&&s.current(),s.current=null}function d(){return c(),o.current=!1,i.animationState&&i.animationState.setActive(a.Tap,!1),!t0()}function h(e,r){d()&&(t2(i.current,e.target)?t&&t(e,r):n&&n(e,r))}function f(t,e){d()&&n&&n(t,e)}function p(t,n){c(),!o.current&&(o.current=!0,s.current=t4(tq(window,"pointerup",h,u),tq(window,"pointercancel",f,u)),i.animationState&&i.animationState.setActive(a.Tap,!0),e&&e(t,n))}tG(i,"pointerdown",t||e||n||r?p:void 0,u),(0,t5.z)(c)}),focus:eo(function({whileFocus:t,visualElement:e}){let{animationState:n}=e,r=()=>{n&&n.setActive(a.Focus,!0)},i=()=>{n&&n.setActive(a.Focus,!1)};tD(e,"focus",t?r:void 0),tD(e,"blur",t?i:void 0)}),hover:eo(function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:r}){tG(r,"pointerenter",t||n?t1(r,!0,t):void 0,{passive:!t}),tG(r,"pointerleave",e||n?t1(r,!1,e):void 0,{passive:!e})})};function es(){let t=(0,l.useContext)(d.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,l.useId)();(0,l.useEffect)(()=>r(i),[]);let o=()=>n&&n(i);return!e&&n?[!1,o]:[!0]}function el(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r/^\-?\d*\.?\d+$/.test(t),ec=t=>/^0[^.\s]+$/.test(t);var ed=n(1211),eh=n(4696);function ef(t,e){-1===t.indexOf(e)&&t.push(e)}function ep(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class em{constructor(){this.subscriptions=[]}add(t){return ef(this.subscriptions,t),()=>ep(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i!isNaN(parseFloat(t));class ey{constructor(t,e={}){this.version="7.10.2",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:r}=ed.w;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,eh.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>eh.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=eg(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){return this.events[t]||(this.events[t]=new em),this.events[t].add(e)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ev(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function eb(t,e){return new ey(t,e)}let ex=(t,e)=>n=>Boolean(X(n)&&G.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ew=(t,e,n)=>r=>{if(!X(r))return r;let[i,o,a,s]=r.match(Z);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},eE=t=>H(0,255,t),eS={...z,transform:t=>Math.round(eE(t))},eT={test:ex("rgb","red"),parse:ew("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+eS.transform(t)+", "+eS.transform(e)+", "+eS.transform(n)+", "+W(Y.transform(r))+")"},eP={test:ex("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eT.transform},eC={test:ex("hsl","hue"),parse:ew("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+J.transform(W(e))+", "+J.transform(W(n))+", "+W(Y.transform(r))+")"},eA={test:t=>eT.test(t)||eP.test(t)||eC.test(t),parse:t=>eT.test(t)?eT.parse(t):eC.test(t)?eC.parse(t):eP.parse(t),transform:t=>X(t)?t:t.hasOwnProperty("red")?eT.transform(t):eC.transform(t)},eV="${c}",eM="${n}";function ek(t){"number"==typeof t&&(t=`${t}`);let e=[],n=0,r=0,i=t.match(q);i&&(n=i.length,t=t.replace(q,eV),e.push(...i.map(eA.parse)));let o=t.match(Z);return o&&(r=o.length,t=t.replace(Z,eM),e.push(...o.map(z.parse))),{values:e,numColors:n,numNumbers:r,tokenised:t}}function eO(t){return ek(t).values}function eR(t){let{values:e,numColors:n,tokenised:r}=ek(t),i=e.length;return t=>{let e=r;for(let o=0;o"number"==typeof t?0:t,eL={test:function(t){var e,n;return isNaN(t)&&X(t)&&((null===(e=t.match(Z))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(q))||void 0===n?void 0:n.length)||0)>0},parse:eO,createTransformer:eR,getAnimatableNone:function(t){let e=eO(t),n=eR(t);return n(e.map(eI))}},ej=new Set(["brightness","contrast","saturate","opacity"]);function eD(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(Z)||[];if(!r)return t;let i=n.replace(r,""),o=ej.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let eF=/([a-z-]*)\(.*?\)/g,eB={...eL,getAnimatableNone:t=>{let e=t.match(eF);return e?e.map(eD).join(" "):t}},eU={...to,color:eA,backgroundColor:eA,outlineColor:eA,fill:eA,stroke:eA,borderColor:eA,borderTopColor:eA,borderRightColor:eA,borderBottomColor:eA,borderLeftColor:eA,filter:eB,WebkitFilter:eB},eN=t=>eU[t];function e_(t,e){var n;let r=eN(t);return r!==eB&&(r=eL),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}let eH=t=>e=>e.test(t),ez=[z,tt,J,Q,tn,te,{test:t=>"auto"===t,parse:t=>t}],eY=t=>ez.find(eH(t)),e$=[...ez,eA,eL],eW=t=>e$.find(eH(t));function eZ(t,e,n){let r=t.getProps();return tA(r,e,void 0!==n?n:r.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}function eq(t){return Boolean(F(t)&&t.add)}let eG=(t,e)=>`${t}: ${e}`,eX="data-"+tw("framerAppearId");var eK=function(){},eQ=function(){};let eJ=t=>1e3*t,e0={current:!1},e1=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,e2=t=>e=>1-t(1-e),e5=t=>t*t,e3=e2(e5),e4=e1(e5),e9=(t,e,n)=>-n*t+n*e+t;function e8(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}let e6=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},e7=[eP,eT,eC],nt=t=>e7.find(e=>e.test(t));function ne(t){let e=nt(t);eQ(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===eC&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,a=0;if(e/=100){let s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=e8(l,s,t+1/3),o=e8(l,s,t),a=e8(l,s,t-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let nn=(t,e)=>{let n=ne(t),r=ne(e),i={...n};return t=>(i.red=e6(n.red,r.red,t),i.green=e6(n.green,r.green,t),i.blue=e6(n.blue,r.blue,t),i.alpha=e9(n.alpha,r.alpha,t),eT.transform(i))};function nr(t,e){return"number"==typeof t?n=>e9(t,e,n):eA.test(t)?nn(t,e):na(t,e)}let ni=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>nr(t,e[n]));return t=>{for(let e=0;e{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=nr(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},na=(t,e)=>{let n=eL.createTransformer(e),r=ek(t),i=ek(e),o=r.numColors===i.numColors&&r.numNumbers>=i.numNumbers;return o?t4(ni(r.values,i.values),n):(eK(!0,`Complex values '${t}' and '${e}' 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.`),n=>`${n>0?e:t}`)},ns=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},nl=(t,e)=>n=>e9(t,e,n);function nu(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let o=t.length;eQ(o===e.length,"Both input and output ranges must be the same length"),eQ(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,n){let r=[],i=n||function(t){if("number"==typeof t);else if("string"==typeof t)return eA.test(t)?nn:na;else if(Array.isArray(t))return ni;else if("object"==typeof t)return no;return nl}(t[0]),o=t.length-1;for(let a=0;a{let n=0;if(s>1)for(;nl(H(t[0],t[o-1],e)):l}let nc=t=>t,nd=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function nh(t,e,n,r){if(t===e&&n===r)return nc;let i=e=>(function(t,e,n,r,i){let o,a;let s=0;do(o=nd(a=e+(n-e)/2,r,i)-t)>0?n=a:e=a;while(Math.abs(o)>1e-7&&++s<12);return a})(e,0,1,t,n);return t=>0===t||1===t?t:nd(i(t),e,r)}let nf=t=>1-Math.sin(Math.acos(t)),np=e2(nf),nm=e1(np),nv=nh(.33,1.53,.69,.99),ng=e2(nv),ny=e1(ng),nb=t=>(t*=2)<1?.5*ng(t):.5*(2-Math.pow(2,-10*(t-1))),nx={linear:nc,easeIn:e5,easeInOut:e4,easeOut:e3,circIn:nf,circInOut:nm,circOut:np,backIn:ng,backInOut:ny,backOut:nv,anticipate:nb},nw=t=>{if(Array.isArray(t)){eQ(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return nh(e,n,r,i)}return"string"==typeof t?(eQ(void 0!==nx[t],`Invalid easing type '${t}'`),nx[t]):t},nE=t=>Array.isArray(t)&&"number"!=typeof t[0];function nS({keyframes:t,ease:e=e4,times:n,duration:r=300}){t=[...t];let i=nS[0],o=nE(e)?e.map(nw):nw(e),a={done:!1,value:i},s=(n&&n.length===nS.length?n:function(t){let e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(t)).map(t=>t*r);function l(){var e;return nu(s,t,{ease:Array.isArray(o)?o:(e=t).map(()=>o||e4).splice(0,e.length-1)})}let u=l();return{next:t=>(a.value=u(t),a.done=t>=r,a),flipTarget:()=>{t.reverse(),u=l()}}}function nT(t,e){return t*Math.sqrt(1-e*e)}let nP=["duration","bounce"],nC=["stiffness","damping","mass"];function nA(t,e){return e.some(e=>void 0!==t[e])}function nV({keyframes:t,restSpeed:e=2,restDelta:n=.01,...r}){let i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!nA(t,nC)&&nA(t,nP)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;eK(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=H(.05,1,a),t=H(.01,10,t/1e3),a<1?(i=e=>{let r=e*a,i=r*t,o=nT(e,a);return .001-(r-n)/o*Math.exp(-i)},o=e=>{let r=e*a,o=r*t,s=Math.pow(a,2)*Math.pow(e,2)*t,l=nT(Math.pow(e,2),a),u=-i(e)+.001>0?-1:1;return u*((o*n+n-s)*Math.exp(-o))/l}):(i=e=>{let r=Math.exp(-e*t),i=(e-n)*t+1;return -.001+r*i},o=e=>{let r=Math.exp(-e*t),i=(n-e)*(t*t);return r*i});let s=5/t,l=function(t,e,n){let r=n;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(i,o,s);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:2*a*Math.sqrt(r*u),duration:t}}}(t);(e={...e,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(r),f=nM,p=c?-(c/1e3):0,m=l/(2*Math.sqrt(s*u));function v(){let t=o-i,e=Math.sqrt(s/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(o-i)/100,.4)),m<1){let r=nT(e,m);f=n=>o-Math.exp(-m*e*n)*((p+m*e*t)/r*Math.sin(r*n)+t*Math.cos(r*n))}else if(1===m)f=n=>o-Math.exp(-e*n)*(t+(p+e*t)*n);else{let a=e*Math.sqrt(m*m-1);f=n=>{let r=Math.min(a*n,300);return o-Math.exp(-m*e*n)*((p+m*e*t)*Math.sinh(r)+a*t*Math.cosh(r))/a}}}return v(),{next:t=>{let r=f(t);if(h)a.done=t>=d;else{let i=p;if(0!==t){if(m<1){let s=Math.max(0,t-5);i=ev(r-f(s),t-s)}else i=0}let l=Math.abs(i)<=e,u=Math.abs(o-r)<=n;a.done=l&&u}return a.value=a.done?o:r,a},flipTarget:()=>{p=-p,[i,o]=[o,i],v()}}}nV.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;let nM=t=>0,nk={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a=t[0],s={done:!1,value:a},l=n*e,u=a+l,c=void 0===o?u:o(u);return c!==u&&(l=c-a),{next:t=>{let e=-l*Math.exp(-t/r);return s.done=!(e>i||e<-i),s.value=s.done?c:c+e,s},flipTarget:()=>{}}},keyframes:nS,tween:nS,spring:nV};function nO(t,e,n=0){return t-e-n}let nR=t=>{let e=({delta:e})=>t(e);return{start:()=>eh.Z_.update(e,!0),stop:()=>eh.qY.update(e)}};function nI({duration:t,driver:e=nR,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:o=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:d,onUpdate:h,type:f="keyframes",...p}){var m;let v,g,y;let b=0,x=t,w=!1,E=!0,S=nk[a.length>2?"keyframes":f],T=a[0],P=a[a.length-1];(null===(m=S.needsInterpolation)||void 0===m?void 0:m.call(S,T,P))&&(y=nu([0,100],[T,P],{clamp:!1}),a=[0,100]);let C=S({...p,duration:t,keyframes:a});return s&&(l&&l(),(v=e(function(t){if(E||(t=-t),n+=t,!w){let e=C.next(Math.max(0,n));g=e.value,y&&(g=y(g)),w=E?e.done:n<=0}if(h&&h(g),w){if(0===b&&(x=void 0!==x?x:n),b=s+o:a<=-o)&&(b++,"reverse"===i?n=function(t,e=0,n=0,r=!0){return r?nO(e+-t,e,n):e-(t-e)+n}(n,x,o,E=b%2==0):(n=nO(n,x,o),"mirror"===i&&C.flipTarget()),w=!1,d&&d())}else v.stop(),c&&c()}})).start()),{stop:()=>{u&&u(),v.stop()},sample:t=>C.next(Math.max(0,t))}}let nL=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,nj={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nL([0,.65,.55,1]),circOut:nL([.55,0,1,.45]),backIn:nL([.31,.01,.66,-.59]),backOut:nL([.33,1.53,.69,.99])};function nD(t,e){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=e&&(eh.qY.read(r),t(o-e))};return eh.Z_.read(r,!0),()=>eh.qY.read(r)}let nF=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),nB=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nU=()=>({type:"keyframes",ease:"linear",duration:.3}),nN={type:"keyframes",duration:.8},n_={x:nF,y:nF,z:nF,rotate:nF,rotateX:nF,rotateY:nF,rotateZ:nF,scaleX:nB,scaleY:nB,scale:nB,opacity:nU,backgroundColor:nU,color:nU,default:nB},nH=(t,{keyframes:e})=>{if(e.length>2)return nN;{let n=n_[t]||n_.default;return n(e[1])}},nz=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&eL.test(e)&&!e.startsWith("url("));function nY(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function n$(t){return"number"==typeof t?0:e_("",t)}function nW(t,e){return t[e]||t.default||t}let nZ={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},nq={},nG={};for(let nX in nZ)nG[nX]=()=>(void 0===nq[nX]&&(nq[nX]=nZ[nX]()),nq[nX]);let nK=new Set(["opacity"]),nQ=(t,e,n,r={})=>i=>{let o=nW(r,t)||{},a=o.delay||r.delay||0,{elapsed:s=0}=r;s-=eJ(a);let l=function(t,e,n,r){let i=nz(e,n),o=void 0!==r.from?r.from:t.get();return("none"===o&&i&&"string"==typeof n?o=e_(e,n):nY(o)&&"string"==typeof n?o=n$(n):!Array.isArray(n)&&nY(n)&&"string"==typeof o&&(n=n$(o)),Array.isArray(n))?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,o),u=l[0],c=l[l.length-1],d=nz(t,u),h=nz(t,c);eK(d===h,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),...o,elapsed:s,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!d||!h||e0.current||!1===o.type)return function({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){let i=()=>(n&&n(t[t.length-1]),r&&r(),()=>{});return e?nD(i,-e):i()}(f);if("inertia"===o.type){let p=function({keyframes:t,velocity:e=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:h,onStop:f}){let p;let m=t[0];function v(t){return void 0!==n&&tr}function g(t){return void 0===n?r:void 0===r?n:Math.abs(n-t){var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:h,onStop:f})}function b(t){y({type:"spring",stiffness:a,damping:s,restDelta:l,...t})}if(v(m))b({velocity:e,keyframes:[m,g(m)]});else{let x,w,E=i*e+m;void 0!==u&&(E=u(E));let S=g(E),T=S===n?-1:1,P=t=>{x=w,w=t,e=ev(t-x,ed.w.delta),(1===T&&t>S||-1===T&&tnull==p?void 0:p.stop()}}(f);return()=>p.stop()}!function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(o)&&(f={...f,...nH(t,f)}),f.duration&&(f.duration=eJ(f.duration)),f.repeatDelay&&(f.repeatDelay=eJ(f.repeatDelay));let m=e.owner,v=m&&m.current,g=nG.waapi()&&nK.has(t)&&!f.repeatDelay&&"mirror"!==f.repeatType&&0!==f.damping&&m&&v instanceof HTMLElement&&!m.getProps().onUpdate;if(g)return function(t,e,{onUpdate:n,onComplete:r,...i}){var o;let{keyframes:a,duration:s=.3,elapsed:l=0,ease:u}=i;if("spring"===i.type||!(!(o=i.ease)||Array.isArray(o)||"string"==typeof o&&nj[o])){let c=nI(i),d={done:!1,value:a[0]},h=[],f=0;for(;!d.done;)h.push((d=c.sample(f)).value),f+=10;a=h,s=f-10,u="linear"}let p=function(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){return t.animate({[e]:n,offset:l},{delay:r,duration:i,easing:function(t){if(t)return Array.isArray(t)?nL(t):nj[t]}(s),fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,a,{...i,delay:-l,duration:s,ease:u});return p.onfinish=()=>{t.set(a[a.length-1]),r&&r()},()=>{let{currentTime:e}=p;if(e){let n=nI(i);t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}eh.Z_.update(()=>p.cancel())}}(e,t,f);{let y=nI(f);return()=>y.stop()}};function nJ(t,e,n={}){var r;let i=eZ(t,e,n.custom),{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>n0(t,i,n):()=>Promise.resolve(),s=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,i=1,o){let a=[],s=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(n1).forEach((t,r)=>{a.push(nJ(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[u,c]="beforeChildren"===l?[a,s]:[s,a];return u().then(c)}}function n0(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:s,...l}=t.makeTargetAnimatable(e),u=t.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=t.animationState)||void 0===o?void 0:o.getState()[i]);for(let h in l){let f=t.getValue(h),p=l[h];if(!f||void 0===p||d&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(d,h))continue;let m={delay:n,elapsed:0,...a};if(t.shouldReduceMotion&&j.has(h)&&(m={...m,type:!1,delay:0}),!f.hasAnimated){let v=t.getProps()[eX];v&&(m.elapsed=function(t,e){let{MotionAppearAnimations:n}=window,r=eG(t,j.has(e)?"transform":e),i=n&&n.get(r);return i?(eh.Z_.render(()=>{try{i.cancel(),n.delete(r)}catch(t){}}),i.currentTime||0):0}(v,h))}let g=f.start(nQ(h,f,p,m));eq(u)&&(u.add(h),g=g.then(()=>u.remove(h))),c.push(g)}return Promise.all(c).then(()=>{s&&function(t,e){let n=eZ(t,e),{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let a in o={...o,...r}){var s;let l=tk(o[a]);s=a,t.hasValue(s)?t.getValue(s).set(l):t.addValue(s,eb(l))}}(t,s)})}function n1(t,e){return t.sortNodePosition(e)}let n2=[a.Animate,a.InView,a.Focus,a.Hover,a.Tap,a.Drag,a.Exit],n5=[...n2].reverse(),n3=n2.length;function n4(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let n9={animation:eo(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){let i=e.map(e=>nJ(t,e,n));r=Promise.all(i)}else if("string"==typeof e)r=nJ(t,e,n);else{let o="function"==typeof e?eZ(t,e,n.custom):e;r=n0(t,o,n)}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={[a.Animate]:n4(!0),[a.InView]:n4(),[a.Hover]:n4(),[a.Tap]:n4(),[a.Drag]:n4(),[a.Focus]:n4(),[a.Exit]:n4()},r=!0,i=(e,n)=>{let r=eZ(t,n);if(r){let{transition:i,transitionEnd:o,...a}=r;e={...e,...a,...o}}return e};function o(o,a){let s=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set,d={},h=1/0;for(let f=0;fh&&x,P=Array.isArray(b)?b:[b],C=P.reduce(i,{});!1===w&&(C={});let{prevResolvedValues:A={}}=y,V={...A,...C},M=t=>{T=!0,c.delete(t),y.needsAnimating[t]=!0};for(let k in V){let O=C[k],R=A[k];d.hasOwnProperty(k)||(O!==R?tV(O)&&tV(R)?!el(O,R)||S?M(k):y.protectedKeys[k]=!0:void 0!==O?M(k):c.add(k):void 0!==O&&c.has(k)?M(k):y.protectedKeys[k]=!0)}y.prevProp=b,y.prevResolvedValues=C,y.isActive&&(d={...d,...C}),r&&t.blockInitialAnimation&&(T=!1),T&&!E&&u.push(...P.map(t=>({animation:t,options:{type:g,...o}})))}if(c.size){let I={};c.forEach(e=>{let n=t.getBaseTarget(e);void 0!==n&&(I[e]=n)}),u.push({animation:I})}let L=Boolean(u.length);return r&&!1===s.initial&&!t.manuallyAnimateOnMount&&(L=!1),r=!1,L?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let s=o(i,e);for(let l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t)),v(e)&&(0,l.useEffect)(()=>e.subscribe(t),[e])}),exit:eo(t=>{let{custom:e,visualElement:n}=t,[r,i]=es(),o=(0,l.useContext)(d.O);(0,l.useEffect)(()=>{n.isPresent=r;let t=n.animationState&&n.animationState.setActive(a.Exit,!r,{custom:o&&o.custom||e});t&&!r&&t.then(i)},[r])})},n8=(t,e)=>Math.abs(t-e);class n6{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=re(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){let n=n8(t.x,e.x),r=n8(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;let{point:r}=t,{timestamp:i}=ed.w;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{if(this.lastMoveEvent=t,this.lastMoveEventInfo=n7(e,this.transformPagePoint),tF(t)&&0===t.buttons){this.handlePointerUp(t,e);return}eh.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=re(n7(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},tB(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;let r=tN(t),i=n7(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=ed.w;this.history=[{...o,timestamp:a}];let{onSessionStart:s}=e;s&&s(t,re(i,this.history)),this.removeListeners=t4(tq(window,"pointermove",this.handlePointerMove),tq(window,"pointerup",this.handlePointerUp),tq(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eh.qY.update(this.updatePoint)}}function n7(t,e){return e?{point:e(t.point)}:t}function rt(t,e){return{x:t.x-e.x,y:t.y-e.y}}function re({point:t},e){return{point:t,delta:rt(t,rn(e)),offset:rt(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=rn(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>eJ(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function rn(t){return t[t.length-1]}function rr(t){return t.max-t.min}function ri(t,e=0,n=.01){return Math.abs(t-e)<=n}function ro(t,e,n,r=.5){t.origin=r,t.originPoint=e9(e.min,e.max,t.origin),t.scale=rr(n)/rr(e),(ri(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=e9(n.min,n.max,t.origin)-t.originPoint,(ri(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ra(t,e,n,r){ro(t.x,e.x,n.x,null==r?void 0:r.originX),ro(t.y,e.y,n.y,null==r?void 0:r.originY)}function rs(t,e,n){t.min=n.min+e.min,t.max=t.min+rr(e)}function rl(t,e,n){t.min=e.min-n.min,t.max=t.min+rr(e)}function ru(t,e,n){rl(t.x,e.x,n.x),rl(t.y,e.y,n.y)}function rc(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function rd(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min({translate:0,scale:1,origin:0,originPoint:0}),rm=()=>({x:rp(),y:rp()}),rv=()=>({min:0,max:0}),rg=()=>({x:rv(),y:rv()});function ry(t){return[t("x"),t("y")]}function rb({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function rx(t){return void 0===t||1===t}function rw({scale:t,scaleX:e,scaleY:n}){return!rx(t)||!rx(e)||!rx(n)}function rE(t){return rw(t)||rS(t)||t.z||t.rotate||t.rotateX||t.rotateY}function rS(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function rT(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function rP(t,e=0,n=1,r,i){t.min=rT(t.min,e,n,r,i),t.max=rT(t.max,e,n,r,i)}function rC(t,{x:e,y:n}){rP(t.x,e.translate,e.scale,e.originPoint),rP(t.y,n.translate,n.scale,n.originPoint)}function rA(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function rV(t,e){t.min=t.min+e,t.max=t.max+e}function rM(t,e,[n,r,i]){let o=void 0!==e[i]?e[i]:.5,a=e9(t.min,t.max,o);rP(t,e[n],e[r],a,e.scale)}let rk=["x","scaleX","originX"],rO=["y","scaleY","originY"];function rR(t,e){rM(t.x,e,rk),rM(t.y,e,rO)}function rI(t,e){return rb(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let rL=new WeakMap;class rj{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rg(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;let n=t=>{this.stopAnimation(),e&&this.snapToCursor(tN(t,"page").point)},r=(t,e)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tJ(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ry(t=>{var e,n;let r=this.getAxisMotionValue(t).get()||0;if(J.test(r)){let i=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(i){let o=rr(i);r=o*(parseFloat(r)/100)}}this.originPoint[t]=r}),null==o||o(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(a.Drag,!0))},i=(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),null==o||o(t,e)},o=(t,e)=>this.stop(t,e);this.panSession=new n6(t,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:o},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(a.Drag,!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!rD(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&tn&&(t=r?e9(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;t&&p(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:rc(t.x,n,i),y:rc(t.y,e,r)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rh(t,"left","right"),y:rh(t,"top","bottom")}}(e),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ry(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!p(e))return!1;let r=e.current;eQ(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,n){let r=rI(t,n),{scroll:i}=e;return i&&(rV(r.x,i.offset.x),rV(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:rd((t=i.layout.layoutBox).x,o.x),y:rd(t.y,o.y)};if(n){let s=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=rb(s))}return a}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ry(a=>{if(!rD(a,e,this.currentDirection))return;let l=(null==s?void 0:s[a])||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)});return Promise.all(l).then(a)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(nQ(t,n,0,e))}stopAnimation(){ry(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;let n="_drag"+t.toUpperCase(),r=this.visualElement.getProps()[n];return r||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){ry(e=>{let{drag:n}=this.getProps();if(!rD(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:o,max:a}=r.layout.layoutBox[e];i.set(t[e]-e9(o,a,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!p(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};ry(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();i[t]=function(t,e){let n=.5,r=rr(t),i=rr(e);return i>r?n=ns(e.min,e.max-r,t.min):r>i&&(n=ns(t.min,t.max-i,e.min)),H(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(t=r.root)||void 0===t||t.updateScroll(),r.updateLayout(),this.resolveConstraints(),ry(t=>{if(!rD(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(e9(r,o,i[t]))})}addListeners(){var t;if(!this.visualElement.current)return;rL.set(this.visualElement,this);let e=this.visualElement.current,n=tq(e,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),r=()=>{let{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),r();let a=tj(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ry(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function rD(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}let rF={pan:eo(function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=(0,l.useRef)(null),{transformPagePoint:a}=(0,l.useContext)(u),s={onSessionStart:r,onStart:e,onMove:t,onEnd:(t,e)=>{o.current=null,n&&n(t,e)}};(0,l.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(s)}),tG(i,"pointerdown",(t||e||n||r)&&function(t){o.current=new n6(t,s,{transformPagePoint:a})}),(0,t5.z)(()=>o.current&&o.current.end())}),drag:eo(function(t){let{dragControls:e,visualElement:n}=t,r=(0,T.h)(()=>new rj(n));(0,l.useEffect)(()=>e&&e.subscribe(r),[r,e]),(0,l.useEffect)(()=>r.addListeners(),[r])})};function rB(t){return"string"==typeof t&&t.startsWith("var(--")}let rU=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rN(t,e,n=1){eQ(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,i]=function(t){let e=rU.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let o=window.getComputedStyle(e).getPropertyValue(r);return o?o.trim():rB(i)?rN(i,e,n+1):i}let r_=new Set(["width","height","top","left","right","bottom","x","y"]),rH=t=>r_.has(t),rz=t=>Object.keys(t).some(rH),rY=(t,e)=>{t.set(e,!1),t.set(e)},r$=t=>t===z||t===tt;(o=s||(s={})).width="width",o.height="height",o.left="left",o.right="right",o.top="top",o.bottom="bottom";let rW=(t,e)=>parseFloat(t.split(", ")[e]),rZ=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return rW(i[1],e);{let o=r.match(/^matrix\((.+)\)$/);return o?rW(o[1],t):0}},rq=new Set(["x","y","z"]),rG=L.filter(t=>!rq.has(t)),rX={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:rZ(4,13),y:rZ(5,14)},rK=(t,e,n)=>{let r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{s[t]=rX[t](r,o)}),e.render();let l=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);rY(r,s[n]),t[n]=rX[n](l,o)}),t},rQ=(t,e,n={},r={})=>{e={...e},r={...r};let i=Object.keys(e).filter(rH),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],d=eY(c),h=e[i];if(tV(h)){let f=h.length,p=null===h[0]?1:0;d=eY(c=h[p]);for(let m=p;m{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:e[i],rY(u,h))}}),!s.length)return{target:e,transitionEnd:r};{let l=s.indexOf("height")>=0?window.pageYOffset:null,u=rK(e,t,s);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),S.j&&null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}},rJ=(t,e,n,r)=>{var i,o;let a=function(t,{...e},n){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};for(let i in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!rB(e))return;let n=rN(e,r);n&&t.set(n)}),e){let o=e[i];if(!rB(o))continue;let a=rN(o,r);a&&(e[i]=a,n&&void 0===n[i]&&(n[i]=o))}return{target:e,transitionEnd:n}}(t,e,r);return e=a.target,r=a.transitionEnd,i=e,o=r,rz(i)?rQ(t,i,n,o):{target:i,transitionEnd:o}},r0={current:null},r1={current:!1},r2=Object.keys(E),r5=r2.length,r3=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class r4{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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.scheduleRender=()=>eh.Z_.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=y(e),this.isVariantNode=b(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(e);for(let u in l){let c=l[u];void 0!==o[u]&&F(c)&&(c.set(o[u],!1),eq(s)&&s.add(u))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),r1.current||function(){if(r1.current=!0,S.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r0.current=t.matches;t.addListener(e),e()}else r0.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||r0.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;for(let r in null===(t=this.projection)||void 0===t||t.unmount(),eh.qY.update(this.notifyUpdate),eh.qY.render(this.render),this.valueSubscriptions.forEach(t=>t()),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(t,e){let n=j.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&eh.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,r,i,o){let a=[];"production"!==t9.O&&n&&e&&eQ(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let s=0;sthis.scheduleRender(),animationType:"string"==typeof f?f:"both",initialPromotionConfig:o,layoutScroll:g})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rg()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;en.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=eb(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=tA(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||F(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new em),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}let r9=["initial",...n2],r8=r9.length;class r6 extends r4{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let o=function(t,e,n){var r;let i={};for(let o in t){let a=function(t,e){if(!e)return;let n=e[t]||e.default||e;return n.from}(o,e);i[o]=void 0!==a?a:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),i){!function(t,e,n){var r,i;let o=Object.keys(e).filter(e=>!t.hasValue(e)),a=o.length;if(a)for(let s=0;sR(t)?new it(e,{enableHardwareAcceleration:!1}):new r7(e,{enableHardwareAcceleration:!0});function ir(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ii={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tt.test(t))return t;t=parseFloat(t)}let n=ir(t,e.target.x),r=ir(t,e.target.y);return`${n}% ${r}%`}},io="_$css",ia={correct:(t,{treeScale:e,projectionDelta:n})=>{let r=t,i=t.includes("var("),o=[];i&&(t=t.replace(rU,t=>(o.push(t),io)));let a=eL.parse(t);if(a.length>5)return r;let s=eL.createTransformer(t),l="number"!=typeof a[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;a[0+l]/=u,a[1+l]/=c;let d=e9(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let h=s(a);if(i){let f=0;h=h.replace(io,()=>{let t=o[f];return f++,t})}return h}};class is extends l.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(I,il),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),P.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||eh.Z_.postRender(()=>{var t;(null===(t=o.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;null==t||t()}render(){return null}}let il={borderRadius:{...ii,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomLeftRadius:ii,borderBottomRightRadius:ii,boxShadow:ia},iu=["TopLeft","TopRight","BottomLeft","BottomRight"],ic=iu.length,id=t=>"string"==typeof t?parseFloat(t):t,ih=t=>"number"==typeof t||tt.test(t);function ip(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let im=ig(0,.5,np),iv=ig(.5,.95,nc);function ig(t,e,n){return r=>re?1:n(ns(t,e,r))}function iy(t,e){t.min=e.min,t.max=e.max}function ib(t,e){iy(t.x,e.x),iy(t.y,e.y)}function ix(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function iw(t,e,[n,r,i],o,a){!function(t,e=0,n=1,r=.5,i,o=t,a=t){if(J.test(e)){e=parseFloat(e);let s=e9(a.min,a.max,e/100);e=s-a.min}if("number"!=typeof e)return;let l=e9(o.min,o.max,r);t===o&&(l-=e),t.min=ix(t.min,e,n,l,i),t.max=ix(t.max,e,n,l,i)}(t,e[n],e[r],e[i],e.scale,o,a)}let iE=["x","scaleX","originX"],iS=["y","scaleY","originY"];function iT(t,e,n,r){iw(t.x,e,iE,null==n?void 0:n.x,null==r?void 0:r.x),iw(t.y,e,iS,null==n?void 0:n.y,null==r?void 0:r.y)}function iP(t){return 0===t.translate&&1===t.scale}function iC(t){return iP(t.x)&&iP(t.y)}function iA(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function iV(t){return rr(t.x)/rr(t.y)}class iM{constructor(){this.members=[]}add(t){ef(this.members,t),t.scheduleRender()}remove(t){if(ep(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let r=n;r>=0;r--){let i=this.members[r];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){var n;let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,n,r,i,o;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(o=null===(r=t.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ik(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:a,rotateX:s,rotateY:l}=n;a&&(r+=`rotate(${a}deg) `),s&&(r+=`rotateX(${s}deg) `),l&&(r+=`rotateY(${l}deg) `)}let u=t.x.scale*e.x,c=t.y.scale*e.y;return(1!==u||1!==c)&&(r+=`scale(${u}, ${c})`),r||"none"}let iO=(t,e)=>t.depth-e.depth;class iR{constructor(){this.children=[],this.isDirty=!1}add(t){ef(this.children,t),this.isDirty=!0}remove(t){ep(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iO),this.isDirty=!1,this.children.forEach(t)}}let iI=["","X","Y","Z"],iL=0;function ij({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t,n={},r=null==e?void 0:e()){this.id=iL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(iB),this.nodes.forEach(iz),this.nodes.forEach(iY)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let i=0;ithis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,s&&s(),s=nD(l,250),P.hasAnimatedSinceResize&&(P.hasAnimatedSinceResize=!1,this.nodes.forEach(iH))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:iX,{onLayoutAnimationStart:d,onLayoutAnimationComplete:h}=a.getProps(),f=!this.targetLayout||!iA(this.targetLayout,r)||n,p=!e&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||e&&(f||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,p);let m={...nW(c,"layout"),onPlay:d,onComplete:h};a.shouldReduceMotion&&(m.delay=0,m.type=!1),this.startAnimation(m)}else e||0!==this.animationProgress||iH(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,eh.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;!this.isUpdateBlocked()&&(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(i$),this.animationId++)}willUpdate(t=!0){var e,n,r;if(this.root.isUpdateBlocked()){null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(iG));this.animationProgress=0,this.mixTargetDelta=e=>{var n,r,i;let h=e/1e3;iZ(s.x,t.x,h),iZ(s.y,t.y,h),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(ru(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),r=this.relativeTarget,i=this.relativeTargetOrigin,iq(r.x,i.x,l.x,h),iq(r.y,i.y,l.y,h)),u&&(this.animationValues=a,function(t,e,n,r,i,o){i?(t.opacity=e9(0,void 0!==n.opacity?n.opacity:1,im(r)),t.opacityExit=e9(void 0!==e.opacity?e.opacity:1,0,iv(r))):o&&(t.opacity=e9(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a{P.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){let r=F(t)?t:eb(t);return r.start(nQ("",r,1e3,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&iJ(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||rg();let o=rr(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+o;let a=rr(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+a}ib(e,n),rR(e,i),ra(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){var n,r,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new iM);let o=this.sharedNodes.get(t);o.add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=e.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,e)})}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:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let r={};for(let i=0;i{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(iN),this.root.sharedNodes.clear()}}}function iD(t){t.updateLayout()}function iF(t){var e,n,r;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:o,measuredBox:a}=t.layout,{animationType:s}=t.options,l=i.source!==t.layout.source;"size"===s?ry(t=>{let e=l?i.measuredBox[t]:i.layoutBox[t],n=rr(e);e.min=o[t].min,e.max=e.min+n}):iJ(s,i.layoutBox,o)&&ry(t=>{let e=l?i.measuredBox[t]:i.layoutBox[t],n=rr(o[t]);e.max=e.min+n});let u=rm();ra(u,o,i.layoutBox);let c=rm();l?ra(c,t.applyTransform(a,!0),i.measuredBox):ra(c,o,i.layoutBox);let d=!iC(u),h=!1;if(!t.resumeFrom){let f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:m}=f;if(p&&m){let v=rg();ru(v,i.layoutBox,p.layoutBox);let g=rg();ru(g,o,m.layoutBox),iA(v,g)||(h=!0)}}}t.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else t.isLead()&&(null===(r=(n=t.options).onExitComplete)||void 0===r||r.call(n));t.options.transition=void 0}function iB(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function iU(t){t.clearSnapshot()}function iN(t){t.clearMeasurements()}function i_(t){let{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iH(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function iz(t){t.resolveTargetDelta()}function iY(t){t.calcProjection()}function i$(t){t.resetRotation()}function iW(t){t.removeLeadSnapshot()}function iZ(t,e,n){t.translate=e9(e.translate,0,n),t.scale=e9(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function iq(t,e,n,r){t.min=e9(e.min,n.min,r),t.max=e9(e.max,n.max,r)}function iG(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iX={duration:.45,ease:[.4,0,.1,1]};function iK(t,e){let n=t.root;for(let r=t.path.length-1;r>=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}let i=n&&n!==t.root?n.instance:document,o=i.querySelector(`[data-projection-id="${e}"]`);o&&t.mount(o,!0)}function iQ(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function iJ(t,e,n){return"position"===t||"preserve-aspect"===t&&!ri(iV(e),iV(n),.2)}let i0=ij({attachResizeListener:(t,e)=>tj(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i1={current:void 0},i2=ij({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!i1.current){let t=new i0(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),i1.current=t}return i1.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),i5={...n9,...ea,...rF,measureLayout:function(t){let[e,n]=es(),r=(0,l.useContext)(A.p);return l.createElement(is,{...t,layoutGroup:r,switchLayoutGroup:(0,l.useContext)(M),isPresent:e,safeToRemove:n})}},i3=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){t&&function(t){for(let e in t)"projectionNodeConstructor"===e?E.projectionNodeConstructor=t[e]:E[e].Component=t[e]}(t);let a=(0,l.forwardRef)(function(a,s){var v,g;let b={...(0,l.useContext)(u),...a,layoutId:function({layoutId:t}){let e=(0,l.useContext)(A.p).id;return e&&void 0!==t?e+"-"+t:t}(a)},{isStatic:w}=b,k=null,O=function(t){let{initial:e,animate:n}=function(t,e){if(y(t)){let{initial:n,animate:r}=t;return{initial:!1===n||m(n)?n:void 0,animate:m(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,l.useContext)(c));return(0,l.useMemo)(()=>({initial:e,animate:n}),[x(e),x(n)])}(a),R=w?void 0:(0,T.h)(()=>{if(P.hasEverUpdated)return C++}),I=i(a,w);if(!w&&S.j){O.visualElement=function(t,e,n,r){let i=(0,l.useContext)(c).visualElement,o=(0,l.useContext)(f),a=(0,l.useContext)(d.O),s=(0,l.useContext)(u).reducedMotion,p=(0,l.useRef)();r=r||o.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let m=p.current;return(0,h.L)(()=>{m&&m.render()}),(0,l.useEffect)(()=>{m&&m.animationState&&m.animationState.animateChanges()}),(0,h.L)(()=>()=>m&&m.notify("Unmount"),[]),m}(o,I,b,e);let L=(0,l.useContext)(f).strict,j=(0,l.useContext)(M);O.visualElement&&(k=O.visualElement.loadFeatures(b,L,t,R,n||E.projectionNodeConstructor,j))}return l.createElement(V,{visualElement:O.visualElement,props:b},k,l.createElement(c.Provider,{value:O},r(o,a,R,(v=O.visualElement,g=s,(0,l.useCallback)(t=>{t&&I.mount&&I.mount(t),v&&(t?v.mount(t):v.unmount()),g&&("function"==typeof g?g(t):p(g)&&(g.current=t))},[v])),I,w,O.visualElement)))});return a[k]=o,a}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,r,i){let o=R(t)?tI:tL;return{...o,preloadedFeatures:n,useRender:function(t=!1){let e=(e,n,r,i,{latestValues:o},a)=>{let s=R(e)?tx:tu,u=s(n,o,a,e),c=function(t,e,n){let r={};for(let i in t)(th(i)||!0===n&&td(i)||!e&&!td(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),d={...c,...u,ref:i};return r&&(d["data-projection-id"]=r),(0,l.createElement)(e,d)};return e}(e),createVisualElement:r,projectionNodeConstructor:i,Component:t}})(t,e,i5,ie,i2))}}]);