PageSourceSearch

https://slideon.app/assets/vendor-motion-CnFAAAIE.js

js slideon.app collected 2026-10-09 22:54:45 UTC 146,394 bytes, 1 lines download raw bytes

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

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.