PageSourceSearch

https://organdonorincentives.org/assets/RevealHeading-Be3B-CPB.js

js organdonorincentives.org collected 2026-10-08 04:58:54 UTC 112,111 bytes, 1 lines download raw bytes

1import{C as e,E as t,T as n,w as r,x as i,y as a}from"./Seo-DfUIRUg6.js";var o=t(i(),1),s=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),c=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),l={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},u=(0,o.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:s,...u},d)=>(0,o.createElement)(`svg`,{ref:d,...l,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:c(`lucide`,i),...u},[...s.map(([e,t])=>(0,o.createElement)(e,t)),...Array.isArray(a)?a:[a]])),d=(e,t)=>{let n=(0,o.forwardRef)(({className:n,...r},i)=>(0,o.createElement)(u,{ref:i,iconNode:t,className:c(`lucide-${s(e)}`,n),...r}));return n.displayName=`${e}`,n},f=a(),p=(0,o.createContext)({});function m(e){let t=(0,o.useRef)(null);return t.current===null&&(t.current=e()),t.current}var h=(0,o.createContext)(null),g=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function _(e=!0){let t=(0,o.useContext)(h);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,o.useId)();(0,o.useEffect)(()=>{e&&i(a)},[e]);let s=(0,o.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}var v=typeof window<`u`,y=v?o.useLayoutEffect:o.useEffect,b=e=>e,x=b,S=b;function C(e){let t;return()=>(t===void 0&&(t=e()),t)}var w=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},T=e=>e*1e3,E=e=>e/1e3,ee={skipAnimations:!1,useManualTiming:!1};function te(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var ne=[`read`,`resolveKeyframes`,`update`,`preRender`,`render`,`postRender`],re=40;function ie(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=ne.reduce((e,t)=>(e[t]=te(a),e),{}),{read:s,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,p=()=>{let a=ee.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,re),1),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:ne.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||m(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<ne.length;t++)o[ne[t]].cancel(e)},state:i,steps:o}}var{schedule:D,cancel:O,state:k,steps:ae}=ie(typeof requestAnimationFrame<`u`?requestAnimationFrame:b,!0),oe=(0,o.createContext)({strict:!1}),se={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`]},ce={};for(let e in se)ce[e]={isEnabled:t=>se[e].some(e=>!!t[e])};function le(e){for(let t in e)ce[t]={...ce[t],...e[t]}}var ue=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function de(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ue.has(e)}var fe=r({default:()=>pe}),pe,me=e((()=>{throw pe={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),he=e=>!de(e);function ge(e){e&&(he=t=>t.startsWith(`on`)?!de(t):e(t))}try{ge((me(),n(fe)).default)}catch{}function _e(e,t,n){let r={};for(let i in e)(i!==`values`||typeof e.values!=`object`)&&(he(i)||n===!0&&de(i)||!t&&!de(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}function ve(e){if(typeof Proxy>`u`)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>r===`create`?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}var ye=(0,o.createContext)({});function be(e){return typeof e==`string`||Array.isArray(e)}function xe(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}var Se=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ce=[`initial`,...Se];function we(e){return xe(e.animate)||Ce.some(t=>be(e[t]))}function Te(e){return!!(we(e)||e.variants)}function Ee(e,t){if(we(e)){let{initial:t,animate:n}=e;return{initial:t===!1||be(t)?t:void 0,animate:be(n)?n:void 0}}return e.inherit===!1?{}:t}function De(e){let{initial:t,animate:n}=Ee(e,(0,o.useContext)(ye));return(0,o.useMemo)(()=>({initial:t,animate:n}),[Oe(t),Oe(n)])}function Oe(e){return Array.isArray(e)?e.join(` `):e}var ke=Symbol.for(`motionComponentSymbol`);function Ae(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function je(e,t,n){return(0,o.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Ae(n)&&(n.current=r))},[t])}var Me=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),Ne=`data-`+Me(`framerAppearId`),{schedule:Pe,cancel:Fe}=ie(queueMicrotask,!1),Ie=(0,o.createContext)({});function Le(e,t,n,r,i){let{visualElement:a}=(0,o.useContext)(ye),s=(0,o.useContext)(oe),c=(0,o.useContext)(h),l=(0,o.useContext)(g).reducedMotion,u=(0,o.useRef)(null);r||=s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l}));let d=u.current,f=(0,o.useContext)(Ie);d&&!d.projection&&i&&(d.type===`html`||d.type===`svg`)&&Re(u.current,n,i,f);let p=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{d&&p.current&&d.update(n,c)});let m=n[Ne],_=(0,o.useRef)(!!m&&!window.MotionHandoffIsComplete?.call(window,m)&&window.MotionHasOptimisedAnimation?.call(window,m));return y(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Pe.render(d.render),_.current&&d.animationState&&d.animationState.animateChanges())}),(0,o.useEffect)(()=>{d&&(!_.current&&d.animationState&&d.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{var e;(e=window.MotionHandoffMarkAsComplete)==null||e.call(window,m)}),!1))}),d}function Re(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:ze(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Ae(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function ze(e){if(e)return e.options.allowProjection===!1?ze(e.parent):e.projection}function Be({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&le(e);function a(a,s){let c,l={...(0,o.useContext)(g),...a,layoutId:Ve(a)},{isStatic:u}=l,d=De(a),p=r(a,u);if(!u&&v){He(l,e);let n=Ue(l);c=n.MeasureLayout,d.visualElement=Le(i,p,l,t,n.ProjectionNode)}return(0,f.jsxs)(ye.Provider,{value:d,children:[c&&d.visualElement?(0,f.jsx)(c,{visualElement:d.visualElement,...l}):null,n(i,a,je(p,d.visualElement,s),p,u,d.visualElement)]})}a.displayName=`motion.${typeof i==`string`?i:`create(${i.displayName??i.name??``})`}`;let s=(0,o.forwardRef)(a);return s[ke]=i,s}function Ve({layoutId:e}){let t=(0,o.useContext)(p).id;return t&&e!==void 0?t+`-`+e:e}function He(e,t){(0,o.useContext)(oe).strict}function Ue(e){let{drag:t,layout:n}=ce;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1var We=[`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 Ge(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(We.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ke(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function qe(e,t,n,r){if(typeof t==`function`){let[i,a]=Ke(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ke(r);t=t(n===void 0?e.custom:n,i,a)}return t}var Je=e=>Array.isArray(e),Ye=e=>!!(e&&typeof e==`object`&&e.mix&&e.toValue),Xe=e=>Je(e)?e[e.length-1]||0:e,A=e=>!!(e&&e.getVelocity);function Ze(e){let t=A(e)?e.get():e;return Ye(t)?t.toValue():t}function Qe({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){let o={latestValues:et(r,i,a,e),renderState:t()};return n&&(o.onMount=e=>n({props:r,current:e,...o}),o.onUpdate=e=>n(e)),o}var $e=e=>(t,n)=>{let r=(0,o.useContext)(ye),i=(0,o.useContext)(h),a=()=>Qe(e,t,r,i);return n?a():m(a)};function et(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Ze(a[e]);let{initial:o,animate:s}=e,c=we(e),l=Te(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!xe(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=qe(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var tt=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],j=new Set(tt),nt=e=>t=>typeof t==`string`&&t.startsWith(e),rt=nt(`--`),it=nt(`var(--`),at=e=>it(e)?ot.test(e.split(`/*`)[0].trim()):!1,ot=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,st=(e,t)=>t&&typeof e==`number`?t.transform(e):e,M=(e,t,n)=>n>t?t:n<e?e:n,N={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ct={...N,transform:e=>M(0,1,e)},lt={...N,default:1},ut=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),P=ut(`deg`),F=ut(`%`),I=ut(`px`),dt=ut(`vh`),ft=ut(`vw`),pt={...F,parse:e=>F.parse(e)/100,transform:e=>F.transform(e*100)},mt={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,backgroundPositionX:I,backgroundPositionY:I},ht={rotate:P,rotateX:P,rotateY:P,rotateZ:P,scale:lt,scaleX:lt,scaleY:lt,scaleZ:lt,skew:P,skewX:P,skewY:P,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:ct,originX:pt,originY:pt,originZ:I},gt={...N,transform:Math.round},_t={...mt,...ht,zIndex:gt,size:I,fillOpacity:ct,strokeOpacity:ct,numOctaves:gt},vt={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},yt=tt.length;function bt(e,t,n){let r=``,i=!0;for(let a=0;a<yt;a++){let o=tt[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===+!!o.startsWith(`scale`):parseFloat(s)===0,!c||n){let e=st(s,_t[o]);if(!c){i=!1;let t=vt[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function xt(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(j.has(e)){o=!0;continue}if(rt(e)){i[e]=n;continue}{let t=st(n,_t[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=bt(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var St={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ct={offset:`strokeDashoffset`,array:`strokeDasharray`};function wt(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?St:Ct;e[a.offset]=I.transform(-r);let o=I.transform(t),s=I.transform(n);e[a.array]=`${o} ${s}`}function Tt(e,t,n){return typeof e==`string`?e:I.transform(t+n*e)}function Et(e,t,n){return`${Tt(t,e.x,e.width)} ${Tt(n,e.y,e.height)}`}function Dt(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:c=0,...l}
1,u,d){if(xt(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||a!==void 0||p.transform)&&(p.transformOrigin=Et(m,i===void 0?.5:i,a===void 0?.5:a)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&wt(f,o,s,c,!1)}var Ot=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),kt=()=>({...Ot(),attrs:{}}),At=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function jt(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(let t in n)e.style.setProperty(t,n[t])}var Mt=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Nt(e,t,n,r){jt(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Mt.has(n)?n:Me(n),t.attrs[n])}var Pt={};function Ft(e){Object.assign(Pt,e)}function It(e,{layout:t,layoutId:n}){return j.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Pt[e]||e===`opacity`)}function Lt(e,t,n){let{style:r}=e,i={};for(let a in r)(A(r[a])||t.style&&A(t.style[a])||It(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function Rt(e,t,n){let r=Lt(e,t,n);for(let n in e)if(A(e[n])||A(t[n])){let t=tt.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function zt(e,t){try{t.dimensions=typeof e.getBBox==`function`?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var Bt=[`x`,`y`,`width`,`height`,`cx`,`cy`,`r`],Vt={useVisualState:$e({scrapeMotionValuesFromProps:Rt,createRenderState:kt,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(let e in i)if(j.has(e)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let n=0;n<Bt.length;n++){let r=Bt[n];e[r]!==t[r]&&(o=!0)}o&&D.read(()=>{zt(n,r),D.render(()=>{Dt(r,i,At(n.tagName),e.transformTemplate),Nt(n,r)})})}})},Ht={useVisualState:$e({scrapeMotionValuesFromProps:Lt,createRenderState:Ot})};function Ut(e,t,n){for(let r in t)!A(t[r])&&!It(r,n)&&(e[r]=t[r])}function Wt({transformTemplate:e},t){return(0,o.useMemo)(()=>{let n=Ot();return xt(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Gt(e,t){let n=e.style||{},r={};return Ut(r,n,e),Object.assign(r,Wt(e,t)),r}function Kt(e,t){let n={},r=Gt(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function qt(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=kt();return Dt(n,t,At(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Ut(t,e.style,e),i.style={...t,...i.style}}return i}function Jt(e=!1){return(t,n,r,{latestValues:i},a)=>{let s=(Ge(t)?qt:Kt)(n,i,a,t),c=_e(n,typeof t==`string`,e),l=t===o.Fragment?{}:{...c,...s,ref:r},{children:u}=n,d=(0,o.useMemo)(()=>A(u)?u.get():u,[u]);return(0,o.createElement)(t,{...l,children:d})}}function Yt(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Be({...Ge(n)?Vt:Ht,preloadedFeatures:e,useRender:Jt(r),createVisualElement:t,Component:n})}}function Xt(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Zt(e,t,n){let r=e.getProps();return qe(r,t,n===void 0?r.custom:n,e)}var Qt=C(()=>window.ScrollTimeline!==void 0),$t=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>`finished`in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>{if(Qt()&&n.attachTimeline)return n.attachTimeline(e);if(typeof t==`function`)return t(n)});return()=>
1{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get startTime(){return this.getAll(`startTime`)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll(`flatten`)}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}},en=class extends $t{then(e,t){return Promise.all(this.animations).then(e).catch(t)}};function tn(e,t){return e?e[t]||e.default||e:void 0}var nn=2e4;function rn(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function an(e){return typeof e==`function`}function on(e,t){e.timeline=t,e.onfinish=null}var sn=e=>Array.isArray(e)&&typeof e[0]==`number`,cn={linearEasing:void 0};function ln(e,t){let n=C(e);return()=>cn[t]??n()}var un=ln(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),dn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(w(0,i-1,t))+`, `;return`linear(${r.substring(0,r.length-2)})`};function fn(e){return!!(typeof e==`function`&&un()||!e||typeof e==`string`&&(e in mn||un())||sn(e)||Array.isArray(e)&&e.every(fn))}var pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:pn([0,.65,.55,1]),circOut:pn([.55,0,1,.45]),backIn:pn([.31,.01,.66,-.59]),backOut:pn([.33,1.53,.69,.99])};function hn(e,t){if(e)return typeof e==`function`&&un()?dn(e,t):sn(e)?pn(e):Array.isArray(e)?e.map(e=>hn(e,t)||mn.easeOut):mn[e]}var L={x:!1,y:!1};function gn(){return L.x||L.y}function _n(e,t,n){if(e instanceof Element)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function vn(e,t){let n=_n(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function yn(e){return t=>{t.pointerType===`touch`||gn()||e(t)}}function bn(e,t,n={}){let[r,i,a]=vn(e,n),o=yn(e=>{let{target:n}=e,r=t(e);if(typeof r!=`function`||!n)return;let a=yn(e=>{r(e),n.removeEventListener(`pointerleave`,a)});n.addEventListener(`pointerleave`,a,i)});return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}var xn=(e,t)=>t?e===t||xn(e,t.parentElement):!1,Sn=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Cn=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function wn(e){return Cn.has(e.tagName)||e.tabIndex!==-1}var Tn=new WeakSet;function En(e){return t=>{t.key===`Enter`&&e(t)}}function Dn(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var On=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=En(()=>{if(Tn.has(n))return;Dn(n,`down`);let e=En(()=>{Dn(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Dn(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function kn(e){return Sn(e)&&!gn()}function An(e,t,n={}){let[r,i,a]=vn(e,n),o=e=>{let r=e.currentTarget;if(!kn(e)||Tn.has(r))return;Tn.add(r);let a=t(e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),!(!kn(e)||!Tn.has(r))&&(Tn.delete(r),typeof a==`function`&&a(e,{success:t}))},s=e=>{o(e,n.useGlobalTarget||xn(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{!wn(e)&&e.getAttribute(`tabindex`)===null&&(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),e.addEventListener(`focus`,e=>On(e,i),i)}),a}function jn(e){return e===`x`||e===`y`?L[e]?null:(L[e]=!0,()=>{L[e]=!1}):L.x||L.y?null:(L.x=L.y=!0,()=>{L.x=L.y=!1})}var Mn=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...tt]),Nn;function Pn(){Nn=void 0}var R={now:()=>(Nn===void 0&&R.set(k.isProcessing||ee.useManualTiming?k.timestamp:performance.now()),Nn),set:e=>{Nn=e,queueMicrotask(Pn)}};function Fn(e,t){e.indexOf(t)===-1&&e.push(t)}function In(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ln=class{constructor(){this.subscriptions=[]}add(e){return Fn(this.subscriptions,e),()=>In(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function Rn(e,t){return t?1e3/t*e:0}var zn=30,Bn=e=>!isNaN(parseFloat(e)),Vn={current:void 0},Hn=class{constructor(e,t={}){this.version=`11.18.2`,this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=R.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}
1setCurrent(e){this.current=e,this.updatedAt=R.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Bn(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ln);let n=this.events[e].add(t);return e===`change`?()=>{n(),D.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Vn.current&&Vn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=R.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,zn);return Rn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function z(e,t){return new Hn(e,t)}function Un(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,z(n))}function Wn(e,t){let{transitionEnd:n={},transition:r={},...i}=Zt(e,t)||{};i={...i,...n};for(let t in i)Un(e,t,Xe(i[t]))}function Gn(e){return!!(A(e)&&e.add)}function Kn(e,t){let n=e.getValue(`willChange`);if(Gn(n))return n.add(t)}function qn(e){return e.props[Ne]}var Jn={current:!1},Yn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Xn=1e-7,Zn=12;function Qn(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Yn(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Xn&&++s<Zn);return o}function $n(e,t,n,r){if(e===t&&n===r)return b;let i=t=>Qn(t,0,1,e,n);return e=>e===0||e===1?e:Yn(i(e),t,r)}var er=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tr=e=>t=>1-e(1-t),nr=$n(.33,1.53,.69,.99),rr=tr(nr),ir=er(rr),ar=e=>(e*=2)<1?.5*rr(e):.5*(2-2**(-10*(e-1))),or=e=>1-Math.sin(Math.acos(e)),sr=tr(or),cr=er(or),lr=e=>/^0[^.\s]+$/u.test(e);function ur(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||lr(e)}var dr=e=>Math.round(e*1e5)/1e5,fr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pr(e){return e==null}var mr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hr=(e,t)=>n=>!!(typeof n==`string`&&mr.test(n)&&n.startsWith(e)||t&&!pr(n)&&Object.prototype.hasOwnProperty.call(n,t)),gr=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(fr);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},_r=e=>M(0,255,e),vr={...N,transform:e=>Math.round(_r(e))},B={test:hr(`rgb`,`red`),parse:gr(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+vr.transform(e)+`, `+vr.transform(t)+`, `+vr.transform(n)+`, `+dr(ct.transform(r))+`)`};function yr(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var br={test:hr(`#`),parse:yr,transform:B.transform},xr={test:hr(`hsl`,`hue`),parse:gr(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+F.transform(dr(t))+`, `+F.transform(dr(n))+`, `+dr(ct.transform(r))+`)`},V={test:e=>B.test(e)||br.test(e)||xr.test(e),parse:e=>B.test(e)?B.parse(e):xr.test(e)?xr.parse(e):br.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?B.transform(e):xr.transform(e)},Sr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cr(e){return isNaN(e)&&typeof e==`string`&&(e.match(fr)?.length||0)+(e.match(Sr)?.length||0)>0}var wr=`number`,Tr=`color`,Er=`var`,Dr=`var(`,Or="${}",kr=/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 Ar(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(kr,e=>(V.test(e)?(r.color.push(a),i.push(Tr),n.push(V.parse(e))):e.startsWith(Dr)?(r.var.push(a),i.push(Er),n.push(e)):(r.number.push(a),i.push(wr),n.push(parseFloat(e))),++a,Or)).split(Or),indexes:r,types:i}}function jr(e){return Ar(e).values}function Mr(e){let{split:t,types:n}=Ar(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];i+=t===wr?dr(e[a]):t===Tr?V.transform(e[a]):e[a]}return i}}var Nr=e=>typeof e==`number`?0:e;function Pr(e){let t=jr(e);return Mr(e)(t.map(Nr))}var H={test:Cr,parse:jr,createTransformer:Mr,getAnimatableNone:Pr},Fr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ir(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(fr)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Fr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Lr=/\b([a-z-]*)\(.*?\)/gu,Rr={...H,getAnimatableNone:e=>{let t=e.match(Lr);return t?t.map(Ir).join(` `):e}},zr={..._t,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:Rr,WebkitFilter:Rr},Br=e=>zr[e];function Vr(e,t){let n=Br(e);return n!==Rr&&(n=H),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 8,897 bytes, line 1
1var Hr=new Set([`auto`,`none`,`0`]);function Ur(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Hr.has(t)&&Ar(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Vr(n,i)}var Wr=e=>e===N||e===I,Gr=(e,t)=>parseFloat(e.split(`, `)[t]),Kr=(e,t)=>(n,{transform:r})=>{if(r===`none`||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Gr(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?Gr(t[1],e):0}},qr=new Set([`x`,`y`,`z`]),Jr=tt.filter(e=>!qr.has(e));function Yr(e){let t=[];return Jr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Xr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Kr(4,13),y:Kr(5,14)};Xr.translateX=Xr.x,Xr.translateY=Xr.y;var U=new Set,Zr=!1,Qr=!1;function $r(){if(Qr){let e=Array.from(U).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Yr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Qr=!1,Zr=!1,U.forEach(e=>e.complete()),U.clear()}function ei(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qr=!0)})}function ti(){ei(),$r()}var ni=class{constructor(e,t,n,r,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(U.add(this),Zr||(Zr=!0,D.read(ei),D.resolveKeyframes($r))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),U.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,U.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},ri=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ii=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ai(e){let t=ii.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var oi=4;function si(e,t,n=1){S(n<=oi,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=ai(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ri(e)?parseFloat(e):e}return at(i)?si(i,t,n+1):i}var ci=e=>t=>t.test(e),li=[N,I,F,P,ft,dt,{test:e=>e===`auto`,parse:e=>e}],ui=e=>li.find(ci(e)),di=class extends ni{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),at(r))){let i=si(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Mn.has(n)||e.length!==2)return;let[r,i]=e,a=ui(r),o=ui(i);if(a!==o)if(Wr(a)&&Wr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)ur(e[t])&&n.push(t);n.length&&Ur(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Xr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},fi=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(H.test(e)||e===`0`)&&!e.startsWith(`url(`));function pi(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mi(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=fi(i,t),s=fi(a,t);return x(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!s?!1:pi(e)||(n===`spring`||an(n))&&r}var hi=e=>e!==null;function gi(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(hi),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var _i=40,vi=class{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=R.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>_i?this.resolvedAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ti(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=R.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:a,onComplete:o,onUpdate:s,isGenerator:c}=this.options;if(!c&&!mi(e,n,r,i))if(Jn.current||!a){s&&s(gi(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let l=this.initPlayback(e,t);l!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...l},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type=`keyframes`,this.options.ease=`linear`}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}},W=(e,t,n)=>e+(t-e)*n;function yi(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bi({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=yi(s,r,e+1/3),a=yi(s,r,e),o=yi(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function xi(e,t){return n=>n>0?t:e}var Si=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ci=[br,B,xr],wi=e=>Ci.find(t=>t.test(e));function Ti(e){let t=wi(e);if(x(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===xr&&(n=bi(n)),n}var Ei=(e,t)=>{let n=Ti(e),r=Ti(t);if(!n||!r)return xi(e,t);let i={...n};return e=>(i.red=Si(n.red,r.red,e),i.green=Si(n.green,r.green,e),i.blue=Si(n.blue,r.blue,e),i.alpha=W(n.alpha,r.alpha,e),B.transform(i))},Di=(e,t)=>n=>t(e(n)),Oi=(...e)=>e.reduce(Di),ki=new Set([`none`,`hidden`]);function Ai(e,t){return ki.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ji(e,t){return n=>W(e,t,n)}function Mi(e){return typeof e==`number`?ji:typeof e==`string`?at(e)?xi:V.test(e)?Ei:Ii:Array.isArray(e)?Ni:typeof e==`object`?V.test(e)?Ei:Pi:xi}function Ni(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Mi(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Pi(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Mi(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Fi(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Ii=(e,t)=>{let n=H.createTransformer(t),r=Ar(e),i=Ar(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ki.has(e)&&!i.values.length||ki.has(t)&&!r.values.length?Ai(e,t):Oi(Ni(Fi(r,i),i.values),n):(x(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),xi(e,t))};function Li(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
1number`?W(e,t,n):Mi(e)(e,t)}var Ri=5;function zi(e,t,n){let r=Math.max(t-Ri,0);return Rn(n-e(r),t-r)}var G={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Bi=.001;function Vi({duration:e=G.duration,bounce:t=G.bounce,velocity:n=G.velocity,mass:r=G.mass}){let i,a;x(e<=T(G.maxDuration),`Spring duration must be 10 seconds or less`);let o=1-t;o=M(G.minDamping,G.maxDamping,o),e=M(G.minDuration,G.maxDuration,E(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Wi(t,o),c=Math.exp(-i);return Bi-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Wi(t**2,o);return(-i(t)+Bi>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Ui(i,a,s);if(e=T(e),isNaN(c))return{stiffness:G.stiffness,damping:G.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Hi=12;function Ui(e,t,n){let r=n;for(let n=1;n<Hi;n++)r-=e(r)/t(r);return r}function Wi(e,t){return e*Math.sqrt(1-t*t)}var Gi=[`duration`,`bounce`],Ki=[`stiffness`,`damping`,`mass`];function qi(e,t){return t.some(t=>e[t]!==void 0)}function Ji(e){let t={velocity:G.velocity,stiffness:G.stiffness,damping:G.damping,mass:G.mass,isResolvedFromDuration:!1,...e};if(!qi(e,Ki)&&qi(e,Gi))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:G.mass,stiffness:i,damping:a}}else{let n=Vi(e);t={...t,...n,mass:G.mass},t.isResolvedFromDuration=!0}return t}function Yi(e=G.visualDuration,t=G.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Ji({...n,velocity:-E(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=E(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?G.restSpeed.granular:G.restSpeed.default,i||=v?G.restDelta.granular:G.restDelta.default;let y;if(h<1){let e=Wi(_,h);y=t=>{let n=Math.exp(-h*_*t);return o-n*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=0;h<1&&(n=e===0?T(m):zi(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(rn(b),nn),t=dn(t=>b.next(e*t).value,e,30);return e+`ms `+t}};return b}function Xi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Yi({keyframes:[f.value,m(f.value)],velocity:zi(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}var Zi=$n(.42,0,1,1),Qi=$n(0,0,.58,1),$i=$n(.42,0,.58,1),ea=e=>Array.isArray(e)&&typeof e[0]!=`number`,ta={linear:b,easeIn:Zi,easeInOut:$i,easeOut:Qi,circIn:or,circInOut:cr,circOut:sr,backIn:rr,backInOut:ir,backOut:nr,anticipate:ar},na=e=>{if(sn(e)){S(e.length===4,`Cubic bezier arrays must contain four numerical values.`);let[t,n,r,i]=e;return $n(t,n,r,i)}return typeof e==`string`?(S(ta[e]!==void 0,`Invalid easing type '${e}'`),ta[e]):e};function ra(e,t,n){let r=[],i=n||Li,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Oi(Array.isArray(t)?t[n]||b:t,a)),r.push(a)}return r}function ia(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(S(a===t.length,`Both input and output ranges must be the same length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ra(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=w(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M(e[0],e[a-1],t)):l}function aa(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=w(0,t,r);e.push(W(n,1,i))}}function oa(e){let t=[0];return aa(t,e.length-1),t}function sa(e,t){return e.map(e=>e*t)}function ca(e,t){return e.map(()=>t||$i).splice(0,e.length-1)}function la({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ea(r)?r.map(na):na(r),a={done:!1,value:t[0]},o=ia(sa(n&&n.length===t.length?n:oa(t),e),t,{ease:Array.isArray(i)?i:ca(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ua=e=>{let t=({timestamp:t})=>e(t);return{start:()=>D.update(t,!0),stop:()=>O(t),now:()=>k.isProcessing?k.timestamp:R.now()}},da={decay:Xi,inertia:Xi,tween:la,keyframes:la,spring:Yi},fa=e=>e/100,pa=class extends vi{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState=`running`,this.startTime=null,this.state=`idle`,this.stop=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,a=r?.KeyframeResolver||ni,o=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new a(i,o,t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t=`keyframes`,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=this.options,o=an(t)?t:da[t]||la,s,c;o!==la&&typeof e[0]!=`number`&&(s=Oi(fa,Li(e[0],e[1])),e=[0,100]);let l=o({...this.options,keyframes:e});i===`mirror`&&(c=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=rn(l));let{calculatedDuration:u}=l,d=u+r,f=d*(n+1)-r;return{generator:l,mirroredGenerator:c,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:f}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState===`paused`||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:s,calculatedDuration:c,totalDuration:l,resolvedDuration:u}=n;if(this.startTime===null)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:m,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-l/this.speed,this.startTime)),this.currentTime=t?e:this.holdTime===null?Math.round(e-this.startTime)*this.speed:this.holdTime;let g=this.currentTime-d*(this.speed>=0?1:-1),_=this.speed>=0?g<0:g>l;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=l);let v=this.currentTime,y=i;if(f){let e=Math.min(this.currentTime,l)/u,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,f+1),t%2&&(p===`reverse`?(n=1-n,m&&(n-=m/u)):p===`mirror`&&(y=a)),v=M(0,1,n)*u}let b=_?{done:!1,value:s[0]}:y.next(v);o&&(b.value=o(b.value));let{done:x}=b;!_&&c!==null&&(x=this.speed>=0?this.currentTime>=l:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&r!==void 0&&(b.value=gi(s,this.options,r)),h&&h(b.value),S&&this.finish(),b}get duration(){let{resolved:e}=this;return e?E(e.calculatedDuration):0}get time(){return E(this.currentTime)}set time(e){e=T(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=E(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState=`running`;return}if(this.isStopped)return;let{driver:e=ua,onPlay:t,startTime:n}=this.options;this.driver||=e(e=>this.tick(e)),t&&t();let r=this.driver.now();this.holdTime===null?this.startTime?this.state===`finished`&&(this.startTime=r):this.startTime=n??this.calcStartTime():this.startTime=r-this.holdTime,this.state===`finished`&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state=`running`,this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState=`paused`;return}this.state=`paused`,this.holdTime=this.currentTime??0}complete(){this.state!==`running`&&this.play(),this.pendingPlayState=this.state=`finished`,this.holdTime=null}finish(){this.teardown(),this.state=`finished`;let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state=`idle`,this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};function ma(e){return new pa(e)}var ha=new Set([`opacity`,`clipPath`,`filter`,`transform`]);function ga(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:
vendor: 8,719 bytes, line 1
1o=`loop`,ease:s=`easeInOut`,times:c}={}){let l={[t]:n};c&&(l.offset=c);let u=hn(s,i);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?`linear`:u,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`})}var _a=C(()=>Object.hasOwnProperty.call(Element.prototype,`animate`)),va=10,ya=2e4;function ba(e){return an(e.type)||e.type===`spring`||!fn(e.ease)}function xa(e,t){let n=new pa({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],a=0;for(;!r.done&&a<ya;)r=n.sample(a),i.push(r.value),a+=va;return{times:void 0,keyframes:i,duration:a-va,ease:`linear`}}var Sa={anticipate:ar,backInOut:ir,circInOut:cr};function Ca(e){return e in Sa}var wa=class extends vi{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new di(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:i,type:a,motionValue:o,name:s,startTime:c}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i==`string`&&un()&&Ca(i)&&(i=Sa[i]),ba(this.options)){let{onComplete:t,onUpdate:o,motionValue:s,element:c,...l}=this.options,u=xa(e,l);e=u.keyframes,e.length===1&&(e[1]=e[0]),n=u.duration,r=u.times,i=u.ease,a=`keyframes`}let l=ga(o.owner.current,s,e,{...this.options,duration:n,times:r,ease:i});return l.startTime=c??this.calcStartTime(),this.pendingTimeline?(on(l,this.pendingTimeline),this.pendingTimeline=void 0):l.onfinish=()=>{let{onComplete:n}=this.options;o.set(gi(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:l,duration:n,times:r,type:a,ease:i,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return E(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return E(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=T(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return`idle`;let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return b;let{animation:n}=t;on(n,e)}return b}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState===`finished`&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:a,times:o}=e;if(t.playState===`idle`||t.playState===`finished`)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,element:c,...l}=this.options,u=new pa({...l,keyframes:n,duration:r,type:i,ease:a,times:o,isGenerator:!0}),d=T(this.time);e.setWithVelocity(u.sample(d-va).value,u.sample(d).value,va)}let{onStop:s}=this.options;s&&s(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return _a()&&n&&ha.has(n)&&!s&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}},Ta={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ea=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Da={type:`keyframes`,duration:.8},Oa={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ka=(e,{keyframes:t})=>t.length>2?Da:j.has(e)?e.startsWith(`scale`)?Ea(t[1]):Ta:Oa;function Aa({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var ja=(e,t,n,r={},i,a)=>o=>{let s=tn(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=T(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Aa(s)||(u={...u,...ka(e,u)}),u.duration&&(u.duration=T(u.duration)),u.repeatDelay&&(u.repeatDelay=T(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),(Jn.current||ee.skipAnimations)&&(d=!0,u.duration=0,u.delay=0),d&&!a&&t.get()!==void 0){let e=gi(u.keyframes,s);if(e!==void 0)return D.update(()=>{u.onUpdate(e),u.onComplete()}),new en([])}return!a&&wa.supports(u)?new wa(u):new pa(u)};function Ma({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Na(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&Ma(l,t))continue;let o={delay:n,...tn(a||{},t)},u=!1;if(window.MotionHandoffAnimation){let n=qn(e);if(n){let e=window.MotionHandoffAnimation(n,t,D);e!==null&&(o.startTime=e,u=!0)}}Kn(e,t),r.start(ja(t,r,i,e.shouldReduceMotion&&Mn.has(t)?{type:!1}:o,e,u));let d=r.animation;d&&c.push(d)}return o&&Promise.all(c).then(()=>{D.update(()=>{o&&Wn(e,o)})}),c}function Pa(e,t,n={}){let r=Zt(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Na(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Fa(e,t,a+r,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Fa(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,c=i===1?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Ia).forEach((e,r)=>{e.notify(`AnimationStart`,t),o.push(Pa(e,t,{...a,delay:n+c(r)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(o)}function Ia(e,t){return e.sortNodePosition(t)}function La(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Pa(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Pa(e,t,n);else{let i=typeof t==`function`?Zt(e,t,n.custom):t;r=Promise.all(Na(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Ra=Ce.length;function za(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&za(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Ra;n++){let r=Ce[n],i=e.props[r];(be(i)||i===!1)&&(t[r]=i)}return t}var Ba=[...Se].reverse(),Va=Se.length;function Ha(e){return t=>Promise.all(t.map(({animation:t,options:n})=>La(e,t,n)))}function Ua(e){let t=Ha(e),n=Ga(),r=!0,i=t=>(n,r)=>{let i=Zt(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=za(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<Va;t++){let f=Ba[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=be(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||xe(m)||typeof m==`boolean`)continue;let v=Wa(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Je(t)&&Je(n)?!Xt(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1),y&&(!(_&&v)||b)&&c.push(...x.map(e=>({animation:e,options:{type:f}})))}if(l.size){let t={};l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){var i;if(n[t].isActive===r)return Promise.resolve();
1(i=e.variantChildren)==null||i.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Ga(),r=!0}}}function Wa(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Xt(t,e):!1}function K(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ga(){return{animate:K(!0),whileInView:K(),whileHover:K(),whileTap:K(),whileDrag:K(),whileFocus:K(),exit:K()}}var q=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Ka=class extends q{constructor(e){super(e),e.animationState||=Ua(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();xe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}},qa=0,Ja={animation:{Feature:Ka},exit:{Feature:class extends q{constructor(){super(...arguments),this.id=qa++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Ya(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xa(e){return{point:{x:e.pageX,y:e.pageY}}}var Za=e=>t=>Sn(t)&&e(t,Xa(t));function Qa(e,t,n,r){return Ya(e,t,Za(n),r)}var $a=(e,t)=>Math.abs(e-t);function eo(e,t){let n=$a(e.x,t.x),r=$a(e.y,t.y);return Math.sqrt(n**2+r**2)}var to=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=io(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=eo(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=k;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=no(t,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=io(e.type===`pointercancel`?this.lastMoveEventInfo:no(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Sn(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let a=no(Xa(e),this.transformPagePoint),{point:o}=a,{timestamp:s}=k;this.history=[{...o,timestamp:s}];let{onSessionStart:c}=t;c&&c(e,io(a,this.history)),this.removeListeners=Oi(Qa(this.contextWindow,`pointermove`,this.handlePointerMove),Qa(this.contextWindow,`pointerup`,this.handlePointerUp),Qa(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),O(this.updatePoint)}};function no(e,t){return t?{point:t(e.point)}:e}function ro(e,t){return{x:e.x-t.x,y:e.y-t.y}}function io({point:e},t){return{point:e,delta:ro(e,oo(t)),offset:ro(e,ao(t)),velocity:so(t,.1)}}function ao(e){return e[0]}function oo(e){return e[e.length-1]}function so(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oo(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>T(t)));)n--;if(!r)return{x:0,y:0};let a=E(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var co=.9999,lo=1.0001,uo=-.01,fo=.01;function J(e){return e.max-e.min}
vendor: 11,387 bytes, line 1
1function po(e,t,n){return Math.abs(e-t)<=n}function mo(e,t,n,r=.5){e.origin=r,e.originPoint=W(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=W(n.min,n.max,e.origin)-e.originPoint,(e.scale>=co&&e.scale<=lo||isNaN(e.scale))&&(e.scale=1),(e.translate>=uo&&e.translate<=fo||isNaN(e.translate))&&(e.translate=0)}function ho(e,t,n,r){mo(e.x,t.x,n.x,r?r.originX:void 0),mo(e.y,t.y,n.y,r?r.originY:void 0)}function go(e,t,n){e.min=n.min+t.min,e.max=e.min+J(t)}function _o(e,t,n){go(e.x,t.x,n.x),go(e.y,t.y,n.y)}function vo(e,t,n){e.min=t.min-n.min,e.max=e.min+J(t)}function yo(e,t,n){vo(e.x,t.x,n.x),vo(e.y,t.y,n.y)}function bo(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W(n,e,r.max):Math.min(e,n)),e}function xo(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function So(e,{top:t,left:n,bottom:r,right:i}){return{x:xo(e.x,n,i),y:xo(e.y,t,r)}}function Co(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wo(e,t){return{x:Co(e.x,t.x),y:Co(e.y,t.y)}}function To(e,t){let n=.5,r=J(e),i=J(t);return i>r?n=w(t.min,t.max-r,e.min):r>i&&(n=w(e.min,e.max-i,t.min)),M(0,1,n)}function Eo(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Do=.35;function Oo(e=Do){return e===!1?e=0:e===!0&&(e=Do),{x:ko(e,`left`,`right`),y:ko(e,`top`,`bottom`)}}function ko(e,t,n){return{min:Ao(e,t),max:Ao(e,n)}}function Ao(e,t){return typeof e==`number`?e:e[t]||0}var jo=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mo=()=>({x:jo(),y:jo()}),No=()=>({min:0,max:0}),Y=()=>({x:No(),y:No()});function X(e){return[e(`x`),e(`y`)]}function Po({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Fo({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Io(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Lo(e){return e===void 0||e===1}function Ro({scale:e,scaleX:t,scaleY:n}){return!Lo(e)||!Lo(t)||!Lo(n)}function Z(e){return Ro(e)||zo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zo(e){return Bo(e.x)||Bo(e.y)}function Bo(e){return e&&e!==`0%`}function Vo(e,t,n){return n+t*(e-n)}function Ho(e,t,n,r,i){return i!==void 0&&(e=Vo(e,i,r)),Vo(e,n,r)+t}function Uo(e,t=0,n=1,r,i){e.min=Ho(e.min,t,n,r,i),e.max=Ho(e.max,t,n,r,i)}function Wo(e,{x:t,y:n}){Uo(e.x,t.translate,t.scale,t.originPoint),Uo(e.y,n.translate,n.scale,n.originPoint)}var Go=.999999999999,Ko=1.0000000000001;function qo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Xo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Wo(e,o)),r&&Z(a.latestValues)&&Xo(e,a.latestValues))}t.x<Ko&&t.x>Go&&(t.x=1),t.y<Ko&&t.y>Go&&(t.y=1)}function Jo(e,t){e.min+=t,e.max+=t}function Yo(e,t,n,r,i=.5){Uo(e,t,n,W(e.min,e.max,i),r)}function Xo(e,t){Yo(e.x,t.x,t.scaleX,t.scale,t.originX),Yo(e.y,t.y,t.scaleY,t.scale,t.originY)}function Zo(e,t){return Po(Io(e.getBoundingClientRect(),t))}function Qo(e,t,n){let r=Zo(e,n),{scroll:i}=t;return i&&(Jo(r.x,i.offset.x),Jo(r.y,i.offset.y)),r}var $o=({current:e})=>e?e.ownerDocument.defaultView:null,es=new WeakMap,ts=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Xa(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jn(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),X(e=>{let t=this.getAxisMotionValue(e).get()||0;if(F.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=J(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&D.postRender(()=>i(e,t)),Kn(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},a=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=rs(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},o=(e,t)=>this.stop(e,t),s=()=>X(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new to(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:$o(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&D.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ns(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=bo(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Ae(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?So(n.layoutBox,e):!1,this.elastic=Oo(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&X(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Eo(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ae(e))return!1;let n=e.current;S(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Qo(n,r.root,this.visualElement.getTransformPagePoint()),a=wo(r.layout.layoutBox,i);if(t){let e=t(Fo(a));this.hasMutatedConstraints=!!e,e&&(a=Po(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=X(o=>{if(!ns(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Kn(this.visualElement,e),n.start(ja(e,n,0,t,this.visualElement,!1))}stopAnimation(){X(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){X(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){X(t=>{let{drag:n}=this.getProps();if(!ns(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-W(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ae(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};X(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=To({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),X(t=>{if(!ns(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(W(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;es.set(this.visualElement,this);let e=this.visualElement.current,t=Qa(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Ae(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),D.read(n);let a=Ya(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(X(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Do,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ns(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rs(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var is=class extends q{constructor(e){super(e),this.removeGroupControls=b,this.removeListeners=b,this.controls=new ts(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||b}unmount(){this.removeGroupControls(),this.removeListeners()}},as=e=>(t,n)=>{e&&D.postRender(()=>e(t,n))},os=class extends q{constructor(){super(...arguments),this.removePointerDownListener=b}onPointerDown(e){this.session=new to(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$o(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:as(e),onStart:as(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&D.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Qa(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ls={correct:(e,t)=>
1{if(!t.target)return e;if(typeof e==`string`)if(I.test(e))e=parseFloat(e);else return e;return`${cs(e,t.target.x)}% ${cs(e,t.target.y)}%`}},us={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=H.parse(e);if(i.length>5)return r;let a=H.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=W(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ds=class extends o.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Ft(ps),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a?(a.isPresent=i,r||e.layoutDependency!==t||t===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||D.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Pe.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function fs(e){let[t,n]=_(),r=(0,o.useContext)(p);return(0,f.jsx)(ds,{...e,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(Ie),isPresent:t,safeToRemove:n})}var ps={borderRadius:{...ls,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomLeftRadius:ls,borderBottomRightRadius:ls,boxShadow:us};function ms(e,t,n){let r=A(e)?e:z(e);return r.start(ja(``,r,t,n)),r.animation}function hs(e){return e instanceof SVGElement&&e.tagName!==`svg`}var gs=(e,t)=>e.depth-t.depth,_s=class{constructor(){this.children=[],this.isDirty=!1}add(e){Fn(this.children,e),this.isDirty=!0}remove(e){In(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gs),this.isDirty=!1,this.children.forEach(e)}};function vs(e,t){let n=R.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(O(r),e(a-t))};return D.read(r,!0),()=>O(r)}var ys=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],bs=ys.length,xs=e=>typeof e==`string`?parseFloat(e):e,Ss=e=>typeof e==`number`||I.test(e);function Cs(e,t,n,r,i,a){i?(e.opacity=W(0,n.opacity===void 0?1:n.opacity,Ts(r)),e.opacityExit=W(t.opacity===void 0?1:t.opacity,0,Es(r))):a&&(e.opacity=W(t.opacity===void 0?1:t.opacity,n.opacity===void 0?1:n.opacity,r));for(let i=0;i<bs;i++){let a=`border${ys[i]}Radius`,o=ws(t,a),s=ws(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Ss(o)===Ss(s)?(e[a]=Math.max(W(xs(o),xs(s),r),0),(F.test(s)||F.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=W(t.rotate||0,n.rotate||0,r))}function ws(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ts=Ds(0,.5,sr),Es=Ds(.5,.95,b);function Ds(e,t,n){return r=>r<e?0:r>t?1:n(w(e,t,r))}function Os(e,t){e.min=t.min,e.max=t.max}function Q(e,t){Os(e.x,t.x),Os(e.y,t.y)}function ks(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function As(e,t,n,r,i){return e-=t,e=Vo(e,1/n,r),i!==void 0&&(e=Vo(e,1/i,r)),e}function js(e,t=0,n=1,r=.5,i,a=e,o=e){if(F.test(t)&&(t=parseFloat(t),t=W(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=W(a.min,a.max,r);e===a&&(s-=t),e.min=As(e.min,t,n,s,i),e.max=As(e.max,t,n,s,i)}function Ms(e,t,[n,r,i],a,o){js(e,t[n],t[r],t[i],t.scale,a,o)}var Ns=[`x`,`scaleX`,`originX`],Ps=[`y`,`scaleY`,`originY`];function Fs(e,t,n,r){Ms(e.x,t,Ns,n?n.x:void 0,r?r.x:void 0),Ms(e.y,t,Ps,n?n.y:void 0,r?r.y:void 0)}function Is(e){return e.translate===0&&e.scale===1}function Ls(e){return Is(e.x)&&Is(e.y)}function Rs(e,t){return e.min===t.min&&e.max===t.max}function zs(e,t){return Rs(e.x,t.x)&&Rs(e.y,t.y)}function Bs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vs(e,t){return Bs(e.x,t.x)&&Bs(e.y,t.y)}function Hs(e){return J(e.x)/J(e.y)}function Us(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Ws=class{constructor(){this.members=[]}add(e){Fn(this.members,e),e.scheduleRender()}remove(e){if(In(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}
vendor: 16,598 bytes, line 1
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function Gs(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var $={type:`projectionFrame`,totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ks=typeof window<`u`&&window.MotionDebug!==void 0,qs=[``,`X`,`Y`,`Z`],Js={visibility:`hidden`},Ys=1e3,Xs=0;function Zs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Qs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=qn(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,D,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Qs(r)}function $s({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Xs++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ks&&($.totalNodes=$.resolvedTargetDeltas=$.recalculatedProjection=0),this.nodes.forEach(nc),this.nodes.forEach(lc),this.nodes.forEach(uc),this.nodes.forEach(rc),Ks&&window.MotionDebug.record($)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 _s)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ln),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=hs(t),this.instance=t;let{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=vs(r,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEach(cc))})}r&&this.root.registerSharedNode(r,this),this.options.animate!==!1&&a&&(r||i)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||_c,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!Vs(this.targetLayout,r)||n,l=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);let t={...tn(i,`layout`),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||cc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,O(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(dc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ac);return}this.isUpdating||this.nodes.forEach(oc),this.isUpdating=!1,this.nodes.forEach(sc),this.nodes.forEach(ec),this.nodes.forEach(tc),this.clearAllSnapshots();let e=R.now();k.delta=M(0,1e3/60,e-k.timestamp),k.timestamp=e,k.isProcessing=!0,ae.update.process(k),ae.preRender.process(k),ae.render.process(k),k.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pe.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ic),this.sharedNodes.forEach(fc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ls(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||Z(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),xc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Cc))){let{scroll:e}=this.root;e&&(Jo(t.x,e.offset.x),Jo(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(Q(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Q(t,e),Jo(t.x,i.offset.x),Jo(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Y();Q(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Xo(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Z(r.latestValues)&&Xo(n,r.latestValues)}return Z(this.latestValues)&&Xo(n,this.latestValues),n}removeTransform(e){let t=Y();Q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!Z(n.latestValues))continue;Ro(n.latestValues)&&n.updateSnapshot();let r=Y();Q(r,n.measurePageBox()),Fs(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Z(this.latestValues)&&Fs(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.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!==k.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=k.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),yo(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_o(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Q(this.target,this.layout.layoutBox),Wo(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),yo(this.relativeTargetOrigin,this.target,e.target),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ks&&$.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ro(this.parent.latestValues)||zo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===k.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;qo(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ks(this.prevProjectionDelta.x,this.projectionDelta.x),ks(this.prevProjectionDelta.y,this.projectionDelta.y)),ho(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Us(this.projectionDelta.x,this.prevProjectionDelta.x)||!Us(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Ks&&$.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if((t=this.options.visualElement)==null||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Mo(),this.projectionDelta=Mo(),this.projectionDeltaWithTransform=Mo()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Mo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Y(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(gc));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;pc(a.x,e.x,n),pc(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yo(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hc(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&zs(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Y(),Q(d,this.relativeTarget)),s&&(this.animationValues=i,Cs(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&=(O(this.pendingAnimation),void 0),this.pendingAnimation=D.update(()=>{ss.hasAnimatedSinceResize=!0,this.currentAnimation=ms(0,Ys,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ys),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Sc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Y();let t=J(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=J(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Q(t,n),Xo(t,i),ho(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ws),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Zs(`z`,e,r,this.animationValues);for(let t=0;t<qs.length;t++)Zs(`rotate${qs[t]}`,e,r,this.animationValues),Zs(`skew${qs[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Js;let t={visibility:``},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity=``,t.pointerEvents=Ze(e?.pointerEvents)||``,t.transform=n?n(this.latestValues,``):`none`,t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,t.pointerEvents=Ze(e?.pointerEvents)||``),this.hasProjected&&!Z(this.latestValues)&&(t.transform=n?n({},``):`none`,this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=Gs(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:a,y:o}=this.projectionDelta;t.transformOrigin=`${a.origin*100}% ${o.origin*100}% 0`,t.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let e in Pt){if(i[e]===void 0)continue;let{correct:n,applyTo:a}=Pt[e],o=t.transform===`none`?i[e]:n(i[e],r);if(a){let e=a.length;for(let n=0;n<e;n++)t[a[n]]=o}else t[e]=o}return this.options.layoutId&&(t.pointerEvents=r===this?Ze(e?.pointerEvents)||``:`none`),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ac),this.root.sharedNodes.clear()}}}function ec(e){e.updateLayout()}function tc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?X(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=J(r);r.min=n[e].min,r.max=r.min+i}):Sc(i,t.layoutBox,n)&&X(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=J(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Mo();ho(o,n,t.layoutBox);let s=Mo();a?ho(s,e.applyTransform(r,!0),t.measuredBox):ho(s,n,t.layoutBox);let c=!Ls(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Y();yo(o,t.layoutBox,i.layoutBox);let s=Y();yo(s,n,a.layoutBox),Vs(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nc(e){Ks&&$.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function rc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ic(e){e.clearSnapshot()}function ac(e){e.clearMeasurements()}function oc(e){e.isLayoutDirty=!1}function sc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function cc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lc(e){e.resolveTargetDelta()}function uc(e){e.calcProjection()}
1function dc(e){e.resetSkewAndRotation()}function fc(e){e.removeLeadSnapshot()}function pc(e,t,n){e.translate=W(t.translate,0,n),e.scale=W(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mc(e,t,n,r){e.min=W(t.min,n.min,r),e.max=W(t.max,n.max,r)}function hc(e,t,n,r){mc(e.x,t.x,n.x,r),mc(e.y,t.y,n.y,r)}function gc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var _c={duration:.45,ease:[.4,0,.1,1]},vc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yc=vc(`applewebkit/`)&&!vc(`chrome/`)?Math.round:b;function bc(e){e.min=yc(e.min),e.max=yc(e.max)}function xc(e){bc(e.x),bc(e.y)}function Sc(e,t,n){return e===`position`||e===`preserve-aspect`&&!po(Hs(t),Hs(n),.2)}function Cc(e){return e!==e.root&&e.scroll?.wasRoot}var wc=$s({attachResizeListener:(e,t)=>Ya(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tc={current:void 0},Ec=$s({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tc.current){let e=new wc({});e.mount(window),e.setOptions({layoutScroll:!0}),Tc.current=e}return Tc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Dc={pan:{Feature:os},drag:{Feature:is,ProjectionNode:Ec,MeasureLayout:fs}};function Oc(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&D.postRender(()=>i(t,Xa(t)))}var kc=class extends q{mount(){let{current:e}=this.node;e&&(this.unmount=bn(e,e=>(Oc(this.node,e,`Start`),e=>Oc(this.node,e,`End`))))}unmount(){}},Ac=class extends q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Oi(Ya(this.node.current,`focus`,()=>this.onFocus()),Ya(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function jc(e,t,n){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&D.postRender(()=>i(t,Xa(t)))}var Mc=class extends q{mount(){let{current:e}=this.node;e&&(this.unmount=An(e,e=>(jc(this.node,e,`Start`),(e,{success:t})=>jc(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},Nc=new WeakMap,Pc=new WeakMap,Fc=e=>{let t=Nc.get(e.target);t&&t(e)},Ic=e=>{e.forEach(Fc)};function Lc({root:e,...t}){let n=e||document;Pc.has(n)||Pc.set(n,{});let r=Pc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ic,{root:e,...t})),r[i]}function Rc(e,t,n){let r=Lc(t);return Nc.set(e,n),r.observe(e),()=>{Nc.delete(e),r.unobserve(e)}}var zc={some:0,all:1},Bc=class extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:zc[r]};return Rc(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Vc(e,t))&&this.startObserver()}unmount(){}};function Vc({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Hc={inView:{Feature:Bc},tap:{Feature:Mc},focus:{Feature:Ac},hover:{Feature:kc}},Uc={layout:{ProjectionNode:Ec,MeasureLayout:fs}},Wc={current:null},Gc={current:!1};function Kc(){if(Gc.current=!0,v)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Wc.current=e.matches;e.addListener(t),t()}else Wc.current=!1}var qc=[...li,V,H],Jc=e=>qc.find(ci(e)),Yc=new WeakMap;function Xc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(A(i))e.addValue(r,i);else if(A(a))e.addValue(r,z(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,z(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Zc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Qc=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ni,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=R.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,D.render(this.render,!1,!0))};let{latestValues:s,renderState:c,onUpdate:l}=a;this.onUpdate=l,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=we(t),this.isVariantNode=Te(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];s[e]!==void 0&&A(t)&&t.set(s[e],!1)}}mount(e){this.current=e,Yc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,642 bytes, line 1
1h((e,t)=>this.bindToMotionValue(t,e)),Gc.current||Kc(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`||Wc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yc.delete(this.current),this.projection&&this.projection.unmount(),O(this.notifyUpdate),O(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=j.has(e),r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&D.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on(`renderRequest`,this.scheduleRender),a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),a&&a(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ce){let t=ce[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Zc.length;t++){let n=Zc[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Xc(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=z(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ri(n)||lr(n))?n=parseFloat(n):!Jc(n)&&H.test(t)&&(n=Vr(e,t)),this.setBaseTarget(e,A(n)?n.get():n)),A(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=qe(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!A(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ln),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},$c=class extends Qc{constructor(){super(...arguments),this.KeyframeResolver=di}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;A(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function el(e){return window.getComputedStyle(e)}var tl=class extends $c{constructor(){super(...arguments),this.type=`html`,this.renderInstance=jt}readValueFromInstance(e,t){if(j.has(t)){let e=Br(t);return e&&e.default||0}{let n=el(e),r=(rt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Zo(e,t)}build(e,t,n){xt(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Lt(e,t,n)}},nl=class extends $c{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(j.has(t)){let e=Br(t);return e&&e.default||0}return t=Mt.has(t)?t:Me(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Rt(e,t,n)}
1build(e,t,n){Dt(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Nt(e,t,n,r)}mount(e){this.isSVGTag=At(e.tagName),super.mount(e)}},rl=(e,t)=>Ge(e)?new nl(t):new tl(t,{allowProjection:e!==o.Fragment}),il=ve(Yt({...Ja,...Hc,...Dc,...Uc},rl));function al({children:e}){return(0,f.jsx)(f.Fragment,{children:e})}function ol({variant:e=`full`}){return(0,f.jsxs)(`div`,{className:`aura`,"aria-hidden":`true`,children:[(0,f.jsx)(`div`,{className:`aura-blob a`}),e===`full`&&(0,f.jsx)(`div`,{className:`aura-blob b`}),e===`full`&&(0,f.jsx)(`div`,{className:`aura-blob c`}),(0,f.jsx)(`div`,{className:`absolute inset-0 grain opacity-60`}),(0,f.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 h-32 bg-gradient-to-b from-transparent to-background`})]})}var sl={hidden:{},show:(e=.06)=>({transition:{staggerChildren:e,delayChildren:.1}})},cl={hidden:{y:`110%`,opacity:0},show:{y:`0%`,opacity:1,transition:{duration:.9,ease:[.22,1,.36,1]}}};function ll({as:e=`h1`,parts:t,className:n=``,stagger:r=.06,inView:i=!1}){let a=il[e]||il.h1,o=t.map(e=>typeof e==`string`?{text:e}:e),s=o.map(e=>e.text).join(` `).replace(/\s+/g,` `).trim();return(0,f.jsx)(a,{className:n,"aria-label":s,initial:`hidden`,variants:sl,custom:r,...i?{whileInView:`show`,viewport:{once:!0,amount:.2}}:{animate:`show`},children:o.map((e,t)=>e.text.split(` `).filter(Boolean).map((n,r)=>(0,f.jsxs)(`span`,{"aria-hidden":`true`,children:[(0,f.jsx)(`span`,{className:`inline-block overflow-hidden align-bottom pb-[0.1em] -mb-[0.1em]`,children:(0,f.jsx)(il.span,{variants:cl,className:`inline-block ${e.className||``}`,children:n})}),` `]},`${t}-${r}`)))})}export{nn as A,E as B,Vn as C,_n as D,In as E,ge as F,b as G,w as H,O as I,g as J,y as K,D as L,Qt as M,M as N,an as O,A as P,d as Q,k as R,W as S,Rn as T,S as U,T as V,x as W,m as X,h as Y,p as Z,oa as _,nl as a,ea as b,Yc as c,Wc as d,hs as f,ma as g,Na as h,il as i,en as j,rn as k,Kc as l,Y as m,ol as n,tl as o,ms as p,_ as q,al as r,Qc as s,ll as t,Gc as u,aa as v,z as w,Yi as x,ia as y,ee as z};

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.