1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{6840:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(9205)}])},3991:function(t,e){"use strict";var i,n;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{PrefetchKind:function(){return i},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return o},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u}});let r="refresh",s="navigate",o="restore",a="server-patch",l="prefetch",u="fast-refresh";(n=i||(i={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("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)},1516:function(t,e){"use strict";function i(t,e,i,n){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return i}}),("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)},5569:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return b}});let n=i(8754),r=n._(i(7294)),s=i(4532),o=i(3353),a=i(1410),l=i(9064),u=i(370),h=i(9955),c=i(4224),d=i(508),p=i(1516),f=i(4266),m=i(3991),g=new Set;function v(t,e,i,n,r,s){if(!s&&!(0,o.isLocalURL)(e))return;if(!n.bypassPrefetchedCheck){let r=void 0!==n.locale?n.locale:"locale"in t?t.locale:void 0,s=e+"%"+i+"%"+r;if(g.has(s))return;g.add(s)}let a=s?t.prefetch(e,r):t.prefetch(e,i,n);Promise.resolve(a).catch(t=>{})}function y(t){return"string"==typeof t?t:(0,a.formatUrl)(t)}let x=r.default.forwardRef(function(t,e){let i,n;let{href:a,as:g,children:x,prefetch:b=null,passHref:P,replace:w,shallow:T,scroll:E,locale:A,onClick:S,onMouseEnter:C,onTouchStart:V,legacyBehavior:k=!1,...M}=t;i=x,k&&("string"==typeof i||"number"==typeof i)&&(i=r.default.createElement("a",null,i));let j=!1!==b,R=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,L=r.default.useContext(h.RouterContext),D=r.default.useContext(c.AppRouterContext),O=null!=L?L:D,F=!L,{href:B,as:N}=r.default.useMemo(()=>{if(!L){let t=y(a);return{href:t,as:g?y(g):t}}let[t,e]=(0,s.resolveHref)(L,a,!0);return{href:t,as:g?(0,s.resolveHref)(L,g):e||t}},[L,a,g]),I=r.default.useRef(B),$=r.default.useRef(N);k&&(n=r.default.Children.only(i));let U=k?n&&"object"==typeof n&&n.ref:e,[W,_,z]=(0,d.useIntersection)({rootMargin:"200px"}),H=r.default.useCallback(t=>{($.current!==N||I.current!==B)&&(z(),$.current=N,I.current=B),W(t),U&&("function"==typeof U?U(t):"object"==typeof U&&(U.current=t))},[N,U,B,z,W]);r.default.useEffect(()=>{O&&_&&j&&v(O,B,N,{locale:A},{kind:R},F)},[N,B,_,A,j,null==L?void 0:L.locale,O,F,R]);let Z={ref:H,onClick(t){k||"function"!=typeof S||S(t),k&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),O&&!t.defaultPrevented&&function(t,e,i,n,s,a,l,u,h,c){let{nodeName:d}=t.currentTarget,p="A"===d.toUpperCase();if(p&&(function(t){let e=t.currentTarget,i=e.getAttribute("target");return i&&"_self"!==i||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,o.isLocalURL)(i)))return;t.preventDefault();let f=()=>{"beforePopState"in e?e[s?"replace":"push"](i,n,{shallow:a,locale:u,scroll:l}):e[s?"replace":"push"](n||i,{forceOptimisticNavigation:!c})};h?r.default.startTransition(f):f()}(t,O,B,N,w,T,E,A,F,j)},onMouseEnter(t){k||"function"!=typeof C||C(t),k&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),O&&(j||!F)&&v(O,B,N,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:R},F)},onTouchStart(t){k||"function"!=typeof V||V(t),k&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),O&&(j||!F)&&v(O,B,N,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:R},F)}};if((0,l.isAbsoluteUrl)(N))Z.href=N;else if(!k||P||"a"===n.type&&!("href"in n.props)){let t=void 0!==A?A:null==L?void 0:L.locale,e=(null==L?void 0:L.isLocaleDomain)&&(0,p.getDomainLocale)(N,t,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);Z.href=e||(0,f.addBasePath)((0,u.addLocale)(N,t,null==L?void 0:L.defaultLocale))}return k?r.default.cloneElement(n,Z):r.default.createElement("a",{...M,...Z},i)}),b=x;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},508:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let n=i(7294),r=i(29),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(t){let{rootRef:e,rootMargin:i,disabled:l}=t,u=l||!s,[h,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(t=>{d.current=t},[]);(0,n.useEffect)(()=>{if(s){if(u||h)return;let t=d.current;if(t&&t.tagName){let n=function(t,e,i){let{id:n,observer:r,elements:s}=function(t){let e;let i={root:t.root||null,margin:t.rootMargin||""},n=a.find(t=>t.root===i.root&&t.margin===i.margin);if(n&&(e=o.get(n)))return e;let r=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{let e=r.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t);return e={id:i,observer:s,elements:r},a.push(i),o.set(i,e),e}(i);return s.set(t,e),r.observe(t),function(){if(s.delete(t),r.unobserve(t),0===s.size){r.disconnect(),o.delete(n);let t=a.findIndex(t=>t.root===n.root&&t.margin===n.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&c(t),{root:null==e?void 0:e.current,rootMargin:i});return n}}else if(!h){let t=(0,r.requestIdleCallback)(()=>c(!0));return()=>(0,r.cancelIdleCallback)(t)}},[u,i,e,h,d.current]);let f=(0,n.useCallback)(()=>{c(!1)},[]);return[p,h,f]}("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)},9205:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return H}});var n=i(5893),r=i(8210),s=i.n(r),o=i(7294),a=i(6040),l=i(1163);let u=({color:t="currentColor",direction:e="left",distance:i="md",duration:n=.4,easing:r="cubic-bezier(0, 0, 0, 1)",hideOutline:s=!0,label:a,lines:l=3,onToggle:u,render:h,rounded:c=!1,size:d=32,toggle:p,toggled:f})=>{let[m,g]=(0,o.useState)(!1),v=Math.max(12,Math.min(48,d)),y=v/12,x=Math.round(y),b=v/(l*(("lg"===i?.25:"sm"===i?.75:.5)+(3===l?1:1.25))),P=Math.round(b),w=parseFloat((v/(3===l?"lg"===i?4.0425:"sm"===i?5.1625:4.6325:"lg"===i?6.7875:"sm"===i?8.4875:7.6675)-(y-x+(b-P))/(3===l?1:2)/(4/3)).toFixed(2)),T=
1Math.max(0,n),E={cursor:"pointer",height:"48px",position:"relative",transition:`${T}s ${r}`,userSelect:"none",width:"48px"},A={background:t,height:`${x}px`,left:`${Math.round((48-v)/2)}px`,position:"absolute"};s&&(E.outline="none"),c&&(A.borderRadius="9em");let S=p||g,C=void 0!==f?f:m,V=()=>{S(!C),"function"==typeof u&&u(!C)};return h({barHeight:x,barStyles:A,burgerStyles:E,easing:r,handler:V,isLeft:"left"===e,isToggled:C,label:a,margin:P,move:w,time:T,topOffset:Math.round((48-(x*l+P*(l-1)))/2),width:v})};function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}let c=t=>o.createElement(u,h({},t,{render:t=>o.createElement("div",{className:"hamburger-react","aria-label":t.label,"aria-expanded":t.isToggled,onClick:t.handler,onKeyUp:e=>"Enter"===e.key&&t.handler(),role:"button",style:{...t.burgerStyles,transform:`${t.isToggled?`rotate(${90*(t.isLeft?-1:1)}deg)`:"none"}`},tabIndex:0},o.createElement("div",{style:{transition:`${t.time/2}s ${t.easing} ${t.isToggled?"0s":`${t.time/2}s`}`,transform:`${t.isToggled?`translateY(${t.barHeight+t.margin}px)`:"none"}`}},o.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset}px`,transition:`${t.time/2}s ${t.easing} ${t.isToggled?`${t.time/2}s`:"0s"}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?1:-1)}deg)`:"none"}`}})),o.createElement("div",{style:{transition:`${t.time/2}s ${t.easing}`,opacity:`${t.isToggled?"0":"1"}`}},o.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+t.barHeight+t.margin}px`,transition:`${t.time/2}s ${t.easing}`}})),o.createElement("div",{style:{transition:`${t.time/2}s ${t.easing} ${t.isToggled?"0s":`${t.time/2}s`}`,transform:`${t.isToggled?`translateY(-${t.barHeight+t.margin}px)`:"none"}`}},o.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+2*t.barHeight+2*t.margin}px`,transition:`${t.time/2}s ${t.easing} ${t.isToggled?`${t.time/2}s`:"0s"}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?-1:1)}deg)`:"none"}`}})))})),d=t=>{let{show:e,setShow:i}=t,r=(0,l.useRouter)(),{pathname:s}=r;return(0,n.jsx)("div",{className:"z-50 top-0 w-full bg-[#1B1B1B]",children:(0,n.jsx)("div",{className:"max-w-screen-2xl mx-auto",children:(0,n.jsxs)("div",{className:"px-6 w-full h-16 flex items-center relative transition-all justify-between sm:justify-start",children:[(0,n.jsx)("h1",{className:" text-4xl font-bold sm:text-5xl",children:"John Roberts"}),(0,n.jsx)("div",{className:"absolute sm:hidden z-10 ".concat(e?"right-6":"right-4"),children:(0,n.jsx)(c,{toggle:i,toggled:e,direction:"right",rounded:!0})})]})})})},p=[{linkName:"Home",linkPath:"/"},{linkName:"Photography",linkPath:"/photography"},{linkName:"Designs",linkPath:"/designs"},{linkName:"Editorial",linkPath:"/editorial"},{linkName:"Video",linkPath:"/video"},{linkName:"Contact",linkPath:"/contact"}];var f=i(1664),m=i.n(f);let g=t=>{let{linkName:e,linkPath:i,pathname:r}=t;return(0,n.jsx)(m(),{href:i,children:(0,n.jsx)("div",{className:"".concat(r==i?"text-red-500":"text-[var(--fg)]"," hover:text-red-500 transition-all ease-in-out duration-200 "),children:e})})},v=()=>{let t=(0,l.useRouter)(),{pathname:e}=t;return(0,n.jsx)("div",{className:"hidden sm:flex sticky top-0 z-20 w-full h-8 gap-7 items-center justify-center bg-black font-semibold pr-4 md:justify-end ",children:p.map(t=>(0,n.jsx)(g,{pathname:e,linkName:t.linkName,linkPath:t.linkPath},t.linkName))})};var y={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},x=o.createContext&&o.createContext(y),b=function(){return(b=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},P=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};function w(t){return function(e){return o.createElement(T,b({attr:b({},t.attr)},e),function t(e){return e&&e.map(function(e,i){return o.createElement(e.tag,b({key:i},e.attr),t(e.child))})}(t.child))}}function T(t){var e=function(e){var i,n=t.attr,r=t.size,s=t.title,a=P(t,["attr","size","title"]),l=r||e.size||"1em";return e.className&&(i=e.className),t.className&&(i=(i?i+" ":"")+t.className),o.createElement("svg",b({stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0"},e.attr,n,a,{className:i,style:b(b({color:t.color||e.color},e.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&o.createElement("title",null,s),t.children)};return void 0!==x?o.createElement(x.Consumer,null,function(t){return e(t)}):e(y)}function E(t){return w({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224,202.66A53.34,53.34,0,1,0,277.36,256,53.38,53.38,0,0,0,224,202.66Zm124.71-41a54,54,0,0,0-30.41-30.41c-21-8.29-71-6.43-94.3-6.43s-73.25-1.93-94.31,6.43a54,54,0,0,0-30.41,30.41c-8.28,21-6.43,71.05-6.43,94.33S91,329.26,99.32,350.33a54,54,0,0,0,30.41,30.41c21,8.29,71,6.43,94.31,6.43s73.24,1.93,94.3-6.43a54,54,0,0,0,30.41-30.41c8.35-21,6.43-71.05,6.43-94.33S357.1,182.74,348.75,161.67ZM224,338a82,82,0,1,1,82-82A81.9,81.9,0,0,1,224,338Zm85.38-148.3a19.14,19.14,0,1,1,19.13-19.14A19.1,19.1,0,0,1,309.42,189.74ZM400,32H48A48,48,0,0,0,0,80V432a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V80A48,48,0,0,0,400,32ZM382.88,322c-1.29,25.63-7.14,48.34-25.85,67s-41.4,24.63-67,25.85c-26.41,1.49-105.59,1.49-132,0-25.63-1.29-48.26-7.15-67-25.85s-24.63-41.42-25.85-67c-1.49-26.42-1.49-105.61,0-132,1.29-25.63,7.07-48.34,25.85-67s41.47-24.56,67-25.78c26.41-1.49,105.59-1.49,132,0,25.63,1.29,48.33,7.15,67,25.85s24.63,41.42,25.85,67.05C384.37,216.44,384.37,295.56,382.88,322Z"}}]})(t)}function A(t){return w({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"}}]})(t)}let S=()=>(0,n.jsxs)("div",{className:"flex justify-center pt-6 pb-16 gap-4",children:[(0,n.jsx)(m(),{href:"https://www.linkedin.com/in/john-roberts-1b5ba23a/",children:(0,n.jsx)(A,{className:"hover:text-[var(--fg)] text-gray-400",size:56})}),(0,n.jsx)(m(),{href:"https://www.instagram.com/johnwillumroberts/",children:(0,n.jsx)(E,{className:"hover:text-[var(--fg)] text-gray-400",size:56})})]});var C=i(6405),V=i(8868);function k(){let t=(0,o.useRef)(!1);return(0,V.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var M=i(240),j=i(6681);class R extends o.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function L({children:t,isPresent:e}){let i=(0,o.useId)(),n=(0,o.useRef)(null),r=(0,o.useRef)({width:0,height:0,top:0,left:0});return(0,o.useInsertionEffect)(()=>{let{width:t,height:s,top:o,left:a}=r.current;if(e||!n.current||!t||!s)return;n.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${s}px !important; 6 top: ${o}px !important; 7 left: ${a}px !important; 8 } 9 `),()=>{document.head.removeChild(l)}},[e]),o.createElement(R,{isPresent:e,childRef:n,sizeRef:r},o.cloneElement(t,{ref:n}))}let D=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:r,presenceAffectsLayout:s,mode:a})=>{let l=(0,j.h)(O),u=(0,o.useId)(),h=(0,o.useMemo)(()=>({id:u,initial:e,isPresent:i,custom:r,onExitComplete:t=>
9{for(let e of(l.set(t,!0),l.values()))if(!e)return;n&&n()},register:t=>(l.set(t,!1),()=>l.delete(t))}),s?void 0:[i]);return(0,o.useMemo)(()=>{l.forEach((t,e)=>l.set(e,!1))},[i]),o.useEffect(()=>{i||l.size||!n||n()},[i]),"popLayout"===a&&(t=o.createElement(L,{isPresent:i},t)),o.createElement(M.O.Provider,{value:h},t)};function O(){return new Map}var F=i(5364),B=i(5487);let N=t=>t.key||"",I=({children:t,custom:e,initial:i=!0,onExitComplete:n,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:a="sync"})=>{var l;(0,B.k)(!r,"Replace exitBeforeEnter with mode='wait'");let[u]=function(){let t=k(),[e,i]=(0,o.useState)(0),n=(0,o.useCallback)(()=>{t.current&&i(e+1)},[e]),r=(0,o.useCallback)(()=>C.Wi.postRender(n),[n]);return[r,e]}(),h=(0,o.useContext)(F.p).forceRender;h&&(u=h);let c=k(),d=function(t){let e=[];return o.Children.forEach(t,t=>{(0,o.isValidElement)(t)&&e.push(t)}),e}(t),p=d,f=new Set,m=(0,o.useRef)(p),g=(0,o.useRef)(new Map).current,v=(0,o.useRef)(!0);if((0,V.L)(()=>{v.current=!1,function(t,e){t.forEach(t=>{let i=N(t);e.set(i,t)})}(d,g),m.current=p}),l=()=>{v.current=!0,g.clear(),f.clear()},(0,o.useEffect)(()=>()=>l(),[]),v.current)return o.createElement(o.Fragment,null,p.map(t=>o.createElement(D,{key:N(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:s,mode:a},t)));p=[...p];let y=m.current.map(N),x=d.map(N),b=y.length;for(let t=0;t<b;t++){let e=y[t];-1===x.indexOf(e)&&f.add(e)}return"wait"===a&&f.size&&(p=[]),f.forEach(t=>{if(-1!==x.indexOf(t))return;let i=g.get(t);if(!i)return;let r=y.indexOf(t),l=()=>{g.delete(t),f.delete(t);let e=m.current.findIndex(e=>e.key===t);if(m.current.splice(e,1),!f.size){if(m.current=d,!1===c.current)return;u(),n&&n()}};p.splice(r,0,o.createElement(D,{key:N(i),isPresent:!1,onExitComplete:l,custom:e,presenceAffectsLayout:s,mode:a},i))}),p=p.map(t=>{let e=t.key;return f.has(e)?t:o.createElement(D,{key:N(t),isPresent:!0,presenceAffectsLayout:s,mode:a},t)}),o.createElement(o.Fragment,null,f.size?p:p.map(t=>(0,o.cloneElement)(t)))},$=()=>{let t=(0,o.useCallback)(()=>{document.body.style.overflow="hidden"},[]),e=(0,o.useCallback)(()=>{document.body.style.overflow=""},[]);return{lockScroll:t,unlockScroll:e}},U=t=>{let{show:e,setShow:i}=t,r=(0,l.useRouter)(),{pathname:s}=r,{lockScroll:u,unlockScroll:h}=$();return(0,o.useEffect)(()=>(e&&u(),()=>{h()})),(0,n.jsx)(I,{mode:"wait",children:e&&(0,n.jsx)(a.E.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeInOut"},children:(0,n.jsx)("div",{className:"absolute bg-black text-[var(--fg)] top-0 left-0 h-full w-full flex justify-center items-start transition-all ",children:(0,n.jsx)("div",{className:"flex flex-col gap-8 text-3xl font-semibold pt-20",children:p.map(t=>(0,n.jsx)(m(),{href:t.linkPath,children:(0,n.jsx)("div",{className:"".concat(s==t.linkPath?"text-red-500":"text-[var(--fg)]"," hover:text-red-500"),onClick:()=>i(!e),children:t.linkName})},t.linkName))})})})})},W=t=>{let{children:e}=t,[i,r]=(0,o.useState)(!1);return(0,n.jsxs)("main",{className:"flex min-h-screen flex-col items-center ".concat(s().className),children:[(0,n.jsx)(d,{setShow:r,show:i}),(0,n.jsx)(v,{}),(0,n.jsx)(a.E.div,{className:"w-full mx-auto max-w-screen-2xl ",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:e}),(0,n.jsx)(S,{}),(0,n.jsx)(U,{setShow:r,show:i})]})};i(3814);var _=i(9008),z=i.n(_);function H(t){let{Component:e,pageProps:i}=t,r=(0,l.useRouter)(),{asPath:s}=r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(z(),{children:[(0,n.jsx)("title",{children:"John Roberts"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,n.jsx)("link",{rel:"shortcut icon",href:"/favicon.png"})]}),(0,n.jsx)(W,{children:(0,n.jsx)(I,{initial:!1,mode:"wait",children:(0,n.jsx)(e,{...i},s)})})]})}},3814:function(){},8210:function(t){t.exports={style:{fontFamily:"'__Inter_7fd0dc', '__Inter_Fallback_7fd0dc'",fontStyle:"normal"},className:"__className_7fd0dc"}},9008:function(t,e,i){t.exports=i(2636)},1664:function(t,e,i){t.exports=i(5569)},1163:function(t,e,i){t.exports=i(6885)},5364:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var n=i(7294);let r=(0,n.createContext)({})},240:function(t,e,i){"use strict";i.d(e,{O:function(){return r}});var n=i(7294);let r=(0,n.createContext)(null)},7367:function(t,e,i){"use strict";i.d(e,{w:function(){return n}});let n={delta:0,timestamp:0,isProcessing:!1}},6405:function(t,e,i){"use strict";i.d(e,{Pn:function(){return d},Wi:function(){return c},S6:function(){return a}});var n=i(7367);let r=!0,s=!1,o=["read","update","preRender","render","postRender"],a=o.reduce((t,e)=>(t[e]=function(t){let e=[],i=[],n=0,r=!1,s=!1,o=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{let l=a&&r,u=l?e:i;return s&&o.add(t),-1===u.indexOf(t)&&(u.push(t),l&&r&&(n=e.length)),t},cancel:t=>{let e=i.indexOf(t);-1!==e&&i.splice(e,1),o.delete(t)},process:l=>{if(r){s=!0;return}if(r=!0,[e,i]=[i,e],i.length=0,n=e.length)for(let i=0;i<n;i++){let n=e[i];n(l),o.has(n)&&(a.schedule(n),t())}r=!1,s&&(s=!1,a.process(l))}};return a}(()=>s=!0),t),{}),l=t=>a[t].process(n.w),u=t=>{s=!1,n.w.delta=r?1e3/60:Math.max(Math.min(t-n.w.timestamp,40),1),n.w.timestamp=t,n.w.isProcessing=!0,o.forEach(l),n.w.isProcessing=!1,s&&(r=!1,requestAnimationFrame(u))},h=()=>{s=!0,r=!0,n.w.isProcessing||requestAnimationFrame(u)},c=o.reduce((t,e)=>{let i=a[e];return t[e]=(t,e=!1,n=!1)=>(s||h(),i.schedule(t,e,n)),t},{});function d(t){o.forEach(e=>a[e].cancel(t))}},6040:function(t,e,i){"use strict";i.d(e,{E:function(){return rF}});var n,r=i(7294);let s=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),o=(0,r.createContext)({});var a=i(240),l=i(8868);let u=(0,r.createContext)({strict:!1});function h(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function c(t){return"string"==typeof t||Array.isArray(t)}function d(t){return"object"==typeof t&&"function"==typeof t.start}let p=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],f=["initial",...p];function m(t){return d(t.animate)||f.some(e=>c(t[e]))}function g(t){return!!(m(t)||t.variants)}function v(t){return Array.isArray(t)?t.join(" "):t}let y={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},x={};for(let t in y)x[t]={isEnabled:e=>y[t].some(t=>!!e[t])};
9var b=i(1741),P=i(6681);let w={hasAnimatedSinceResize:!0,hasEverUpdated:!1},T=1;var E=i(5364);let A=(0,r.createContext)({}),S=Symbol.for("motionComponentSymbol"),C=["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 V(t){if("string"!=typeof t||t.includes("-"));else if(C.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let k={},M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(M);function R(t,{layout:e,layoutId:i}){return j.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!k[t]||"opacity"===t)}let L=t=>!!(t&&t.getVelocity),D={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=M.length,F=t=>e=>"string"==typeof e&&e.startsWith(t),B=F("--"),N=F("var(--"),I=(t,e)=>e&&"number"==typeof t?e.transform(t):t,$=(t,e,i)=>Math.min(Math.max(i,t),e),U={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},W={...U,transform:t=>$(0,1,t)},_={...U,default:1},z=t=>Math.round(1e5*t)/1e5,H=/(-)?([\d]*\.?[\d])+/g,Z=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Y=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function X(t){return"string"==typeof t}let G=t=>({test:e=>X(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),K=G("deg"),q=G("%"),J=G("px"),Q=G("vh"),tt=G("vw"),te={...q,parse:t=>q.parse(t)/100,transform:t=>q.transform(100*t)},ti={...U,transform:Math.round},tn={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:_,scaleX:_,scaleY:_,scaleZ:_,skew:K,skewX:K,skewY:K,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:W,originX:te,originY:te,originZ:J,zIndex:ti,fillOpacity:W,strokeOpacity:W,numOctaves:ti};function tr(t,e,i,n){let{style:r,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if(B(t)){s[t]=i;continue}let n=tn[t],c=I(i,n);if(j.has(t)){if(l=!0,o[t]=c,!h)continue;i!==(n.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):r[t]=c}if(!e.transform&&(l||n?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},n,r){let s="";for(let e=0;e<O;e++){let i=M[e];if(void 0!==t[i]){let e=D[i]||i;s+=`${e}(${t[i]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,n?"":s):i&&n&&(s="none"),s}(t.transform,i,h,n):r.transform&&(r.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin=`${t} ${e} ${i}`}}let ts=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function to(t,e,i){for(let n in e)L(e[n])||R(n,i)||(t[n]=e[n])}function ta(t,e,i){let n={},s=function(t,e,i){let n=t.style||{},s={};return to(s,n,t),Object.assign(s,function({transformTemplate:t},e,i){return(0,r.useMemo)(()=>{let n=ts();return tr(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(s):s}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}let tl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function tu(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||tl.has(t)}let th=t=>!tu(t);try{(n=require("@emotion/is-prop-valid").default)&&(th=t=>t.startsWith("on")?!tu(t):n(t))}catch(t){}function tc(t,e,i){return"string"==typeof t?t:J.transform(e+i*t)}let td={offset:"stroke-dashoffset",array:"stroke-dasharray"},tp={offset:"strokeDashoffset",array:"strokeDasharray"};function tf(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u}
9,h,c,d){if(tr(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==r||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,i){let n=tc(e,t.x,t.width),r=tc(i,t.y,t.height);return`${n} ${r}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==n&&(p.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?td:tp;t[s.offset]=J.transform(-n);let o=J.transform(e),a=J.transform(i);t[s.array]=`${o} ${a}`}(p,o,a,l,!1)}let tm=()=>({...ts(),attrs:{}}),tg=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tv(t,e,i,n){let s=(0,r.useMemo)(()=>{let i=tm();return tf(i,e,{enableHardwareAcceleration:!1},tg(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};to(e,t.style,t),s.style={...e,...s.style}}return s}let ty=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tx(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let tb=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 tP(t,e,i,n){for(let i in tx(t,e,void 0,n),e.attrs)t.setAttribute(tb.has(i)?i:ty(i),e.attrs[i])}function tw(t,e){let{style:i}=t,n={};for(let r in i)(L(i[r])||e.style&&L(e.style[r])||R(r,t))&&(n[r]=i[r]);return n}function tT(t,e){let i=tw(t,e);for(let n in t)if(L(t[n])||L(e[n])){let e=-1!==M.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[e]=t[n]}return i}function tE(t,e,i,n={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),e}let tA=t=>Array.isArray(t),tS=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tC=t=>tA(t)?t[t.length-1]||0:t;function tV(t){let e=L(t)?t.get():t;return tS(e)?e.toValue():e}let tk=t=>(e,i)=>{let n=(0,r.useContext)(o),s=(0,r.useContext)(a.O),l=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,r,s){let o={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=tV(s[t]);let{initial:o,animate:a}=t,l=m(t),u=g(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial;h=h||!1===o;let c=h?a:o;if(c&&"boolean"!=typeof c&&!d(c)){let e=Array.isArray(c)?c:[c];e.forEach(e=>{let i=tE(t,e);if(!i)return;let{transitionEnd:n,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in n)r[t]=n[t]})}return r}(n,r,s,t),renderState:e()};return i&&(o.mount=t=>i(n,t,o)),o})(t,e,n,s);return i?l():(0,P.h)(l)},tM={useVisualState:tk({scrapeMotionValuesFromProps:tT,createRenderState:tm,onMount:(t,e,{renderState:i,latestValues:n})=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}tf(i,n,{enableHardwareAcceleration:!1},tg(e.tagName),t.transformTemplate),tP(e,i)}})},tj={useVisualState:tk({scrapeMotionValuesFromProps:tw,createRenderState:ts})};function tR(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let tL=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tD(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tO=t=>e=>tL(e)&&t(e,tD(e));function tF(t,e,i,n){return tR(t,e,tO(i),n)}let tB=(t,e)=>i=>e(t(i)),tN=(...t)=>t.reduce(tB);function tI(t){let e=null;return()=>{let i=()=>{e=null};return null===e&&(e=t,i)}}let t$=tI("dragHorizontal"),tU=tI("dragVertical");function tW(t){let e=!1;if("y"===t)e=tU();else if("x"===t)e=t$();else{let t=t$(),i=tU();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function t_(){let t=tW(!0);return!t||(t(),!1)}class tz{constructor(t){this.isMounted=!1,this.node=t}update(){}}var tH=i(6405);function tZ(t,e){let i="onHover"+(e?"Start":"End"),n=(n,r)=>{if("touch"===n.type||t_())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&tH.Wi.update(()=>s[i](n,r))};return tF(t.current,"pointer"+(e?"enter":"leave"),n,{passive:!t.getProps()[i]})}let tY=(t,e)=>!!e&&(t===e||tY(t,e.parentElement));var tX=i(1662);function tG(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tD(i))}let tK=new WeakMap,tq=new WeakMap,tJ=t=>{let e=tK.get(t.target);e&&e(t)}
9,tQ=t=>{t.forEach(tJ)},t0={some:0,all:1};function t1(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function t2(t,e,i){let n=t.getProps();return tE(n,e,void 0!==i?i:n.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}let t4="data-"+ty("framerAppearId");var t3=i(5487);let t5=t=>1e3*t,t6=t=>t/1e3,t8={current:!1},t9=t=>Array.isArray(t)&&"number"==typeof t[0],t7=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,et={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t7([0,.65,.55,1]),circOut:t7([.55,0,1,.45]),backIn:t7([.31,.01,.66,-.59]),backOut:t7([.33,1.53,.69,.99])},ee={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ei={},en={};for(let t in ee)en[t]=()=>(void 0===ei[t]&&(ei[t]=ee[t]()),ei[t]);let er=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function es(t,e,i,n){if(t===e&&i===n)return tX.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=er(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:er(r(t),e,n)}let eo=es(.42,0,1,1),ea=es(0,0,.58,1),el=es(.42,0,.58,1),eu=t=>Array.isArray(t)&&"number"!=typeof t[0],eh=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ec=t=>e=>1-t(1-e),ed=t=>1-Math.sin(Math.acos(t)),ep=ec(ed),ef=eh(ep),em=es(.33,1.53,.69,.99),eg=ec(em),ev=eh(eg),ey=t=>(t*=2)<1?.5*eg(t):.5*(2-Math.pow(2,-10*(t-1))),ex={linear:tX.Z,easeIn:eo,easeInOut:el,easeOut:ea,circIn:ed,circInOut:ef,circOut:ep,backIn:eg,backInOut:ev,backOut:em,anticipate:ey},eb=t=>{if(Array.isArray(t)){(0,t3.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return es(e,i,n,r)}return"string"==typeof t?((0,t3.k)(void 0!==ex[t],`Invalid easing type '${t}'`),ex[t]):t},eP=(t,e)=>i=>!!(X(i)&&Y.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),ew=(t,e,i)=>n=>{if(!X(n))return n;let[r,s,o,a]=n.match(H);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eT=t=>$(0,255,t),eE={...U,transform:t=>Math.round(eT(t))},eA={test:eP("rgb","red"),parse:ew("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+eE.transform(t)+", "+eE.transform(e)+", "+eE.transform(i)+", "+z(W.transform(n))+")"},eS={test:eP("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:eA.transform},eC={test:eP("hsl","hue"),parse:ew("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+q.transform(z(e))+", "+q.transform(z(i))+", "+z(W.transform(n))+")"},eV={test:t=>eA.test(t)||eS.test(t)||eC.test(t),parse:t=>eA.test(t)?eA.parse(t):eC.test(t)?eC.parse(t):eS.parse(t),transform:t=>X(t)?t:t.hasOwnProperty("red")?eA.transform(t):eC.transform(t)},ek=(t,e,i)=>-i*t+i*e+t;function eM(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}let ej=(t,e,i)=>{let n=t*t;return Math.sqrt(Math.max(0,i*(e*e-n)+n))},eR=[eS,eA,eC],eL=t=>eR.find(e=>e.test(t));function eD(t){let e=eL(t);(0,t3.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===eC&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=eM(a,n,t+1/3),s=eM(a,n,t),o=eM(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let eO=(t,e)=>{let i=eD(t),n=eD(e),r={...i};return t=>(r.red=ej(i.red,n.red,t),r.green=ej(i.green,n.green,t),r.blue=ej(i.blue,n.blue,t),r.alpha=ek(i.alpha,n.alpha,t),eA.transform(r))}
9,eF={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tX.Z},eB={regex:Z,countKey:"Colors",token:"${c}",parse:eV.parse},eN={regex:H,countKey:"Numbers",token:"${n}",parse:U.parse};function eI(t,{regex:e,countKey:i,token:n,parse:r}){let s=t.tokenised.match(e);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(r)))}function e$(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&eI(i,eF),eI(i,eB),eI(i,eN),i}function eU(t){return e$(t).values}function eW(t){let{values:e,numColors:i,numVars:n,tokenised:r}=e$(t),s=e.length;return t=>{let e=r;for(let r=0;r<s;r++)e=r<n?e.replace(eF.token,t[r]):r<n+i?e.replace(eB.token,eV.transform(t[r])):e.replace(eN.token,z(t[r]));return e}}let e_=t=>"number"==typeof t?0:t,ez={test:function(t){var e,i;return isNaN(t)&&X(t)&&((null===(e=t.match(H))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(Z))||void 0===i?void 0:i.length)||0)>0},parse:eU,createTransformer:eW,getAnimatableNone:function(t){let e=eU(t),i=eW(t);return i(e.map(e_))}},eH=(t,e)=>i=>`${i>0?e:t}`;function eZ(t,e){return"number"==typeof t?i=>ek(t,e,i):eV.test(t)?eO(t,e):t.startsWith("var(")?eH(t,e):eG(t,e)}let eY=(t,e)=>{let i=[...t],n=i.length,r=t.map((t,i)=>eZ(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}},eX=(t,e)=>{let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eZ(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}},eG=(t,e)=>{let i=ez.createTransformer(e),n=e$(t),r=e$(e),s=n.numVars===r.numVars&&n.numColors===r.numColors&&n.numNumbers>=r.numNumbers;return s?tN(eY(n.values,r.values),i):((0,t3.K)(!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.`),eH(t,e))},eK=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},eq=(t,e)=>i=>ek(t,e,i);function eJ(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if((0,t3.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||function(t){if("number"==typeof t);else if("string"==typeof t)return eV.test(t)?eO:eG;else if(Array.isArray(t))return eY;else if("object"==typeof t)return eX;return eq}(t[0]),s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||tX.Z:e;s=tN(t,s)}n.push(s)}return n}(e,n,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=eK(t[i],t[i+1],e);return o[i](n)};return i?e=>l($(t[0],t[s-1],e)):l}function eQ({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=eu(n)?n.map(eb):eb(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=eK(0,e,n);t.push(ek(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),a=eJ(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||el).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}function e0(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?n*(1e3/r):0}function e1(t,e){return t*Math.sqrt(1-e*e)}let e2=["duration","bounce"],e4=["stiffness","damping","mass"];function e3(t,e){return e.some(e=>void 0!==t[e])}function e5({keyframes:t,restDelta:e,restSpeed:i,...n}){let r;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,velocity:c,duration:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e3(t,e4)&&e3(t,e2)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;(0,t3.K)(t<=t5(10),"Spring duration must be 10 seconds or less");let o=1-e;o=$(.05,1,o),t=$(.01,10,t6(t)),o<1?(r=e=>{let n=e*o,r=n*t,s=e1(e,o);return .001-(n-i)/s*Math.exp(-r)},s=e=>{let n=e*o,s=n*t,a=Math.pow(o,2)*Math.pow(e,2)*t,l=e1(Math.pow(e,2),o),u=-r(e)+.001>0?-1:1;return u*((s*i+i-a)*Math.exp(-s))/l}):(r=e=>{let n=Math.exp(-e*t),r=(e-i)*t+1;return -.001+n*r},s=e=>{let n=Math.exp(-e*t),r=(i-e)*(t*t);return n*r});
9let a=5/t,l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,a);if(t=t5(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(n),f=c?-t6(c):0,m=u/(2*Math.sqrt(l*h)),g=o-s,v=t6(Math.sqrt(l/h)),y=5>Math.abs(g);if(i||(i=y?.01:2),e||(e=y?.005:.5),m<1){let t=e1(v,m);r=e=>o-Math.exp(-m*v*e)*((f+m*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===m)r=t=>o-Math.exp(-v*t)*(g+(f+v*g)*t);else{let t=v*Math.sqrt(m*m-1);r=e=>{let i=Math.min(t*e,300);return o-Math.exp(-m*v*e)*((f+m*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}return{calculatedDuration:p&&d||null,next:t=>{let n=r(t);if(p)a.done=t>=d;else{let s=f;0!==t&&(s=m<1?e0(r,t,n):0);let l=Math.abs(s)<=i,u=Math.abs(o-n)<=e;a.done=l&&u}return a.value=a.done?o:n,a}}}function e6({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=i*e,y=p+v,x=void 0===o?y:o(y);x!==y&&(v=x-p);let b=t=>-v*Math.exp(-t/n),P=t=>x+b(t),w=t=>{let e=b(t),i=P(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},T=t=>{m(f.value)&&(c=t,d=e5({keyframes:[f.value,g(f.value)],velocity:e0(P,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),T(t)),void 0!==c&&t>c)?d.next(t-c):(e||w(t),f)}}}var e8=i(7367);let e9=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tH.Wi.update(e,!0),stop:()=>(0,tH.Pn)(e),now:()=>e8.w.isProcessing?e8.w.timestamp:performance.now()}};function e7(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let it={decay:e6,inertia:e6,tween:eQ,keyframes:eQ,spring:e5};function ie({autoplay:t=!0,delay:e=0,driver:i=e9,keyframes:n,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let p,f,m,g,v,y=1,x=!1,b=()=>{p&&p(),f=new Promise(t=>{p=t})};b();let P=it[r]||eQ;P!==eQ&&"number"!=typeof n[0]&&(g=eJ([0,100],n,{clamp:!1}),n=[0,100]);let w=P({...d,keyframes:n});"mirror"===a&&(v=P({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let T="idle",E=null,A=null,S=null;null===w.calculatedDuration&&s&&(w.calculatedDuration=e7(w));let{calculatedDuration:C}=w,V=1/0,k=1/0;null!==C&&(k=(V=C+o)*(s+1)-o);let M=0,j=t=>{if(null===A)return;y>0&&(A=Math.min(A,t)),M=null!==E?E:(t-A)*y;let i=M-e,r=i<0;M=Math.max(i,0),"finished"===T&&null===E&&(M=k);let l=M,u=w;if(s){let t=M/V,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,s+1);let n=!!(e%2);n&&("reverse"===a?(i=1-i,o&&(i-=o/V)):"mirror"===a&&(u=v));let r=$(0,1,i);M>k&&(r="reverse"===a&&n?1:0),l=r*V}let h=r?{done:!1,value:n[0]}:u.next(l);g&&(h.value=g(h.value));let{done:d}=h;r||null===C||(d=M>=k);let p=null===E&&("finished"===T||"running"===T&&d||y<0&&M<=0);return c&&c(h.value),p&&D(),h},R=()=>{m&&m.stop(),m=void 0},L=()=>{T="idle",R(),b(),A=S=null},D=()=>{T="finished",h&&h(),R(),b()},O=()=>{if(x)return;m||(m=i(j));let t=m.now();l&&l(),null!==E?A=t-E:A&&"finished"!==T||(A=t),S=A,E=null,T="running",m.start()};t&&O();let F={then:(t,e)=>f.then(t,e),get time(){return t6(M)},set time(newTime){M=newTime=t5(newTime),null===E&&m&&0!==y?A=m.now()-newTime/y:E=newTime},get duration(){let t=null===w.calculatedDuration?e7(w):w.calculatedDuration;return t6(t)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!m)return;y=newSpeed,F.time=t6(M)},get state(){return T},play:O,pause:()=>{T="paused",E=M},stop:()=>{x=!0,"idle"!==T&&(T="idle",u&&u(),L())},cancel:()=>{null!==S&&j(S),L()},complete:()=>{T="finished"},sample:t=>(A=0,j(t))};return F}let ii=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ir=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&et[e]||t9(e)||Array.isArray(e)&&e.every(t))}(e.ease),is={type:"spring",stiffness:500,damping:25,restSpeed:10},io=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ia={type:"keyframes",duration:.8},il={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iu=(t,{keyframes:e})=>e.length>2?ia:j.has(t)?t.startsWith("scale")?io(e[1]):is:il,ih=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ez.test(e)||"0"===e)&&!e.startsWith("url(")),ic=new Set(["brightness","contrast","saturate","opacity"]);function id(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(H)||[];if(!n)return t;let r=i.replace(n,""),s=ic.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let ip=/([a-z-]*)\(.*?\)/g,im={...ez,getAnimatableNone:t=>{let e=t.match(ip);return e?e.map(id).join(" "):t}},ig={...tn,color:eV,backgroundColor:eV,outlineColor:eV,fill:eV,stroke:eV,borderColor:eV,borderTopColor:eV,borderRightColor:eV,borderBottomColor:eV,borderLeftColor:eV,filter:im,WebkitFilter:im},iv=t=>ig[t];function iy(t,e){let i=iv(t);return i!==im&&(i=ez),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ix=t=>/^0[^.\s]+$/.test(t);function ib(t,e){return t[e]||t.default||t}let iP=(t,e,i,n={})=>r=>{let s=ib(n,t)||{},o=s.delay||n.delay||0,{elapsed:a=0}=n;a-=t5(o);
9let l=function(t,e,i,n){let r,s;let o=ih(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==n.from?n.from:t.get(),l=[];for(let t=0;t<r.length;t++){var u;(null===r[t]&&(r[t]=0===t?a:r[t-1]),"number"==typeof(u=r[t])?0===u:null!==u?"none"===u||"0"===u||ix(u):void 0)?l.push(t):"string"==typeof r[t]&&(s=r[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++){let i=l[t];r[i]=iy(e,s)}return r}(e,t,i,s),u=l[0],h=l[l.length-1],c=ih(t,u),d=ih(t,h);(0,t3.K)(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(p={...p,...iu(t,p)}),p.duration&&(p.duration=t5(p.duration)),p.repeatDelay&&(p.repeatDelay=t5(p.repeatDelay)),!c||!d||t8.current||!1===s.type)return function({keyframes:t,delay:e,onUpdate:i,onComplete:n}){let r=()=>(i&&i(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:tX.Z,pause:tX.Z,stop:tX.Z,then:t=>(t(),Promise.resolve()),cancel:tX.Z,complete:tX.Z});return e?ie({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(p);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:n,...r}){let s,o;let a=en.waapi()&&ii.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type;if(!a)return!1;let l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:c=300,ease:d,times:p}=r;if(ir(e,r)){let t=ie({...r,repeat:0,delay:0}),e={done:!1,value:h[0]},i=[],n=0;for(;!e.done&&n<2e4;)i.push((e=t.sample(n)).value),n+=10;p=void 0,h=i,c=n-10,d="linear"}let f=function(t,e,i,{delay:n=0,duration:r,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return t9(e)?t7(e):Array.isArray(e)?e.map(t):et[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...r,duration:c,ease:d,times:p}),m=()=>f.cancel(),g=()=>{tH.Wi.update(m),s(),u()};return f.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:i="loop"}){let n=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[n]}(h,r)),n&&n(),g()},{then:(t,e)=>o.then(t,e),get time(){return t6(f.currentTime||0)},set time(newTime){f.currentTime=t5(newTime)},get speed(){return f.playbackRate},set speed(newSpeed){f.playbackRate=newSpeed},get duration(){return t6(c)},play:()=>{l||(f.play(),(0,tH.Pn)(m))},pause:()=>f.pause(),stop:()=>{if(l=!0,"idle"===f.playState)return;let{currentTime:e}=f;if(e){let i=ie({...r,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}g()},complete:()=>f.finish(),cancel:g}}(e,t,p);if(i)return i}return ie(p)};function iw(t){return!!(L(t)&&t.add)}let iT=t=>/^\-?\d*\.?\d+$/.test(t);function iE(t,e){-1===t.indexOf(e)&&t.push(e)}function iA(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class iS{constructor(){this.subscriptions=[]}add(t){return iE(this.subscriptions,t),()=>iA(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let iC=t=>!isNaN(parseFloat(t));class iV{constructor(t,e={}){this.version="10.12.7",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:i,timestamp:n}=e8.w;this.lastUpdated!==n&&(this.timeDelta=i,this.lastUpdated=n,tH.Wi.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=()=>tH.Wi.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=iC(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new iS);let i=this.events[t].add(e);return"change"===t?()=>{i(),tH.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?t*(1e3/e):0):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ik(t,e){return new iV(t,e)}let iM=t=>e=>e.test(t),ij=[U,J,q,K,tt,Q,{test:t=>"auto"===t,parse:t=>t}],iR=t=>ij.find(iM(t)),iL=[...ij,eV,ez],iD=t=>iL.find(iM(t));function iO(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");n&&(s=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e),r=a[e];if(!n||void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let o={delay:i,elapsed:0,...s};if(window.HandoffAppearAnimations&&!n.hasAnimated){let i=t.getProps()[t4];i&&(o.elapsed=window.HandoffAppearAnimations(i,e,n,tH.Wi))}n.start(iP(e,n,r,t.shouldReduceMotion&&j.has(e)?{type:!1}:o));let c=n.animation;iw(l)&&(l.add(e),c.then(()=>l.remove(e))),u.push(c)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let i=t2(t,e),{transitionEnd:n={},transition:r={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...n}){var o;let i=tC(s[e]);o=e,t.hasValue(o)?t.getValue(o).set(i):t.addValue(o,ik(i))}}(t,o)}),u}function iF(t,e,i={}){let n=t2(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(iO(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
9return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(iB).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(iF(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function iB(t,e){return t.sortNodePosition(e)}let iN=[...p].reverse(),iI=p.length;function i$(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iU=0,iW=(t,e)=>Math.abs(t-e);class i_{constructor(t,e,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iZ(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=iW(t.x,e.x),n=iW(t.y,e.y);return Math.sqrt(i**2+n**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=e8.w;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iz(e,this.transformPagePoint),tH.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:i,onSessionEnd:n}=this.handlers,r=iZ("pointercancel"===t.type?this.lastMoveEventInfo:iz(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!tL(t))return;this.handlers=e,this.transformPagePoint=i;let n=tD(t),r=iz(n,this.transformPagePoint),{point:s}=r,{timestamp:o}=e8.w;this.history=[{...s,timestamp:o}];let{onSessionStart:a}=e;a&&a(t,iZ(r,this.history)),this.removeListeners=tN(tF(window,"pointermove",this.handlePointerMove),tF(window,"pointerup",this.handlePointerUp),tF(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tH.Pn)(this.updatePoint)}}function iz(t,e){return e?{point:e(t.point)}:t}function iH(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iZ({point:t},e){return{point:t,delta:iH(t,iY(e)),offset:iH(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=iY(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>t5(.1)));)i--;if(!n)return{x:0,y:0};let s=t6(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function iY(t){return t[t.length-1]}function iX(t){return t.max-t.min}function iG(t,e=0,i=.01){return Math.abs(t-e)<=i}function iK(t,e,i,n=.5){t.origin=n,t.originPoint=ek(e.min,e.max,t.origin),t.scale=iX(i)/iX(e),(iG(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=ek(i.min,i.max,t.origin)-t.originPoint,(iG(t.translate)||isNaN(t.translate))&&(t.translate=0)}function iq(t,e,i,n){iK(t.x,e.x,i.x,n?n.originX:void 0),iK(t.y,e.y,i.y,n?n.originY:void 0)}function iJ(t,e,i){t.min=i.min+e.min,t.max=t.min+iX(e)}function iQ(t,e,i){t.min=e.min-i.min,t.max=t.min+iX(e)}function i0(t,e,i){iQ(t.x,e.x,i.x),iQ(t.y,e.y,i.y)}function i1(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function i2(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function i4(t,e,i){return{min:i3(t,e),max:i3(t,i)}}function i3(t,e){return"number"==typeof t?t:t[e]||0}let i5=()=>({translate:0,scale:1,origin:0,originPoint:0}),i6=()=>({x:i5(),y:i5()}),i8=()=>({min:0,max:0}),i9=()=>({x:i8(),y:i8()});function i7(t){return[t("x"),t("y")]}function nt({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ne(t){return void 0===t||1===t}function ni({scale:t,scaleX:e,scaleY:i}){return!ne(t)||!ne(e)||!ne(i)}function nn(t){return ni(t)||nr(t)||t.z||t.rotate||t.rotateX||t.rotateY}function nr(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}
9function ns(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function no(t,e=0,i=1,n,r){t.min=ns(t.min,e,i,n,r),t.max=ns(t.max,e,i,n,r)}function na(t,{x:e,y:i}){no(t.x,e.translate,e.scale,e.originPoint),no(t.y,i.translate,i.scale,i.originPoint)}function nl(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function nu(t,e){t.min=t.min+e,t.max=t.max+e}function nh(t,e,[i,n,r]){let s=void 0!==e[r]?e[r]:.5,o=ek(t.min,t.max,s);no(t,e[i],e[n],o,e.scale)}let nc=["x","scaleX","originX"],nd=["y","scaleY","originY"];function np(t,e){nh(t.x,e,nc),nh(t.y,e,nd)}function nf(t,e){return nt(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let nm=new WeakMap;class ng{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=i9(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{this.stopAnimation(),e&&this.snapToCursor(tD(t,"page").point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tW(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i7(t=>{let e=this.getAxisMotionValue(t).get()||0;if(q.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=iX(n);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),r&&tH.Wi.update(()=>r(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e);this.panSession=new i_(t,{onSessionStart:n,onStart:r,onMove:s,onSessionEnd:o},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&tH.Wi.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nv(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?ek(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?ek(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:i}=this.visualElement.projection||{},n=this.constraints;t&&h(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:i1(t.x,i,r),y:i1(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i4(t,"left","right"),y:i4(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&i7(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!h(e))return!1;let n=e.current;(0,t3.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
9let s=function(t,e,i){let n=nf(t,i),{scroll:r}=e;return r&&(nu(n.x,r.offset.x),nu(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:i2((t=r.layout.layoutBox).x,s.x),y:i2(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=nt(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=i7(o=>{if(!nv(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iP(t,i,0,e))}stopAnimation(){i7(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps(),n=i[e];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){i7(e=>{let{drag:i}=this.getProps();if(!nv(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-ek(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!h(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};i7(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=iX(t),r=iX(e);return r>n?i=eK(e.min,e.max-n,t.min):n>r&&(i=eK(t.min,t.max-r,e.min)),$(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),i7(e=>{if(!nv(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(ek(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;nm.set(this.visualElement,this);let t=this.visualElement.current,e=tF(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();h(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),i();let s=tR(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(i7(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function nv(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let ny=t=>(e,i)=>{t&&tH.Wi.update(()=>t(e,i))};function nx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nb={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!J.test(t))return t;t=parseFloat(t)}let i=nx(t,e.target.x),n=nx(t,e.target.y);return`${i}% ${n}%`}};class nP extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(k,nT),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),w.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tH.Wi.postRender(()=>{let t=s.getStack();t&&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:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nw(t){let[e,i]=function(){let t=(0,r.useContext)(a.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,s=(0,r.useId)();(0,r.useEffect)(()=>n(s),[]);let o=()=>i&&i(s);return!e&&i?[!1,o]:[!0]}(),n=(0,r.useContext)(E.p);return r.createElement(nP,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(A),isPresent:e,safeToRemove:i})}let nT={borderRadius:{...nb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nb,borderTopRightRadius:nb,borderBottomLeftRadius:nb,borderBottomRightRadius:nb,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=ez.parse(t);if(n.length>5)return t;let r=ez.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=ek(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nE=["TopLeft","TopRight","BottomLeft","BottomRight"],nA=nE.length,nS=t=>"string"==typeof t?parseFloat(t):t,nC=t=>"number"==typeof t||J.test(t);function nV(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nk=nj(0,.5,ep),nM=nj(.5,.95,tX.Z);
9function nj(t,e,i){return n=>n<t?0:n>e?1:i(eK(t,e,n))}function nR(t,e){t.min=e.min,t.max=e.max}function nL(t,e){nR(t.x,e.x),nR(t.y,e.y)}function nD(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nO(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(q.test(e)){e=parseFloat(e);let t=ek(o.min,o.max,e/100);e=t-o.min}if("number"!=typeof e)return;let a=ek(s.min,s.max,n);t===s&&(a-=e),t.min=nD(t.min,e,i,a,r),t.max=nD(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nF=["x","scaleX","originX"],nB=["y","scaleY","originY"];function nN(t,e,i,n){nO(t.x,e,nF,i?i.x:void 0,n?n.x:void 0),nO(t.y,e,nB,i?i.y:void 0,n?n.y:void 0)}function nI(t){return 0===t.translate&&1===t.scale}function n$(t){return nI(t.x)&&nI(t.y)}function nU(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 nW(t){return iX(t.x)/iX(t.y)}class n_{constructor(){this.members=[]}add(t){iE(this.members,t),t.scheduleRender()}remove(t){if(iA(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nz(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(n=`translate3d(${r}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+=`rotate(${t}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(n+=`scale(${o}, ${a})`),n||"none"}let nH=(t,e)=>t.depth-e.depth;class nZ{constructor(){this.children=[],this.isDirty=!1}add(t){iE(this.children,t),this.isDirty=!0}remove(t){iA(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nH),this.isDirty=!1,this.children.forEach(t)}}let nY=["","X","Y","Z"],nX=0,nG={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nK({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t,i={},n=null==e?void 0:e()){this.id=nX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{nG.totalNodes=nG.resolvedTargetDeltas=nG.recalculatedProjection=0,this.nodes.forEach(nQ),this.nodes.forEach(n5),this.nodes.forEach(n6),this.nodes.forEach(n0),window.MotionDebug&&window.MotionDebug.record(nG)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=i,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nZ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new iS),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,i=!1){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=performance.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&((0,tH.Pn)(n),t(s-e))};return tH.Wi.read(n,!0),()=>(0,tH.Pn)(n)}
9(n,250),w.hasAnimatedSinceResize&&(w.hasAnimatedSinceResize=!1,this.nodes.forEach(n3))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ri,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!nU(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...ib(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||n3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tH.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n8),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n2);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rn),this.potentialNodes.clear()),this.nodes.forEach(n4),this.nodes.forEach(nq),this.nodes.forEach(nJ),this.clearAllSnapshots(),tH.S6.update.process(e8.w),tH.S6.preRender.process(e8.w),tH.S6.render.process(e8.w))}clearAllSnapshots(){this.nodes.forEach(n1),this.sharedNodes.forEach(n9)}scheduleUpdateProjection(){tH.Wi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){tH.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){let e=this.path[t];e.updateScroll()}let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=i9(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:n(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!n$(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||nn(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rr((e=n).x),rr(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return i9();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(nu(e.x,i.offset.x),nu(e.y,i.offset.y)),e}removeElementScroll(t){let e=i9();nL(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;if(n!==this.root&&r&&s.layoutScroll){if(r.isRoot){nL(e,t);let{scroll:i}=this.root;i&&(nu(e.x,-i.offset.x),nu(e.y,-i.offset.y))}nu(e.x,r.offset.x),nu(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=i9();nL(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&np(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nn(n.latestValues)&&np(i,n.latestValues)}return nn(this.latestValues)&&np(i,this.latestValues),i}removeTransform(t){let e=i9();nL(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!nn(i.latestValues))continue;ni(i.latestValues)&&i.updateSnapshot();let n=i9(),r=i.measurePageBox();nL(n,r),nN(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return nn(this.latestValues)&&nN(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==e8.w.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
9haredProjectionDirty);let o=!!this.resumingFrom||this!==s,a=!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(a)return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=e8.w.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i9(),this.relativeTargetOrigin=i9(),i0(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=i9(),this.targetWithTransforms=i9()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,iJ(i.x,n.x,r.x),iJ(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nL(this.target,this.layout.layoutBox),na(this.target,this.targetDelta)):nL(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i9(),this.relativeTargetOrigin=i9(),i0(this.relativeTargetOrigin,this.target,t.target),nL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nG.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ni(this.parent.latestValues)||nr(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===e8.w.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nL(this.layoutCorrected,this.layout.layoutBox),function(t,e,i,n=!1){let r,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let o=r.instance;(!o||!o.style||"contents"!==o.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&np(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,na(t,s)),n&&nn(r.latestValues)&&np(t,r.latestValues))}e.x=nl(e.x),e.y=nl(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i);let{target:o}=e;if(!o)return;this.projectionDelta||(this.projectionDelta=i6(),this.projectionDeltaWithTransform=i6());let a=this.treeScale.x,l=this.treeScale.y,u=this.projectionTransform;iq(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=nz(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==l)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),nG.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=i6();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=i9(),l=n?n.source:void 0,u=this.layout?this.layout.source:void 0,h=l!==u,c=this.getStack(),d=!c||c.members.length<=1,p=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(re));this.animationProgress=0,this.mixTargetDelta=e=>{var n,l;let u=e/1e3;n7(o.x,t.x,u),n7(o.y,t.y,u),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(i0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,l=this.relativeTargetOrigin,rt(n.x,l.x,a.x,u),rt(n.y,l.y,a.y,u),i&&nU(this.relativeTarget,i)&&(this.isProjectionDirty=!1),i||(i=i9()),nL(i,this.relativeTarget)),h&&(this.animationValues=s,function(t,e,
9i,n,r,s){r?(t.opacity=ek(0,void 0!==i.opacity?i.opacity:1,nk(n)),t.opacityExit=ek(void 0!==e.opacity?e.opacity:1,0,nM(n))):s&&(t.opacity=ek(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nA;r++){let s=`border${nE[r]}Radius`,o=nV(e,s),a=nV(i,s);if(void 0===o&&void 0===a)continue;o||(o=0),a||(a=0);let l=0===o||0===a||nC(o)===nC(a);l?(t[s]=Math.max(ek(nS(o),nS(a),n),0),(q.test(a)||q.test(o))&&(t[s]+="%")):t[s]=a}(e.rotate||i.rotate)&&(t.rotate=ek(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,u,p,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=u},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tH.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tH.Wi.update(()=>{w.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=L(t)?t:ik(t);return n.start(iP("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rs(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||i9();let e=iX(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iX(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nL(e,i),np(e,r),iq(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n_);let i=this.sharedNodes.get(t);i.add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e<nY.length;e++){let r="rotate"+nY[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,i;let n={};if(!this.instance||this.isSVG)return n;if(!this.isVisible)return{visibility:"hidden"};n.visibility="";let r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=tV(t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tV(t.pointerEvents)||""),this.hasProjected&&!nn(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=nz(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,k){if(void 0===o[t])continue;let{correct:e,applyTo:i}=k[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?tV(t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
9resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(n2),this.root.sharedNodes.clear()}}}function nq(t){t.updateLayout()}function nJ(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?i7(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=iX(n);n.min=e[t].min,n.max=n.min+r}):rs(r,i.layoutBox,e)&&i7(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iX(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=i6();iq(o,e,i.layoutBox);let a=i6();s?iq(a,t.applyTransform(n,!0),i.measuredBox):iq(a,e,i.layoutBox);let l=!n$(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=i9();i0(o,i.layoutBox,r.layoutBox);let a=i9();i0(a,e,s.layoutBox),nU(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nQ(t){nG.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function n0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n1(t){t.clearSnapshot()}function n2(t){t.clearMeasurements()}function n4(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n3(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function n5(t){t.resolveTargetDelta()}function n6(t){t.calcProjection()}function n8(t){t.resetRotation()}function n9(t){t.removeLeadSnapshot()}function n7(t,e,i){t.translate=ek(e.translate,0,i),t.scale=ek(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rt(t,e,i,n){t.min=ek(e.min,i.min,n),t.max=ek(e.max,i.max,n)}function re(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ri={duration:.45,ease:[.4,0,.1,1]};function rn(t,e){let i=t.root;for(let e=t.path.length-1;e>=0;e--)if(t.path[e].instance){i=t.path[e];break}let n=i&&i!==t.root?i.instance:document,r=n.querySelector(`[data-
9projection-id="${e}"]`);r&&t.mount(r,!0)}function rr(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function rs(t,e,i){return"position"===t||"preserve-aspect"===t&&!iG(nW(e),nW(i),.2)}let ro=nK({attachResizeListener:(t,e)=>tR(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ra={current:void 0},rl=nK({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ra.current){let t=new ro(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ra.current=t}return ra.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),ru=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rh(t,e,i=1){(0,t3.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=ru.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);return s?s.trim():N(r)?rh(r,e,i+1):r}let rc=new Set(["width","height","top","left","right","bottom","x","y"]),rd=t=>rc.has(t),rp=t=>Object.keys(t).some(rd),rf=t=>t===U||t===J,rm=(t,e)=>parseFloat(t.split(", ")[e]),rg=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return rm(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?rm(e[1],t):0}},rv=new Set(["x","y","z"]),ry=M.filter(t=>!rv.has(t)),rx={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:rg(4,13),y:rg(5,14)},rb=(t,e,i)=>{let n=e.measureViewportBox(),r=e.current,s=getComputedStyle(r),{display:o}=s,a={};"none"===o&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{a[t]=rx[t](n,s)}),e.render();let l=e.measureViewportBox();return i.forEach(i=>{let n=e.getValue(i);n&&n.jump(a[i]),t[i]=rx[i](l,s)}),t},rP=(t,e,i={},n={})=>{e={...e},n={...n};let r=Object.keys(e).filter(rd),s=[],o=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=i[r],c=iR(h),d=e[r];if(tA(d)){let t=d.length,e=null===d[0]?1:0;c=iR(h=d[e]);for(let i=e;i<t&&null!==d[i];i++)l?(0,t3.k)(iR(d[i])===l,"All keyframes must be of the same type"):(l=iR(d[i]),(0,t3.k)(l===c||rf(c)&&rf(l),"Keyframes must be of the same dimension as the current value"))}else l=iR(d);if(c!==l){if(rf(c)&&rf(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===J&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[r]=c.transform(d):(o||(s=function(t){let e=[];return ry.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(r),n[r]=void 0!==n[r]?n[r]:e[r],u.jump(d))}}),!a.length)return{target:e,transitionEnd:n};{let i=a.indexOf("height")>=0?window.pageYOffset:null,r=rb(e,t,a);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),b.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},rw=(t,e,i,n)=>{var r,s;let o=function(t,{...e},i){let n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!N(e))return;let i=rh(e,n);i&&t.set(i)}),e){let t=e[r];if(!N(t))continue;let s=rh(t,n);s&&(e[r]=s,i||(i={}),void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,n);return e=o.target,n=o.transitionEnd,r=e,s=n,rp(r)?rP(t,r,i,s):{target:r,transitionEnd:s}},rT={current:null},rE={current:!1},rA=new WeakMap,rS=Object.keys(x),rC=rS.length,rV=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rk=f.length;class rM{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tH.Wi.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.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=m(e),this.isVariantNode=g(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&L(e)&&(e.set(o[t],!1),iw(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,rA.set(t,this),this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
9h((t,e)=>this.bindToMotionValue(e,t)),rE.current||function(){if(rE.current=!0,b.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rT.current=t.matches;t.addListener(e),e()}else rT.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rT.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rA.delete(this.current),this.projection&&this.projection.unmount(),(0,tH.Pn)(this.notifyUpdate),(0,tH.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=j.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tH.Wi.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,n,r,s){let o,a;for(let t=0;t<rC;t++){let i=rS[t],{isEnabled:n,Feature:r,ProjectionNode:s,MeasureLayout:l}=x[i];s&&(o=s),n(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(a=l))}if(!this.projection&&o){this.projection=new o(r,this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:n,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!n||a&&h(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}return a}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i9()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rV.length;e++){let i=rV[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let s=e[r],o=i[r];if(L(s))t.addValue(r,s),iw(n)&&n.add(r);else if(L(o))t.addValue(r,ik(s,{owner:t})),iw(n)&&n.remove(r);else if(o!==s){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,ik(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<rk;t++){let i=f[t],n=this.props[i];(c(n)||!1===n)&&(e[i]=n)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ik(e,{owner:this}),this.addValue(t,i)),i}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:i}=this.props,n="string"==typeof i||"object"==typeof i?null===(e=tE(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||L(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new iS),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rj extends rM{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:n}
9,r){let s=function(t,e,i){let n={};for(let r in t){let t=function(t,e){if(!e)return;let i=e[t]||e.default||e;return i.from}(r,e);if(void 0!==t)n[r]=t;else{let t=i.getValue(r);t&&(n[r]=t.get())}}return n}(i,t||{},this);if(n&&(e&&(e=n(e)),i&&(i=n(i)),s&&(s=n(s))),r){!function(t,e,i){var n,r;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(n=i[o])&&void 0!==n?n:t.readValue(o))&&void 0!==r?r:e[o]),null!=u&&("string"==typeof u&&(iT(u)||ix(u))?u=parseFloat(u):!iD(u)&&ez.test(l)&&(u=iy(o,l)),t.addValue(o,ik(u,{owner:t})),void 0===i[o]&&(i[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,i,s);let t=rw(this,i,s,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}}class rR extends rj{readValueFromInstance(t,e){if(j.has(e)){let t=iv(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(B(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return nf(t,e)}build(t,e,i,n){tr(t,e,i,n.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tw(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;L(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,n){tx(t,e,i,n)}}class rL extends rj{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(j.has(e)){let t=iv(e);return t&&t.default||0}return e=tb.has(e)?e:ty(e),t.getAttribute(e)}measureInstanceViewportBox(){return i9()}scrapeMotionValuesFromProps(t,e){return tT(t,e)}
9build(t,e,i,n){tf(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){tP(t,e,i,n)}mount(t){this.isSVGTag=tg(t.tagName),super.mount(t)}}let rD=(t,e)=>V(t)?new rL(e,{enableHardwareAcceleration:!1}):new rR(e,{enableHardwareAcceleration:!0}),rO={animation:{Feature:class extends tz{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){let r=e.map(e=>iF(t,e,i));n=Promise.all(r)}else if("string"==typeof e)n=iF(t,e,i);else{let r="function"==typeof e?t2(t,e,i.custom):e;n=Promise.all(iO(t,r,i))}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:i$(!0),whileInView:i$(),whileHover:i$(),whileTap:i$(),whileDrag:i$(),whileFocus:i$(),exit:i$()},n=!0,r=(e,i)=>{let n=t2(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,p={},f=1/0;for(let e=0;e<iI;e++){var m;let g=iN[e],v=i[g],y=void 0!==a[g]?a[g]:l[g],x=c(y),b=g===o?v.isActive:null;!1===b&&(f=e);let P=y===l[g]&&y!==a[g]&&x;if(P&&n&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...p},!v.isActive&&null===b||!y&&!v.prevProp||d(y)||"boolean"==typeof y)continue;let w=(m=v.prevProp,"string"==typeof y?y!==m:!!Array.isArray(y)&&!t1(y,m)),T=w||g===o&&v.isActive&&!P&&x||e>f&&x,E=Array.isArray(y)?y:[y],A=E.reduce(r,{});!1===b&&(A={});let{prevResolvedValues:S={}}=v,C={...S,...A},V=t=>{T=!0,h.delete(t),v.needsAnimating[t]=!0};for(let t in C){let e=A[t],i=S[t];p.hasOwnProperty(t)||(e!==i?tA(e)&&tA(i)?!t1(e,i)||w?V(t):v.protectedKeys[t]=!0:void 0!==e?V(t):h.add(t):void 0!==e&&h.has(t)?V(t):v.protectedKeys[t]=!0)}v.prevProp=y,v.prevResolvedValues=A,v.isActive&&(p={...p,...A}),n&&t.blockInitialAnimation&&(T=!1),T&&!P&&u.push(...E.map(t=>({animation:t,options:{type:g,...s}})))}if(h.size){let e={};h.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),u.push({animation:e})}let g=!!u.length;return n&&!1===a.initial&&!t.manuallyAnimateOnMount&&(g=!1),n=!1,g?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n,r){var o;if(i[e].isActive===n)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let a=s(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),d(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends tz{constructor(){super(...arguments),this.id=iU++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends tz{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:t0[n]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;tq.has(i)||tq.set(i,{});let n=tq.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(tQ,{root:t,...e})),n[r]}(e);return tK.set(t,i),n.observe(t),()=>{tK.delete(t),n.unobserve(t)}}(this.node.current,s,o)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends tz{constructor(){super(...arguments),this.removeStartListeners=tX.Z,this.removeEndListeners=tX.Z,this.removeAccessibleListeners=tX.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;let i=this.node.getProps(),n=(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n}=this.node.getProps();tH.Wi.update(()=>{tY(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},r=tF(window,"pointerup",n,{passive:!(i.onTap||i.onPointerUp)}),s=tF(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=tN(r,s),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&tG("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tH.Wi.update(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=tR(this.node.current,"keyup",e),tG("down",(t,e)=>{this.startPress(t,e)})},e=tR(this.node.current,"keydown",t),i=()=>{this.isPressing&&tG("cancel",(t,e)=>this.cancelPress(t,e))},n=tR(this.node.current,"blur",i);this.removeAccessibleListeners=tN(e,n)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&tH.Wi.update(()=>i(t,e))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let t=this.node.getProps();return t.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!t_()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tH.Wi.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tF(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tR(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tN(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends tz{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tN(tR(this.node.current,"focus",()=>this.onFocus()),tR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends tz{mount(){this.unmount=tN(tZ(this.node,!0),tZ(this.node,!1))}unmount(){}}},pan:{Feature:class extends tz{constructor(){super(...arguments),this.removePointerDownListener=tX.Z}onPointerDown(t){this.session=new i_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ny(t),onStart:ny(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tH.Wi.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=tF(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends tz{constructor(t){super(t),this.removeGroupControls=tX.Z,this.removeListeners=tX.Z,this.controls=new ng(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tX.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:rl,MeasureLayout:nw},layout:{ProjectionNode:rl,MeasureLayout:nw}},rF=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:d}){t&&function(t){for(let e in t)x[e]={...x[e],...t[e]}}(t);let p=(0,r.forwardRef)(function(p,f){var g,y;let x;let S={...(0,r.useContext)(s),...p,layoutId:function({layoutId:t}){let e=(0,r.useContext)(E.p).id;return e&&void 0!==t?e+"-"+t:t}(p)},{isStatic:C}=S,V=function(t){let{initial:e,animate:i}=function(t,e){if(m(t)){let{initial:e,animate:i}=t;return{initial:!1===e||c(e)?e:void 0,animate:c(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(o));return(0,r.useMemo)(()=>({initial:e,animate:i}),[v(e),v(i)])}(p),k=C?void 0:(0,P.h)(()=>
9{if(w.hasEverUpdated)return T++}),M=n(p,C);if(!C&&b.j){V.visualElement=function(t,e,i,n){let{visualElement:h}=(0,r.useContext)(o),c=(0,r.useContext)(u),d=(0,r.useContext)(a.O),p=(0,r.useContext)(s).reducedMotion,f=(0,r.useRef)();n=n||c.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:h,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));let m=f.current;(0,r.useInsertionEffect)(()=>{m&&m.update(i,d)}),(0,l.L)(()=>{m&&m.render()}),(0,r.useEffect)(()=>{m&&m.updateFeatures()});let g=window.HandoffAppearAnimations?l.L:r.useEffect;return g(()=>{m&&m.animationState&&m.animationState.animateChanges()}),m}(d,M,S,e);let i=(0,r.useContext)(A),n=(0,r.useContext)(u).strict;V.visualElement&&(x=V.visualElement.loadFeatures(S,n,t,k,i))}return r.createElement(o.Provider,{value:V},x&&V.visualElement?r.createElement(x,{visualElement:V.visualElement,...S}):null,i(d,p,k,(g=V.visualElement,y=f,(0,r.useCallback)(t=>{t&&M.mount&&M.mount(t),g&&(t?g.mount(t):g.unmount()),y&&("function"==typeof y?y(t):h(y)&&(y.current=t))},[g])),M,C,V.visualElement))});return p[S]=d,p}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,n)=>(i.has(n)||i.set(n,e(n)),i.get(n))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,n){let s=V(t)?tM:tj;return{...s,preloadedFeatures:i,useRender:function(t=!1){let e=(e,i,n,s,{latestValues:o},a)=>{let l=V(e)?tv:ta,u=l(i,o,a,e),h=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(th(r)||!0===i&&tu(r)||!e&&!tu(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),c={...h,...u,ref:s},{children:d}=i,p=(0,r.useMemo)(()=>L(d)?d.get():d,[d]);return n&&(c["data-projection-id"]=n),(0,r.createElement)(e,{...c,children:p})};return e}(e),createVisualElement:n,Component:t}})(t,e,rO,rD))},5487:function(t,e,i){"use strict";i.d(e,{K:function(){return r},k:function(){return s}});var n=i(1662);let r=n.Z,s=n.Z},1741:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof document},1662:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});let n=t=>t},6681:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(7294);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8868:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(7294),r=i(1741);let s=r.j?n.useLayoutEffect:n.useEffect}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],function(){return e(6840),e(6885)}),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.