PageSourceSearch

https://foxleague.ai/assets/motion-vendor-CK-a2t6Y.js

js foxleague.ai collected 2026-10-05 13:48:51 UTC 134,966 bytes, 9 lines download raw bytes

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