PageSourceSearch

https://hirenewtalent.ai/assets/v2/framer-motion-CZgDa0nm.js

js hirenewtalent.ai collected 2026-10-05 12:40:34 UTC 122,239 bytes, 9 lines download raw bytes

vendor: 7,787 bytes, line 1
1function Ar(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ye={exports:{}},kt={},ve={exports:{}},R={};var Mn;function Cr(){if(Mn)return R;Mn=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.iterator;function f(d){return d===null||typeof d!="object"?null:(d=h&&d[h]||d["@@iterator"],typeof d=="function"?d:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(d,x,M){this.props=d,this.context=x,this.refs=g,this.updater=M||p}y.prototype.isReactComponent={},y.prototype.setState=function(d,x){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,x,"setState")},y.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function v(){}v.prototype=y.prototype;function P(d,x,M){this.props=d,this.context=x,this.refs=g,this.updater=M||p}var b=P.prototype=new v;b.constructor=P,m(b,y.prototype),b.isPureReactComponent=!0;var V=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function A(d,x,M){var L,E={},_=null,U=null;if(x!=null)for(L in x.ref!==void 0&&(U=x.ref),x.key!==void 0&&(_=""+x.key),x)S.call(x,L)&&!F.hasOwnProperty(L)&&(E[L]=x[L]);var N=arguments.length-2;if(N===1)E.children=M;else if(1<N){for(var B=Array(N),J=0;J<N;J++)B[J]=arguments[J+2];E.children=B}if(d&&d.defaultProps)for(L in N=d.defaultProps,N)E[L]===void 0&&(E[L]=N[L]);return{$$typeof:t,type:d,key:_,ref:U,props:E,_owner:C.current}}function $(d,x){return{$$typeof:t,type:d.type,key:x,ref:d.ref,props:d.props,_owner:d._owner}}function W(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function ot(d){var x={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(M){return x[M]})}var Dt=/\/+/g;function Mt(d,x){return typeof d=="object"&&d!==null&&d.key!=null?ot(""+d.key):x.toString(36)}function ht(d,x,M,L,E){var _=typeof d;(_==="undefined"||_==="boolean")&&(d=null);var U=!1;if(d===null)U=!0;else switch(_){case"string":case"number":U=!0;break;case"object":switch(d.$$typeof){case t:case e:U=!0}}if(U)return U=d,E=E(U),d=L===""?"."+Mt(U,0):L,V(E)?(M="",d!=null&&(M=d.replace(Dt,"$&/")+"/"),ht(E,x,M,"",function(J){return J})):E!=null&&(W(E)&&(E=$(E,M+(!E.key||U&&U.key===E.key?"":(""+E.key).replace(Dt,"$&/")+"/")+d)),x.push(E)),1;if(U=0,L=L===""?".":L+":",V(d))for(var N=0;N<d.length;N++){_=d[N];var B=L+Mt(_,N);U+=ht(_,x,M,B,E)}else if(B=f(d),typeof B=="function")for(d=B.call(d),N=0;!(_=d.next()).done;)_=_.value,B=L+Mt(_,N++),U+=ht(_,x,M,B,E);else if(_==="object")throw x=String(d),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.");return U}function Et(d,x,M){if(d==null)return d;var L=[],E=0;return ht(d,L,"","",function(_){return x.call(M,_,E++)}),L}function Dn(d){if(d._status===-1){var x=d._result;x=x(),x.then(function(M){(d._status===0||d._status===-1)&&(d._status=1,d._result=M)},function(M){(d._status===0||d._status===-1)&&(d._status=2,d._result=M)}),d._status===-1&&(d._status=0,d._result=x)}if(d._status===1)return d._result.default;throw d._result}var D={current:null},H={transition:null},Lt={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:H,ReactCurrentOwner:C};function vt(){throw Error("act(...) is not supported in production builds of React.")}return R.Children={map:Et,forEach:function(d,x,M){Et(d,function(){x.apply(this,arguments)},M)},count:function(d){var x=0;return Et(d,function(){x++}),x},toArray:function(d){return Et(d,function(x){return x})||[]},only:function(d){if(!W(d))throw Error("React.Children.only expected to receive a single React element child.");return d}},R.Component=y,R.Fragment=n,R.Profiler=i,R.PureComponent=P,R.StrictMode=s,R.Suspense=l,R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lt,R.act=vt,R.cloneElement=function(d,x,M){if(d==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+d+".");var L=m({},d.props),E=d.key,_=d.ref,U=d._owner;if(x!=null){if(x.ref!==void 0&&(_=x.ref,U=C.current),x.key!==void 0&&(E=""+x.key),d.type&&d.type.defaultProps)var N=d.type.defaultProps;for(B in x)S.call(x,B)&&!F.hasOwnProperty(B)&&(L[B]=x[B]===void 0&&N!==void 0?N[B]:x[B])}var B=arguments.length-2;if(B===1)L.children=M;else if(1<B){N=Array(B);for(var J=0;J<B;J++)N[J]=arguments[J+2];L.children=N}return{$$typeof:t,type:d.type,key:E,ref:_,props:L,_owner:U}},R.createContext=function(d){return d={$$typeof:r,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},d.Provider={$$typeof:o,_context:d},d.Consumer=d},R.createElement=A,R.createFactory=function(d){var x=A.bind(null,d);return x.type=d,x},R.createRef=function(){return{current:null}},R.forwardRef=function(d){return{$$typeof:a,render:d}},R.isValidElement=W,R.lazy=function(d){return{$$typeof:c,_payload:{_status:-1,_result:d},_init:Dn}},R.memo=function(d,x){return{$$typeof:u,type:d,compare:x===void 0?null:x}},R.startTransition=function(d){var x=H.transition;H.transition={};try{d()}finally{H.transition=x}},R.unstable_act=vt,R.useCallback=function(d,x){return D.current.useCallback(d,x)},R.useContext=function(d){return D.current.useContext(d)},R.useDebugValue=function(){},R.useDeferredValue=function(d){return D.current.useDeferredValue(d)},R.useEffect=function(d,x){return D.current.useEffect(d,x)},R.useId=function(){return D.current.useId()},R.useImperativeHandle=function(d,x,M){return D.current.useImperativeHandle(d,x,M)},R.useInsertionEffect=function(d,x){return D.current.useInsertionEffect(d,x)},R.useLayoutEffect=function(d,x){return D.current.useLayoutEffect(d,x)},R.useMemo=function(d,x){return D.current.useMemo(d,x)},R.useReducer=function(d,x,M){return D.current.useReducer(d,x,M)},R.useRef=function(d){return D.current.useRef(d)},R.useState=function(d){return D.current.useState(d)},R.useSyncExternalStore=function(d,x,M){return D.current.useSyncExternalStore(d,x,M)},R.useTransition=function(){return D.current.useTransition()},R.version="18.3.1",R}var En;function Xs(){return En||(En=1,ve.exports=Cr()),ve.exports}var Ln;function Rr(){if(Ln)return kt;Ln=1;var t=Xs(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function r(a,l,u){var c,h={},f=null,p=null;u!==void 0&&(f=""+u),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(c in l)s.call(l,c)&&!o.hasOwnProperty(c)&&(h[c]=l[c]);if(a&&a.defaultProps)for(c in l=a.defaultProps,l)h[c]===void 0&&(h[c]=l[c]);return{$$typeof:e,type:a,key:f,ref:p,props:h,_owner:i.current}}return kt.Fragment=n,kt.jsx=r,kt.jsxs=r,kt}var kn;
vendor: 35,704 bytes, lines 1-9
1function Dr(){return kn||(kn=1,ye.exports=Rr()),ye.exports}var nt=Dr(),T=Xs();const Mr=Vr(T),rc=Ar({__proto__:null,default:Mr},[T]),qe=T.createContext({});function Xe(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const he=T.createContext(null),Ye=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Er extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Lr({children:t,isPresent:e}){const n=T.useId(),s=T.useRef(null),i=T.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=T.useContext(Ye);return T.useInsertionEffect(()=>{const{width:r,height:a,top:l,left:u}=i.current;if(e||!s.current||!r||!a)return;s.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
2          [data-motion-pop-id="${n}"] {
3            position: absolute !important;
4            width: ${r}px !important;
5            height: ${a}px !important;
6            top: ${l}px !important;
7            left: ${u}px !important;
8          }
9        `),()=>{document.head.removeChild(c)}},[e]),nt.jsx(Er,{isPresent:e,childRef:s,sizeRef:i,children:T.cloneElement(t,{ref:s})})}const kr=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r})=>{const a=Xe(Fr),l=T.useId(),u=T.useCallback(h=>{a.set(h,!0);for(const f of a.values())if(!f)return;s&&s()},[a,s]),c=T.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:u,register:h=>(a.set(h,!1),()=>a.delete(h))}),o?[Math.random(),u]:[n,u]);return T.useMemo(()=>{a.forEach((h,f)=>a.set(f,!1))},[n]),T.useEffect(()=>{!n&&!a.size&&s&&s()},[n]),r==="popLayout"&&(t=nt.jsx(Lr,{isPresent:n,children:t})),nt.jsx(he.Provider,{value:c,children:t})};function Fr(){return new Map}function Ys(t=!0){const e=T.useContext(he);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=T.useId();T.useEffect(()=>{t&&i(o)},[t]);const r=T.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Zt=t=>t.key||"";function Fn(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const Ze=typeof window<"u",Zs=Ze?T.useLayoutEffect:T.useEffect,oc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1})=>{const[a,l]=Ys(r),u=T.useMemo(()=>Fn(t),[t]),c=r&&!a?[]:u.map(Zt),h=T.useRef(!0),f=T.useRef(u),p=Xe(()=>new Map),[m,g]=T.useState(u),[y,v]=T.useState(u);Zs(()=>{h.current=!1,f.current=u;for(let V=0;V<y.length;V++){const S=Zt(y[V]);c.includes(S)?p.delete(S):p.get(S)!==!0&&p.set(S,!1)}},[y,c.length,c.join("-")]);const P=[];if(u!==m){let V=[...u];for(let S=0;S<y.length;S++){const C=y[S],F=Zt(C);c.includes(F)||(V.splice(S,0,C),P.push(C))}o==="wait"&&P.length&&(V=P),v(Fn(V)),g(u);return}const{forceRender:b}=T.useContext(qe);return nt.jsx(nt.Fragment,{children:y.map(V=>{const S=Zt(V),C=r&&!a?!1:u===y||c.includes(S),F=()=>{if(p.has(S))p.set(S,!0);else return;let A=!0;p.forEach($=>{$||(A=!1)}),A&&(b?.(),v(f.current),r&&l?.(),s&&s())};return nt.jsx(kr,{isPresent:C,initial:!h.current||n?void 0:!1,custom:C?void 0:e,presenceAffectsLayout:i,mode:o,onExitComplete:C?void 0:F,children:V},S)})})},q=t=>t;let Js=q;function Je(t){let e;return()=>(e===void 0&&(e=t()),e)}const wt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},st=t=>t*1e3,it=t=>t/1e3,jr={useManualTiming:!1};function Or(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),t()),u(r)}const l={schedule:(u,c=!1,h=!1)=>{const p=h&&s?e:n;return c&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(r=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const Jt=["read","resolveKeyframes","update","preRender","render","postRender"],Br=40;function Qs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Jt.reduce((v,P)=>(v[P]=Or(o),v),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=r,p=()=>{const v=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Br),1),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(p))},m=()=>{n=!0,s=!0,i.isProcessing||t(p)};return{schedule:Jt.reduce((v,P)=>{const b=r[P];return v[P]=(V,S=!1,C=!1)=>(n||m(),b.schedule(V,S,C)),v},{}),cancel:v=>{for(let P=0;P<Jt.length;P++)r[Jt[P]].cancel(v)},state:i,steps:r}}const{schedule:k,cancel:lt,state:K,steps:xe}=Qs(typeof requestAnimationFrame<"u"?requestAnimationFrame:q,!0),ti=T.createContext({strict:!1}),jn={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"]},At={};for(const t in jn)At[t]={isEnabled:e=>jn[t].some(n=>!!e[n])};function Ir(t){for(const e in t)At[e]={...At[e],...t[e]}}const _r=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ie(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||_r.has(t)}let ei=t=>!ie(t);function Nr(t){t&&(ei=e=>e.startsWith("on")?!ie(e):t(e))}try{Nr(require("@emotion/is-prop-valid").default)}catch{}function Ur(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(ei(i)||n===!0&&ie(i)||!e&&!ie(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function $r(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const fe=T.createContext({});function $t(t){return typeof t=="string"||Array.isArray(t)}function de(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Qe=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tn=["initial",...Qe];function pe(t){return de(t.animate)||tn.some(e=>$t(t[e]))}function ni(t){return!!(pe(t)||t.variants)}function Kr(t,e){if(pe(t)){const{initial:n,animate:s}=t;return{initial:n===!1||$t(n)?n:void 0,animate:$t(s)?s:void 0}}return t.inherit!==!1?e:{}}function Wr(t){const{initial:e,animate:n}=Kr(t,T.useContext(fe));return T.useMemo(()=>({initial:e,animate:n}),[On(e),On(n)])}function On(t){return Array.isArray(t)?t.join(" "):t}const Gr=Symbol.for("motionComponentSymbol");function xt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function zr(t,e,n){return T.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):xt(n)&&(n.current=s))},[e])}const en=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Hr="framerAppearId",si="data-"+en(Hr),{schedule:nn}=Qs(queueMicrotask,!1),ii=T.createContext({});function qr(t,e,n,s,i){var o,r;const{visualElement:a}=T.useContext(fe),l=T.useContext(ti),u=T.useContext(he),c=T.useContext(Ye).reducedMotion,h=T.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,p=T.useContext(ii);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Xr(h.current,n,i,p);const m=T.useRef(!1);T.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const g=n[si],y=T.useRef(!!g&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,g))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,g)));return Zs(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),nn.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),T.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),y.current=!1))}),f}function Xr(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ri(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&xt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function ri(t){if(t)return t.options.allowProjection!==!1?t.projection:ri(t.parent)}function Yr({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var o,r;t&&Ir(t);function a(u,c){let h;const f={...T.useContext(Ye),...u,layoutId:Zr(u)},{isStatic:p}=f,m=Wr(u),g=s(u,p);if(!p&&Ze){Jr();const y=Qr(f);h=y.MeasureLayout,m.visualElement=qr(i,g,f,e,y.ProjectionNode)}return nt.jsxs(fe.Provider,{value:m,children:[h&&m.visualElement?nt.jsx(h,{visualElement:m.visualElement,...f}):null,n(i,u,zr(g,m.visualElement,c),g,p,m.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(r=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&r!==void 0?r:""})`}`;const l=T.forwardRef(a);return l[Gr]=i,l}function Zr({layoutId:t}){const e=T.useContext(qe).id;return e&&t!==void 0?e+"-"+t:t}function Jr(t,e){T.useContext(ti).strict}function Qr(t){const{drag:e,layout:n}=At;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const to=["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 sn(t){return typeof t!="string"||t.includes("-")?!1:!!(to.indexOf(t)>-1||/[A-Z]/u.test(t))}function Bn(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function rn(t,e,n,s){if(typeof e=="function"){const[i,o]=Bn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Bn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}const Le=t=>Array.isArray(t),eo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),no=t=>Le(t)?t[t.length-1]||0:t,z=t=>!!(t&&t.getVelocity);function ee(t){const e=z(t)?t.get():t;return eo(e)?e.toValue():e}function so({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,i,o){const r={latestValues:io(s,i,o,t),renderState:e()};return n&&(r.onMount=a=>n({props:s,current:a,...r}),r.onUpdate=a=>n(a)),r}const oi=t=>(e,n)=>{const s=T.useContext(fe),i=T.useContext(he),o=()=>so(t,e,s,i);return n?o():Xe(o)};function io(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=ee(o[f]);let{initial:r,animate:a}=t;const l=pe(t),u=ni(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!de(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const m=rn(t,f[p]);if(m){const{transitionEnd:g,transition:y,...v}=m;for(const P in v){let b=v[P];if(Array.isArray(b)){const V=c?b.length-1:0;b=b[V]}b!==null&&(i[P]=b)}for(const P in g)i[P]=g[P]}}}return i}const Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yt=new Set(Ct),ai=t=>e=>typeof e=="string"&&e.startsWith(t),li=ai("--"),ro=ai("var(--"),on=t=>ro(t)?oo.test(t.split("/*")[0].trim()):!1,oo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ui=(t,e)=>e&&typeof t=="number"?e.transform(t):t,rt=(t,e,n)=>n>e?e:n<t?t:n,Rt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Kt={...Rt,transform:t=>rt(0,1,t)},Qt={...Rt,default:1},Ht=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),at=Ht("deg"),tt=Ht("%"),w=Ht("px"),ao=Ht("vh"),lo=Ht("vw"),In={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(t*100)},uo={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,backgroundPositionX:w,backgroundPositionY:w},co={rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:Qt,scaleX:Qt,scaleY:Qt,scaleZ:Qt,skew:at,skewX:at,skewY:at,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Kt,originX:In,originY:In,originZ:w},_n={...Rt,transform:Math.round},an={...uo,...co,zIndex:_n,size:w,fillOpacity:Kt,strokeOpacity:Kt,numOctaves:_n},ho={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fo=Ct.length;function po(t,e,n){let s="",i=!0;for(let o=0;o<fo;o++){const r=Ct[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=ui(a,an[r]);if(!l){i=!1;const c=ho[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function ln(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(yt.has(l)){r=!0;continue}else if(li(l)){i[l]=u;continue}else{const c=ui(u,an[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=po(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const mo={offset:"stroke-dashoffset",array:"stroke-dasharray"},go={offset:"strokeDashoffset",array:"strokeDasharray"};function yo(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?mo:go;t[o.offset]=w.transform(-s);const r=w.transform(e),a=w.transform(n);t[o.array]=`${r} ${a}`}function Nn(t,e,n){return typeof t=="string"?t:w.transform(e+n*t)}function vo(t,e,n){const s=Nn(e,t.x,t.width),i=Nn(n,t.y,t.height);return`${s} ${i}`}function un(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(ln(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:p,dimensions:m}=t;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=vo(m,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),r!==void 0&&yo(f,r,a,l,!1)}const cn=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ci=()=>({...cn(),attrs:{}}),hn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function hi(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const fi=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 di(t,e,n,s){hi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(fi.has(i)?i:en(i),e.attrs[i])}const re={};function xo(t){Object.assign(re,t)}function pi(t,{layout:e,layoutId:n}){return yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!re[t]||t==="opacity")}function fn(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(z(i[r])||e.style&&z(e.style[r])||pi(r,t)||((s=n?.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return o}function mi(t,e,n){const s=fn(t,e,n);for(const i in t)if(z(t[i])||z(e[i])){const o=Ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function To(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Un=["x","y","width","height","cx","cy","r"],Po={useVisualState:oi({scrapeMotionValuesFromProps:mi,createRenderState:ci,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in i)if(yt.has(a)){o=!0;break}}if(!o)return;let r=!e;if(e)for(let a=0;a<Un.length;a++){const l=Un[a];t[l]!==e[l]&&(r=!0)}r&&k.read(()=>{To(n,s),k.render(()=>{un(s,i,hn(n.tagName),t.transformTemplate),di(n,s)})})}})},So={useVisualState:oi({scrapeMotionValuesFromProps:fn,createRenderState:cn})};function gi(t,e,n){for(const s in e)!z(e[s])&&!pi(s,n)&&(t[s]=e[s])}function bo({transformTemplate:t},e){return T.useMemo(()=>{const n=cn();return ln(n,e,t),Object.assign({},n.vars,n.style)},[e])}function wo(t,e){const n=t.style||{},s={};return gi(s,n,t),Object.assign(s,bo(t,e)),s}function Ao(t,e){const n={},s=wo(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}function Vo(t,e,n,s){const i=T.useMemo(()=>{const o=ci();return un(o,e,hn(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};gi(o,t.style,t),i.style={...o,...i.style}}return i}function Co(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(sn(n)?Vo:Ao)(s,o,r,n),u=Ur(s,typeof n=="string",t),c=n!==T.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=T.useMemo(()=>z(h)?h.get():h,[h]);return T.createElement(n,{...c,children:f})}}function Ro(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...sn(s)?Po:So,preloadedFeatures:t,useRender:Co(i),createVisualElement:e,Component:s};return Yr(r)}}function yi(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function me(t,e,n){const s=t.getProps();return rn(s,e,n!==void 0?n:s.custom,t)}const Do=Je(()=>window.ScrollTimeline!==void 0);class Mo{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if(Do()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Eo extends Mo{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function dn(t,e){return t?t[e]||t.default||t:void 0}const ke=2e4;function vi(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ke;)e+=n,s=t.next(e);return e>=ke?1/0:e}function pn(t){return typeof t=="function"}function $n(t,e){t.timeline=e,t.onfinish=null}const mn=t=>Array.isArray(t)&&typeof t[0]=="number",Lo={linearEasing:void 0};function ko(t,e){const n=Je(t);return()=>{var s;return(s=Lo[e])!==null&&s!==void 0?s:n()}}const oe=ko(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=t(wt(0,i-1,o))+", ";return`linear(${s.substring(0,s.length-2)})`};function Ti(t){return!!(typeof t=="function"&&oe()||!t||typeof t=="string"&&(t in Fe||oe())||mn(t)||Array.isArray(t)&&t.every(Ti))}const jt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Fe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jt([0,.65,.55,1]),circOut:jt([.55,0,1,.45]),backIn:jt([.31,.01,.66,-.59]),backOut:jt([.33,1.53,.69,.99])};function Pi(t,e){if(t)return typeof t=="function"&&oe()?xi(t,e):mn(t)?jt(t):Array.isArray(t)?t.map(n=>Pi(n,e)||Fe.easeOut):Fe[t]}const Q={x:!1,y:!1};function Si(){return Q.x||Q.y}function Fo(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function bi(t,e){const n=Fo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Kn(t){return e=>{e.pointerType==="touch"||Si()||t(e)}}function jo(t,e,n={}){const[s,i,o]=bi(t,n),r=Kn(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=Kn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const wi=(t,e)=>e?t===e?!0:wi(t,e.parentElement):!1,gn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Oo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bo(t){return Oo.has(t.tagName)||t.tabIndex!==-1}const Ot=new WeakSet;function Wn(t){return e=>{e.key==="Enter"&&t(e)}}function Te(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Io=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Wn(()=>{if(Ot.has(n))return;Te(n,"down");const i=Wn(()=>{Te(n,"up")}),o=()=>Te(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Gn(t){return gn(t)&&!Si()}function _o(t,e,n={}){const[s,i,o]=bi(t,n),r=a=>{const l=a.currentTarget;if(!Gn(a)||Ot.has(l))return;Ot.add(l);const u=e(a),c=(p,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!Gn(p)||!Ot.has(l))&&(Ot.delete(l),typeof u=="function"&&u(p,{success:m}))},h=p=>{c(p,n.useGlobalTarget||wi(l,p.target))},f=p=>{c(p,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{!Bo(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),a.addEventListener("focus",u=>Io(u,i),i)}),o}function No(t){return t==="x"||t==="y"?Q[t]?null:(Q[t]=!0,()=>{Q[t]=!1}):Q.x||Q.y?null:(Q.x=Q.y=!0,()=>{Q.x=Q.y=!1})}const Ai=new Set(["width","height","top","left","right","bottom",...Ct]);let ne;function Uo(){ne=void 0}const et={now:()=>(ne===void 0&&et.set(K.isProcessing||jr.useManualTiming?K.timestamp:performance.now()),ne),set:t=>{ne=t,queueMicrotask(Uo)}};function yn(t,e){t.indexOf(e)===-1&&t.push(e)}function vn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class xn{constructor(){this.subscriptions=[]}add(e){return yn(this.subscriptions,e),()=>vn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Vi(t,e){return e?t*(1e3/e):0}const zn=30,$o=t=>!isNaN(parseFloat(t));class Ko{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=et.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=et.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$o(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new xn);const s=this.events[e].add(n);return e==="change"?()=>{s(),k.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zn);return Vi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 Wt(t,e){return new Ko(t,e)}function Wo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Wt(n))}function Go(t,e){const n=me(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=no(o[r]);Wo(t,r,a)}}function zo(t){return!!(z(t)&&t.add)}function je(t,e){const n=t.getValue("willChange");if(zo(n))return n.add(e)}function Ci(t){return t.props[si]}const Ri=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ho=1e-7,qo=12;function Xo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Ri(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Ho&&++a<qo);return r}function qt(t,e,n,s){if(t===e&&n===s)return q;const i=o=>Xo(o,0,1,t,n);return o=>o===0||o===1?o:Ri(i(o),e,s)}const Di=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Mi=t=>e=>1-t(1-e),Ei=qt(.33,1.53,.69,.99),Tn=Mi(Ei),Li=Di(Tn),ki=t=>(t*=2)<1?.5*Tn(t):.5*(2-Math.pow(2,-10*(t-1))),Pn=t=>1-Math.sin(Math.acos(t)),Fi=Mi(Pn),ji=Di(Pn),Oi=t=>/^0[^.\s]+$/u.test(t);function Yo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Oi(t):!0}const It=t=>Math.round(t*1e5)/1e5,Sn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Zo(t){return t==null}const Jo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bn=(t,e)=>n=>!!(typeof n=="string"&&Jo.test(n)&&n.startsWith(t)||e&&!Zo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Bi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Sn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Qo=t=>rt(0,255,t),Pe={...Rt,transform:t=>Math.round(Qo(t))},mt={test:bn("rgb","red"),parse:Bi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Pe.transform(t)+", "+Pe.transform(e)+", "+Pe.transform(n)+", "+It(Kt.transform(s))+")"};function ta(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Oe={test:bn("#"),parse:ta,transform:mt.transform},Tt={test:bn("hsl","hue"),parse:Bi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+tt.transform(It(e))+", "+tt.transform(It(n))+", "+It(Kt.transform(s))+")"},G={test:t=>mt.test(t)||Oe.test(t)||Tt.test(t),parse:t=>mt.test(t)?mt.parse(t):Tt.test(t)?Tt.parse(t):Oe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?mt.transform(t):Tt.transform(t)},ea=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function na(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Sn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ea))===null||n===void 0?void 0:n.length)||0)>0}const Ii="number",_i="color",sa="var",ia="var(",Hn="${}",ra=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(ra,l=>(G.test(l)?(s.color.push(o),i.push(_i),n.push(G.parse(l))):l.startsWith(ia)?(s.var.push(o),i.push(sa),n.push(l)):(s.number.push(o),i.push(Ii),n.push(parseFloat(l))),++o,Hn)).split(Hn);return{values:n,split:a,indexes:s,types:i}}function Ni(t){return Gt(t).values}function Ui(t){const{split:e,types:n}=Gt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Ii?o+=It(i[r]):a===_i?o+=G.transform(i[r]):o+=i[r]}return o}}const oa=t=>typeof t=="number"?0:t;function aa(t){const e=Ni(t);return Ui(t)(e.map(oa))}const ut={test:na,parse:Ni,createTransformer:Ui,getAnimatableNone:aa},la=new Set(["brightness","contrast","saturate","opacity"]);function ua(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Sn)||[];if(!s)return t;const i=n.replace(s,"");let o=la.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const ca=/\b([a-z-]*)\(.*?\)/gu,Be={...ut,getAnimatableNone:t=>{const e=t.match(ca);return e?e.map(ua).join(" "):t}},ha={...an,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Be,WebkitFilter:Be},wn=t=>ha[t];function $i(t,e){let n=wn(t);return n!==Be&&(n=ut),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const fa=new Set(["auto","none","0"]);function da(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!fa.has(o)&&Gt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=$i(n,i)}const qn=t=>t===Rt||t===w,Xn=(t,e)=>parseFloat(t.split(", ")[e]),Yn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Xn(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?Xn(o[1],t):0}},pa=new Set(["x","y","z"]),ma=Ct.filter(t=>!pa.has(t));function ga(t){const e=[];return ma.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Vt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Yn(4,13),y:Yn(5,14)};Vt.translateX=Vt.x;Vt.translateY=Vt.y;const gt=new Set;let Ie=!1,_e=!1;function Ki(){if(_e){const t=Array.from(gt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ga(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}_e=!1,Ie=!1,gt.forEach(t=>t.complete()),gt.clear()}function Wi(){gt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_e=!0)})}function ya(){Wi(),Ki()}class An{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(gt.add(this),Ie||(Ie=!0,k.read(Wi),k.resolveKeyframes(Ki))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=i?.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),gt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,gt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Gi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),va=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xa(t){const e=va.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function zi(t,e,n=1){const[s,i]=xa(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Gi(r)?parseFloat(r):r}return on(i)?zi(i,e,n+1):i}const Hi=t=>e=>e.test(t),Ta={test:t=>t==="auto",parse:t=>t},qi=[Rt,w,tt,at,lo,ao,Ta],Zn=t=>qi.find(Hi(t));class Xi extends An{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),on(u))){const c=zi(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ai.has(s)||e.length!==2)return;const[i,o]=e,r=Zn(i),a=Zn(o);if(r!==a)if(qn(r)&&qn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Yo(e[i])&&s.push(i);s.length&&da(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Vt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=Vt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
vendor: 10,653 bytes, line 9
9h(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Jn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ut.test(t)||t==="0")&&!t.startsWith("url("));function Pa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Sa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Jn(i,e),a=Jn(o,e);return!r||!a?!1:Pa(t)||(n==="spring"||pn(n))&&s}const ba=t=>t!==null;function ge(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(ba),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const wa=40;class Yi{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=et.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>wa?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ya(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=et.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Sa(e,s,i,o))if(r)this.options.duration=0;else{l&&l(ge(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const j=(t,e,n)=>t+(e-t)*n;function Se(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Aa({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Se(l,a,t+1/3),o=Se(l,a,t),r=Se(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function ae(t,e){return n=>n>0?e:t}const be=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Va=[Oe,mt,Tt],Ca=t=>Va.find(e=>e.test(t));function Qn(t){const e=Ca(t);if(!e)return!1;let n=e.parse(t);return e===Tt&&(n=Aa(n)),n}const ts=(t,e)=>{const n=Qn(t),s=Qn(e);if(!n||!s)return ae(t,e);const i={...n};return o=>(i.red=be(n.red,s.red,o),i.green=be(n.green,s.green,o),i.blue=be(n.blue,s.blue,o),i.alpha=j(n.alpha,s.alpha,o),mt.transform(i))},Ra=(t,e)=>n=>e(t(n)),Xt=(...t)=>t.reduce(Ra),Ne=new Set(["none","hidden"]);function Da(t,e){return Ne.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ma(t,e){return n=>j(t,e,n)}function Vn(t){return typeof t=="number"?Ma:typeof t=="string"?on(t)?ae:G.test(t)?ts:ka:Array.isArray(t)?Zi:typeof t=="object"?G.test(t)?ts:Ea:ae}function Zi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Vn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Ea(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Vn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function La(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][i[r]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[o]=l,i[r]++}return s}const ka=(t,e)=>{const n=ut.createTransformer(e),s=Gt(t),i=Gt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ne.has(t)&&!i.values.length||Ne.has(e)&&!s.values.length?Da(t,e):Xt(Zi(La(s,i),i.values),n):ae(t,e)};function Ji(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?j(t,e,n):Vn(t)(t,e)}const Fa=5;function Qi(t,e,n){const s=Math.max(e-Fa,0);return Vi(n-t(s),e-s)}const O={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},we=.001;function ja({duration:t=O.duration,bounce:e=O.bounce,velocity:n=O.velocity,mass:s=O.mass}){let i,o,r=1-e;r=rt(O.minDamping,O.maxDamping,r),t=rt(O.minDuration,O.maxDuration,it(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,p=Ue(u,r),m=Math.exp(-h);return we-f/p*m},o=u=>{const h=u*r*t,f=h*n+n,p=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),g=Ue(Math.pow(u,2),r);return(-i(u)+we>0?-1:1)*((f-p)*m)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-we+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Ba(i,o,a);if(t=st(t),isNaN(l))return{stiffness:O.stiffness,damping:O.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Oa=12;function Ba(t,e,n){let s=n;for(let i=1;i<Oa;i++)s=s-t(s)/e(s);return s}function Ue(t,e){return t*Math.sqrt(1-e*e)}const Ia=["duration","bounce"],_a=["stiffness","damping","mass"];function es(t,e){return e.some(n=>t[n]!==void 0)}function Na(t){let e={velocity:O.velocity,stiffness:O.stiffness,damping:O.damping,mass:O.mass,isResolvedFromDuration:!1,...t};if(!es(t,_a)&&es(t,Ia))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*rt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:O.mass,stiffness:i,damping:o}}else{const n=ja(t);e={...e,...n,mass:O.mass},e.isResolvedFromDuration=!0}return e}function tr(t=O.visualDuration,e=O.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:p}=Na({...n,velocity:-it(n.velocity||0)}),m=f||0,g=u/(2*Math.sqrt(l*c)),y=r-o,v=it(Math.sqrt(l/c)),P=Math.abs(y)<5;s||(s=P?O.restSpeed.granular:O.restSpeed.default),i||(i=P?O.restDelta.granular:O.restDelta.default);let b;if(g<1){const S=Ue(v,g);b=C=>{const F=Math.exp(-g*v*C);return r-F*((m+g*v*y)/S*Math.sin(S*C)+y*Math.cos(S*C))}}else if(g===1)b=S=>r-Math.exp(-v*S)*(y+(m+v*y)*S);else{const S=v*Math.sqrt(g*g-1);b=C=>{const F=Math.exp(-g*v*C),A=Math.min(S*C,300);return r-F*((m+g*v*y)*Math.sinh(A)+S*y*Math.cosh(A))/S}}const V={calculatedDuration:p&&h||null,next:S=>{const C=b(S);if(p)a.done=S>=h;else{let F=0;g<1&&(F=S===0?st(m):Qi(b,S,C));const A=Math.abs(F)<=s,$=Math.abs(r-C)<=i;a.done=A&&$}return a.value=a.done?r:C,a},toString:()=>{const S=Math.min(vi(V),ke),C=xi(F=>V.next(S*F).value,S,30);return S+"ms "+C}};return V}function ns({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let g=n*e;const y=h+g,v=r===void 0?y:r(y);v!==y&&(g=v-h);const P=A=>-g*Math.exp(-A/s),b=A=>v+P(A),V=A=>{const $=P(A),W=b(A);f.done=Math.abs($)<=u,f.value=f.done?v:W};let S,C;const F=A=>{p(f.value)&&(S=A,C=tr({keyframes:[f.value,m(f.value)],velocity:Qi(b,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return F(0),{calculatedDuration:null,next:A=>{let $=!1;return!C&&S===void 0&&($=!0,V(A),F(A)),S!==void 0&&A>=S?C.next(A-S):(!$&&V(A),f)}}}const Ua=qt(.42,0,1,1),$a=qt(0,0,.58,1),er=qt(.42,0,.58,1),Ka=t=>Array.isArray(t)&&typeof t[0]!="number",Wa={linear:q,easeIn:Ua,easeInOut:er,easeOut:$a,circIn:Pn,circInOut:ji,circOut:Fi,backIn:Tn,backInOut:Li,backOut:Ei,anticipate:ki},ss=t=>{if(mn(t)){Js(t.length===4);const[e,n,s,i]=t;return qt(e,n,s,i)}else if(typeof t=="string")return Wa[t];return t};function Ga(t,e,n){const s=[],i=n||Ji,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||q:e;a=Xt(l,a)}s.push(a)}return s}function za(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Js(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ga(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=wt(t[h],t[h+1],c);return a[h](f)};return n?c=>u(rt(t[0],t[o-1],c)):u}function Ha(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=wt(0,e,s);t.push(j(n,1,i))}}function qa(t){const e=[0];return Ha(e,t.length-1),e}function Xa(t,e){return t.map(n=>n*e)}function Ya(t,e){return t.map(()=>e||er).splice(0,t.length-1)}function le({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ka(s)?s.map(ss):ss(s),o={done:!1,value:e[0]},r=Xa(n&&n.length===e.length?n:qa(e),t),a=za(r,e,{ease:Array.isArray(i)?i:Ya(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Za=t=>{const e=({timestamp:n})=>t(n);return{start:()=>k.update(e,!0),stop:()=>lt(e),now:()=>K.isProcessing?K.timestamp:et.now()}},Ja={decay:ns,inertia:ns,tween:le,keyframes:le,spring:tr},Qa=t=>t/100;class Cn extends Yi{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,r=i?.KeyframeResolver||An,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new r(o,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=pn(n)?n:Ja[n]||le;let l,u;a!==le&&typeof e[0]!="number"&&(l=Xt(Qa,Ji(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=vi(c));const{calculatedDuration:h}=c,f=h+i,p=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;
vendor: 55,402 bytes, line 9
9if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),P=this.speed>=0?v<0:v>c;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let b=this.currentTime,V=o;if(p){const A=Math.min(this.currentTime,c)/h;let $=Math.floor(A),W=A%1;!W&&A>=1&&(W=1),W===1&&$--,$=Math.min($,p+1),$%2&&(m==="reverse"?(W=1-W,g&&(W-=g/h)):m==="mirror"&&(V=r)),b=rt(0,1,W)*h}const S=P?{done:!1,value:l[0]}:V.next(b);a&&(S.value=a(S.value));let{done:C}=S;!P&&u!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return F&&i!==void 0&&(S.value=ge(l,this.options,i)),y&&y(S.value),F&&this.finish(),S}get duration(){const{resolved:e}=this;return e?it(e.calculatedDuration):0}get time(){return it(this.currentTime)}set time(e){e=st(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=it(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Za,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const tl=new Set(["opacity","clipPath","filter","transform"]);function el(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Pi(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const nl=Je(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ue=10,sl=2e4;function il(t){return pn(t.type)||t.type==="spring"||!Ti(t.ease)}function rl(t,e){const n=new Cn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&o<sl;)s=n.sample(o),i.push(s.value),o+=ue;return{times:void 0,keyframes:i,duration:o-ue,ease:"linear"}}const nr={anticipate:ki,backInOut:Li,circInOut:ji};function ol(t){return t in nr}class is extends Yi{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:o}=this.options;this.resolver=new Xi(o,(r,a)=>this.onKeyframesResolved(r,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&oe()&&ol(o)&&(o=nr[o]),il(this.options)){const{onComplete:h,onUpdate:f,motionValue:p,element:m,...g}=this.options,y=rl(e,g);e=y.keyframes,e.length===1&&(e[1]=e[0]),s=y.duration,i=y.times,o=y.ease,r="keyframes"}const c=el(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?($n(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(ge(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:i,type:r,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return it(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return it(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=st(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return q;const{animation:s}=n;$n(s,e)}return q}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...p}=this.options,m=new Cn({...p,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),g=st(this.time);u.setWithVelocity(m.sample(g-ue).value,m.sample(g).value,ue)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return nl()&&s&&tl.has(s)&&!l&&!u&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const al={type:"spring",stiffness:500,damping:25,restSpeed:10},ll=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ul={type:"keyframes",duration:.8},cl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hl=(t,{keyframes:e})=>e.length>2?ul:yt.has(t)?t.startsWith("scale")?ll(e[1]):al:cl;function fl({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Rn=(t,e,n,s={},i,o)=>r=>{const a=dn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-st(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};fl(a)||(c={...c,...hl(t,c)}),c.duration&&(c.duration=st(c.duration)),c.repeatDelay&&(c.repeatDelay=st(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=ge(c.keyframes,a);if(f!==void 0)return k.update(()=>{c.onUpdate(f),c.onComplete()}),new Eo([])}return!o&&is.supports(c)?new is(c):new Cn(c)};function dl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function sr(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),p=l[h];if(p===void 0||c&&dl(c,h))continue;const m={delay:n,...dn(r||{},h)};let g=!1;if(window.MotionHandoffAnimation){const v=Ci(t);if(v){const P=window.MotionHandoffAnimation(v,h,k);P!==null&&(m.startTime=P,g=!0)}}je(t,h),f.start(Rn(h,f,p,t.shouldReduceMotion&&Ai.has(h)?{type:!1}:m,t,g));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{k.update(()=>{a&&Go(t,a)})}),u}function $e(t,e,n={}){var s;const i=me(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(sr(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return pl(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[r,a]:[a,r];return u().then(()=>c())}else return Promise.all([r(),a(n.delay)])}function pl(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(ml).forEach((u,c)=>{u.notify("AnimationStart",e),r.push($e(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function ml(t,e){return t.sortNodePosition(e)}function gl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>$e(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=$e(t,e,n);else{const i=typeof e=="function"?me(t,e,n.custom):e;s=Promise.all(sr(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const yl=tn.length;function ir(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ir(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<yl;n++){const s=tn[n],i=t.props[s];($t(i)||i===!1)&&(e[s]=i)}return e}const vl=[...Qe].reverse(),xl=Qe.length;function Tl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>gl(t,n,s)))}function Pl(t){let e=Tl(t),n=rs(),s=!0;const i=l=>(u,c)=>{var h;const f=me(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:p,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=ir(t.parent)||{},h=[],f=new Set;let p={},m=1/0;for(let y=0;y<xl;y++){const v=vl[y],P=n[v],b=u[v]!==void 0?u[v]:c[v],V=$t(b),S=v===l?P.isActive:null;S===!1&&(m=y);let C=b===c[v]&&b!==u[v]&&V;if(C&&s&&t.manuallyAnimateOnMount&&(C=!1),P.protectedKeys={...p},!P.isActive&&S===null||!b&&!P.prevProp||de(b)||typeof b=="boolean")continue;const F=Sl(P.prevProp,b);let A=F||v===l&&P.isActive&&!C&&V||y>m&&V,$=!1;const W=Array.isArray(b)?b:[b];let ot=W.reduce(i(v),{});S===!1&&(ot={});const{prevResolvedValues:Dt={}}=P,Mt={...Dt,...ot},ht=D=>{A=!0,f.has(D)&&($=!0,f.delete(D)),P.needsAnimating[D]=!0;const H=t.getValue(D);H&&(H.liveStyle=!1)};for(const D in Mt){const H=ot[D],Lt=Dt[D];if(p.hasOwnProperty(D))continue;let vt=!1;Le(H)&&Le(Lt)?vt=!yi(H,Lt):vt=H!==Lt,vt?H!=null?ht(D):f.add(D):H!==void 0&&f.has(D)?ht(D):P.protectedKeys[D]=!0}P.prevProp=b,P.prevResolvedValues=ot,P.isActive&&(p={...p,...ot}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(C&&F)||$)&&h.push(...W.map(D=>({animation:D,options:{type:v}})))}if(f.size){const y={};f.forEach(v=>{const P=t.getBaseTarget(v),b=t.getValue(v);b&&(b.liveStyle=!0),y[v]=P??null}),h.push({animation:y})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=rs(),s=!0}}}function Sl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!yi(e,t):!1}function ft(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rs(){return{animate:ft(!0),whileInView:ft(),whileHover:ft(),whileTap:ft(),whileDrag:ft(),whileFocus:ft(),exit:ft()}}class ct{constructor(e){this.isMounted=!1,this.node=e}update(){}}class bl extends ct{constructor(e){super(e),e.animationState||(e.animationState=Pl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();de(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let wl=0;class Al extends ct{constructor(){super(...arguments),this.id=wl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Vl={animation:{Feature:bl},exit:{Feature:Al}};function zt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Yt(t){return{point:{x:t.pageX,y:t.pageY}}}const Cl=t=>e=>gn(e)&&t(e,Yt(e));function _t(t,e,n,s){return zt(t,e,Cl(n),s)}const os=(t,e)=>Math.abs(t-e);function Rl(t,e){const n=os(t.x,e.x),s=os(t.y,e.y);return Math.sqrt(n**2+s**2)}class rr{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ve(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=Rl(h.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=h,{timestamp:g}=K;this.history.push({...m,timestamp:g});const{onStart:y,onMove:v}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ae(f,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ve(h.type==="pointercancel"?this.lastMoveEventInfo:Ae(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,y),m&&m(h,y)},!gn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=Yt(e),a=Ae(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=K;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,Ve(a,this.history)),this.removeListeners=Xt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),lt(this.updatePoint)}}function Ae(t,e){return e?{point:e(t.point)}:t}function as(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ve({point:t},e){return{point:t,delta:as(t,or(e)),offset:as(t,Dl(e)),velocity:Ml(e,.1)}}function Dl(t){return t[0]}function or(t){return t[t.length-1]}function Ml(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=or(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>st(e)));)n--;if(!s)return{x:0,y:0};const o=it(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const ar=1e-4,El=1-ar,Ll=1+ar,lr=.01,kl=0-lr,Fl=0+lr;function X(t){return t.max-t.min}function jl(t,e,n){return Math.abs(t-e)<=n}function ls(t,e,n,s=.5){t.origin=s,t.originPoint=j(e.min,e.max,t.origin),t.scale=X(n)/X(e),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(t.scale>=El&&t.scale<=Ll||isNaN(t.scale))&&(t.scale=1),(t.translate>=kl&&t.translate<=Fl||isNaN(t.translate))&&(t.translate=0)}function Nt(t,e,n,s){ls(t.x,e.x,n.x,s?s.originX:void 0),ls(t.y,e.y,n.y,s?s.originY:void 0)}function us(t,e,n){t.min=n.min+e.min,t.max=t.min+X(e)}function Ol(t,e,n){us(t.x,e.x,n.x),us(t.y,e.y,n.y)}function cs(t,e,n){t.min=e.min-n.min,t.max=t.min+X(e)}function Ut(t,e,n){cs(t.x,e.x,n.x),cs(t.y,e.y,n.y)}function Bl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?j(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?j(n,t,s.max):Math.min(t,n)),t}function hs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Il(t,{top:e,left:n,bottom:s,right:i}){return{x:hs(t.x,n,i),y:hs(t.y,e,s)}}function fs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function _l(t,e){return{x:fs(t.x,e.x),y:fs(t.y,e.y)}}function Nl(t,e){let n=.5;const s=X(t),i=X(e);return i>s?n=wt(e.min,e.max-s,t.min):s>i&&(n=wt(t.min,t.max-i,e.min)),rt(0,1,n)}function Ul(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ke=.35;function $l(t=Ke){return t===!1?t=0:t===!0&&(t=Ke),{x:ds(t,"left","right"),y:ds(t,"top","bottom")}}function ds(t,e,n){return{min:ps(t,e),max:ps(t,n)}}function ps(t,e){return typeof t=="number"?t:t[e]||0}const ms=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pt=()=>({x:ms(),y:ms()}),gs=()=>({min:0,max:0}),I=()=>({x:gs(),y:gs()});function Z(t){return[t("x"),t("y")]}function ur({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Kl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Wl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ce(t){return t===void 0||t===1}function We({scale:t,scaleX:e,scaleY:n}){return!Ce(t)||!Ce(e)||!Ce(n)}function dt(t){return We(t)||cr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function cr(t){return ys(t.x)||ys(t.y)}function ys(t){return t&&t!=="0%"}function ce(t,e,n){const s=t-n,i=e*s;return n+i}function vs(t,e,n,s,i){return i!==void 0&&(t=ce(t,i,s)),ce(t,n,s)+e}function Ge(t,e=0,n=1,s,i){t.min=vs(t.min,e,n,s,i),t.max=vs(t.max,e,n,s,i)}function hr(t,{x:e,y:n}){Ge(t.x,e.translate,e.scale,e.originPoint),Ge(t.y,n.translate,n.scale,n.originPoint)}const xs=.999999999999,Ts=1.0000000000001;function Gl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,hr(t,r)),s&&dt(o.latestValues)&&bt(t,o.latestValues))}e.x<Ts&&e.x>xs&&(e.x=1),e.y<Ts&&e.y>xs&&(e.y=1)}function St(t,e){t.min=t.min+e,t.max=t.max+e}function Ps(t,e,n,s,i=.5){const o=j(t.min,t.max,i);Ge(t,e,n,o,s)}function bt(t,e){Ps(t.x,e.x,e.scaleX,e.scale,e.originX),Ps(t.y,e.y,e.scaleY,e.scale,e.originY)}function fr(t,e){return ur(Wl(t.getBoundingClientRect(),e))}function zl(t,e,n){const s=fr(t,n),{scroll:i}=e;return i&&(St(s.x,i.offset.x),St(s.y,i.offset.y)),s}const dr=({current:t})=>t?t.ownerDocument.defaultView:null,Hl=new WeakMap;class ql{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=I(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Yt(c).point)},o=(c,h)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=No(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(y=>{let v=this.getAxisMotionValue(y).get()||0;if(tt.test(v)){const{projection:P}=this.visualElement;if(P&&P.layout){const b=P.layout.layoutBox[y];b&&(v=X(b)*(parseFloat(v)/100))}}this.originPoint[y]=v}),m&&k.postRender(()=>m(c,h)),je(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(p&&this.currentDirection===null){this.currentDirection=Xl(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&g(c,h)},a=(c,h)=>this.stop(c,h),l=()=>Z(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rr(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:dr(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&k.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!te(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Bl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Il(i.layoutBox,n):this.constraints=!1,this.elastic=$l(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Z(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Ul(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=zl(s,i.root,this.visualElement.getTransformPagePoint());let r=_l(i.layout.layoutBox,o);if(n){const a=n(Kl(r));this.hasMutatedConstraints=!!a,a&&(r=ur(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Z(c=>{if(!te(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return je(this.visualElement,e),s.start(Rn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Z(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Z(n=>{const{drag:s}=this.getProps();if(!te(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-j(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!xt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Z(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Nl({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Z(r=>{if(!te(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(j(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Hl.set(this.visualElement,this);const e=this.visualElement.current,n=_t(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();xt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),k.read(s);const r=zt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Z(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ke,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function te(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Xl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Yl extends ct{constructor(e){super(e),this.removeGroupControls=q,this.removeListeners=q,this.controls=new ql(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ss=t=>(e,n)=>{t&&k.postRender(()=>t(e,n))};class Zl extends ct{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(e){this.session=new rr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ss(e),onStart:Ss(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&k.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const se={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ft={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=bs(t,e.target.x),s=bs(t,e.target.y);return`${n}% ${s}%`}},Jl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=ut.parse(t);if(i.length>5)return s;const o=ut.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=j(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class Ql extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;xo(tu),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),se.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||k.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pr(t){const[e,n]=Ys(),s=T.useContext(qe);return nt.jsx(Ql,{...t,layoutGroup:s,switchLayoutGroup:T.useContext(ii),isPresent:e,safeToRemove:n})}const tu={borderRadius:{...Ft,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomLeftRadius:Ft,borderBottomRightRadius:Ft,boxShadow:Jl};function eu(t,e,n){const s=z(t)?t:Wt(t);return s.start(Rn("",s,e,n)),s.animation}function nu(t){return t instanceof SVGElement&&t.tagName!=="svg"}const su=(t,e)=>t.depth-e.depth;class iu{constructor(){this.children=[],this.isDirty=!1}add(e){yn(this.children,e),this.isDirty=!0}remove(e){vn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(su),this.isDirty=!1,this.children.forEach(e)}}function ru(t,e){const n=et.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(lt(s),t(o-e))};return k.read(s,!0),()=>lt(s)}const mr=["TopLeft","TopRight","BottomLeft","BottomRight"],ou=mr.length,ws=t=>typeof t=="string"?parseFloat(t):t,As=t=>typeof t=="number"||w.test(t);function au(t,e,n,s,i,o){i?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,lu(s)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,uu(s))):o&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<ou;r++){const a=`border${mr[r]}Radius`;let l=Vs(e,a),u=Vs(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||As(l)===As(u)?(t[a]=Math.max(j(ws(l),ws(u),s),0),(tt.test(u)||tt.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,s))}function Vs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const lu=gr(0,.5,Fi),uu=gr(.5,.95,q);function gr(t,e,n){return s=>s<t?0:s>e?1:n(wt(t,e,s))}function Cs(t,e){t.min=e.min,t.max=e.max}function Y(t,e){Cs(t.x,e.x),Cs(t.y,e.y)}function Rs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ds(t,e,n,s,i){return t-=e,t=ce(t,1/n,s),i!==void 0&&(t=ce(t,1/i,s)),t}function cu(t,e=0,n=1,s=.5,i,o=t,r=t){if(tt.test(e)&&(e=parseFloat(e),e=j(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=j(o.min,o.max,s);t===o&&(a-=e),t.min=Ds(t.min,e,n,a,i),t.max=Ds(t.max,e,n,a,i)}function Ms(t,e,[n,s,i],o,r){cu(t,e[n],e[s],e[i],e.scale,o,r)}const hu=["x","scaleX","originX"],fu=["y","scaleY","originY"];function Es(t,e,n,s){Ms(t.x,e,hu,n?n.x:void 0,s?s.x:void 0),Ms(t.y,e,fu,n?n.y:void 0,s?s.y:void 0)}function Ls(t){return t.translate===0&&t.scale===1}function yr(t){return Ls(t.x)&&Ls(t.y)}function ks(t,e){return t.min===e.min&&t.max===e.max}function du(t,e){return ks(t.x,e.x)&&ks(t.y,e.y)}function Fs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function vr(t,e){return Fs(t.x,e.x)&&Fs(t.y,e.y)}function js(t){return X(t.x)/X(t.y)}function Os(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class pu{constructor(){this.members=[]}add(e){yn(this.members,e),e.scheduleRender()}remove(e){if(vn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function mu(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:p,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const pt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Bt=typeof window<"u"&&window.MotionDebug!==void 0,Re=["","X","Y","Z"],gu={visibility:"hidden"},Bs=1e3;let yu=0;function De(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function xr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ci(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&xr(s)}function Tr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=yu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bt&&(pt.totalNodes=pt.resolvedTargetDeltas=pt.recalculatedProjection=0),this.nodes.forEach(Tu),this.nodes.forEach(Au),this.nodes.forEach(Vu),this.nodes.forEach(Pu),Bt&&window.MotionDebug.record(pt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new iu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new xn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=nu(r),this.instance=r;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=ru(f,250),se.hasAnimatedSinceResize&&(se.hasAnimatedSinceResize=!1,this.nodes.forEach(_s))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||Eu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=c.getProps(),P=!this.targetLayout||!vr(this.targetLayout,m)||p,b=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,b);const V={...dn(g,"layout"),onPlay:y,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V)}else f||_s(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,lt(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(Cu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Is);return}this.isUpdating||this.nodes.forEach(bu),this.isUpdating=!1,this.nodes.forEach(wu),this.nodes.forEach(vu),this.nodes.forEach(xu),this.clearAllSnapshots();const a=et.now();K.delta=rt(0,1e3/60,a-K.timestamp),K.timestamp=a,K.isProcessing=!0,xe.update.process(K),xe.preRender.process(K),xe.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Su),this.sharedNodes.forEach(Ru)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=I(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!yr(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&(a||dt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Lu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return I();const l=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(ku))){const{scroll:c}=this.root;c&&(St(l.x,c.offset.x),St(l.y,c.offset.y))}return l}removeElementScroll(r){var a;const l=I();if(Y(l,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&Y(l,r),St(l.x,h.offset.x),St(l.y,h.offset.y))}return l}applyTransform(r,a=!1){const l=I();Y(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&bt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),dt(c.latestValues)&&bt(l,c.latestValues)}return dt(this.latestValues)&&bt(l,this.latestValues),l}removeTransform(r){const a=I();Y(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!dt(u.latestValues))continue;We(u.latestValues)&&u.updateSnapshot();const c=I(),h=u.measurePageBox();Y(c,h),Es(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return dt(this.latestValues)&&Es(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),Ut(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ol(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Y(this.target,this.layout.layoutBox),hr(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),Ut(this.relativeTargetOrigin,this.target,p.target),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Bt&&pt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||We(this.parent.latestValues)||cr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===K.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;Y(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;Gl(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=I());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Rs(this.prevProjectionDelta.x,this.projectionDelta.x),Rs(this.prevProjectionDelta.y,this.projectionDelta.y)),Nt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Os(this.projectionDelta.x,this.prevProjectionDelta.x)||!Os(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Bt&&pt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pt(),this.projectionDelta=Pt(),this.projectionDeltaWithTransform=Pt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=Pt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=I(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,y=this.getStack(),v=!y||y.members.length<=1,P=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Mu));this.animationProgress=0;let b;this.mixTargetDelta=V=>{const S=V/1e3;Ns(h.x,r.x,S),Ns(h.y,r.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ut(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Du(this.relativeTarget,this.relativeTargetOrigin,f,S),b&&du(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=I()),Y(b,this.relativeTarget)),g&&(this.animationValues=c,au(c,u,this.latestValues,S,P,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(lt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{se.hasAnimatedSinceResize=!0,this.currentAnimation=eu(0,Bs,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&Pr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||I();const h=X(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=X(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}Y(a,l),bt(a,c),Nt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new pu),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&De("z",r,u,this.animationValues);for(let c=0;c<Re.length;c++)De(`rotate${Re[c]}`,r,u,this.animationValues),De(`skew${Re[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return gu;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ee(r?.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=ee(r?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=mu(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:p,y:m}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in re){if(f[g]===void 0)continue;const{correct:y,applyTo:v}=re[g],P=u.transform==="none"?f[g]:y(f[g],h);if(v){const b=v.length;for(let V=0;V<b;V++)u[v[V]]=P}else u[g]=P}return this.options.layoutId&&(u.pointerEvents=h===this?ee(r?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Is),this.root.sharedNodes.clear()}}}function vu(t){t.updateLayout()}function xu(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?Z(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],p=X(f);f.min=s[h].min,f.max=f.min+p}):Pr(o,n.layoutBox,s)&&Z(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],p=X(s[h]);f.max=f.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+p)});const a=Pt();Nt(a,s,n.layoutBox);const l=Pt();r?Nt(l,t.applyTransform(i,!0),n.measuredBox):Nt(l,s,n.layoutBox);const u=!yr(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:p}=h;if(f&&p){const m=I();Ut(m,n.layoutBox,f.layoutBox);const g=I();Ut(g,s,p.layoutBox),vr(m,g)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Tu(t){Bt&&pt.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 Pu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Su(t){t.clearSnapshot()}function Is(t){t.clearMeasurements()}function bu(t){t.isLayoutDirty=!1}function wu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function _s(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Au(t){t.resolveTargetDelta()}function Vu(t){t.calcProjection()}
vendor: 6,583 bytes, line 9
9function Cu(t){t.resetSkewAndRotation()}function Ru(t){t.removeLeadSnapshot()}function Ns(t,e,n){t.translate=j(e.translate,0,n),t.scale=j(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Us(t,e,n,s){t.min=j(e.min,n.min,s),t.max=j(e.max,n.max,s)}function Du(t,e,n,s){Us(t.x,e.x,n.x,s),Us(t.y,e.y,n.y,s)}function Mu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Eu={duration:.45,ease:[.4,0,.1,1]},$s=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ks=$s("applewebkit/")&&!$s("chrome/")?Math.round:q;function Ws(t){t.min=Ks(t.min),t.max=Ks(t.max)}function Lu(t){Ws(t.x),Ws(t.y)}function Pr(t,e,n){return t==="position"||t==="preserve-aspect"&&!jl(js(e),js(n),.2)}function ku(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Fu=Tr({attachResizeListener:(t,e)=>zt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Me={current:void 0},Sr=Tr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Me.current){const t=new Fu({});t.mount(window),t.setOptions({layoutScroll:!0}),Me.current=t}return Me.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ju={pan:{Feature:Zl},drag:{Feature:Yl,ProjectionNode:Sr,MeasureLayout:pr}};function Gs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&k.postRender(()=>o(e,Yt(e)))}class Ou extends ct{mount(){const{current:e}=this.node;e&&(this.unmount=jo(e,n=>(Gs(this.node,n,"Start"),s=>Gs(this.node,s,"End"))))}unmount(){}}class Bu extends ct{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Xt(zt(this.node.current,"focus",()=>this.onFocus()),zt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zs(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&k.postRender(()=>o(e,Yt(e)))}class Iu extends ct{mount(){const{current:e}=this.node;e&&(this.unmount=_o(e,n=>(zs(this.node,n,"Start"),(s,{success:i})=>zs(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ze=new WeakMap,Ee=new WeakMap,_u=t=>{const e=ze.get(t.target);e&&e(t)},Nu=t=>{t.forEach(_u)};function Uu({root:t,...e}){const n=t||document;Ee.has(n)||Ee.set(n,{});const s=Ee.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Nu,{root:t,...e})),s[i]}function $u(t,e,n){const s=Uu(e);return ze.set(t,n),s.observe(t),()=>{ze.delete(t),s.unobserve(t)}}const Ku={some:0,all:1};class Wu extends ct{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ku[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return $u(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Gu(e,n))&&this.startObserver()}unmount(){}}function Gu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const zu={inView:{Feature:Wu},tap:{Feature:Iu},focus:{Feature:Bu},hover:{Feature:Ou}},Hu={layout:{ProjectionNode:Sr,MeasureLayout:pr}},He={current:null},br={current:!1};function qu(){if(br.current=!0,!!Ze)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>He.current=t.matches;t.addListener(e),e()}else He.current=!1}const Xu=[...qi,G,ut],Yu=t=>Xu.find(Hi(t)),Hs=new WeakMap;function Zu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(z(i))t.addValue(s,i);else if(z(o))t.addValue(s,Wt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Wt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const qs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ju{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=An,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=et.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,k.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=r;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=pe(n),this.isVariantNode=ni(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const m=f[p];l[p]!==void 0&&z(m)&&m.set(l[p],!1)}}mount(e){this.current=e,Hs.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 6,110 bytes, line 9
9h((n,s)=>this.bindToMotionValue(s,n)),br.current||qu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:He.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Hs.delete(this.current),this.projection&&this.projection.unmount(),lt(this.notifyUpdate),lt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=yt.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&k.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in At){const n=At[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<qs.length;s++){const i=qs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Zu(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Wt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Gi(i)||Oi(i))?i=parseFloat(i):!Yu(i)&&ut.test(n)&&(i=$i(e,n)),this.setBaseTarget(e,z(i)?i.get():i)),z(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=rn(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!z(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new xn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class wr extends Ju{constructor(){super(...arguments),this.KeyframeResolver=Xi}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;z(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Qu(t){return window.getComputedStyle(t)}class tc extends wr{constructor(){super(...arguments),this.type="html",this.renderInstance=hi}readValueFromInstance(e,n){if(yt.has(n)){const s=wn(n);return s&&s.default||0}else{const s=Qu(e),i=(li(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return fr(e,n)}build(e,n,s){ln(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return fn(e,n,s)}}class ec extends wr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(yt.has(n)){const s=wn(n);return s&&s.default||0}return n=fi.has(n)?n:en(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return mi(e,n,s)}build(e,n,s){un(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){di(e,n,s,i)}mount(e){this.isSVGTag=hn(e.tagName),super.mount(e)}}const nc=(t,e)=>sn(t)?new ec(e):new tc(e,{allowProjection:t!==T.Fragment}),sc=Ro({...Vl,...zu,...ju,...Hu},nc),lc=$r(sc);export{oc as A,Mr as R,Xs as a,rc as b,ic as c,Vr as g,nt as j,lc as m,T as r};

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.