framer-motion 7.2.0 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +762 -627
- package/dist/es/animation/use-animated-state.mjs +3 -5
- package/dist/es/animation/utils/default-transitions.mjs +1 -1
- package/dist/es/animation/utils/transitions.mjs +28 -26
- package/dist/es/components/AnimatePresence/PopChild.mjs +3 -2
- package/dist/es/components/AnimatePresence/PresenceChild.mjs +5 -2
- package/dist/es/components/AnimatePresence/use-presence.mjs +1 -1
- package/dist/es/components/LayoutGroup/index.mjs +4 -5
- package/dist/es/components/LazyMotion/index.mjs +3 -5
- package/dist/es/components/MotionConfig/index.mjs +2 -4
- package/dist/es/components/Reorder/Group.mjs +2 -4
- package/dist/es/components/Reorder/Item.mjs +6 -8
- package/dist/es/context/MotionContext/utils.mjs +3 -2
- package/dist/es/gestures/PanSession.mjs +2 -2
- package/dist/es/gestures/drag/VisualElementDragControls.mjs +16 -4
- package/dist/es/gestures/use-focus-gesture.mjs +3 -4
- package/dist/es/gestures/use-hover-gesture.mjs +4 -3
- package/dist/es/gestures/use-tap-gesture.mjs +9 -10
- package/dist/es/index.mjs +2 -1
- package/dist/es/motion/features/animations.mjs +8 -3
- package/dist/es/motion/features/definitions.mjs +1 -13
- package/dist/es/motion/features/layout/MeasureLayout.mjs +12 -6
- package/dist/es/motion/features/load-features.mjs +14 -0
- package/dist/es/motion/features/viewport/observers.mjs +4 -7
- package/dist/es/motion/features/viewport/use-viewport.mjs +8 -6
- package/dist/es/motion/index.mjs +23 -23
- package/dist/es/motion/utils/VisualElementHandler.mjs +2 -5
- package/dist/es/motion/utils/is-forced-motion-value.mjs +3 -3
- package/dist/es/motion/utils/use-motion-ref.mjs +1 -2
- package/dist/es/motion/utils/use-visual-element.mjs +14 -12
- package/dist/es/motion/utils/use-visual-state.mjs +19 -16
- package/dist/es/motion/utils/valid-prop.mjs +22 -17
- package/dist/es/projection/geometry/utils.mjs +10 -1
- package/dist/es/projection/node/HTMLProjectionNode.mjs +1 -1
- package/dist/es/projection/node/create-projection-node.mjs +62 -20
- package/dist/es/projection/use-instant-layout-transition.mjs +2 -2
- package/dist/es/render/dom/features-animation.mjs +5 -1
- package/dist/es/render/dom/features-max.mjs +6 -1
- package/dist/es/render/dom/motion.mjs +6 -1
- package/dist/es/render/dom/use-render.mjs +5 -1
- package/dist/es/render/dom/utils/camel-to-dash.mjs +1 -3
- package/dist/es/render/dom/utils/create-config.mjs +7 -2
- package/dist/es/render/dom/utils/css-variables-conversion.mjs +5 -7
- package/dist/es/render/dom/utils/unit-conversion.mjs +4 -4
- package/dist/es/render/dom/value-types/defaults.mjs +15 -3
- package/dist/es/render/dom/value-types/type-int.mjs +4 -1
- package/dist/es/render/html/config-motion.mjs +1 -1
- package/dist/es/render/html/use-props.mjs +5 -9
- package/dist/es/render/html/utils/build-styles.mjs +17 -15
- package/dist/es/render/html/utils/build-transform.mjs +8 -18
- package/dist/es/render/html/utils/transform.mjs +21 -30
- package/dist/es/render/html/visual-element.mjs +8 -9
- package/dist/es/render/index.mjs +118 -40
- package/dist/es/render/svg/use-props.mjs +5 -2
- package/dist/es/render/svg/utils/build-attrs.mjs +3 -5
- package/dist/es/render/svg/utils/create-render-state.mjs +4 -1
- package/dist/es/render/svg/visual-element.mjs +8 -4
- package/dist/es/render/utils/animation-state.mjs +12 -9
- package/dist/es/render/utils/animation.mjs +14 -8
- package/dist/es/render/utils/is-controlling-variants.mjs +22 -0
- package/dist/es/render/utils/is-variant-label.mjs +8 -0
- package/dist/es/render/utils/motion-values.mjs +3 -3
- package/dist/es/render/utils/resolve-dynamic-variants.mjs +24 -0
- package/dist/es/render/utils/resolve-variants.mjs +26 -0
- package/dist/es/render/utils/setters.mjs +12 -9
- package/dist/es/utils/reduced-motion/index.mjs +19 -0
- package/dist/es/utils/reduced-motion/state.mjs +5 -0
- package/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs +19 -0
- package/dist/es/utils/reduced-motion/use-reduced-motion.mjs +43 -0
- package/dist/es/utils/transform.mjs +4 -1
- package/dist/es/utils/use-in-view.mjs +1 -2
- package/dist/es/value/index.mjs +1 -1
- package/dist/es/value/use-scroll.mjs +6 -4
- package/dist/es/value/use-spring.mjs +7 -1
- package/dist/es/value/use-will-change/index.mjs +4 -4
- package/dist/es/value/utils/is-motion-value.mjs +1 -3
- package/dist/framer-motion.dev.js +806 -670
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +60 -54
- package/dist/projection.dev.js +402 -213
- package/dist/size-rollup-dom-animation-assets.js +1 -0
- package/dist/size-rollup-dom-animation-m.js +1 -0
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max-assets.js +1 -0
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-m.js +1 -1
- package/dist/size-rollup-motion.js +1 -0
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/dist/size-webpack-m.js +1 -1
- package/dist/three-entry.d.ts +41 -22
- package/package.json +12 -8
- package/dist/es/motion/features/use-features.mjs +0 -40
- package/dist/es/motion/features/use-projection.mjs +0 -33
- package/dist/es/render/utils/variants.mjs +0 -73
- package/dist/es/utils/use-reduced-motion.mjs +0 -73
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"react";import e,{createContext as n,useContext as o,useLayoutEffect as i,useEffect as r,useRef as s,useCallback as a,useMemo as l,forwardRef as u,createElement as c,useId as d}from"react";const h=n({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),p=n({});const m=n(null),f="undefined"!=typeof document,g=f?i:r,v=n({strict:!1});function y(t,e,n,i){const a=o(p).visualElement,l=o(v),u=o(m),c=o(h).reducedMotion,d=s(void 0);i=i||l.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:a,props:n,presenceId:u?u.id:void 0,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));const f=d.current;return g(()=>{f&&f.syncRender()}),r(()=>{f&&f.animationState&&f.animationState.animateChanges()}),g(()=>()=>f&&f.notifyUnmount(),[]),f}function x(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function b(t){return"string"==typeof t||Array.isArray(t)}function w(t){return"object"==typeof t&&"function"==typeof t.start}const P=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function S(t){return w(t.animate)||P.some(e=>b(t[e]))}function A(t){return Boolean(S(t)||t.variants)}function T(t){const{initial:e,animate:n}=function(t,e){if(S(t)){const{initial:e,animate:n}=t;return{initial:!1===e||b(e)?e:void 0,animate:b(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,o(p));return l(()=>({initial:e,animate:n}),[E(e),E(n)])}function E(t){return Array.isArray(t)?t.join(" "):t}const V=t=>({isEnabled:e=>t.some(t=>!!e[t])}),C={measureLayout:V(["layout","layoutId","drag"]),animation:V(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:V(["exit"]),drag:V(["drag","dragControls"]),focus:V(["whileFocus"]),hover:V(["whileHover","onHoverStart","onHoverEnd"]),tap:V(["whileTap","onTap","onTapStart","onTapCancel"]),pan:V(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:V(["whileInView","onViewportEnter","onViewportLeave"])};function M(t){const e=s(null);return null===e.current&&(e.current=t()),e.current}const R={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let L=1;const D=n({});class k extends e.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const O=n({});function j({preloadedFeatures:e,createVisualElement:n,projectionNodeConstructor:i,useRender:r,useVisualState:s,Component:l}){return e&&function(t){for(const e in t)"projectionNodeConstructor"===e?C.projectionNodeConstructor=t[e]:C[e].Component=t[e]}(e),u((function(u,c){const d={...o(h),...u,layoutId:F(u)},{isStatic:m}=d;let g=null;const b=T(u),w=m?void 0:M(()=>{if(R.hasEverUpdated)return L++}),P=s(u,m);if(!m&&f){b.visualElement=y(l,P,d,n);const t=o(v).strict,r=o(O);b.visualElement&&(g=b.visualElement.loadFeatures(u,t,e,w,i||C.projectionNodeConstructor,r))}return t.createElement(k,{visualElement:b.visualElement,props:d},g,t.createElement(p.Provider,{value:b},r(l,u,w,function(t,e,n){return a(o=>{o&&t.mount&&t.mount(o),e&&(o?e.mount(o):e.unmount()),n&&("function"==typeof n?n(o):x(n)&&(n.current=o))},[e])}(P,b.visualElement,c),P,m,b.visualElement)))}))}function F({layoutId:t}){const e=o(D).id;return e&&void 0!==t?e+"-"+t:t}function I(t){function e(e,n={}){return j(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const U=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function B(t){return"string"==typeof t&&!t.includes("-")&&!!(U.indexOf(t)>-1||/[A-Z]/.test(t))}const N={};const $=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],z=new Set($);function H(t,{layout:e,layoutId:n}){return z.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!N[t]||"opacity"===t)}const W=t=>void 0!==t&&!!t.getVelocity,Y={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},X=(t,e)=>$.indexOf(t)-$.indexOf(e);function G(t){return t.startsWith("--")}const q=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Z=(t,e)=>n=>Math.max(Math.min(n,e),t),K=t=>t%1?Number(t.toFixed(5)):t,_=/(-)?([\d]*\.?[\d])+/g,J=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Q=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tt(t){return"string"==typeof t}const et={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},nt=Object.assign(Object.assign({},et),{transform:Z(0,1)}),ot=Object.assign(Object.assign({},et),{default:1}),it=t=>({test:e=>tt(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),rt=it("deg"),st=it("%"),at=it("px"),lt=it("vh"),ut=it("vw"),ct=Object.assign(Object.assign({},st),{parse:t=>st.parse(t)/100,transform:t=>st.transform(100*t)}),dt=(t,e)=>n=>Boolean(tt(n)&&Q.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ht=(t,e,n)=>o=>{if(!tt(o))return o;const[i,r,s,a]=o.match(_);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},pt={test:dt("hsl","hue"),parse:ht("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+st.transform(K(e))+", "+st.transform(K(n))+", "+K(nt.transform(o))+")"},mt=Z(0,255),ft=Object.assign(Object.assign({},et),{transform:t=>Math.round(mt(t))}),gt={test:dt("rgb","red"),parse:ht("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+ft.transform(t)+", "+ft.transform(e)+", "+ft.transform(n)+", "+K(nt.transform(o))+")"};const vt={test:dt("#"),parse:function(t){let e="",n="",o="",i="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),o=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1),i=t.substr(4,1),e+=e,n+=n,o+=o,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}},transform:gt.transform},yt={test:t=>gt.test(t)||vt.test(t)||pt.test(t),parse:t=>gt.test(t)?gt.parse(t):pt.test(t)?pt.parse(t):vt.parse(t),transform:t=>tt(t)?t:t.hasOwnProperty("red")?gt.transform(t):pt.transform(t)};function xt(t){"number"==typeof t&&(t=""+t);const e=[];let n=0;const o=t.match(J);o&&(n=o.length,t=t.replace(J,"${c}"),e.push(...o.map(yt.parse)));const i=t.match(_);return i&&(t=t.replace(_,"${n}"),e.push(...i.map(et.parse))),{values:e,numColors:n,tokenised:t}}function bt(t){return xt(t).values}function wt(t){const{values:e,numColors:n,tokenised:o}=xt(t),i=e.length;return t=>{let e=o;for(let o=0;o<i;o++)e=e.replace(o<n?"${c}":"${n}",o<n?yt.transform(t[o]):K(t[o]));return e}}const Pt=t=>"number"==typeof t?0:t;const St={test:function(t){var e,n,o,i;return isNaN(t)&&tt(t)&&(null!==(n=null===(e=t.match(_))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(i=null===(o=t.match(J))||void 0===o?void 0:o.length)&&void 0!==i?i:0)>0},parse:bt,createTransformer:wt,getAnimatableNone:function(t){const e=bt(t);return wt(t)(e.map(Pt))}},At=new Set(["brightness","contrast","saturate","opacity"]);function Tt(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[o]=n.match(_)||[];if(!o)return t;const i=n.replace(o,"");let r=At.has(e)?1:0;return o!==n&&(r*=100),e+"("+r+i+")"}const Et=/([a-z-]*)\(.*?\)/g,Vt=Object.assign(Object.assign({},St),{getAnimatableNone:t=>{const e=t.match(Et);return e?e.map(Tt).join(" "):t}}),Ct={...et,transform:Math.round},Mt={borderWidth:at,borderTopWidth:at,borderRightWidth:at,borderBottomWidth:at,borderLeftWidth:at,borderRadius:at,radius:at,borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomRightRadius:at,borderBottomLeftRadius:at,width:at,maxWidth:at,height:at,maxHeight:at,size:at,top:at,right:at,bottom:at,left:at,padding:at,paddingTop:at,paddingRight:at,paddingBottom:at,paddingLeft:at,margin:at,marginTop:at,marginRight:at,marginBottom:at,marginLeft:at,rotate:rt,rotateX:rt,rotateY:rt,rotateZ:rt,scale:ot,scaleX:ot,scaleY:ot,scaleZ:ot,skew:rt,skewX:rt,skewY:rt,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:nt,originX:ct,originY:ct,originZ:at,zIndex:Ct,fillOpacity:nt,strokeOpacity:nt,numOctaves:Ct};function Rt(t,e,n,o){const{style:i,vars:r,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,d=!0;for(const t in e){const n=e[t];if(G(t)){r[t]=n;continue}const o=Mt[t],h=q(n,o);if(z.has(t)){if(u=!0,s[t]=h,a.push(t),!d)continue;n!==(o.default||0)&&(d=!1)}else t.startsWith("origin")?(c=!0,l[t]=h):i[t]=h}if(u||o?i.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:o=!0},i,r){let s="";e.sort(X);for(const n of e)s+=`${Y[n]||n}(${t[n]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,i?"":s):o&&i&&(s="none"),s}(t,n,d,o):!e.transform&&i.transform&&(i.transform="none"),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;i.transformOrigin=`${t} ${e} ${n}`}}const Lt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Dt(t,e,n){for(const o in e)W(e[o])||H(o,n)||(t[o]=e[o])}function kt(t,e,n){const o={};return Dt(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},e,n){return l(()=>{const o={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return Rt(o,e,{enableHardwareAcceleration:!n},t),Object.assign({},o.vars,o.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(o):o}function Ot(t,e,n){const o={},i=kt(t,e,n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=i,o}const jt=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function Ft(t){return jt.has(t)}let It=t=>!Ft(t);try{(Ut=require("@emotion/is-prop-valid").default)&&(It=t=>t.startsWith("on")?!Ft(t):Ut(t))}catch(t){}var Ut;function Bt(t,e,n){return"string"==typeof t?t:at.transform(e+n*t)}const Nt={offset:"stroke-dashoffset",array:"stroke-dasharray"},$t={offset:"strokeDashoffset",array:"strokeDasharray"};function zt(t,{attrX:e,attrY:n,originX:o,originY:i,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...l},u,c){Rt(t,l,u,c),t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:p}=t;d.transform&&(p&&(h.transform=d.transform),delete d.transform),p&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(t,e,n){return`${Bt(e,t.x,t.width)} ${Bt(n,t.y,t.height)}`}(p,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==r&&function(t,e,n=1,o=0,i=!0){t.pathLength=1;const r=i?Nt:$t;t[r.offset]=at.transform(-o);const s=at.transform(e),a=at.transform(n);t[r.array]=`${s} ${a}`}(d,r,s,a,!1)}const Ht=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}});function Wt(t,e){const n=l(()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return zt(n,e,{enableHardwareAcceleration:!1},t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};Dt(e,t.style,t),n.style={...e,...n.style}}return n}function Yt(t=!1){return(e,n,o,i,{latestValues:r},s)=>{const a=(B(e)?Wt:Ot)(n,r,s),l={...function(t,e,n){const o={};for(const i in t)(It(i)||!0===n&&Ft(i)||!e&&!Ft(i)||t.draggable&&i.startsWith("onDrag"))&&(o[i]=t[i]);return o}(n,"string"==typeof e,t),...a,ref:i};return o&&(l["data-projection-id"]=o),c(e,l)}}const Xt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Gt(t,{style:e,vars:n},o,i){Object.assign(t.style,e,i&&i.getProjectionStyles(o));for(const e in n)t.style.setProperty(e,n[e])}const qt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Zt(t,e,n,o){Gt(t,e,void 0,o);for(const n in e.attrs)t.setAttribute(qt.has(n)?n:Xt(n),e.attrs[n])}function Kt(t){const{style:e}=t,n={};for(const o in e)(W(e[o])||H(o,t))&&(n[o]=e[o]);return n}function _t(t){const e=Kt(t);for(const n in t)if(W(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function Jt(t,e,n,o={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),e}const Qt=t=>Array.isArray(t),te=t=>Qt(t)?t[t.length-1]||0:t;function ee(t){const e=W(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const ne=t=>(e,n)=>{const i=o(p),r=o(m),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},o,i,r){const s={latestValues:oe(o,i,r,t),renderState:e()};return n&&(s.mount=t=>n(o,t,s)),s}(t,e,i,r);return n?s():M(s)};function oe(t,e,n,o){const i={},r=o(t);for(const t in r)i[t]=ee(r[t]);let{initial:s,animate:a}=t;const l=S(t),u=A(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!=typeof d&&!w(d)){(Array.isArray(d)?d:[d]).forEach(e=>{const n=Jt(t,e);if(!n)return;const{transitionEnd:o,transition:r,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(i[t]=e)}for(const t in o)i[t]=o[t]})}return i}const ie={useVisualState:ne({scrapeMotionValuesFromProps:_t,createRenderState:Ht,onMount:(t,e,{renderState:n,latestValues:o})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}zt(n,o,{enableHardwareAcceleration:!1},t.transformTemplate),Zt(e,n)}})},re={useVisualState:ne({scrapeMotionValuesFromProps:Kt,createRenderState:Lt})};function se(t,{forwardMotionProps:e=!1},n,o,i){return{...B(t)?ie:re,preloadedFeatures:n,useRender:Yt(e),createVisualElement:o,projectionNodeConstructor:i,Component:t}}var ae;function le(t,e,n,o={passive:!0}){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}function ue(t,e,n,o){r(()=>{const i=t.current;if(n&&i)return le(i,e,n,o)},[t,e,n,o])}function ce(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function de(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(ae||(ae={}));const he={pageX:0,pageY:0};function pe(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||he;return{x:n[e+"X"],y:n[e+"Y"]}}function me(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function fe(t,e="page"){return{point:de(t)?pe(t,e):me(t,e)}}const ge=(t,e=!1)=>{const n=e=>t(e,fe(e));return e?(o=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&o(t)}):n;var o},ve={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ye={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function xe(t){return f&&null===window.onpointerdown?t:f&&null===window.ontouchstart?ye[t]:f&&null===window.onmousedown?ve[t]:t}function be(t,e,n,o){return le(t,xe(e),ge(n,"pointerdown"===e),o)}function we(t,e,n,o){return ue(t,xe(e),n&&ge(n,"pointerdown"===e),o)}function Pe(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Se=Pe("dragHorizontal"),Ae=Pe("dragVertical");function Te(t){let e=!1;if("y"===t)e=Ae();else if("x"===t)e=Se();else{const t=Se(),n=Ae();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Ee(){const t=Te(!0);return!t||(t(),!1)}function Ve(t,e,n){return(o,i)=>{ce(o)&&!Ee()&&(t.animationState&&t.animationState.setActive(ae.Hover,e),n&&n(o,i))}}const Ce=(t,e)=>!!e&&(t===e||Ce(t,e.parentElement));function Me(t){return r(()=>()=>t(),[])}function Re(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n}const Le=(t,e,n)=>Math.min(Math.max(n,t),e);function De({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let i,r,s=1-e;s=Le(.05,1,s),t=Le(.01,10,t/1e3),s<1?(i=e=>{const o=e*s,i=o*t;return.001-(o-n)/ke(e,s)*Math.exp(-i)},r=e=>{const o=e*s*t,r=o*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-o),u=ke(Math.pow(e,2),s);return(.001-i(e)>0?-1:1)*((r-a)*l)/u}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let o=n;for(let n=1;n<12;n++)o-=t(o)/e(o);return o}(i,r,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*o;return{stiffness:e,damping:2*s*Math.sqrt(o*e),duration:t}}}function ke(t,e){return t*Math.sqrt(1-e*e)}const Oe=["duration","bounce"],je=["stiffness","damping","mass"];function Fe(t,e){return e.some(e=>void 0!==t[e])}function Ie(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:i}=t,r=Re(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:h}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Fe(t,je)&&Fe(t,Oe)){const n=De(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(r),p=Ue,m=Ue;function f(){const t=c?-c/1e3:0,o=n-e,r=l/(2*Math.sqrt(a*u)),s=Math.sqrt(a/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-e)/100,.4)),r<1){const e=ke(s,r);p=i=>{const a=Math.exp(-r*s*i);return n-a*((t+r*s*o)/e*Math.sin(e*i)+o*Math.cos(e*i))},m=n=>{const i=Math.exp(-r*s*n);return r*s*i*(Math.sin(e*n)*(t+r*s*o)/e+o*Math.cos(e*n))-i*(Math.cos(e*n)*(t+r*s*o)-e*o*Math.sin(e*n))}}else if(1===r)p=e=>n-Math.exp(-s*e)*(o+(t+s*o)*e);else{const e=s*Math.sqrt(r*r-1);p=i=>{const a=Math.exp(-r*s*i),l=Math.min(e*i,300);return n-a*((t+r*s*o)*Math.sinh(l)+e*o*Math.cosh(l))/e}}}return f(),{next:t=>{const e=p(t);if(h)s.done=t>=d;else{const r=1e3*m(t),a=Math.abs(r)<=o,l=Math.abs(n-e)<=i;s.done=a&&l}return s.value=s.done?n:e,s},flipTarget:()=>{c=-c,[e,n]=[n,e],f()}}}Ie.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const Ue=t=>0,Be=(t,e,n)=>{const o=e-t;return 0===o?1:(n-t)/o},Ne=(t,e,n)=>-n*t+n*e+t;function $e(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ze({hue:t,saturation:e,lightness:n,alpha:o}){t/=360,n/=100;let i=0,r=0,s=0;if(e/=100){const o=n<.5?n*(1+e):n+e-n*e,a=2*n-o;i=$e(a,o,t+1/3),r=$e(a,o,t),s=$e(a,o,t-1/3)}else i=r=s=n;return{red:Math.round(255*i),green:Math.round(255*r),blue:Math.round(255*s),alpha:o}}const He=(t,e,n)=>{const o=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-o)+o))},We=[vt,gt,pt],Ye=t=>We.find(e=>e.test(t)),Xe=(t,e)=>{let n=Ye(t),o=Ye(e),i=n.parse(t),r=o.parse(e);n===pt&&(i=ze(i),n=gt),o===pt&&(r=ze(r),o=gt);const s=Object.assign({},i);return t=>{for(const e in s)"alpha"!==e&&(s[e]=He(i[e],r[e],t));return s.alpha=Ne(i.alpha,r.alpha,t),n.transform(s)}},Ge=t=>"number"==typeof t,qe=(t,e)=>n=>e(t(n)),Ze=(...t)=>t.reduce(qe);function Ke(t,e){return Ge(t)?n=>Ne(t,e,n):yt.test(t)?Xe(t,e):tn(t,e)}const _e=(t,e)=>{const n=[...t],o=n.length,i=t.map((t,n)=>Ke(t,e[n]));return t=>{for(let e=0;e<o;e++)n[e]=i[e](t);return n}},Je=(t,e)=>{const n=Object.assign(Object.assign({},t),e),o={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(o[i]=Ke(t[i],e[i]));return t=>{for(const e in o)n[e]=o[e](t);return n}};function Qe(t){const e=St.parse(t),n=e.length;let o=0,i=0,r=0;for(let t=0;t<n;t++)o||"number"==typeof e[t]?o++:void 0!==e[t].hue?r++:i++;return{parsed:e,numNumbers:o,numRGB:i,numHSL:r}}const tn=(t,e)=>{const n=St.createTransformer(e),o=Qe(t),i=Qe(e);return o.numHSL===i.numHSL&&o.numRGB===i.numRGB&&o.numNumbers>=i.numNumbers?Ze(_e(o.parsed,i.parsed),n):n=>""+(n>0?e:t)},en=(t,e)=>n=>Ne(t,e,n);function nn(t,e,n){const o=[],i=n||("number"==typeof(r=t[0])?en:"string"==typeof r?yt.test(r)?Xe:tn:Array.isArray(r)?_e:"object"==typeof r?Je:void 0);var r;const s=t.length-1;for(let n=0;n<s;n++){let r=i(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;r=Ze(t,r)}o.push(r)}return o}function on(t,e,{clamp:n=!0,ease:o,mixer:i}={}){const r=t.length;e.length,!o||!Array.isArray(o)||o.length,t[0]>t[r-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const s=nn(e,o,i),a=2===r?function([t,e],[n]){return o=>n(Be(t,e,o))}(t,s):function(t,e){const n=t.length,o=n-1;return i=>{let r=0,s=!1;if(i<=t[0]?s=!0:i>=t[o]&&(r=o-1,s=!0),!s){let e=1;for(;e<n&&!(t[e]>i||e===o);e++);r=e-1}const a=Be(t[r],t[r+1],i);return e[r](a)}}(t,s);return n?e=>a(Le(t[0],t[r-1],e)):a}const rn=t=>e=>1-t(1-e),sn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,an=t=>e=>e*e*((t+1)*e-t),ln=t=>t,un=(cn=2,t=>Math.pow(t,cn));var cn;const dn=rn(un),hn=sn(un),pn=t=>1-Math.sin(Math.acos(t)),mn=rn(pn),fn=sn(mn),gn=an(1.525),vn=rn(gn),yn=sn(gn),xn=(t=>{const e=an(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),bn=t=>{if(1===t||0===t)return t;const e=t*t;return t<4/11?7.5625*e:t<8/11?9.075*e-9.9*t+3.4:t<.9?4356/361*e-35442/1805*t+16061/1805:10.8*t*t-20.52*t+10.72},wn=rn(bn);function Pn(t,e){return t.map(()=>e||hn).splice(0,t.length-1)}function Sn({from:t=0,to:e=1,ease:n,offset:o,duration:i=300}){const r={done:!1,value:t},s=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map(t=>t*e)}(o&&o.length===s.length?o:function(t){const e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(s),i);function l(){return on(a,s,{ease:Array.isArray(n)?n:Pn(s,n)})}let u=l();return{next:t=>(r.value=u(t),r.done=t>=i,r),flipTarget:()=>{s.reverse(),u=l()}}}const An={keyframes:Sn,spring:Ie,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:o=350,restDelta:i=.5,modifyTarget:r}){const s={done:!1,value:e};let a=n*t;const l=e+a,u=void 0===r?l:r(l);return u!==l&&(a=u-e),{next:t=>{const e=-a*Math.exp(-t/o);return s.done=!(e>i||e<-i),s.value=s.done?u:u+e,s},flipTarget:()=>{}}}};const Tn="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),En="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Tn()),1/60*1e3);let Vn=!0,Cn=!1,Mn=!1;const Rn={delta:0,timestamp:0},Ln=["read","update","preRender","render","postRender"],Dn=Ln.reduce((t,e)=>(t[e]=function(t){let e=[],n=[],o=0,i=!1,r=!1;const s=new WeakSet,a={schedule:(t,r=!1,a=!1)=>{const l=a&&i,u=l?e:n;return r&&s.add(t),-1===u.indexOf(t)&&(u.push(t),l&&i&&(o=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:l=>{if(i)r=!0;else{if(i=!0,[e,n]=[n,e],n.length=0,o=e.length,o)for(let n=0;n<o;n++){const o=e[n];o(l),s.has(o)&&(a.schedule(o),t())}i=!1,r&&(r=!1,a.process(l))}}};return a}(()=>Cn=!0),t),{}),kn=Ln.reduce((t,e)=>{const n=Dn[e];return t[e]=(t,e=!1,o=!1)=>(Cn||Un(),n.schedule(t,e,o)),t},{}),On=Ln.reduce((t,e)=>(t[e]=Dn[e].cancel,t),{}),jn=Ln.reduce((t,e)=>(t[e]=()=>Dn[e].process(Rn),t),{}),Fn=t=>Dn[t].process(Rn),In=t=>{Cn=!1,Rn.delta=Vn?1/60*1e3:Math.max(Math.min(t-Rn.timestamp,40),1),Rn.timestamp=t,Mn=!0,Ln.forEach(Fn),Mn=!1,Cn&&(Vn=!1,En(In))},Un=()=>{Cn=!0,Vn=!0,Mn||En(In)},Bn=()=>Rn;function Nn(t,e,n=0){return t-e-n}const $n=t=>{const e=({delta:e})=>t(e);return{start:()=>kn.update(e,!0),stop:()=>On.update(e)}};function zn(t){var e,n,{from:o,autoplay:i=!0,driver:r=$n,elapsed:s=0,repeat:a=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:h,onRepeat:p,onUpdate:m}=t,f=Re(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,v,y,{to:x}=f,b=0,w=f.duration,P=!1,S=!0;const A=function(t){if(Array.isArray(t.to))return Sn;if(An[t.type])return An[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Sn:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Ie:Sn}(f);(null===(n=(e=A).needsInterpolation)||void 0===n?void 0:n.call(e,o,x))&&(y=on([0,100],[o,x],{clamp:!1}),o=0,x=100);const T=A(Object.assign(Object.assign({},f),{from:o,to:x}));function E(){b++,"reverse"===l?(S=b%2==0,s=function(t,e,n=0,o=!0){return o?Nn(e+-t,e,n):e-(t-e)+n}(s,w,u,S)):(s=Nn(s,w,u),"mirror"===l&&T.flipTarget()),P=!1,p&&p()}function V(t){if(S||(t=-t),s+=t,!P){const t=T.next(Math.max(0,s));v=t.value,y&&(v=y(v)),P=S?t.done:s<=0}null==m||m(v),P&&(0===b&&(null!=w||(w=s)),b<a?function(t,e,n,o){return o?t>=e+n:t<=-n}(s,w,u,S)&&E():(g.stop(),h&&h()))}return i&&(null==c||c(),g=r(V),g.start()),{stop:()=>{null==d||d(),g.stop()}}}function Hn(t,e){return e?t*(1e3/e):0}const Wn=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),Yn=t=>Wn(t)&&t.hasOwnProperty("z"),Xn=(t,e)=>Math.abs(t-e);function Gn(t,e){if(Ge(t)&&Ge(e))return Xn(t,e);if(Wn(t)&&Wn(e)){const n=Xn(t.x,e.x),o=Xn(t.y,e.y),i=Yn(t)&&Yn(e)?Xn(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(i,2))}}const qn=(t,e)=>1-3*e+3*t,Zn=(t,e)=>3*e-6*t,Kn=t=>3*t,_n=(t,e,n)=>((qn(e,n)*t+Zn(e,n))*t+Kn(e))*t,Jn=(t,e,n)=>3*qn(e,n)*t*t+2*Zn(e,n)*t+Kn(e);function Qn(t,e,n,o){if(t===e&&n===o)return ln;const i=new Float32Array(11);for(let e=0;e<11;++e)i[e]=_n(.1*e,t,n);function r(e){let o=0,r=1;for(;10!==r&&i[r]<=e;++r)o+=.1;--r;const s=o+.1*((e-i[r])/(i[r+1]-i[r])),a=Jn(s,t,n);return a>=.001?function(t,e,n,o){for(let i=0;i<8;++i){const i=Jn(e,n,o);if(0===i)return e;e-=(_n(e,n,o)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,o,i){let r,s,a=0;do{s=e+(n-e)/2,r=_n(s,o,i)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++a<10);return s}(e,o,o+.1,t,n)}return t=>0===t||1===t?t:_n(r(t),e,o)}const to=("undefined"==typeof process||process.env,"production"),eo=new Set;const no=new WeakMap,oo=new WeakMap,io=t=>{const e=no.get(t.target);e&&e(t)},ro=t=>{t.forEach(io)};function so(t,e,n){const o=function({root:t,...e}){const n=t||document;oo.has(n)||oo.set(n,{});const o=oo.get(n),i=JSON.stringify(e);return o[i]||(o[i]=new IntersectionObserver(ro,{root:t,...e})),o[i]}(e);return no.set(t,n),o.observe(t),()=>{no.delete(t),o.unobserve(t)}}const ao={some:0,all:1};function lo(t,e,n,{root:o,margin:i,amount:s="some",once:a}){r(()=>{if(!t)return;const r={root:null==o?void 0:o.current,rootMargin:i,threshold:"number"==typeof s?s:ao[s]};return so(n.getInstance(),r,t=>{const{isIntersecting:o}=t;if(e.isInView===o)return;if(e.isInView=o,a&&!o&&e.hasEnteredView)return;o&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(ae.InView,o);const i=n.getProps(),r=o?i.onViewportEnter:i.onViewportLeave;r&&r(t)})},[t,o,i,s])}function uo(t,e,n,{fallback:o=!0}){r(()=>{var i,r;t&&o&&("production"!==to&&(i="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||eo.has(i)||(console.warn(i),r&&console.warn(r),eo.add(i))),requestAnimationFrame(()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(ae.InView,!0)}))},[t])}const co=t=>e=>(t(e),null),ho={inView:co((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:i={}}){const r=s({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);i.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?uo:lo)(a,r.current,t,i)})),tap:co((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:i}){const r=t||e||n||o,a=s(!1),l=s(null),u={passive:!(e||t||n||m)};function c(){l.current&&l.current(),l.current=null}function d(){return c(),a.current=!1,i.animationState&&i.animationState.setActive(ae.Tap,!1),!Ee()}function h(e,o){d()&&(Ce(i.getInstance(),e.target)?t&&t(e,o):n&&n(e,o))}function p(t,e){d()&&n&&n(t,e)}function m(t,n){c(),a.current||(a.current=!0,l.current=Ze(be(window,"pointerup",h,u),be(window,"pointercancel",p,u)),i.animationState&&i.animationState.setActive(ae.Tap,!0),e&&e(t,n))}we(i,"pointerdown",r?m:void 0,u),Me(c)})),focus:co((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;ue(e,"focus",t?()=>{n&&n.setActive(ae.Focus,!0)}:void 0),ue(e,"blur",t?()=>{n&&n.setActive(ae.Focus,!1)}:void 0)})),hover:co((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:o}){we(o,"pointerenter",t||n?Ve(o,!0,t):void 0,{passive:!t}),we(o,"pointerleave",e||n?Ve(o,!1,e):void 0,{passive:!e})}))};function po(){const t=o(m);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,s=d();r(()=>i(s),[]);return!e&&n?[!1,()=>n&&n(s)]:[!0]}function mo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}const fo=t=>1e3*t,go={linear:ln,easeIn:un,easeInOut:hn,easeOut:dn,circIn:pn,circInOut:fn,circOut:mn,backIn:gn,backInOut:yn,backOut:vn,anticipate:xn,bounceIn:wn,bounceInOut:t=>t<.5?.5*(1-bn(1-2*t)):.5*bn(2*t-1)+.5,bounceOut:bn},vo=t=>{if(Array.isArray(t)){t.length;const[e,n,o,i]=t;return Qn(e,n,o,i)}return"string"==typeof t?go[t]:t},yo=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!St.test(e)||e.startsWith("url("))),xo=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),bo=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),wo=()=>({type:"keyframes",ease:"linear",duration:.3}),Po=t=>({type:"keyframes",duration:.8,values:t}),So={x:xo,y:xo,z:xo,rotate:xo,rotateX:xo,rotateY:xo,rotateZ:xo,scaleX:bo,scaleY:bo,scale:bo,opacity:wo,backgroundColor:wo,color:wo,default:bo},Ao=(t,e)=>{let n;return n=Qt(e)?Po:So[t]||So.default,{to:e,...n(e)}},To={...Mt,color:yt,backgroundColor:yt,outlineColor:yt,fill:yt,stroke:yt,borderColor:yt,borderTopColor:yt,borderRightColor:yt,borderBottomColor:yt,borderLeftColor:yt,filter:Vt,WebkitFilter:Vt},Eo=t=>To[t];function Vo(t,e){var n;let o=Eo(t);return o!==Vt&&(o=St),null===(n=o.getAnimatableNone)||void 0===n?void 0:n.call(o,e)}const Co=!1;function Mo({ease:t,times:e,yoyo:n,flip:o,loop:i,...r}){const s={...r};return e&&(s.offset=e),r.duration&&(s.duration=fo(r.duration)),r.repeatDelay&&(s.repeatDelay=fo(r.repeatDelay)),t&&(s.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(vo):vo(t)),"tween"===r.type&&(s.type="keyframes"),(n||i||o)&&(n?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||n||o||r.repeat),"spring"!==r.type&&(s.type="keyframes"),s}function Ro(t,e,n){return Array.isArray(e.to)&&void 0===t.duration&&(t.duration=.8),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function({when:t,delay:e,delayChildren:n,staggerChildren:o,staggerDirection:i,repeat:r,repeatType:s,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(t)||(t={...t,...Ao(n,e.to)}),{...e,...Mo(t)}}function Lo(t,e,n,o,i){const r=Oo(o,t)||{};let s=void 0!==r.from?r.from:e.get();const a=yo(t,n);"none"===s&&a&&"string"==typeof n?s=Vo(t,n):Do(s)&&"string"==typeof n?s=ko(n):!Array.isArray(n)&&Do(n)&&"string"==typeof s&&(n=ko(s));return yo(t,s)&&a&&!1!==r.type?function(){const o={from:s,to:n,velocity:e.getVelocity(),onComplete:i,onUpdate:t=>e.set(t)};return"inertia"===r.type||"decay"===r.type?function({from:t=0,velocity:e=0,min:n,max:o,power:i=.8,timeConstant:r=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:h,onStop:p}){let m;function f(t){return void 0!==n&&t<n||void 0!==o&&t>o}function g(t){return void 0===n?o:void 0===o||Math.abs(n-t)<Math.abs(o-t)?n:o}function v(t){null==m||m.stop(),m=zn(Object.assign(Object.assign({},t),{driver:c,onUpdate:e=>{var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:h,onStop:p}))}function y(t){v(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:l},t))}if(f(t))y({from:t,velocity:e,to:g(t)});else{let o=i*e+t;void 0!==u&&(o=u(o));const s=g(o),a=s===n?-1:1;let c,d;const h=t=>{c=d,d=t,e=Hn(t-c,Bn().delta),(1===a&&t>s||-1===a&&t<s)&&y({from:t,to:s,velocity:e})};v({type:"decay",from:t,velocity:e,timeConstant:r,power:i,restDelta:l,modifyTarget:u,onUpdate:f(o)?h:void 0})}return{stop:()=>null==m?void 0:m.stop()}}({...o,...r}):zn({...Ro(r,o,t),onUpdate:t=>{o.onUpdate(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{o.onComplete(),r.onComplete&&r.onComplete()}})}:function(){const t=te(n);return e.set(t),i(),r.onUpdate&&r.onUpdate(t),r.onComplete&&r.onComplete(),{stop:()=>{}}}}function Do(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function ko(t){return"number"==typeof t?0:Vo("",t)}function Oo(t,e){return t[e]||t.default||t}function jo(t,e,n,o={}){return Co&&(o={type:!1}),e.start(i=>{let r,s;const a=Lo(t,e,n,o,i),l=function(t,e){var n,o;return null!==(o=null!==(n=(Oo(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==o?o:0}(o,t),u=()=>s=a();return l?r=window.setTimeout(u,fo(l)):u(),()=>{clearTimeout(r),s&&s.stop()}})}const Fo=t=>/^0[^.\s]+$/.test(t);function Io(t,e){-1===t.indexOf(e)&&t.push(e)}function Uo(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Bo{constructor(){this.subscriptions=[]}add(t){return Io(this.subscriptions,t),()=>Uo(this.subscriptions,t)}notify(t,e,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(let i=0;i<o;i++){const o=this.subscriptions[i];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class No{constructor(t){var e;this.version="7.3.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Bo,this.velocityUpdateSubscribers=new Bo,this.renderSubscribers=new Bo,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=Bn();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,kn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>kn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Hn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.stopAnimation=t(e)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function $o(t){return new No(t)}const zo=t=>e=>e.test(t),Ho=[et,at,st,rt,ut,lt,{test:t=>"auto"===t,parse:t=>t}],Wo=t=>Ho.find(zo(t)),Yo=[...Ho,yt,St],Xo=t=>Yo.find(zo(t));function Go(t,e,n){const o=t.getProps();return Jt(o,e,void 0!==n?n:o.custom,function(t){const e={};return t.forEachValue((t,n)=>e[n]=t.get()),e}(t),function(t){const e={};return t.forEachValue((t,n)=>e[n]=t.getVelocity()),e}(t))}function qo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,$o(n))}function Zo(t,e){if(!e)return;return(e[t]||e.default||e).from}function Ko(t){return Boolean(W(t)&&t.add)}function _o(t,e,n={}){var o;const i=Go(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const s=i?()=>Jo(t,i,n):()=>Promise.resolve(),a=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?(o=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,o=0,i=1,r){const s=[],a=(t.variantChildren.size-1)*o,l=1===i?(t=0)=>t*o:(t=0)=>a-t*o;return Array.from(t.variantChildren).sort(Qo).forEach((t,o)=>{s.push(_o(t,e,{...r,delay:n+l(o)}).then(()=>t.notifyAnimationComplete(e)))}),Promise.all(s)}(t,e,i+o,s,a,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(e)}return Promise.all([s(),a(n.delay)])}function Jo(t,e,{delay:n=0,transitionOverride:o,type:i}={}){var r;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");o&&(s=o);const c=[],d=i&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[i]);for(const e in l){const o=t.getValue(e),i=l[e];if(!o||void 0===i||d&&ti(d,e))continue;let r={delay:n,...s};t.shouldReduceMotion&&z.has(e)&&(r={...r,type:!1,delay:0});let a=jo(e,o,i,r);Ko(u)&&(u.add(e),a=a.then(()=>u.remove(e))),c.push(a)}return Promise.all(c).then(()=>{a&&function(t,e){const n=Go(t,e);let{transitionEnd:o={},transition:i={},...r}=n?t.makeTargetAnimatable(n,!1):{};r={...r,...o};for(const e in r){qo(t,e,te(r[e]))}}(t,a)})}function Qo(t,e){return t.sortNodePosition(e)}function ti({protectedKeys:t,needsAnimating:e},n){const o=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,o}const ei=[ae.Animate,ae.InView,ae.Focus,ae.Hover,ae.Tap,ae.Drag,ae.Exit],ni=[...ei].reverse(),oi=ei.length;function ii(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let o;if(t.notifyAnimationStart(e),Array.isArray(e)){const i=e.map(e=>_o(t,e,n));o=Promise.all(i)}else if("string"==typeof e)o=_o(t,e,n);else{const i="function"==typeof e?Go(t,e,n.custom):e;o=Jo(t,i,n)}return o.then(()=>t.notifyAnimationComplete(e))}(t,e,n)))}function ri(t){let e=ii(t);const n={[ae.Animate]:ai(!0),[ae.InView]:ai(),[ae.Hover]:ai(),[ae.Tap]:ai(),[ae.Drag]:ai(),[ae.Focus]:ai(),[ae.Exit]:ai()};let o=!0;const i=(e,n)=>{const o=Go(t,n);if(o){const{transition:t,transitionEnd:n,...i}=o;e={...e,...i,...n}}return e};function r(r,s){var a;const l=t.getProps(),u=t.getVariantContext(!0)||{},c=[],d=new Set;let h={},p=1/0;for(let e=0;e<oi;e++){const m=ni[e],f=n[m],g=null!==(a=l[m])&&void 0!==a?a:u[m],v=b(g),y=m===s?f.isActive:null;!1===y&&(p=e);let x=g===u[m]&&g!==l[m]&&v;if(x&&o&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===y||!g&&!f.prevProp||w(g)||"boolean"==typeof g)continue;const P=si(f.prevProp,g);let S=P||m===s&&f.isActive&&!x&&v||e>p&&v;const A=Array.isArray(g)?g:[g];let T=A.reduce(i,{});!1===y&&(T={});const{prevResolvedValues:E={}}=f,V={...E,...T},C=t=>{S=!0,d.delete(t),f.needsAnimating[t]=!0};for(const t in V){const e=T[t],n=E[t];h.hasOwnProperty(t)||(e!==n?Qt(e)&&Qt(n)?!mo(e,n)||P?C(t):f.protectedKeys[t]=!0:void 0!==e?C(t):d.add(t):void 0!==e&&d.has(t)?C(t):f.protectedKeys[t]=!0)}f.prevProp=g,f.prevResolvedValues=T,f.isActive&&(h={...h,...T}),o&&t.blockInitialAnimation&&(S=!1),S&&!x&&c.push(...A.map(t=>({animation:t,options:{type:m,...r}})))}if(d.size){const e={};d.forEach(n=>{const o=t.getBaseTarget(n);void 0!==o&&(e[n]=o)}),c.push({animation:e})}let m=Boolean(c.length);return o&&!1===l.initial&&!t.manuallyAnimateOnMount&&(m=!1),o=!1,m?e(c):Promise.resolve()}return{animateChanges:r,setActive:function(e,o,i){var s;if(n[e].isActive===o)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,o)}),n[e].isActive=o;const a=r(i,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function si(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!mo(e,t)}function ai(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const li={animation:co(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=ri(t)),w(e)&&r(()=>e.subscribe(t),[e])}),exit:co(t=>{const{custom:e,visualElement:n}=t,[i,s]=po(),a=o(m);r(()=>{n.isPresent=i;const t=n.animationState&&n.animationState.setActive(ae.Exit,!i,{custom:a&&a.custom||e});t&&!i&&t.then(s)},[i])})};class ui{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=hi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=Gn(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:i}=Bn();this.history.push({...o,timestamp:i});const{onStart:r,onMove:s}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ci(e,this.transformPagePoint),ce(t)&&0===t.buttons?this.handlePointerUp(t,e):kn.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:o}=this.handlers,i=hi(ci(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),o&&o(t,i)},de(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const o=ci(fe(t),this.transformPagePoint),{point:i}=o,{timestamp:r}=Bn();this.history=[{...i,timestamp:r}];const{onSessionStart:s}=e;s&&s(t,hi(o,this.history)),this.removeListeners=Ze(be(window,"pointermove",this.handlePointerMove),be(window,"pointerup",this.handlePointerUp),be(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),On.update(this.updatePoint)}}function ci(t,e){return e?{point:e(t.point)}:t}function di(t,e){return{x:t.x-e.x,y:t.y-e.y}}function hi({point:t},e){return{point:t,delta:di(t,mi(e)),offset:di(t,pi(e)),velocity:fi(e,.1)}}function pi(t){return t[0]}function mi(t){return t[t.length-1]}function fi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const i=mi(t);for(;n>=0&&(o=t[n],!(i.timestamp-o.timestamp>fo(e)));)n--;if(!o)return{x:0,y:0};const r=(i.timestamp-o.timestamp)/1e3;if(0===r)return{x:0,y:0};const s={x:(i.x-o.x)/r,y:(i.y-o.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function gi(t){return t.max-t.min}function vi(t,e=0,n=.01){return Gn(t,e)<n}function yi(t,e,n,o=.5){t.origin=o,t.originPoint=Ne(e.min,e.max,t.origin),t.scale=gi(n)/gi(e),(vi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ne(n.min,n.max,t.origin)-t.originPoint,(vi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function xi(t,e,n,o){yi(t.x,e.x,n.x,null==o?void 0:o.originX),yi(t.y,e.y,n.y,null==o?void 0:o.originY)}function bi(t,e,n){t.min=n.min+e.min,t.max=t.min+gi(e)}function wi(t,e,n){t.min=e.min-n.min,t.max=t.min+gi(e)}function Pi(t,e,n){wi(t.x,e.x,n.x),wi(t.y,e.y,n.y)}function Si(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Ai(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}const Ti=.35;function Ei(t,e,n){return{min:Vi(t,e),max:Vi(t,n)}}function Vi(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function Ci(t){return[t("x"),t("y")]}function Mi({top:t,left:e,right:n,bottom:o}){return{x:{min:e,max:n},y:{min:t,max:o}}}function Ri(t){return void 0===t||1===t}function Li({scale:t,scaleX:e,scaleY:n}){return!Ri(t)||!Ri(e)||!Ri(n)}function Di(t){return Li(t)||ki(t.x)||ki(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function ki(t){return t&&"0%"!==t}function Oi(t,e,n){return n+e*(t-n)}function ji(t,e,n,o,i){return void 0!==i&&(t=Oi(t,i,o)),Oi(t,n,o)+e}function Fi(t,e=0,n=1,o,i){t.min=ji(t.min,e,n,o,i),t.max=ji(t.max,e,n,o,i)}function Ii(t,{x:e,y:n}){Fi(t.x,e.translate,e.scale,e.originPoint),Fi(t.y,n.translate,n.scale,n.originPoint)}function Ui(t,e){t.min=t.min+e,t.max=t.max+e}function Bi(t,e,[n,o,i]){const r=void 0!==e[i]?e[i]:.5,s=Ne(t.min,t.max,r);Fi(t,e[n],e[o],s,e.scale)}const Ni=["x","scaleX","originX"],$i=["y","scaleY","originY"];function zi(t,e){Bi(t.x,e,Ni),Bi(t.y,e,$i)}function Hi(t,e){return Mi(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(t.getBoundingClientRect(),e))}const Wi=new WeakMap;class Yi{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new ui(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(fe(t,"page").point)},onStart:(t,e)=>{var n;const{drag:o,dragPropagation:i,onDragStart:r}=this.getProps();(!o||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Te(o),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ci(t=>{var e,n;let o=this.getAxisMotionValue(t).get()||0;if(st.test(o)){const i=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.actual[t];if(i){o=gi(i)*(parseFloat(o)/100)}}this.originPoint[t]=o}),null==r||r(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(ae.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:i,onDrag:r}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(o&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&(null==i||i(this.currentDirection)));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.syncRender(),null==r||r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=e;this.startAnimation(o);const{onDragEnd:i}=this.getProps();null==i||i(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(ae.Drag,!1)}updateAxis(t,e,n){const{drag:o}=this.getProps();if(!n||!Xi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:n},o){return void 0!==e&&t<e?t=o?Ne(e,t,o.min):Math.max(t,e):void 0!==n&&t>n&&(t=o?Ne(n,t,o.max):Math.min(t,n)),t}(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&x(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:o,right:i}){return{x:Si(t.x,n,i),y:Si(t.y,e,o)}}(n.actual,t),this.elastic=function(t=Ti){return!1===t?t=0:!0===t&&(t=Ti),{x:Ei(t,"left","right"),y:Ei(t,"top","bottom")}}(e),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ci(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.actual[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!x(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=function(t,e,n){const o=Hi(t,n),{scroll:i}=e;return i&&(Ui(o.x,i.x),Ui(o.y,i.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:Ai(t.x,e.x),y:Ai(t.y,e.y)}}(o.layout.actual,i);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=Mi(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ci(s=>{var l;if(!Xi(s,e,this.currentDirection))return;let u=null!==(l=null==a?void 0:a[s])&&void 0!==l?l:{};r&&(u={min:0,max:0});const c=o?200:1e6,d=o?40:1e7,h={type:"inertia",velocity:n?t[s]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(s,h)});return Promise.all(l).then(s)}startAxisValueAnimation(t,e){return jo(t,this.getAxisMotionValue(t),0,e)}stopAnimation(){Ci(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e,n;const o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){Ci(e=>{const{drag:n}=this.getProps();if(!Xi(e,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(e);if(o&&o.layout){const{min:n,max:r}=o.layout.actual[e];i.set(t[e]-Ne(n,r,.5))}})}scalePositionWithinConstraints(){var t;const{drag:e,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!x(n)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ci(t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();i[t]=function(t,e){let n=.5;const o=gi(t),i=gi(e);return i>o?n=Be(e.min,e.max-o,t.min):o>i&&(n=Be(t.min,t.max-i,e.min)),Le(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=r?r({},""):"none",null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ci(t=>{if(!Xi(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:r}=this.constraints[t];n.set(Ne(o,r,i[t]))})}addListeners(){var t;Wi.set(this.visualElement,this);const e=be(this.visualElement.getInstance(),"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),n=()=>{const{dragConstraints:t}=this.getProps();x(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),n();const r=le(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Ci(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.syncRender())});return()=>{r(),e(),i(),null==s||s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:r=Ti,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:r,dragMomentum:s}}}function Xi(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Gi={pan:co((function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:i,visualElement:a}){const l=t||e||n||i,u=s(null),{transformPagePoint:c}=o(h),d={onSessionStart:i,onStart:e,onMove:t,onEnd:(t,e)=>{u.current=null,n&&n(t,e)}};r(()=>{null!==u.current&&u.current.updateHandlers(d)}),we(a,"pointerdown",l&&function(t){u.current=new ui(t,d,{transformPagePoint:c})}),Me(()=>u.current&&u.current.end())})),drag:co((function(t){const{dragControls:e,visualElement:n}=t,o=M(()=>new Yi(n));r(()=>e&&e.subscribe(o),[o,e]),r(()=>o.addListeners(),[o])}))},qi={current:null},Zi={current:!1};const Ki=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];const _i=Object.keys(C),Ji=_i.length,Qi=({treeType:t="",build:e,getBaseTarget:n,makeTargetAnimatable:o,measureViewportBox:i,render:r,readValueFromInstance:s,removeValueFromRenderState:a,sortNodePosition:l,scrapeMotionValuesFromProps:u})=>({parent:d,props:h,presenceId:p,blockInitialAnimation:m,visualState:g,reducedMotionConfig:v},y={})=>{let w=!1;const{latestValues:P,renderState:T}=g;let E;const V=function(){const t=Ki.map(()=>new Bo),e={},n={clearAllListeners:()=>t.forEach(t=>t.clear()),updatePropListeners:t=>{Ki.forEach(o=>{var i;const r="on"+o,s=t[r];null===(i=e[o])||void 0===i||i.call(e),s&&(e[o]=n[r](s))})}};return t.forEach((t,e)=>{n["on"+Ki[e]]=e=>t.add(e),n["notify"+Ki[e]]=(...e)=>t.notify(...e)}),n}(),M=new Map,R=new Map;let L={};const D={...P};let k;function O(){E&&w&&(j(),r(E,T,h.style,z.projection))}function j(){e(z,T,P,y,h)}function F(){V.notifyUpdate(P)}function I(t,e){const n=e.onChange(e=>{P[t]=e,h.onUpdate&&kn.update(F,!1,!0)}),o=e.onRenderRequest(z.scheduleRender);R.set(t,()=>{n(),o()})}const{willChange:U,...B}=u(h);for(const t in B){const e=B[t];void 0!==P[t]&&W(e)&&(e.set(P[t],!1),Ko(U)&&U.add(t))}const N=S(h),$=A(h),z={treeType:t,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:p,shouldReduceMotion:null,variantChildren:$?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:m,isMounted:()=>Boolean(E),mount(t){w=!0,E=z.current=t,z.projection&&z.projection.mount(t),$&&d&&!N&&(k=null==d?void 0:d.addVariantChild(z)),M.forEach((t,e)=>I(e,t)),Zi.current||function(){if(Zi.current=!0,f)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qi.current=t.matches;t.addListener(e),e()}else qi.current=!1}(),z.shouldReduceMotion="never"!==v&&("always"===v||qi.current),null==d||d.children.add(z),z.setProps(h)},unmount(){var t;null===(t=z.projection)||void 0===t||t.unmount(),On.update(F),On.render(O),R.forEach(t=>t()),null==k||k(),null==d||d.children.delete(z),V.clearAllListeners(),E=void 0,w=!1},loadFeatures(t,e,n,o,i,r){const s=[];for(let e=0;e<Ji;e++){const n=_i[e],{isEnabled:o,Component:i}=C[n];o(h)&&i&&s.push(c(i,{key:n,...t,visualElement:z}))}if(!z.projection&&i){z.projection=new i(o,z.getLatestValues(),d&&d.projection);const{layoutId:e,layout:n,drag:s,dragConstraints:a,layoutScroll:l}=t;z.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(s)||a&&x(a),visualElement:z,scheduleRender:()=>z.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l})}return s},addVariantChild(t){var e;const n=z.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)},sortNodePosition:e=>l&&t===e.treeType?l(z.getInstance(),e.getInstance()):0,getClosestVariantNode:()=>$?z:null==d?void 0:d.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>E,getStaticValue:t=>P[t],setStaticValue:(t,e)=>P[t]=e,getLatestValues:()=>P,setVisibility(t){z.isVisible!==t&&(z.isVisible=t,z.scheduleRender())},makeTargetAnimatable:(t,e=!0)=>o(z,t,h,e),measureViewportBox:()=>i(E,h),addValue(t,e){z.hasValue(t)&&z.removeValue(t),M.set(t,e),P[t]=e.get(),I(t,e)},removeValue(t){var e;M.delete(t),null===(e=R.get(t))||void 0===e||e(),R.delete(t),delete P[t],a(t,T)},hasValue:t=>M.has(t),getValue(t,e){let n=M.get(t);return void 0===n&&void 0!==e&&(n=$o(e),z.addValue(t,n)),n},forEachValue:t=>M.forEach(t),readValue:t=>void 0!==P[t]?P[t]:s(E,t,y),setBaseTarget(t,e){D[t]=e},getBaseTarget(t){if(n){const e=n(h,t);if(void 0!==e&&!W(e))return e}return D[t]},...V,build:()=>(j(),T),scheduleRender(){kn.render(O,!1,!0)},syncRender:O,setProps(t){(t.transformTemplate||h.transformTemplate)&&z.scheduleRender(),h=t,V.updatePropListeners(t),L=function(t,e,n){const{willChange:o}=e;for(const i in e){const r=e[i],s=n[i];if(W(r))t.addValue(i,r),Ko(o)&&o.add(i);else if(W(s))t.addValue(i,$o(r)),Ko(o)&&o.remove(i);else if(s!==r)if(t.hasValue(i)){const e=t.getValue(i);!e.hasAnimated&&e.set(r)}else{const e=t.getStaticValue(i);t.addValue(i,$o(void 0!==e?e:r))}}for(const o in n)void 0===e[o]&&t.removeValue(o);return e}(z,u(h),L)},getProps:()=>h,getVariant:t=>{var e;return null===(e=h.variants)||void 0===e?void 0:e[t]},getDefaultTransition:()=>h.transition,getTransformPagePoint:()=>h.transformPagePoint,getVariantContext(t=!1){if(t)return null==d?void 0:d.getVariantContext();if(!N){const t=(null==d?void 0:d.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}const e={};for(let t=0;t<er;t++){const n=tr[t],o=h[n];(b(o)||!1===o)&&(e[n]=o)}return e}};return z},tr=["initial",...ei],er=tr.length;function nr(t){return"string"==typeof t&&t.startsWith("var(--")}const or=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ir(t,e,n=1){const[o,i]=function(t){const e=or.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]}(t);if(!o)return;const r=window.getComputedStyle(e).getPropertyValue(o);return r?r.trim():nr(i)?ir(i,e,n+1):i}const rr=new Set(["width","height","top","left","right","bottom","x","y"]),sr=t=>rr.has(t),ar=(t,e)=>{t.set(e,!1),t.set(e)},lr=t=>t===et||t===at;var ur;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(ur||(ur={}));const cr=(t,e)=>parseFloat(t.split(", ")[e]),dr=(t,e)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const i=o.match(/^matrix3d\((.+)\)$/);if(i)return cr(i[1],e);{const e=o.match(/^matrix\((.+)\)$/);return e?cr(e[1],t):0}},hr=new Set(["x","y","z"]),pr=$.filter(t=>!hr.has(t));const mr={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:dr(4,13),y:dr(5,14)},fr=(t,e,n={},o={})=>{e={...e},o={...o};const i=Object.keys(e).filter(sr);let r=[],s=!1;const a=[];if(i.forEach(i=>{const l=t.getValue(i);if(!t.hasValue(i))return;let u=n[i],c=Wo(u);const d=e[i];let h;if(Qt(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=Wo(u);for(let n=e;n<t;n++)h?Wo(d[n]):h=Wo(d[n])}else h=Wo(d);if(c!==h)if(lr(c)&&lr(h)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[i]=parseFloat(d):Array.isArray(d)&&h===at&&(e[i]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==h?void 0:h.transform)&&(0===u||0===d)?0===u?l.set(h.transform(u)):e[i]=c.transform(d):(s||(r=function(t){const e=[];return pr.forEach(n=>{const o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),e.length&&t.syncRender(),e}(t),s=!0),a.push(i),o[i]=void 0!==o[i]?o[i]:e[i],ar(l,d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const o=e.measureViewportBox(),i=e.getInstance(),r=getComputedStyle(i),{display:s}=r,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{a[t]=mr[t](o,r)}),e.syncRender();const l=e.measureViewportBox();return n.forEach(n=>{const o=e.getValue(n);ar(o,a[n]),t[n]=mr[n](l,r)}),t})(e,t,a);return r.length&&r.forEach(([e,n])=>{t.getValue(e).set(n)}),t.syncRender(),f&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:o}}return{target:e,transitionEnd:o}};function gr(t,e,n,o){return(t=>Object.keys(t).some(sr))(e)?fr(t,e,n,o):{target:e,transitionEnd:o}}const vr=(t,e,n,o)=>{const i=function(t,{...e},n){const o=t.getInstance();if(!(o instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.forEachValue(t=>{const e=t.get();if(!nr(e))return;const n=ir(e,o);n&&t.set(n)});for(const t in e){const i=e[t];if(!nr(i))continue;const r=ir(i,o);r&&(e[t]=r,n&&void 0===n[t]&&(n[t]=i))}return{target:e,transitionEnd:n}}(t,e,o);return gr(t,e=i.target,n,o=i.transitionEnd)};const yr={treeType:"dom",readValueFromInstance(t,e){if(z.has(e)){const t=Eo(e);return t&&t.default||0}{const o=(n=t,window.getComputedStyle(n)),i=(G(e)?o.getPropertyValue(e):o[e])||0;return"string"==typeof i?i.trim():i}var n},sortNodePosition:(t,e)=>2&t.compareDocumentPosition(e)?1:-1,getBaseTarget(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:(t,{transformPagePoint:e})=>Hi(t,e),resetTransform(t,e,n){const{transformTemplate:o}=n;e.style.transform=o?o({},""):"none",t.scheduleRender()},restoreTransform(t,e){t.style.transform=e.style.transform},removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]},makeTargetAnimatable(t,{transition:e,transitionEnd:n,...o},{transformValues:i},r=!0){let s=function(t,e,n){var o;const i={};for(const r in t){const t=Zo(r,e);i[r]=void 0!==t?t:null===(o=n.getValue(r))||void 0===o?void 0:o.get()}return i}(o,e||{},t);if(i&&(n&&(n=i(n)),o&&(o=i(o)),s&&(s=i(s))),r){!function(t,e,n){var o,i;const r=Object.keys(e).filter(e=>!t.hasValue(e)),s=r.length;if(s)for(let a=0;a<s;a++){const s=r[a],l=e[s];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(o=n[s])&&void 0!==o?o:t.readValue(s))&&void 0!==i?i:e[s]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||Fo(u))?u=parseFloat(u):!Xo(u)&&St.test(l)&&(u=Vo(s,l)),t.addValue(s,$o(u)),void 0===n[s]&&(n[s]=u),t.setBaseTarget(s,u))}}(t,o,s);const e=vr(t,o,s,n);n=e.transitionEnd,o=e.target}return{transition:e,transitionEnd:n,...o}},scrapeMotionValuesFromProps:Kt,build(t,e,n,o,i){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),Rt(e,n,o,i.transformTemplate)},render:Gt},xr=Qi(yr),br=Qi({...yr,getBaseTarget:(t,e)=>t[e],readValueFromInstance(t,e){var n;return z.has(e)?(null===(n=Eo(e))||void 0===n?void 0:n.default)||0:(e=qt.has(e)?e:Xt(e),t.getAttribute(e))},scrapeMotionValuesFromProps:_t,build(t,e,n,o,i){zt(e,n,o,i.transformTemplate)},render:Zt}),wr=(t,e)=>B(t)?br(e,{enableHardwareAcceleration:!1}):xr(e,{enableHardwareAcceleration:!0});function Pr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Sr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!at.test(t))return t;t=parseFloat(t)}return`${Pr(t,e.target.x)}% ${Pr(t,e.target.y)}%`}},Ar={correct:(t,{treeScale:e,projectionDelta:n})=>{const o=t,i=t.includes("var("),r=[];i&&(t=t.replace(or,t=>(r.push(t),"_$css")));const s=St.parse(t);if(s.length>5)return o;const a=St.createTransformer(t),l="number"!=typeof s[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;s[0+l]/=u,s[1+l]/=c;const d=Ne(u,c,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);let h=a(s);if(i){let t=0;h=h.replace("_$css",()=>{const e=r[t];return t++,e})}return h}};class Tr extends e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;var r;r=Er,Object.assign(N,r),i&&(e.group&&e.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),R.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:o,isPresent:i}=this.props,r=n.projection;return r?(r.isPresent=i,o||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||kn.postRender(()=>{var t;(null===(t=r.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(o),(null==n?void 0:n.deregister)&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const Er={borderRadius:{...Sr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sr,borderTopRightRadius:Sr,borderBottomLeftRadius:Sr,borderBottomRightRadius:Sr,boxShadow:Ar},Vr={measureLayout:function(t){const[n,i]=po(),r=o(D);return e.createElement(Tr,{...t,layoutGroup:r,switchLayoutGroup:o(O),isPresent:n,safeToRemove:i})}};const Cr=["TopLeft","TopRight","BottomLeft","BottomRight"],Mr=Cr.length,Rr=t=>"string"==typeof t?parseFloat(t):t,Lr=t=>"number"==typeof t||at.test(t);function Dr(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}const kr=jr(0,.5,mn),Or=jr(.5,.95,ln);function jr(t,e,n){return o=>o<t?0:o>e?1:n(Be(t,e,o))}function Fr(t,e){t.min=e.min,t.max=e.max}function Ir(t,e){Fr(t.x,e.x),Fr(t.y,e.y)}function Ur(t,e,n,o,i){return t=Oi(t-=e,1/n,o),void 0!==i&&(t=Oi(t,1/i,o)),t}function Br(t,e,[n,o,i],r,s){!function(t,e=0,n=1,o=.5,i,r=t,s=t){if(st.test(e)){e=parseFloat(e);e=Ne(s.min,s.max,e/100)-s.min}if("number"!=typeof e)return;let a=Ne(r.min,r.max,o);t===r&&(a-=e),t.min=Ur(t.min,e,n,a,i),t.max=Ur(t.max,e,n,a,i)}(t,e[n],e[o],e[i],e.scale,r,s)}const Nr=["x","scaleX","originX"],$r=["y","scaleY","originY"];function zr(t,e,n,o){Br(t.x,e,Nr,null==n?void 0:n.x,null==o?void 0:o.x),Br(t.y,e,$r,null==n?void 0:n.y,null==o?void 0:o.y)}function Hr(t){return 0===t.translate&&1===t.scale}function Wr(t){return Hr(t.x)&&Hr(t.y)}function Yr(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Xr(t){return gi(t.x)/gi(t.y)}class Gr{constructor(){this.members=[]}add(t){Io(this.members,t),t.scheduleRender()}remove(t){if(Uo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,e&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,n,o,i,r;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(r=null===(o=t.resumingFrom)||void 0===o?void 0:(i=o.options).onExitComplete)||void 0===r||r.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qr(t,e,n){let o=`translate3d(${t.x.translate/e.x}px, ${t.y.translate/e.y}px, 0) `;if(o+=`scale(${1/e.x}, ${1/e.y}) `,n){const{rotate:t,rotateX:e,rotateY:i}=n;t&&(o+=`rotate(${t}deg) `),e&&(o+=`rotateX(${e}deg) `),i&&(o+=`rotateY(${i}deg) `)}return o+=`scale(${t.x.scale*e.x}, ${t.y.scale*e.y})`,"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===o?"none":o}const Zr=(t,e)=>t.depth-e.depth;class Kr{constructor(){this.children=[],this.isDirty=!1}add(t){Io(this.children,t),this.isDirty=!0}remove(t){Uo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zr),this.isDirty=!1,this.children.forEach(t)}}const _r=["","X","Y","Z"];function Jr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:o,resetTransform:i}){return class{constructor(t,n={},o=(null==e?void 0:e())){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(rs),this.nodes.forEach(ss)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=n,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Bo),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var o;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:i,layout:r,visualElement:s}=this.options;if(s&&!s.getInstance()&&s.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(r||i)&&(this.isLayoutDirty=!0),t){let n;const o=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,clearTimeout(n),n=window.setTimeout(o,250),R.hasAnimatedSinceResize&&(R.hasAnimatedSinceResize=!1,this.nodes.forEach(is))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:o})=>{var i,r,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(r=null!==(i=this.options.transition)&&void 0!==i?i:s.getDefaultTransition())&&void 0!==r?r:hs,{onLayoutAnimationStart:d,onLayoutAnimationComplete:h}=s.getProps(),p=!this.targetLayout||!Yr(this.targetLayout,o)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...Oo(c,"layout"),onPlay:d,onComplete:h};s.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||this.finishAnimation(),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=o})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,On.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(as))}willUpdate(t=!0){var e,n,o;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll()}const{layoutId:i,layout:r}=this.options;if(void 0===i&&!r)return;const s=null===(o=this.options.visualElement)||void 0===o?void 0:o.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ns);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ps),this.potentialNodes.clear()),this.nodes.forEach(os),this.nodes.forEach(Qr),this.nodes.forEach(ts),this.clearAllSnapshots(),jn.update(),jn.preRender(),jn.render())}clearAllSnapshots(){this.nodes.forEach(es),this.sharedNodes.forEach(ls)}scheduleUpdateProjection(){kn.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){kn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const t=this.measure(),e=this.removeTransform(this.removeElementScroll(t));fs(e),this.snapshot={measured:t,layout:e,latestValues:{}}}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const e=this.measure();fs(e);const n=this.layout;this.layout={measured:e,actual:this.removeElementScroll(e)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(t=this.options.visualElement)||void 0===t||t.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=n(this.instance))}resetTransform(){var t;if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Wr(this.projectionDelta),o=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,r=null==o?void 0:o(this.latestValues,""),s=r!==this.prevTransformTemplateValue;e&&(n||Di(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Ui(e.x,n.x),Ui(e.y,n.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Ir(e,t);for(let n=0;n<this.path.length;n++){const o=this.path[n],{scroll:i,options:r,isScrollRoot:s}=o;if(o!==this.root&&i&&r.layoutScroll){if(s){Ir(e,t);const{scroll:n}=this.root;n&&(Ui(e.x,-n.x),Ui(e.y,-n.y))}Ui(e.x,i.x),Ui(e.y,i.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Ir(n,t);for(let t=0;t<this.path.length;t++){const o=this.path[t];!e&&o.options.layoutScroll&&o.scroll&&o!==o.root&&zi(n,{x:-o.scroll.x,y:-o.scroll.y}),Di(o.latestValues)&&zi(n,o.latestValues)}return Di(this.latestValues)&&zi(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};Ir(n,t);for(let t=0;t<this.path.length;t++){const o=this.path[t];if(!o.instance)continue;if(!Di(o.latestValues))continue;Li(o.latestValues)&&o.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};Ir(i,o.measure()),zr(n,o.latestValues,null===(e=o.snapshot)||void 0===e?void 0:e.layout,i)}return Di(this.latestValues)&&zr(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const{layout:e,layoutId:n}=this.options;var o,i,r;this.layout&&(e||n)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Pi(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Ir(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,i=this.relativeTarget,r=this.relativeParent.target,bi(o.x,i.x,r.x),bi(o.y,i.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Ir(this.target,this.layout.actual),Ii(this.target,this.targetDelta)):Ir(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Pi(this.relativeTargetOrigin,this.target,this.relativeParent.target),Ir(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(this.parent&&!Di(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{layout:e,layoutId:n}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!e&&!n)return;const o=this.getLead();Ir(this.layoutCorrected,this.layout.actual),function(t,e,n,o=!1){var i,r;const s=n.length;if(!s)return;let a,l;e.x=e.y=1;for(let u=0;u<s;u++)a=n[u],l=a.projectionDelta,"contents"!==(null===(r=null===(i=a.instance)||void 0===i?void 0:i.style)||void 0===r?void 0:r.display)&&(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zi(t,{x:-a.scroll.x,y:-a.scroll.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,Ii(t,l)),o&&Di(a.latestValues)&&zi(t,a.latestValues))}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);const{target:i}=o;if(!i)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const r=this.treeScale.x,s=this.treeScale.y,a=this.projectionTransform;xi(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=qr(this.projectionDelta,this.treeScale),this.projectionTransform===a&&this.treeScale.x===r&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,o;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(o=this.getStack())||void 0===o||o.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n;const o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},r={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const a={x:{min:0,max:0},y:{min:0,max:0}},l=null==o?void 0:o.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,c=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(ds));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const o=e/1e3;var d,h,p,m;us(s.x,t.x,o),us(s.y,t.y,o),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(Pi(a,this.layout.actual,this.relativeParent.layout.actual),d=this.relativeTarget,h=this.relativeTargetOrigin,p=a,m=o,cs(d.x,h.x,p.x,m),cs(d.y,h.y,p.y,m)),l&&(this.animationValues=r,function(t,e,n,o,i,r){var s,a,l,u;i?(t.opacity=Ne(0,null!==(s=n.opacity)&&void 0!==s?s:1,kr(o)),t.opacityExit=Ne(null!==(a=e.opacity)&&void 0!==a?a:1,0,Or(o))):r&&(t.opacity=Ne(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,o));for(let i=0;i<Mr;i++){const r=`border${Cr[i]}Radius`;let s=Dr(e,r),a=Dr(n,r);if(void 0===s&&void 0===a)continue;s||(s=0),a||(a=0);0===s||0===a||Lr(s)===Lr(a)?(t[r]=Math.max(Ne(Rr(s),Rr(a),o),0),(st.test(a)||st.test(s))&&(t[r]+="%")):t[r]=a}(e.rotate||n.rotate)&&(t.rotate=Ne(e.rotate||0,n.rotate||0,o))}(r,i,this.latestValues,o,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=o},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(On.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kn.update(()=>{R.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const o=W(t)?t:$o(t);return jo("",o,e,n),{stop:()=>o.stop(),isAnimating:()=>o.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:o,latestValues:i}=t;if(e&&n&&o){if(this!==t&&this.layout&&o&&gs(this.options.animationType,this.layout.actual,o.actual)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=gi(this.layout.actual.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const o=gi(this.layout.actual.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}Ir(e,n),zi(e,i),xi(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){var n,o,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Gr);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(o=e.options.initialPromotionConfig)||void 0===o?void 0:o.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(o,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const n={};for(let o=0;o<_r.length;o++){const i="rotate"+_r[o];t.getStaticValue(i)&&(e=!0,n[i]=t.getStaticValue(i),t.setStaticValue(i,0))}if(e){null==t||t.syncRender();for(const e in n)t.setStaticValue(e,n[e]);t.scheduleRender()}}getProjectionStyles(t={}){var e,n,o;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=ee(t.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ee(t.pointerEvents)||""),this.hasProjected&&!Di(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=qr(this.projectionDeltaWithTransform,this.treeScale,a),r&&(i.transform=r(a,i.transform));const{x:l,y:u}=this.projectionDelta;i.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(o=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in N){if(void 0===a[t])continue;const{correct:e,applyTo:n}=N[t],o=e(a[t],s);if(n){const t=n.length;for(let e=0;e<t;e++)i[n[e]]=o}else i[t]=o}return this.options.layoutId&&(i.pointerEvents=s===this?ee(t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(ns),this.root.sharedNodes.clear()}}}function Qr(t){t.updateLayout()}function ts(t){var e,n,o;const i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{actual:e,measured:n}=t.layout,{animationType:o}=t.options;"size"===o?Ci(t=>{const n=i.isShared?i.measured[t]:i.layout[t],o=gi(n);n.min=e[t].min,n.max=n.min+o}):gs(o,i.layout,e)&&Ci(t=>{const n=i.isShared?i.measured[t]:i.layout[t],o=gi(e[t]);n.max=n.min+o});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};xi(r,e,i.layout);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?xi(s,t.applyTransform(n,!0),i.measured):xi(s,e,i.layout);const a=!Wr(r);let l=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){const{snapshot:n,layout:o}=t.relativeParent;if(n&&o){const t={x:{min:0,max:0},y:{min:0,max:0}};Pi(t,i.layout,n.layout);const r={x:{min:0,max:0},y:{min:0,max:0}};Pi(r,e,o.actual),Yr(t,r)||(l=!0)}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:s,layoutDelta:r,hasLayoutChanged:a,hasRelativeTargetChanged:l})}else t.isLead()&&(null===(o=(n=t.options).onExitComplete)||void 0===o||o.call(n));t.options.transition=void 0}function es(t){t.clearSnapshot()}function ns(t){t.clearMeasurements()}function os(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function is(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function rs(t){t.resolveTargetDelta()}function ss(t){t.calcProjection()}function as(t){t.resetRotation()}function ls(t){t.removeLeadSnapshot()}function us(t,e,n){t.translate=Ne(e.translate,0,n),t.scale=Ne(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function cs(t,e,n,o){t.min=Ne(e.min,n.min,o),t.max=Ne(e.max,n.max,o)}function ds(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const hs={duration:.45,ease:[.4,0,.1,1]};function ps(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const o=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);o&&t.mount(o,!0)}function ms(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function fs(t){ms(t.x),ms(t.y)}function gs(t,e,n){return"position"===t||"preserve-aspect"===t&&!function(t,e,n=.01){return Gn(t,e)<=n}(Xr(e),Xr(n))}const vs=Jr({attachResizeListener:(t,e)=>le(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ys={current:void 0},xs=Jr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ys.current){const t=new vs(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ys.current=t}return ys.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),bs={...li,...ho,...Gi,...Vr},ws=I((t,e)=>se(t,e,bs,wr,xs));function Ps(t){return j(se(t,{forwardMotionProps:!1},bs,wr,xs))}export{Ps as createDomMotionComponent,ws as motion};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},4881:(t,e,n)=>{n.d(e,{b8:()=>wt});var r=n(5163),o=n(9340),a=n(1698);const s=.001;function i({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,c;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let u=1-e;u=(0,a.u)(.05,1,u),t=(0,a.u)(.01,10,t/1e3),u<1?(i=e=>{const r=e*u,o=r*t,a=r-n,i=l(e,u),c=Math.exp(-o);return s-a/i*c},c=e=>{const r=e*u*t,o=r*n+n,a=Math.pow(u,2)*Math.pow(e,2)*t,c=Math.exp(-r),d=l(Math.pow(e,2),u);return(-i(e)+s>0?-1:1)*((o-a)*c)/d}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,c=e=>Math.exp(-e*t)*(t*t*(n-e)));const d=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,c,5/t);if(t*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(d,2)*r;return{stiffness:e,damping:2*u*Math.sqrt(r*e),duration:t}}}function l(t,e){return t*Math.sqrt(1-e*e)}const c=["duration","bounce"],u=["stiffness","damping","mass"];function d(t,e){return e.some((e=>void 0!==t[e]))}function p(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:a}=t,s=(0,r._T)(t,["from","to","restSpeed","restDelta"]);const p={done:!1,value:e};let{stiffness:m,damping:h,mass:v,velocity:g,duration:y,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!d(t,u)&&d(t,c)){const n=i(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(s),w=f,x=f;function O(){const t=g?-g/1e3:0,r=n-e,o=h/(2*Math.sqrt(m*v)),s=Math.sqrt(m/v)/1e3;if(void 0===a&&(a=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=l(s,o);w=a=>{const i=Math.exp(-o*s*a);return n-i*((t+o*s*r)/e*Math.sin(e*a)+r*Math.cos(e*a))},x=n=>{const a=Math.exp(-o*s*n);return o*s*a*(Math.sin(e*n)*(t+o*s*r)/e+r*Math.cos(e*n))-a*(Math.cos(e*n)*(t+o*s*r)-e*r*Math.sin(e*n))}}else if(1===o)w=e=>n-Math.exp(-s*e)*(r+(t+s*r)*e);else{const e=s*Math.sqrt(o*o-1);w=a=>{const i=Math.exp(-o*s*a),l=Math.min(e*a,300);return n-i*((t+o*s*r)*Math.sinh(l)+e*r*Math.cosh(l))/e}}}return O(),{next:t=>{const e=w(t);if(b)p.done=t>=y;else{const r=1e3*x(t),s=Math.abs(r)<=o,i=Math.abs(n-e)<=a;p.done=s&&i}return p.value=p.done?n:e,p},flipTarget:()=>{g=-g,[e,n]=[n,e],O()}}}p.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const f=t=>0;var m=n(1790),h=n(8481),v=n(9012),g=n(3203),y=n(7493);function b(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function w({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,a=0,s=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;o=b(i,r,t+1/3),a=b(i,r,t),s=b(i,r,t-1/3)}else o=a=s=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}const x=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},O=[v.$,g.m,y.J],A=t=>O.find((e=>e.test(t))),V=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,j=(t,e)=>{let n=A(t),r=A(e);(0,o.k)(!!n,V(t)),(0,o.k)(!!r,V(e));let a=n.parse(t),s=r.parse(e);n===y.J&&(a=w(a),n=g.m),r===y.J&&(s=w(s),r=g.m);const i=Object.assign({},a);return t=>{for(const e in i)"alpha"!==e&&(i[e]=x(a[e],s[e],t));return i.alpha=(0,h.C)(a.alpha,s.alpha,t),n.transform(i)}};var T=n(7576),C=n(6002),E=n(5091),S=n(934);function P(t,e){return(0,E.e)(t)?n=>(0,h.C)(t,e,n):T.$.test(t)?j(t,e):$(t,e)}const M=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>P(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},R=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=P(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function k(t){const e=C.P.parse(t),n=e.length;let r=0,o=0,a=0;for(let t=0;t<n;t++)r||"number"==typeof e[t]?r++:void 0!==e[t].hue?a++:o++;return{parsed:e,numNumbers:r,numRGB:o,numHSL:a}}const $=(t,e)=>{const n=C.P.createTransformer(e),r=k(t),a=k(e);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?(0,S.z)(M(r.parsed,a.parsed),n):((0,o.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},F=(t,e)=>n=>(0,h.C)(t,e,n);function I(t,e,n){const r=[],o=n||("number"==typeof(a=t[0])?F:"string"==typeof a?T.$.test(a)?j:$:Array.isArray(a)?M:"object"==typeof a?R:void 0);var a;const s=t.length-1;for(let n=0;n<s;n++){let a=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;a=(0,S.z)(t,a)}r.push(a)}return r}function D(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const i=t.length;(0,o.k)(i===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!r||!Array.isArray(r)||r.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[i-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const l=I(e,r,s),c=2===i?function([t,e],[n]){return r=>n((0,m.Y)(t,e,r))}(t,l):function(t,e){const n=t.length,r=n-1;return o=>{let a=0,s=!1;if(o<=t[0]?s=!0:o>=t[r]&&(a=r-1,s=!0),!s){let e=1;for(;e<n&&!(t[e]>o||e===r);e++);a=e-1}const i=(0,m.Y)(t[a],t[a+1],o);return e[a](i)}}(t,l);return n?e=>c((0,a.u)(t[0],t[i-1],e)):c}var B=n(6924);function L(t,e){return t.map((()=>e||B.mZ)).splice(0,t.length-1)}function N({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:t},s=Array.isArray(e)?e:[t,e],i=function(t,e){return t.map((t=>t*e))}(r&&r.length===s.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(s),o);function l(){return D(i,s,{ease:Array.isArray(n)?n:L(s,n)})}let c=l();return{next:t=>(a.value=c(t),a.done=t>=o,a),flipTarget:()=>{s.reverse(),c=l()}}}const Y={keyframes:N,spring:p,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const s={done:!1,value:e};let i=n*t;const l=e+i,c=void 0===a?l:a(l);return c!==l&&(i=c-e),{next:t=>{const e=-i*Math.exp(-t/r);return s.done=!(e>o||e<-o),s.value=s.done?c:c+e,s},flipTarget:()=>{}}}};var U=n(6162);function z(t,e,n=0){return t-e-n}const Z=t=>{const e=({delta:e})=>t(e);return{start:()=>U.ZP.update(e,!0),stop:()=>U.qY.update(e)}};function q(t){var e,n,{from:o,autoplay:a=!0,driver:s=Z,elapsed:i=0,repeat:l=0,repeatType:c="loop",repeatDelay:u=0,onPlay:d,onStop:f,onComplete:m,onRepeat:h,onUpdate:v}=t,g=(0,r._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,b,w,{to:x}=g,O=0,A=g.duration,V=!1,j=!0;const T=function(t){if(Array.isArray(t.to))return N;if(Y[t.type])return Y[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?N:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?p:N}(g);(null===(n=(e=T).needsInterpolation)||void 0===n?void 0:n.call(e,o,x))&&(w=D([0,100],[o,x],{clamp:!1}),o=0,x=100);const C=T(Object.assign(Object.assign({},g),{from:o,to:x}));function E(){O++,"reverse"===c?(j=O%2==0,i=function(t,e,n=0,r=!0){return r?z(e+-t,e,n):e-(t-e)+n}(i,A,u,j)):(i=z(i,A,u),"mirror"===c&&C.flipTarget()),V=!1,h&&h()}function S(t){if(j||(t=-t),i+=t,!V){const t=C.next(Math.max(0,i));b=t.value,w&&(b=w(b)),V=j?t.done:i<=0}null==v||v(b),V&&(0===O&&(null!=A||(A=i)),O<l?function(t,e,n,r){return r?t>=e+n:t<=-n}(i,A,u,j)&&E():(y.stop(),m&&m()))}return a&&(null==d||d(),y=s(S),y.start()),{stop:()=>{null==f||f(),y.stop()}}}var H=n(4060);var W=n(1818);const _=(t,e)=>1-3*e+3*t,X=(t,e)=>3*e-6*t,K=t=>3*t,J=(t,e,n)=>((_(e,n)*t+X(e,n))*t+K(e))*t,G=(t,e,n)=>3*_(e,n)*t*t+2*X(e,n)*t+K(e);const Q=.1;function tt(t,e,n,r){if(t===e&&n===r)return B.GE;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=J(e*Q,t,n);function a(e){let r=0,a=1;for(;10!==a&&o[a]<=e;++a)r+=Q;--a;const s=r+(e-o[a])/(o[a+1]-o[a])*Q,i=G(s,t,n);return i>=.001?function(t,e,n,r){for(let o=0;o<8;++o){const o=G(e,n,r);if(0===o)return e;e-=(J(e,n,r)-t)/o}return e}(e,s,t,n):0===i?s:function(t,e,n,r,o){let a,s,i=0;do{s=e+(n-e)/2,a=J(s,r,o)-t,a>0?n=s:e=s}while(Math.abs(a)>1e-7&&++i<10);return s}(e,r,r+Q,t,n)}return t=>0===t||1===t?t:J(a(t),e,r)}const et={linear:B.GE,easeIn:B.YQ,easeInOut:B.mZ,easeOut:B.Vv,circIn:B.Z7,circInOut:B.X7,circOut:B.Bn,backIn:B.G2,backInOut:B.XL,backOut:B.CG,anticipate:B.LU,bounceIn:B.h9,bounceInOut:B.yD,bounceOut:B.gJ},nt=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,a]=t;return tt(e,n,r,a)}return"string"==typeof t?((0,o.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t},rt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!C.P.test(e)||e.startsWith("url(")));var ot=n(2819);const at=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),st=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),it=()=>({type:"keyframes",ease:"linear",duration:.3}),lt=t=>({type:"keyframes",duration:.8,values:t}),ct={x:at,y:at,z:at,rotate:at,rotateX:at,rotateY:at,rotateZ:at,scaleX:st,scaleY:st,scale:st,opacity:it,backgroundColor:it,color:it,default:st};var ut=n(6914);const dt=!1;var pt=n(7048);let ft=!1;function mt(t){var{ease:e,times:n,yoyo:a,flip:s,loop:i}=t,l=(0,r._T)(t,["ease","times","yoyo","flip","loop"]);const c=Object.assign({},l);return n&&(c.offset=n),l.duration&&(c.duration=(0,W.w)(l.duration)),l.repeatDelay&&(c.repeatDelay=(0,W.w)(l.repeatDelay)),e&&(c.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(nt):nt(e)),"tween"===l.type&&(c.type="keyframes"),(a||i||s)&&((0,o.K)(!ft,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ft=!0,a?c.repeatType="reverse":i?c.repeatType="loop":s&&(c.repeatType="mirror"),c.repeat=i||a||s||l.repeat),"spring"!==l.type&&(c.type="keyframes"),c}function ht(t,e,n){var o;return Array.isArray(e.to)&&(null!==(o=t.duration)&&void 0!==o||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function(t){var{when:e,delay:n,delayChildren:o,staggerChildren:a,staggerDirection:s,repeat:i,repeatType:l,repeatDelay:c,from:u}=t,d=(0,r._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(d).length}(t)||(t=Object.assign(Object.assign({},t),((t,e)=>{let n;return n=(0,ot.C)(e)?lt:ct[t]||ct.default,Object.assign({to:e},n(e))})(n,e.to))),Object.assign(Object.assign({},e),mt(t))}function vt(t,e,n,r,a){var s;const i=bt(r,t);let l=null!==(s=i.from)&&void 0!==s?s:e.get();const c=rt(t,n);"none"===l&&c&&"string"==typeof n?l=(0,ut.T)(t,n):gt(l)&&"string"==typeof n?l=yt(n):!Array.isArray(n)&>(n)&&"string"==typeof l&&(n=yt(l));const u=rt(t,l);return(0,o.K)(u===c,`You are trying to animate ${t} from "${l}" to "${n}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${n} via the \`style\` property.`),u&&c&&!1!==i.type?function(){const r={from:l,to:n,velocity:e.getVelocity(),onComplete:a,onUpdate:t=>e.set(t)};return"inertia"===i.type||"decay"===i.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:s=500,bounceDamping:i=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function h(t){return void 0!==n&&t<n||void 0!==r&&t>r}function v(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function g(t){null==m||m.stop(),m=q(Object.assign(Object.assign({},t),{driver:u,onUpdate:e=>{var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:p,onStop:f}))}function y(t){g(Object.assign({type:"spring",stiffness:s,damping:i,restDelta:l},t))}if(h(t))y({from:t,velocity:e,to:v(t)});else{let r=o*e+t;void 0!==c&&(r=c(r));const s=v(r),i=s===n?-1:1;let u,d;const p=t=>{u=d,d=t,e=(0,H.R)(t-u,(0,U.$B)().delta),(1===i&&t>s||-1===i&&t<s)&&y({from:t,to:s,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Object.assign(Object.assign({},r),i)):q(Object.assign(Object.assign({},ht(i,r,t)),{onUpdate:t=>{var e;r.onUpdate(t),null===(e=i.onUpdate)||void 0===e||e.call(i,t)},onComplete:()=>{var t;r.onComplete(),null===(t=i.onComplete)||void 0===t||t.call(i)}}))}:function(){var t,r;const o=(0,pt.Y)(n);return e.set(o),a(),null===(t=null==i?void 0:i.onUpdate)||void 0===t||t.call(i,o),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:()=>{}}}}function gt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function yt(t){return"number"==typeof t?0:(0,ut.T)("",t)}function bt(t,e){return t[e]||t.default||t}function wt(t,e,n,r={}){return dt&&(r={type:!1}),e.start((o=>{let a,s;const i=vt(t,e,n,r,o),l=function(t,e){var n,r;return null!==(r=null!==(n=(bt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),c=()=>s=i();return l?a=window.setTimeout(c,(0,W.w)(l)):c(),()=>{clearTimeout(a),null==s||s.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>a});var r=n(8370),o=n(7866);function a(){const t=(0,r.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:a}=t,s=(0,r.useId)();(0,r.useEffect)((()=>a(s)),[]);return!e&&n?[!1,()=>null==n?void 0:n(s)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(8370);const o=(0,r.createContext)(null)},409:(t,e,n)=>{n.d(e,{qT:()=>l});var r=n(3541);const o={pageX:0,pageY:0};function a(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||o;return{x:n[e+"X"],y:n[e+"Y"]}}function s(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function i(t,e="page"){return{point:(0,r.z)(t)?a(t,e):s(t,e)}}const l=(t,e=!1)=>{const n=e=>t(e,i(e));return e?(r=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&r(t)}):n;var r}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>a});var r=n(8370);function o(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function a(t,e,n,a){(0,r.useEffect)((()=>{const r=t.current;if(n&&r)return o(r,e,n,a)}),[t,e,n,a])}},1395:(t,e,n)=>{n.d(e,{a:()=>c,m:()=>u});var r=n(1876),o=n(409),a=n(3093);const s={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},i={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function l(t){return a.j&&null===window.onpointerdown?t:a.j&&null===window.ontouchstart?i[t]:a.j&&null===window.onmousedown?s[t]:t}function c(t,e,n,a){return(0,r.E)(t,l(e),(0,o.qT)(n,"pointerdown"===e),a)}function u(t,e,n,a){return(0,r.p)(t,l(e),n&&(0,o.qT)(n,"pointerdown"===e),a)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>s});const o=r("dragHorizontal"),a=r("dragVertical");function s(){const t=function(t){let e=!1;if("y"===t)e=a();else if("x"===t)e=o();else{const t=o(),n=a();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function r(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>r,z:()=>o})},6295:(t,e,n)=>{n.d(e,{x:()=>r});const r=t=>e=>(t(e),null)},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>o});var r=n(483);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>l});var r=n(5163),o=n(9340);function a(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i(t,e,n=1){(0,o.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,l]=function(t){const e=s.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const c=window.getComputedStyle(e).getPropertyValue(r);return c?c.trim():a(l)?i(l,e,n+1):l}function l(t,e,n){var o,s=(0,r._T)(e,[]);const l=t.getInstance();if(!(l instanceof Element))return{target:s,transitionEnd:n};n&&(n=Object.assign({},n)),t.forEachValue((t=>{const e=t.get();if(!a(e))return;const n=i(e,l);n&&t.set(n)}));for(const t in s){const e=s[t];if(!a(e))continue;const r=i(e,l);r&&(s[t]=r,n&&(null!==(o=n[t])&&void 0!==o||(n[t]=e)))}return{target:s,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>s});var r=n(9500),o=n(6002),a=n(7557);function s(t,e){var n;let s=(0,a.A)(t);return s!==r.h&&(s=o.P),null===(n=s.getAnimatableNone)||void 0===n?void 0:n.call(s,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7576),o=n(9500),a=n(4923);const s=Object.assign(Object.assign({},a.j),{color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:o.h,WebkitFilter:o.h}),i=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>s});var r=n(155),o=n(1513),a=n(6933);const s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:a.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:a.e}},6933:(t,e,n)=>{n.d(e,{e:()=>o});var r=n(1513);const o=Object.assign(Object.assign({},r.Rx),{transform:Math.round})},5264:(t,e,n)=>{n.d(e,{Ee:()=>c,Gl:()=>o,_c:()=>i,s3:()=>a});const r=["","X","Y","Z"],o=["transformPerspective","x","y","z"];function a(t,e){return o.indexOf(t)-o.indexOf(e)}["translate","scale","rotate","skew"].forEach((t=>r.forEach((e=>o.push(t+e)))));const s=new Set(o);function i(t){return s.has(t)}const l=new Set(["originX","originY","originZ"]);function c(t){return l.has(t)}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>r})},3093:(t,e,n)=>{n.d(e,{j:()=>r});const r="undefined"!=typeof document},7048:(t,e,n)=>{n.d(e,{Y:()=>o});var r=n(2819);const o=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var r=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var r=n(8370);function o(t){return(0,r.useEffect)((()=>()=>t()),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>i});var r=n(6162),o=n(4060),a=n(1065);class s{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new a.L,this.velocityUpdateSubscribers=new a.L,this.renderSubscribers=new a.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,r.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,r.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>r.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function i(t){return new s(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>Boolean(null!==t&&"object"==typeof t&&t.getVelocity)},5163:(t,e,n)=>{n.d(e,{_T:()=>r});function r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}Object.create;Object.create},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>f,ZP:()=>y,$B:()=>g});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),a="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let s=!0,i=!1,l=!1;const c={delta:0,timestamp:0},u=["read","update","preRender","render","postRender"],d=u.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,a=!1;const s=new WeakSet,i={schedule:(t,a=!1,i=!1)=>{const l=i&&o,c=l?e:n;return a&&s.add(t),-1===c.indexOf(t)&&(c.push(t),l&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:l=>{if(o)a=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(l),s.has(r)&&(i.schedule(r),t())}o=!1,a&&(a=!1,i.process(l))}}};return i}((()=>i=!0)),t)),{}),p=u.reduce(((t,e)=>{const n=d[e];return t[e]=(t,e=!1,r=!1)=>(i||v(),n.schedule(t,e,r)),t}),{}),f=u.reduce(((t,e)=>(t[e]=d[e].cancel,t)),{}),m=(u.reduce(((t,e)=>(t[e]=()=>d[e].process(c),t)),{}),t=>d[t].process(c)),h=t=>{i=!1,c.delta=s?r:Math.max(Math.min(t-c.timestamp,40),1),c.timestamp=t,l=!0,u.forEach(m),l=!1,i&&(s=!1,a(h))},v=()=>{i=!0,s=!0,l||a(h)},g=()=>c,y=p},6924:(t,e,n)=>{n.d(e,{LU:()=>g,G2:()=>m,XL:()=>v,CG:()=>h,h9:()=>b,yD:()=>w,gJ:()=>y,Z7:()=>d,X7:()=>f,Bn:()=>p,YQ:()=>i,mZ:()=>u,Vv:()=>c,GE:()=>s});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,a=t=>e=>e*e*((t+1)*e-t),s=t=>t,i=(l=2,t=>Math.pow(t,l));var l;const c=r(i),u=o(i),d=t=>1-Math.sin(Math.acos(t)),p=r(d),f=o(p),m=a(1.525),h=r(m),v=o(m),g=(t=>{const e=a(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},b=r(y),w=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},1698:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},5091:(t,e,n)=>{n.d(e,{e:()=>r});const r=t=>"number"==typeof t},8481:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},934:(t,e,n)=>{n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},1790:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},4060:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},9012:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>i});var r=n(1513),o=n(155),a=n(5757),s=n(1552);const i={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,a.Nw)(e))+", "+o.aQ.transform((0,a.Nw)(n))+", "+(0,a.Nw)(r.Fq.transform(s))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>i});var r=n(5757),o=n(9012),a=n(7493),s=n(3203);const i={test:t=>s.m.test(t)||o.$.test(t)||a.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):a.J.test(t)?a.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?s.m.transform(t):a.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>l});var r=n(1513),o=n(5757),a=n(1552);const s=(0,o.uZ)(0,255),i=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(s(t))}),l={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:a=1})=>"rgba("+i.transform(t)+", "+i.transform(e)+", "+i.transform(n)+", "+(0,o.Nw)(r.Fq.transform(a))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>a,i:()=>o});var r=n(5757);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),a=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[a,s,i,l]=o.match(r.KP);return{[t]:parseFloat(a),[e]:parseFloat(s),[n]:parseFloat(i),alpha:void 0!==l?parseFloat(l):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>l});var r=n(6002),o=n(5757);const a=new Set(["brightness","contrast","saturate","opacity"]);function s(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const s=n.replace(r,"");let i=a.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+s+")"}const i=/([a-z-]*)\(.*?\)/g,l=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(i);return e?e.map(s).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>p});var r=n(7576),o=n(1513),a=n(5757);const s="${c}",i="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const l=t.match(a.dA);l&&(n=l.length,t=t.replace(a.dA,s),e.push(...l.map(r.$.parse)));const c=t.match(a.KP);return c&&(t=t.replace(a.KP,i),e.push(...c.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function c(t){return l(t).values}function u(t){const{values:e,numColors:n,tokenised:o}=l(t),c=e.length;return t=>{let e=o;for(let o=0;o<c;o++)e=e.replace(o<n?s:i,o<n?r.$.transform(t[o]):(0,a.Nw)(t[o]));return e}}const d=t=>"number"==typeof t?0:t;const p={test:function(t){var e,n,r,o;return isNaN(t)&&(0,a.HD)(t)&&(null!==(n=null===(e=t.match(a.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(a.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:c,createTransformer:u,getAnimatableNone:function(t){const e=c(t);return u(t)(e.map(d))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>a,Rx:()=>o,bA:()=>s});var r=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},a=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),s=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>u,RW:()=>a,aQ:()=>s,px:()=>i,vh:()=>l,vw:()=>c});var r=n(5757);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),a=o("deg"),s=o("%"),i=o("px"),l=o("vh"),c=o("vw"),u=Object.assign(Object.assign({},s),{parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>l,KP:()=>a,Nw:()=>o,dA:()=>s,mj:()=>i,uZ:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,a=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function l(t){return"string"==typeof t}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370);function e(t){return"object"==typeof t&&"function"==typeof t.start}var r=n(1930),o=n(7866),a=n(5163),s=n(2819);function i(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var l=n(4881),c=n(6002);const u=t=>/^0[^.\s]+$/.test(t);var d=n(7048),p=n(1421),f=n(6914),m=n(7576),h=n(1513),v=n(155);const g=t=>e=>e.test(t),y=[h.Rx,v.px,v.aQ,v.RW,v.vw,v.vh,{test:t=>"auto"===t,parse:t=>t}],b=t=>y.find(g(t)),w=[...y,m.$,c.P],x=t=>w.find(g(t));function O(t){return Array.isArray(t)}function A(t){return"string"==typeof t||O(t)}function V(t,e,n){const r=t.getProps();return function(t,e,n,r={},o={}){var a;return"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),"string"==typeof e&&(e=null===(a=t.variants)||void 0===a?void 0:a[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),e}(r,e,null!=n?n:r.custom,function(t){const e={};return t.forEachValue(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.forEachValue(((t,n)=>e[n]=t.getVelocity())),e}(t))}function j(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||A(t.initial)||A(t.animate)||A(t.whileHover)||A(t.whileDrag)||A(t.whileTap)||A(t.whileFocus)||A(t.exit)}function T(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.B)(n))}function C(t,e){const n=V(t,e);let r=n?t.makeTargetAnimatable(n,!1):{},{transitionEnd:o={},transition:s={}}=r,i=(0,a._T)(r,["transitionEnd","transition"]);i=Object.assign(Object.assign({},i),o);for(const e in i){T(t,e,(0,d.Y)(i[e]))}}function E(t,e){if(!e)return;return(e[t]||e.default||e).from}var S=n(5264),P=n(7846);function M(t){return Boolean((0,P.i)(t)&&t.add)}function R(t,e,n={}){var r;const o=V(t,e,n.custom);let{transition:a=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const s=o?()=>k(t,o,n):()=>Promise.resolve(),i=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:i}=a;return function(t,e,n=0,r=0,o=1,a){const s=[],i=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>i-t*r;return Array.from(t.variantChildren).sort($).forEach(((t,r)=>{s.push(R(t,e,Object.assign(Object.assign({},a),{delay:n+l(r)})).then((()=>t.notifyAnimationComplete(e))))})),Promise.all(s)}(t,e,o+r,s,i,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[t,e]="beforeChildren"===l?[s,i]:[i,s];return t().then(e)}return Promise.all([s(),i(n.delay)])}function k(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var s;let i=t.makeTargetAnimatable(e),{transition:c=t.getDefaultTransition(),transitionEnd:u}=i,d=(0,a._T)(i,["transition","transitionEnd"]);const p=t.getValue("willChange");r&&(c=r);const f=[],m=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in d){const r=t.getValue(e),o=d[e];if(!r||void 0===o||m&&F(m,e))continue;let a=Object.assign({delay:n},c);t.shouldReduceMotion&&(0,S._c)(e)&&(a=Object.assign(Object.assign({},a),{type:!1,delay:0}));let s=(0,l.b8)(e,r,o,a);M(p)&&(p.add(e),s=s.then((()=>p.remove(e)))),f.push(s)}return Promise.all(f).then((()=>{u&&C(t,u)}))}function $(t,e){return t.sortNodePosition(e)}function F({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}var I=n(7921);const D=[I.r.Animate,I.r.InView,I.r.Focus,I.r.Hover,I.r.Tap,I.r.Drag,I.r.Exit],B=[...D].reverse(),L=D.length;function N(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notifyAnimationStart(e),Array.isArray(e)){const o=e.map((e=>R(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=R(t,e,n);else{const o="function"==typeof e?V(t,e,n.custom):e;r=k(t,o,n)}return r.then((()=>t.notifyAnimationComplete(e)))}(t,e,n))))}function Y(t){let n=N(t);const r={[I.r.Animate]:z(!0),[I.r.InView]:z(),[I.r.Hover]:z(),[I.r.Tap]:z(),[I.r.Drag]:z(),[I.r.Focus]:z(),[I.r.Exit]:z()};let o=!0;const l=(e,n)=>{const r=V(t,n);if(r){const{transition:t,transitionEnd:n}=r,o=(0,a._T)(r,["transition","transitionEnd"]);e=Object.assign(Object.assign(Object.assign({},e),o),n)}return e};function c(a,c){var u;const d=t.getProps(),p=t.getVariantContext(!0)||{},f=[],m=new Set;let h={},v=1/0;for(let n=0;n<L;n++){const g=B[n],y=r[g],b=null!==(u=d[g])&&void 0!==u?u:p[g],w=A(b),x=g===c?y.isActive:null;!1===x&&(v=n);let O=b===p[g]&&b!==d[g]&&w;if(O&&o&&t.manuallyAnimateOnMount&&(O=!1),y.protectedKeys=Object.assign({},h),!y.isActive&&null===x||!b&&!y.prevProp||e(b)||"boolean"==typeof b)continue;const V=U(y.prevProp,b);let j=V||g===c&&y.isActive&&!O&&w||n>v&&w;const T=Array.isArray(b)?b:[b];let C=T.reduce(l,{});!1===x&&(C={});const{prevResolvedValues:E={}}=y,S=Object.assign(Object.assign({},E),C),P=t=>{j=!0,m.delete(t),y.needsAnimating[t]=!0};for(const t in S){const e=C[t],n=E[t];h.hasOwnProperty(t)||(e!==n?(0,s.C)(e)&&(0,s.C)(n)?!i(e,n)||V?P(t):y.protectedKeys[t]=!0:void 0!==e?P(t):m.add(t):void 0!==e&&m.has(t)?P(t):y.protectedKeys[t]=!0)}y.prevProp=b,y.prevResolvedValues=C,y.isActive&&(h=Object.assign(Object.assign({},h),C)),o&&t.blockInitialAnimation&&(j=!1),j&&!O&&f.push(...T.map((t=>({animation:t,options:Object.assign({type:g},a)}))))}if(m.size){const e={};m.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),f.push({animation:e})}let g=Boolean(f.length);return o&&!1===d.initial&&!t.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(f):Promise.resolve()}return{animateChanges:c,setActive:function(e,n,o){var a;if(r[e].isActive===n)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n;const s=c(o,e);for(const t in r)r[t].protectedKeys={};return s},setAnimateFunction:function(e){n=e(t)},getState:()=>r}}function U(t,e){return"string"==typeof e?e!==t:!!O(e)&&!i(e,t)}function z(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Z=n(6295);const q={animation:(0,Z.x)((({visualElement:n,animate:r})=>{n.animationState||(n.animationState=Y(n)),e(r)&&(0,t.useEffect)((()=>r.subscribe(n)),[r])})),exit:(0,Z.x)((e=>{const{custom:n,visualElement:a}=e,[s,i]=(0,r.oO)(),l=(0,t.useContext)(o.O);(0,t.useEffect)((()=>{var t,e;a.isPresent=s;const r=null===(t=a.animationState)||void 0===t?void 0:t.setActive(I.r.Exit,!s,{custom:null!==(e=null==l?void 0:l.custom)&&void 0!==e?e:n});!s&&(null==r||r.then(i))}),[s])}))};var H=n(1876);var W=n(3541),_=n(1395),X=n(5856);function K(t,e,n){return(r,o)=>{var a;(0,W.N)(r)&&!(0,X.gD)()&&(null===(a=t.animationState)||void 0===a||a.setActive(I.r.Hover,e),null==n||n(r,o))}}const J=(t,e)=>!!e&&(t===e||J(t,e.parentElement));var G=n(9531),Q=n(934);const tt=("undefined"==typeof process||process.env,"production"),et=new Set;const nt=new WeakMap,rt=new WeakMap,ot=t=>{var e;null===(e=nt.get(t.target))||void 0===e||e(t)},at=t=>{t.forEach(ot)};function st(t,e,n){const r=function(t){var{root:e}=t,n=(0,a._T)(t,["root"]);const r=e||document;rt.has(r)||rt.set(r,{});const o=rt.get(r),s=JSON.stringify(n);return o[s]||(o[s]=new IntersectionObserver(at,Object.assign({root:e},n))),o[s]}(e);return nt.set(t,n),r.observe(t),()=>{nt.delete(t),r.unobserve(t)}}const it={some:0,all:1};function lt(e,n,r,{root:o,margin:a,amount:s="some",once:i}){(0,t.useEffect)((()=>{if(!e)return;const t={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:it[s]};return st(r.getInstance(),t,(t=>{var e;const{isIntersecting:o}=t;if(n.isInView===o)return;if(n.isInView=o,i&&!o&&n.hasEnteredView)return;o&&(n.hasEnteredView=!0),null===(e=r.animationState)||void 0===e||e.setActive(I.r.InView,o);const a=r.getProps(),s=o?a.onViewportEnter:a.onViewportLeave;null==s||s(t)}))}),[e,o,a,s])}function ct(e,n,r,{fallback:o=!0}){(0,t.useEffect)((()=>{var t,a;e&&o&&("production"!==tt&&(t="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||et.has(t)||(console.warn(t),a&&console.warn(a),et.add(t))),requestAnimationFrame((()=>{var t;n.hasEnteredView=!0;const{onViewportEnter:e}=r.getProps();null==e||e(null),null===(t=r.animationState)||void 0===t||t.setActive(I.r.InView,!0)})))}),[e])}const ut={inView:(0,Z.x)((function({visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:o,viewport:a={}}){const s=(0,t.useRef)({hasEnteredView:!1,isInView:!1});let i=Boolean(n||r||o);a.once&&s.current.hasEnteredView&&(i=!1),("undefined"==typeof IntersectionObserver?ct:lt)(i,s.current,e,a)})),tap:(0,Z.x)((function({onTap:e,onTapStart:n,onTapCancel:r,whileTap:o,visualElement:a}){const s=e||n||r||o,i=(0,t.useRef)(!1),l=(0,t.useRef)(null),c={passive:!(n||e||r||m)};function u(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}function d(){var t;return u(),i.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(I.r.Tap,!1),!(0,X.gD)()}function p(t,n){d()&&(J(a.getInstance(),t.target)?null==e||e(t,n):null==r||r(t,n))}function f(t,e){d()&&(null==r||r(t,e))}function m(t,e){var r;u(),i.current||(i.current=!0,l.current=(0,Q.z)((0,_.a)(window,"pointerup",p,c),(0,_.a)(window,"pointercancel",f,c)),null===(r=a.animationState)||void 0===r||r.setActive(I.r.Tap,!0),null==n||n(t,e))}(0,_.m)(a,"pointerdown",s?m:void 0,c),(0,G.z)(u)})),focus:(0,Z.x)((function({whileFocus:t,visualElement:e}){(0,H.p)(e,"focus",t?()=>{var t;null===(t=e.animationState)||void 0===t||t.setActive(I.r.Focus,!0)}:void 0),(0,H.p)(e,"blur",t?()=>{var t;null===(t=e.animationState)||void 0===t||t.setActive(I.r.Focus,!1)}:void 0)})),hover:(0,Z.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:r}){(0,_.m)(r,"pointerenter",t||n?K(r,!0,t):void 0,{passive:!t}),(0,_.m)(r,"pointerleave",e||n?K(r,!1,e):void 0,{passive:!e})}))};var dt=n(6162),pt=n(1065);const ft=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];const mt=({treeType:t="",build:e,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:o,render:s,readValueFromInstance:i,removeValueFromRenderState:l,sortNodePosition:c,scrapeMotionValuesFromProps:u})=>({parent:d,props:f,presenceId:m,blockInitialAnimation:h,visualState:v,shouldReduceMotion:g},y={})=>{let b=!1;const{latestValues:w,renderState:x}=v;let O;const V=function(){const t=ft.map((()=>new pt.L)),e={},n={clearAllListeners:()=>t.forEach((t=>t.clear())),updatePropListeners:t=>{ft.forEach((r=>{var o;const a="on"+r,s=t[a];null===(o=e[r])||void 0===o||o.call(e),s&&(e[r]=n[a](s))}))}};return t.forEach(((t,e)=>{n["on"+ft[e]]=e=>t.add(e),n["notify"+ft[e]]=(...e)=>t.notify(...e)})),n}(),T=new Map,C=new Map;let E={};const S=Object.assign({},w);let R;function k(){O&&b&&($(),s(O,x,f.style,U.projection))}function $(){e(U,x,w,y,f)}function F(){V.notifyUpdate(w)}function I(t,e){const n=e.onChange((e=>{w[t]=e,f.onUpdate&&dt.ZP.update(F,!1,!0)})),r=e.onRenderRequest(U.scheduleRender);C.set(t,(()=>{n(),r()}))}const D=u(f),{willChange:B}=D,L=(0,a._T)(D,["willChange"]);for(const t in L){const e=L[t];void 0!==w[t]&&(0,P.i)(e)&&(e.set(w[t],!1),M(B)&&B.add(t))}const N=j(f),Y=function(t){return Boolean(j(t)||t.variants)}(f),U=Object.assign(Object.assign({treeType:t,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:Y?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:h,isMounted:()=>Boolean(O),mount(t){b=!0,O=U.current=t,U.projection&&U.projection.mount(t),Y&&d&&!N&&(R=null==d?void 0:d.addVariantChild(U)),T.forEach(((t,e)=>I(e,t))),null==d||d.children.add(U),U.setProps(f)},unmount(){var t;null===(t=U.projection)||void 0===t||t.unmount(),dt.qY.update(F),dt.qY.render(k),C.forEach((t=>t())),null==R||R(),null==d||d.children.delete(U),V.clearAllListeners(),O=void 0,b=!1},addVariantChild(t){var e;const n=U.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)},sortNodePosition:e=>c&&t===e.treeType?c(U.getInstance(),e.getInstance()):0,getClosestVariantNode:()=>Y?U:null==d?void 0:d.getClosestVariantNode(),getLayoutId:()=>f.layoutId,getInstance:()=>O,getStaticValue:t=>w[t],setStaticValue:(t,e)=>w[t]=e,getLatestValues:()=>w,setVisibility(t){U.isVisible!==t&&(U.isVisible=t,U.scheduleRender())},makeTargetAnimatable:(t,e=!0)=>r(U,t,f,e),measureViewportBox:()=>o(O,f),addValue(t,e){U.hasValue(t)&&U.removeValue(t),T.set(t,e),w[t]=e.get(),I(t,e)},removeValue(t){var e;T.delete(t),null===(e=C.get(t))||void 0===e||e(),C.delete(t),delete w[t],l(t,x)},hasValue:t=>T.has(t),getValue(t,e){let n=T.get(t);return void 0===n&&void 0!==e&&(n=(0,p.B)(e),U.addValue(t,n)),n},forEachValue:t=>T.forEach(t),readValue:t=>{var e;return null!==(e=w[t])&&void 0!==e?e:i(O,t,y)},setBaseTarget(t,e){S[t]=e},getBaseTarget(t){if(n){const e=n(f,t);if(void 0!==e&&!(0,P.i)(e))return e}return S[t]}},V),{build:()=>($(),x),scheduleRender(){dt.ZP.render(k,!1,!0)},syncRender:k,setProps(t){(t.transformTemplate||f.transformTemplate)&&U.scheduleRender(),f=t,V.updatePropListeners(t),E=function(t,e,n){var r;const{willChange:o}=e;for(const a in e){const s=e[a],i=n[a];if((0,P.i)(s))t.addValue(a,s),M(o)&&o.add(a);else if((0,P.i)(i))t.addValue(a,(0,p.B)(s)),M(o)&&o.remove(a);else if(i!==s)if(t.hasValue(a)){const e=t.getValue(a);!e.hasAnimated&&e.set(s)}else t.addValue(a,(0,p.B)(null!==(r=t.getStaticValue(a))&&void 0!==r?r:s))}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(U,u(f),E)},getProps:()=>f,getVariant:t=>{var e;return null===(e=f.variants)||void 0===e?void 0:e[t]},getDefaultTransition:()=>f.transition,getTransformPagePoint:()=>f.transformPagePoint,getVariantContext(t=!1){if(t)return null==d?void 0:d.getVariantContext();if(!N){const t=(null==d?void 0:d.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}const e={};for(let t=0;t<vt;t++){const n=ht[t],r=f[n];(A(r)||!1===r)&&(e[n]=r)}return e}});return U},ht=["initial",...D],vt=ht.length,gt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function yt(t){return t.startsWith("--")}const bt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var wt=n(4923);function xt(t,e,n,r){var o;const{style:a,vars:s,transform:i,transformKeys:l,transformOrigin:c}=t;l.length=0;let u=!1,d=!1,p=!0;for(const t in e){const n=e[t];if(yt(t)){s[t]=n;continue}const r=wt.j[t],f=bt(n,r);if((0,S._c)(t)){if(u=!0,i[t]=f,l.push(t),!p)continue;n!==(null!==(o=r.default)&&void 0!==o?o:0)&&(p=!1)}else(0,S.Ee)(t)?(c[t]=f,d=!0):a[t]=f}u?a.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let s="";e.sort(S.s3);let i=!1;const l=e.length;for(let n=0;n<l;n++){const r=e[n];s+=`${gt[r]||r}(${t[r]}) `,"z"===r&&(i=!0)}return!i&&n&&(s+="translateZ(0)"),s=s.trim(),a?s=a(t,o?"":s):r&&o&&(s="none"),s}(t,n,p,r):r?a.transform=r({},""):!e.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function({originX:t="50%",originY:e="50%",originZ:n=0}){return`${t} ${e} ${n}`}(c))}var Ot=n(6978),At=n(9340),Vt=n(3093);const jt=new Set(["width","height","top","left","right","bottom","x","y"]),Tt=t=>jt.has(t),Ct=(t,e)=>{t.set(e,!1),t.set(e)},Et=t=>t===h.Rx||t===v.px;var St;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(St||(St={}));const Pt=(t,e)=>parseFloat(t.split(", ")[e]),Mt=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Pt(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Pt(e[1],t):0}},Rt=new Set(["x","y","z"]),kt=S.Gl.filter((t=>!Rt.has(t)));const $t={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Mt(4,13),y:Mt(5,14)},Ft=(t,e,n={},r={})=>{e=Object.assign({},e),r=Object.assign({},r);const o=Object.keys(e).filter(Tt);let a=[],i=!1;const l=[];if(o.forEach((o=>{const c=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],d=b(u);const p=e[o];let f;if((0,s.C)(p)){const t=p.length,e=null===p[0]?1:0;u=p[e],d=b(u);for(let n=e;n<t;n++)f?(0,At.k)(b(p[n])===f,"All keyframes must be of the same type"):(f=b(p[n]),(0,At.k)(f===d||Et(d)&&Et(f),"Keyframes must be of the same dimension as the current value"))}else f=b(p);if(d!==f)if(Et(d)&&Et(f)){const t=c.get();"string"==typeof t&&c.set(parseFloat(t)),"string"==typeof p?e[o]=parseFloat(p):Array.isArray(p)&&f===v.px&&(e[o]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==f?void 0:f.transform)&&(0===u||0===p)?0===u?c.set(f.transform(u)):e[o]=d.transform(p):(i||(a=function(t){const e=[];return kt.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),i=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:e[o],Ct(c,p))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.getInstance(),a=getComputedStyle(o),{display:s}=a,i={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{i[t]=$t[t](r,a)})),e.syncRender();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);Ct(r,i[n]),t[n]=$t[n](l,a)})),t})(e,t,l);return a.length&&a.forEach((([e,n])=>{t.getValue(e).set(n)})),t.syncRender(),Vt.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function It(t,e,n,r){return(t=>Object.keys(t).some(Tt))(e)?Ft(t,e,n,r):{target:e,transitionEnd:r}}var Dt=n(798);function Bt(t,{layout:e,layoutId:n}){return(0,S._c)(t)||(0,S.Ee)(t)||(e||void 0!==n)&&(!!Dt.P[t]||"opacity"===t)}function Lt(t){const{style:e}=t,n={};for(const r in e)((0,P.i)(e[r])||Bt(r,t))&&(n[r]=e[r]);return n}function Nt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var Yt=n(7557),Ut=n(8834);const zt={treeType:"dom",readValueFromInstance(t,e){if((0,S._c)(e)){const t=(0,Yt.A)(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(yt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n},sortNodePosition:(t,e)=>2&t.compareDocumentPosition(e)?1:-1,getBaseTarget(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:(t,{transformPagePoint:e})=>(0,Ut.J)(t,e),resetTransform(t,e,n){const{transformTemplate:r}=n;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform(t,e){t.style.transform=e.style.transform},removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]},makeTargetAnimatable(t,e,n,r){var{transition:o,transitionEnd:s}=e,i=(0,a._T)(e,["transition","transitionEnd"]),l=n.transformValues;void 0===r&&(r=!0);let d=function(t,e,n){var r,o;const a={};for(const s in t)a[s]=null!==(r=E(s,e))&&void 0!==r?r:null===(o=n.getValue(s))||void 0===o?void 0:o.get();return a}(i,o||{},t);if(l&&(s&&(s=l(s)),i&&(i=l(i)),d&&(d=l(d))),r){!function(t,e,n){var r,o,a,s;const i=Object.keys(e).filter((e=>!t.hasValue(e))),l=i.length;if(l)for(let d=0;d<l;d++){const l=i[d],m=e[l];let h=null;Array.isArray(m)&&(h=m[0]),null===h&&(h=null!==(o=null!==(r=n[l])&&void 0!==r?r:t.readValue(l))&&void 0!==o?o:e[l]),null!=h&&("string"==typeof h&&(/^\-?\d*\.?\d+$/.test(h)||u(h))?h=parseFloat(h):!x(h)&&c.P.test(m)&&(h=(0,f.T)(l,m)),t.addValue(l,(0,p.B)(h)),null!==(a=(s=n)[l])&&void 0!==a||(s[l]=h),t.setBaseTarget(l,h))}}(t,i,d);const e=((t,e,n,r)=>{const o=(0,Ot.mH)(t,e,r);return It(t,e=o.target,n,r=o.transitionEnd)})(t,i,d,s);s=e.transitionEnd,i=e.target}return Object.assign({transition:o,transitionEnd:s},i)},scrapeMotionValuesFromProps:Lt,build(t,e,n,r,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),xt(e,n,r,o.transformTemplate)},render:Nt},Zt=mt(zt);function qt(t,e,n){return"string"==typeof t?t:v.px.transform(e+n*t)}const Ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wt={offset:"strokeDashoffset",array:"strokeDasharray"};function _t(t,e,n,r){var{attrX:o,attrY:s,originX:i,originY:l,pathLength:c,pathSpacing:u=1,pathOffset:d=0}=e;xt(t,(0,a._T)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),t.attrs=t.style,t.style={};const{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==l||f.transform)&&(f.transformOrigin=function(t,e,n){return`${qt(e,t.x,t.width)} ${qt(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==l?l:.5)),void 0!==o&&(p.x=o),void 0!==s&&(p.y=s),void 0!==c&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const a=o?Ht:Wt;t[a.offset]=v.px.transform(-r);const s=v.px.transform(e),i=v.px.transform(n);t[a.array]=`${s} ${i}`}(p,c,u,d,!1)}const Xt=/([a-z])([A-Z])/g,Kt=t=>t.replace(Xt,"$1-$2").toLowerCase(),Jt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);const Gt=mt(Object.assign(Object.assign({},zt),{getBaseTarget:(t,e)=>t[e],readValueFromInstance(t,e){var n;return(0,S._c)(e)?(null===(n=(0,Yt.A)(e))||void 0===n?void 0:n.default)||0:(e=Jt.has(e)?e:Kt(e),t.getAttribute(e))},scrapeMotionValuesFromProps:function(t){const e=Lt(t);for(const n in t)if((0,P.i)(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e},build(t,e,n,r,o){_t(e,n,r,o.transformTemplate)},render:function(t,e,n,r){Nt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(Jt.has(n)?n:Kt(n),e.attrs[n])}})),Qt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];Object.assign(Object.assign({renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(Qt.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?Gt(e,{enableHardwareAcceleration:!1}):Zt(e,{enableHardwareAcceleration:!0})},q),ut)})()})();
|
|
1
|
+
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},3880:(t,e,n)=>{n.d(e,{b8:()=>xt});function r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}Object.create;Object.create;var o=n(9340),a=n(1698);const s=.001;function i({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,u;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let l=1-e;l=(0,a.u)(.05,1,l),t=(0,a.u)(.01,10,t/1e3),l<1?(i=e=>{const r=e*l,o=r*t,a=r-n,i=c(e,l),u=Math.exp(-o);return s-a/i*u},u=e=>{const r=e*l*t,o=r*n+n,a=Math.pow(l,2)*Math.pow(e,2)*t,u=Math.exp(-r),d=c(Math.pow(e,2),l);return(-i(e)+s>0?-1:1)*((o-a)*u)/d}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,u=e=>Math.exp(-e*t)*(t*t*(n-e)));const d=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,u,5/t);if(t*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(d,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}function c(t,e){return t*Math.sqrt(1-e*e)}const u=["duration","bounce"],l=["stiffness","damping","mass"];function d(t,e){return e.some((e=>void 0!==t[e]))}function p(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:a}=t,s=r(t,["from","to","restSpeed","restDelta"]);const p={done:!1,value:e};let{stiffness:m,damping:h,mass:v,velocity:g,duration:y,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!d(t,l)&&d(t,u)){const n=i(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(s),w=f,x=f;function A(){const t=g?-g/1e3:0,r=n-e,o=h/(2*Math.sqrt(m*v)),s=Math.sqrt(m/v)/1e3;if(void 0===a&&(a=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=c(s,o);w=a=>{const i=Math.exp(-o*s*a);return n-i*((t+o*s*r)/e*Math.sin(e*a)+r*Math.cos(e*a))},x=n=>{const a=Math.exp(-o*s*n);return o*s*a*(Math.sin(e*n)*(t+o*s*r)/e+r*Math.cos(e*n))-a*(Math.cos(e*n)*(t+o*s*r)-e*r*Math.sin(e*n))}}else if(1===o)w=e=>n-Math.exp(-s*e)*(r+(t+s*r)*e);else{const e=s*Math.sqrt(o*o-1);w=a=>{const i=Math.exp(-o*s*a),c=Math.min(e*a,300);return n-i*((t+o*s*r)*Math.sinh(c)+e*r*Math.cosh(c))/e}}}return A(),{next:t=>{const e=w(t);if(b)p.done=t>=y;else{const r=1e3*x(t),s=Math.abs(r)<=o,i=Math.abs(n-e)<=a;p.done=s&&i}return p.value=p.done?n:e,p},flipTarget:()=>{g=-g,[e,n]=[n,e],A()}}}p.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const f=t=>0;var m=n(1790),h=n(8481),v=n(9012),g=n(3203),y=n(7493);function b(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function w({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,a=0,s=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;o=b(i,r,t+1/3),a=b(i,r,t),s=b(i,r,t-1/3)}else o=a=s=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}const x=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},A=[v.$,g.m,y.J],V=t=>A.find((e=>e.test(t))),C=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,S=(t,e)=>{let n=V(t),r=V(e);(0,o.k)(!!n,C(t)),(0,o.k)(!!r,C(e));let a=n.parse(t),s=r.parse(e);n===y.J&&(a=w(a),n=g.m),r===y.J&&(s=w(s),r=g.m);const i=Object.assign({},a);return t=>{for(const e in i)"alpha"!==e&&(i[e]=x(a[e],s[e],t));return i.alpha=(0,h.C)(a.alpha,s.alpha,t),n.transform(i)}};var O=n(7576),T=n(6002),P=n(5091),E=n(934);function M(t,e){return(0,P.e)(t)?n=>(0,h.C)(t,e,n):O.$.test(t)?S(t,e):I(t,e)}const k=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>M(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},R=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=M(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function j(t){const e=T.P.parse(t),n=e.length;let r=0,o=0,a=0;for(let t=0;t<n;t++)r||"number"==typeof e[t]?r++:void 0!==e[t].hue?a++:o++;return{parsed:e,numNumbers:r,numRGB:o,numHSL:a}}const I=(t,e)=>{const n=T.P.createTransformer(e),r=j(t),a=j(e);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?(0,E.z)(k(r.parsed,a.parsed),n):((0,o.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},F=(t,e)=>n=>(0,h.C)(t,e,n);function $(t,e,n){const r=[],o=n||("number"==typeof(a=t[0])?F:"string"==typeof a?O.$.test(a)?S:I:Array.isArray(a)?k:"object"==typeof a?R:void 0);var a;const s=t.length-1;for(let n=0;n<s;n++){let a=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;a=(0,E.z)(t,a)}r.push(a)}return r}function D(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const i=t.length;(0,o.k)(i===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!r||!Array.isArray(r)||r.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[i-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const c=$(e,r,s),u=2===i?function([t,e],[n]){return r=>n((0,m.Y)(t,e,r))}(t,c):function(t,e){const n=t.length,r=n-1;return o=>{let a=0,s=!1;if(o<=t[0]?s=!0:o>=t[r]&&(a=r-1,s=!0),!s){let e=1;for(;e<n&&!(t[e]>o||e===r);e++);a=e-1}const i=(0,m.Y)(t[a],t[a+1],o);return e[a](i)}}(t,c);return n?e=>u((0,a.u)(t[0],t[i-1],e)):u}var B=n(6924);function L(t,e){return t.map((()=>e||B.mZ)).splice(0,t.length-1)}function N({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:t},s=Array.isArray(e)?e:[t,e],i=function(t,e){return t.map((t=>t*e))}(r&&r.length===s.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(s),o);function c(){return D(i,s,{ease:Array.isArray(n)?n:L(s,n)})}let u=c();return{next:t=>(a.value=u(t),a.done=t>=o,a),flipTarget:()=>{s.reverse(),u=c()}}}const Y={keyframes:N,spring:p,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const s={done:!1,value:e};let i=n*t;const c=e+i,u=void 0===a?c:a(c);return u!==c&&(i=u-e),{next:t=>{const e=-i*Math.exp(-t/r);return s.done=!(e>o||e<-o),s.value=s.done?u:u+e,s},flipTarget:()=>{}}}};var U=n(6162);function z(t,e,n=0){return t-e-n}const H=t=>{const e=({delta:e})=>t(e);return{start:()=>U.ZP.update(e,!0),stop:()=>U.qY.update(e)}};function W(t){var e,n,{from:o,autoplay:a=!0,driver:s=H,elapsed:i=0,repeat:c=0,repeatType:u="loop",repeatDelay:l=0,onPlay:d,onStop:f,onComplete:m,onRepeat:h,onUpdate:v}=t,g=r(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,b,w,{to:x}=g,A=0,V=g.duration,C=!1,S=!0;const O=function(t){if(Array.isArray(t.to))return N;if(Y[t.type])return Y[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?N:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?p:N}(g);(null===(n=(e=O).needsInterpolation)||void 0===n?void 0:n.call(e,o,x))&&(w=D([0,100],[o,x],{clamp:!1}),o=0,x=100);const T=O(Object.assign(Object.assign({},g),{from:o,to:x}));function P(){A++,"reverse"===u?(S=A%2==0,i=function(t,e,n=0,r=!0){return r?z(e+-t,e,n):e-(t-e)+n}(i,V,l,S)):(i=z(i,V,l),"mirror"===u&&T.flipTarget()),C=!1,h&&h()}function E(t){if(S||(t=-t),i+=t,!C){const t=T.next(Math.max(0,i));b=t.value,w&&(b=w(b)),C=S?t.done:i<=0}null==v||v(b),C&&(0===A&&(null!=V||(V=i)),A<c?function(t,e,n,r){return r?t>=e+n:t<=-n}(i,V,l,S)&&P():(y.stop(),m&&m()))}return a&&(null==d||d(),y=s(E),y.start()),{stop:()=>{null==f||f(),y.stop()}}}var q=n(4060);var Z=n(1818);const X=(t,e)=>1-3*e+3*t,K=(t,e)=>3*e-6*t,J=t=>3*t,G=(t,e,n)=>((X(e,n)*t+K(e,n))*t+J(e))*t,_=(t,e,n)=>3*X(e,n)*t*t+2*K(e,n)*t+J(e);const Q=.1;function tt(t,e,n,r){if(t===e&&n===r)return B.GE;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=G(e*Q,t,n);function a(e){let r=0,a=1;for(;10!==a&&o[a]<=e;++a)r+=Q;--a;const s=r+(e-o[a])/(o[a+1]-o[a])*Q,i=_(s,t,n);return i>=.001?function(t,e,n,r){for(let o=0;o<8;++o){const o=_(e,n,r);if(0===o)return e;e-=(G(e,n,r)-t)/o}return e}(e,s,t,n):0===i?s:function(t,e,n,r,o){let a,s,i=0;do{s=e+(n-e)/2,a=G(s,r,o)-t,a>0?n=s:e=s}while(Math.abs(a)>1e-7&&++i<10);return s}(e,r,r+Q,t,n)}return t=>0===t||1===t?t:G(a(t),e,r)}const et={linear:B.GE,easeIn:B.YQ,easeInOut:B.mZ,easeOut:B.Vv,circIn:B.Z7,circInOut:B.X7,circOut:B.Bn,backIn:B.G2,backInOut:B.XL,backOut:B.CG,anticipate:B.LU,bounceIn:B.h9,bounceInOut:B.yD,bounceOut:B.gJ},nt=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,a]=t;return tt(e,n,r,a)}return"string"==typeof t?((0,o.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t},rt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!T.P.test(e)||e.startsWith("url(")));var ot=n(2819);const at=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),st=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),it=()=>({type:"keyframes",ease:"linear",duration:.3}),ct=t=>({type:"keyframes",duration:.8,values:t}),ut={x:at,y:at,z:at,rotate:at,rotateX:at,rotateY:at,rotateZ:at,scaleX:st,scaleY:st,scale:st,opacity:it,backgroundColor:it,color:it,default:st},lt=(t,e)=>{let n;return n=(0,ot.C)(e)?ct:ut[t]||ut.default,{to:e,...n(e)}};var dt=n(6914);const pt=!1;var ft=n(7048);let mt=!1;function ht({ease:t,times:e,yoyo:n,flip:r,loop:a,...s}){const i={...s};return e&&(i.offset=e),s.duration&&(i.duration=(0,Z.w)(s.duration)),s.repeatDelay&&(i.repeatDelay=(0,Z.w)(s.repeatDelay)),t&&(i.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(nt):nt(t)),"tween"===s.type&&(i.type="keyframes"),(n||a||r)&&((0,o.K)(!mt,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),mt=!0,n?i.repeatType="reverse":a?i.repeatType="loop":r&&(i.repeatType="mirror"),i.repeat=a||n||r||s.repeat),"spring"!==s.type&&(i.type="keyframes"),i}function vt(t,e,n){return Array.isArray(e.to)&&void 0===t.duration&&(t.duration=.8),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:c,...u}){return!!Object.keys(u).length}(t)||(t={...t,...lt(n,e.to)}),{...e,...ht(t)}}function gt(t,e,n,r,a){const s=wt(r,t)||{};let i=void 0!==s.from?s.from:e.get();const c=rt(t,n);"none"===i&&c&&"string"==typeof n?i=(0,dt.T)(t,n):yt(i)&&"string"==typeof n?i=bt(n):!Array.isArray(n)&&yt(n)&&"string"==typeof i&&(n=bt(i));const u=rt(t,i);return(0,o.K)(u===c,`You are trying to animate ${t} from "${i}" to "${n}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${n} via the \`style\` property.`),u&&c&&!1!==s.type?function(){const r={from:i,to:n,velocity:e.getVelocity(),onComplete:a,onUpdate:t=>e.set(t)};return"inertia"===s.type||"decay"===s.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:s=500,bounceDamping:i=10,restDelta:c=1,modifyTarget:u,driver:l,onUpdate:d,onComplete:p,onStop:f}){let m;function h(t){return void 0!==n&&t<n||void 0!==r&&t>r}function v(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function g(t){null==m||m.stop(),m=W(Object.assign(Object.assign({},t),{driver:l,onUpdate:e=>{var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:p,onStop:f}))}function y(t){g(Object.assign({type:"spring",stiffness:s,damping:i,restDelta:c},t))}if(h(t))y({from:t,velocity:e,to:v(t)});else{let r=o*e+t;void 0!==u&&(r=u(r));const s=v(r),i=s===n?-1:1;let l,d;const p=t=>{l=d,d=t,e=(0,q.R)(t-l,(0,U.$B)().delta),(1===i&&t>s||-1===i&&t<s)&&y({from:t,to:s,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:a,power:o,restDelta:c,modifyTarget:u,onUpdate:h(r)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}({...r,...s}):W({...vt(s,r,t),onUpdate:t=>{r.onUpdate(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r.onComplete(),s.onComplete&&s.onComplete()}})}:function(){const t=(0,ft.Y)(n);return e.set(t),a(),s.onUpdate&&s.onUpdate(t),s.onComplete&&s.onComplete(),{stop:()=>{}}}}function yt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function bt(t){return"number"==typeof t?0:(0,dt.T)("",t)}function wt(t,e){return t[e]||t.default||t}function xt(t,e,n,r={}){return pt&&(r={type:!1}),e.start((o=>{let a,s;const i=gt(t,e,n,r,o),c=function(t,e){var n,r;return null!==(r=null!==(n=(wt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),u=()=>s=i();return c?a=window.setTimeout(u,(0,Z.w)(c)):u(),()=>{clearTimeout(a),s&&s.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>a});var r=n(8370),o=n(7866);function a(){const t=(0,r.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:a}=t,s=(0,r.useId)();(0,r.useEffect)((()=>a(s)),[]);return!e&&n?[!1,()=>n&&n(s)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(8370);const o=(0,r.createContext)(null)},409:(t,e,n)=>{n.d(e,{qT:()=>c});var r=n(3541);const o={pageX:0,pageY:0};function a(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||o;return{x:n[e+"X"],y:n[e+"Y"]}}function s(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function i(t,e="page"){return{point:(0,r.z)(t)?a(t,e):s(t,e)}}const c=(t,e=!1)=>{const n=e=>t(e,i(e));return e?(r=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&r(t)}):n;var r}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>a});var r=n(8370);function o(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function a(t,e,n,a){(0,r.useEffect)((()=>{const r=t.current;if(n&&r)return o(r,e,n,a)}),[t,e,n,a])}},1395:(t,e,n)=>{n.d(e,{a:()=>u,m:()=>l});var r=n(1876),o=n(409),a=n(3093);const s={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},i={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function c(t){return a.j&&null===window.onpointerdown?t:a.j&&null===window.ontouchstart?i[t]:a.j&&null===window.onmousedown?s[t]:t}function u(t,e,n,a){return(0,r.E)(t,c(e),(0,o.qT)(n,"pointerdown"===e),a)}function l(t,e,n,a){return(0,r.p)(t,c(e),n&&(0,o.qT)(n,"pointerdown"===e),a)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>s});const o=r("dragHorizontal"),a=r("dragVertical");function s(){const t=function(t){let e=!1;if("y"===t)e=a();else if("x"===t)e=o();else{const t=o(),n=a();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function r(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>r,z:()=>o})},6295:(t,e,n)=>{n.d(e,{x:()=>r});const r=t=>e=>(t(e),null)},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>o});var r=n(483);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>i});var r=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const a=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function s(t,e,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,c]=function(t){const e=a.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!i)return;const u=window.getComputedStyle(e).getPropertyValue(i);return u?u.trim():o(c)?s(c,e,n+1):c}function i(t,{...e},n){const r=t.getInstance();if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.forEachValue((t=>{const e=t.get();if(!o(e))return;const n=s(e,r);n&&t.set(n)}));for(const t in e){const a=e[t];if(!o(a))continue;const i=s(a,r);i&&(e[t]=i,n&&void 0===n[t]&&(n[t]=a))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>s});var r=n(9500),o=n(6002),a=n(7557);function s(t,e){var n;let s=(0,a.A)(t);return s!==r.h&&(s=o.P),null===(n=s.getAnimatableNone)||void 0===n?void 0:n.call(s,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7576),o=n(9500);const a={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:o.h,WebkitFilter:o.h},s=t=>a[t]},4923:(t,e,n)=>{n.d(e,{j:()=>s});var r=n(155),o=n(1513),a=n(6933);const s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:a.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:a.e}},6933:(t,e,n)=>{n.d(e,{e:()=>r});const r={...n(1513).Rx,transform:Math.round}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>r})},3093:(t,e,n)=>{n.d(e,{j:()=>r});const r="undefined"!=typeof document},3491:(t,e,n)=>{function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>r})},7048:(t,e,n)=>{n.d(e,{Y:()=>o});var r=n(2819);const o=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var r=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var r=n(8370);function o(t){return(0,r.useEffect)((()=>()=>t()),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>i});var r=n(6162),o=n(4060),a=n(1065);class s{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new a.L,this.velocityUpdateSubscribers=new a.L,this.renderSubscribers=new a.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,r.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,r.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>r.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function i(t){return new s(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>void 0!==t&&!!t.getVelocity},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>f,ZP:()=>y,$B:()=>g});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),a="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let s=!0,i=!1,c=!1;const u={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,a=!1;const s=new WeakSet,i={schedule:(t,a=!1,i=!1)=>{const c=i&&o,u=c?e:n;return a&&s.add(t),-1===u.indexOf(t)&&(u.push(t),c&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:c=>{if(o)a=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(c),s.has(r)&&(i.schedule(r),t())}o=!1,a&&(a=!1,i.process(c))}}};return i}((()=>i=!0)),t)),{}),p=l.reduce(((t,e)=>{const n=d[e];return t[e]=(t,e=!1,r=!1)=>(i||v(),n.schedule(t,e,r)),t}),{}),f=l.reduce(((t,e)=>(t[e]=d[e].cancel,t)),{}),m=(l.reduce(((t,e)=>(t[e]=()=>d[e].process(u),t)),{}),t=>d[t].process(u)),h=t=>{i=!1,u.delta=s?r:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,c=!0,l.forEach(m),c=!1,i&&(s=!1,a(h))},v=()=>{i=!0,s=!0,c||a(h)},g=()=>u,y=p},6924:(t,e,n)=>{n.d(e,{LU:()=>g,G2:()=>m,XL:()=>v,CG:()=>h,h9:()=>b,yD:()=>w,gJ:()=>y,Z7:()=>d,X7:()=>f,Bn:()=>p,YQ:()=>i,mZ:()=>l,Vv:()=>u,GE:()=>s});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,a=t=>e=>e*e*((t+1)*e-t),s=t=>t,i=(c=2,t=>Math.pow(t,c));var c;const u=r(i),l=o(i),d=t=>1-Math.sin(Math.acos(t)),p=r(d),f=o(p),m=a(1.525),h=r(m),v=o(m),g=(t=>{const e=a(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},b=r(y),w=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},1698:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},5091:(t,e,n)=>{n.d(e,{e:()=>r});const r=t=>"number"==typeof t},8481:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},934:(t,e,n)=>{n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},1790:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},4060:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},9012:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>i});var r=n(1513),o=n(155),a=n(5757),s=n(1552);const i={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,a.Nw)(e))+", "+o.aQ.transform((0,a.Nw)(n))+", "+(0,a.Nw)(r.Fq.transform(s))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>i});var r=n(5757),o=n(9012),a=n(7493),s=n(3203);const i={test:t=>s.m.test(t)||o.$.test(t)||a.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):a.J.test(t)?a.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?s.m.transform(t):a.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>c});var r=n(1513),o=n(5757),a=n(1552);const s=(0,o.uZ)(0,255),i=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(s(t))}),c={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:a=1})=>"rgba("+i.transform(t)+", "+i.transform(e)+", "+i.transform(n)+", "+(0,o.Nw)(r.Fq.transform(a))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>a,i:()=>o});var r=n(5757);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),a=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[a,s,i,c]=o.match(r.KP);return{[t]:parseFloat(a),[e]:parseFloat(s),[n]:parseFloat(i),alpha:void 0!==c?parseFloat(c):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>c});var r=n(6002),o=n(5757);const a=new Set(["brightness","contrast","saturate","opacity"]);function s(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const s=n.replace(r,"");let i=a.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+s+")"}const i=/([a-z-]*)\(.*?\)/g,c=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(i);return e?e.map(s).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>p});var r=n(7576),o=n(1513),a=n(5757);const s="${c}",i="${n}";function c(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const c=t.match(a.dA);c&&(n=c.length,t=t.replace(a.dA,s),e.push(...c.map(r.$.parse)));const u=t.match(a.KP);return u&&(t=t.replace(a.KP,i),e.push(...u.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function u(t){return c(t).values}function l(t){const{values:e,numColors:n,tokenised:o}=c(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?s:i,o<n?r.$.transform(t[o]):(0,a.Nw)(t[o]));return e}}const d=t=>"number"==typeof t?0:t;const p={test:function(t){var e,n,r,o;return isNaN(t)&&(0,a.HD)(t)&&(null!==(n=null===(e=t.match(a.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(a.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:u,createTransformer:l,getAnimatableNone:function(t){const e=u(t);return l(t)(e.map(d))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>a,Rx:()=>o,bA:()=>s});var r=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},a=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),s=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>l,RW:()=>a,aQ:()=>s,px:()=>i,vh:()=>c,vw:()=>u});var r=n(5757);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),a=o("deg"),s=o("%"),i=o("px"),c=o("vh"),u=o("vw"),l=Object.assign(Object.assign({},s),{parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>c,KP:()=>a,Nw:()=>o,dA:()=>s,mj:()=>i,uZ:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,a=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function c(t){return"string"==typeof t}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370);function e(t){return"object"==typeof t&&"function"==typeof t.start}var r=n(1930),o=n(7866),a=n(2819);function s(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var i=n(3880),c=n(6002);const u=t=>/^0[^.\s]+$/.test(t);var l=n(7048),d=n(1421),p=n(6914),f=n(7576),m=n(1513),h=n(155);const v=t=>e=>e.test(t),g=[m.Rx,h.px,h.aQ,h.RW,h.vw,h.vh,{test:t=>"auto"===t,parse:t=>t}],y=t=>g.find(v(t)),b=[...g,f.$,c.P],w=t=>b.find(v(t));function x(t,e,n){const r=t.getProps();return function(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.forEachValue(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.forEachValue(((t,n)=>e[n]=t.getVelocity())),e}(t))}function A(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,d.B)(n))}function V(t,e){const n=x(t,e);let{transitionEnd:r={},transition:o={},...a}=n?t.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const e in a){A(t,e,(0,l.Y)(a[e]))}}function C(t,e){if(!e)return;return(e[t]||e.default||e).from}const S=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],O=new Set(S);var T=n(7846);function P(t){return Boolean((0,T.i)(t)&&t.add)}function E(t,e,n={}){var r;const o=x(t,e,n.custom);let{transition:a=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const s=o?()=>M(t,o,n):()=>Promise.resolve(),i=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:i}=a;return function(t,e,n=0,r=0,o=1,a){const s=[],i=(t.variantChildren.size-1)*r,c=1===o?(t=0)=>t*r:(t=0)=>i-t*r;return Array.from(t.variantChildren).sort(k).forEach(((t,r)=>{s.push(E(t,e,{...a,delay:n+c(r)}).then((()=>t.notifyAnimationComplete(e))))})),Promise.all(s)}(t,e,o+r,s,i,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[t,e]="beforeChildren"===c?[s,i]:[i,s];return t().then(e)}return Promise.all([s(),i(n.delay)])}function M(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:s=t.getDefaultTransition(),transitionEnd:c,...u}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(s=r);const d=[],p=o&&(null===(a=t.animationState)||void 0===a?void 0:a.getState()[o]);for(const e in u){const r=t.getValue(e),o=u[e];if(!r||void 0===o||p&&R(p,e))continue;let a={delay:n,...s};t.shouldReduceMotion&&O.has(e)&&(a={...a,type:!1,delay:0});let c=(0,i.b8)(e,r,o,a);P(l)&&(l.add(e),c=c.then((()=>l.remove(e)))),d.push(c)}return Promise.all(d).then((()=>{c&&V(t,c)}))}function k(t,e){return t.sortNodePosition(e)}function R({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function j(t){return"string"==typeof t||Array.isArray(t)}var I=n(7921);const F=[I.r.Animate,I.r.InView,I.r.Focus,I.r.Hover,I.r.Tap,I.r.Drag,I.r.Exit],$=[...F].reverse(),D=F.length;function B(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notifyAnimationStart(e),Array.isArray(e)){const o=e.map((e=>E(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=E(t,e,n);else{const o="function"==typeof e?x(t,e,n.custom):e;r=M(t,o,n)}return r.then((()=>t.notifyAnimationComplete(e)))}(t,e,n))))}function L(t){let n=B(t);const r={[I.r.Animate]:Y(!0),[I.r.InView]:Y(),[I.r.Hover]:Y(),[I.r.Tap]:Y(),[I.r.Drag]:Y(),[I.r.Focus]:Y(),[I.r.Exit]:Y()};let o=!0;const i=(e,n)=>{const r=x(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function c(c,u){var l;const d=t.getProps(),p=t.getVariantContext(!0)||{},f=[],m=new Set;let h={},v=1/0;for(let n=0;n<D;n++){const g=$[n],y=r[g],b=null!==(l=d[g])&&void 0!==l?l:p[g],w=j(b),x=g===u?y.isActive:null;!1===x&&(v=n);let A=b===p[g]&&b!==d[g]&&w;if(A&&o&&t.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...h},!y.isActive&&null===x||!b&&!y.prevProp||e(b)||"boolean"==typeof b)continue;const V=N(y.prevProp,b);let C=V||g===u&&y.isActive&&!A&&w||n>v&&w;const S=Array.isArray(b)?b:[b];let O=S.reduce(i,{});!1===x&&(O={});const{prevResolvedValues:T={}}=y,P={...T,...O},E=t=>{C=!0,m.delete(t),y.needsAnimating[t]=!0};for(const t in P){const e=O[t],n=T[t];h.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!s(e,n)||V?E(t):y.protectedKeys[t]=!0:void 0!==e?E(t):m.add(t):void 0!==e&&m.has(t)?E(t):y.protectedKeys[t]=!0)}y.prevProp=b,y.prevResolvedValues=O,y.isActive&&(h={...h,...O}),o&&t.blockInitialAnimation&&(C=!1),C&&!A&&f.push(...S.map((t=>({animation:t,options:{type:g,...c}}))))}if(m.size){const e={};m.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),f.push({animation:e})}let g=Boolean(f.length);return o&&!1===d.initial&&!t.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(f):Promise.resolve()}return{animateChanges:c,setActive:function(e,n,o){var a;if(r[e].isActive===n)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n;const s=c(o,e);for(const t in r)r[t].protectedKeys={};return s},setAnimateFunction:function(e){n=e(t)},getState:()=>r}}function N(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!s(e,t)}function Y(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var U=n(6295);const z={animation:(0,U.x)((({visualElement:n,animate:r})=>{n.animationState||(n.animationState=L(n)),e(r)&&(0,t.useEffect)((()=>r.subscribe(n)),[r])})),exit:(0,U.x)((e=>{const{custom:n,visualElement:a}=e,[s,i]=(0,r.oO)(),c=(0,t.useContext)(o.O);(0,t.useEffect)((()=>{a.isPresent=s;const t=a.animationState&&a.animationState.setActive(I.r.Exit,!s,{custom:c&&c.custom||n});t&&!s&&t.then(i)}),[s])}))};var H=n(1876);var W=n(3541),q=n(1395),Z=n(5856);function X(t,e,n){return(r,o)=>{(0,W.N)(r)&&!(0,Z.gD)()&&(t.animationState&&t.animationState.setActive(I.r.Hover,e),n&&n(r,o))}}const K=(t,e)=>!!e&&(t===e||K(t,e.parentElement));var J=n(9531),G=n(934);const _=("undefined"==typeof process||process.env,"production"),Q=new Set;const tt=new WeakMap,et=new WeakMap,nt=t=>{const e=tt.get(t.target);e&&e(t)},rt=t=>{t.forEach(nt)};function ot(t,e,n){const r=function({root:t,...e}){const n=t||document;et.has(n)||et.set(n,{});const r=et.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(rt,{root:t,...e})),r[o]}(e);return tt.set(t,n),r.observe(t),()=>{tt.delete(t),r.unobserve(t)}}const at={some:0,all:1};function st(e,n,r,{root:o,margin:a,amount:s="some",once:i}){(0,t.useEffect)((()=>{if(!e)return;const t={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:at[s]};return ot(r.getInstance(),t,(t=>{const{isIntersecting:e}=t;if(n.isInView===e)return;if(n.isInView=e,i&&!e&&n.hasEnteredView)return;e&&(n.hasEnteredView=!0),r.animationState&&r.animationState.setActive(I.r.InView,e);const o=r.getProps(),a=e?o.onViewportEnter:o.onViewportLeave;a&&a(t)}))}),[e,o,a,s])}function it(e,n,r,{fallback:o=!0}){(0,t.useEffect)((()=>{var t,a;e&&o&&("production"!==_&&(t="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||Q.has(t)||(console.warn(t),a&&console.warn(a),Q.add(t))),requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=r.getProps();t&&t(null),r.animationState&&r.animationState.setActive(I.r.InView,!0)})))}),[e])}const ct={inView:(0,U.x)((function({visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:o,viewport:a={}}){const s=(0,t.useRef)({hasEnteredView:!1,isInView:!1});let i=Boolean(n||r||o);a.once&&s.current.hasEnteredView&&(i=!1),("undefined"==typeof IntersectionObserver?it:st)(i,s.current,e,a)})),tap:(0,U.x)((function({onTap:e,onTapStart:n,onTapCancel:r,whileTap:o,visualElement:a}){const s=e||n||r||o,i=(0,t.useRef)(!1),c=(0,t.useRef)(null),u={passive:!(n||e||r||m)};function l(){c.current&&c.current(),c.current=null}function d(){return l(),i.current=!1,a.animationState&&a.animationState.setActive(I.r.Tap,!1),!(0,Z.gD)()}function p(t,n){d()&&(K(a.getInstance(),t.target)?e&&e(t,n):r&&r(t,n))}function f(t,e){d()&&r&&r(t,e)}function m(t,e){l(),i.current||(i.current=!0,c.current=(0,G.z)((0,q.a)(window,"pointerup",p,u),(0,q.a)(window,"pointercancel",f,u)),a.animationState&&a.animationState.setActive(I.r.Tap,!0),n&&n(t,e))}(0,q.m)(a,"pointerdown",s?m:void 0,u),(0,J.z)(l)})),focus:(0,U.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,H.p)(e,"focus",t?()=>{n&&n.setActive(I.r.Focus,!0)}:void 0),(0,H.p)(e,"blur",t?()=>{n&&n.setActive(I.r.Focus,!1)}:void 0)})),hover:(0,U.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:r}){(0,q.m)(r,"pointerenter",t||n?X(r,!0,t):void 0,{passive:!t}),(0,q.m)(r,"pointerleave",e||n?X(r,!1,e):void 0,{passive:!e})}))};var ut=n(6162),lt=n(3093);const dt={current:null},pt={current:!1};var ft=n(1065);const mt=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];const ht=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function vt(t){return e(t.animate)||ht.some((e=>j(t[e])))}var gt=n(9340);const yt=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),bt={measureLayout:yt(["layout","layoutId","drag"]),animation:yt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:yt(["exit"]),drag:yt(["drag","dragControls"]),focus:yt(["whileFocus"]),hover:yt(["whileHover","onHoverStart","onHoverEnd"]),tap:yt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:yt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:yt(["whileInView","onViewportEnter","onViewportLeave"])};var wt=n(3491);const xt=Object.keys(bt),At=xt.length,Vt=({treeType:e="",build:n,getBaseTarget:r,makeTargetAnimatable:o,measureViewportBox:a,render:s,readValueFromInstance:i,removeValueFromRenderState:c,sortNodePosition:u,scrapeMotionValuesFromProps:l})=>({parent:p,props:f,presenceId:m,blockInitialAnimation:h,visualState:v,reducedMotionConfig:g},y={})=>{let b=!1;const{latestValues:w,renderState:x}=v;let A;const V=function(){const t=mt.map((()=>new ft.L)),e={},n={clearAllListeners:()=>t.forEach((t=>t.clear())),updatePropListeners:t=>{mt.forEach((r=>{var o;const a="on"+r,s=t[a];null===(o=e[r])||void 0===o||o.call(e),s&&(e[r]=n[a](s))}))}};return t.forEach(((t,e)=>{n["on"+mt[e]]=e=>t.add(e),n["notify"+mt[e]]=(...e)=>t.notify(...e)})),n}(),C=new Map,S=new Map;let O={};const E={...w};let M;function k(){A&&b&&(R(),s(A,x,f.style,N.projection))}function R(){n(N,x,w,y,f)}function I(){V.notifyUpdate(w)}function F(t,e){const n=e.onChange((e=>{w[t]=e,f.onUpdate&&ut.ZP.update(I,!1,!0)})),r=e.onRenderRequest(N.scheduleRender);S.set(t,(()=>{n(),r()}))}const{willChange:$,...D}=l(f);for(const t in D){const e=D[t];void 0!==w[t]&&(0,T.i)(e)&&(e.set(w[t],!1),P($)&&$.add(t))}const B=vt(f),L=function(t){return Boolean(vt(t)||t.variants)}(f),N={treeType:e,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:null,variantChildren:L?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:h,isMounted:()=>Boolean(A),mount(t){b=!0,A=N.current=t,N.projection&&N.projection.mount(t),L&&p&&!B&&(M=null==p?void 0:p.addVariantChild(N)),C.forEach(((t,e)=>F(e,t))),pt.current||function(){if(pt.current=!0,lt.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>dt.current=t.matches;t.addListener(e),e()}else dt.current=!1}(),N.shouldReduceMotion="never"!==g&&("always"===g||dt.current),null==p||p.children.add(N),N.setProps(f)},unmount(){var t;null===(t=N.projection)||void 0===t||t.unmount(),ut.qY.update(I),ut.qY.render(k),S.forEach((t=>t())),null==M||M(),null==p||p.children.delete(N),V.clearAllListeners(),A=void 0,b=!1},loadFeatures(e,n,r,o,a,s){const i=[];"production"!==_&&r&&n&&(0,gt.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let n=0;n<At;n++){const r=xt[n],{isEnabled:o,Component:a}=bt[r];o(f)&&a&&i.push((0,t.createElement)(a,{key:r,...e,visualElement:N}))}if(!N.projection&&a){N.projection=new a(o,N.getLatestValues(),p&&p.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:i,layoutScroll:c}=e;N.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||i&&(0,wt.I)(i),visualElement:N,scheduleRender:()=>N.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:c})}return i},addVariantChild(t){var e;const n=N.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)},sortNodePosition:t=>u&&e===t.treeType?u(N.getInstance(),t.getInstance()):0,getClosestVariantNode:()=>L?N:null==p?void 0:p.getClosestVariantNode(),getLayoutId:()=>f.layoutId,getInstance:()=>A,getStaticValue:t=>w[t],setStaticValue:(t,e)=>w[t]=e,getLatestValues:()=>w,setVisibility(t){N.isVisible!==t&&(N.isVisible=t,N.scheduleRender())},makeTargetAnimatable:(t,e=!0)=>o(N,t,f,e),measureViewportBox:()=>a(A,f),addValue(t,e){N.hasValue(t)&&N.removeValue(t),C.set(t,e),w[t]=e.get(),F(t,e)},removeValue(t){var e;C.delete(t),null===(e=S.get(t))||void 0===e||e(),S.delete(t),delete w[t],c(t,x)},hasValue:t=>C.has(t),getValue(t,e){let n=C.get(t);return void 0===n&&void 0!==e&&(n=(0,d.B)(e),N.addValue(t,n)),n},forEachValue:t=>C.forEach(t),readValue:t=>void 0!==w[t]?w[t]:i(A,t,y),setBaseTarget(t,e){E[t]=e},getBaseTarget(t){if(r){const e=r(f,t);if(void 0!==e&&!(0,T.i)(e))return e}return E[t]},...V,build:()=>(R(),x),scheduleRender(){ut.ZP.render(k,!1,!0)},syncRender:k,setProps(t){(t.transformTemplate||f.transformTemplate)&&N.scheduleRender(),f=t,V.updatePropListeners(t),O=function(t,e,n){const{willChange:r}=e;for(const o in e){const a=e[o],s=n[o];if((0,T.i)(a))t.addValue(o,a),P(r)&&r.add(o);else if((0,T.i)(s))t.addValue(o,(0,d.B)(a)),P(r)&&r.remove(o);else if(s!==a)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(a)}else{const e=t.getStaticValue(o);t.addValue(o,(0,d.B)(void 0!==e?e:a))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(N,l(f),O)},getProps:()=>f,getVariant:t=>{var e;return null===(e=f.variants)||void 0===e?void 0:e[t]},getDefaultTransition:()=>f.transition,getTransformPagePoint:()=>f.transformPagePoint,getVariantContext(t=!1){if(t)return null==p?void 0:p.getVariantContext();if(!B){const t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}const e={};for(let t=0;t<St;t++){const n=Ct[t],r=f[n];(j(r)||!1===r)&&(e[n]=r)}return e}};return N},Ct=["initial",...F],St=Ct.length,Ot={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Tt=(t,e)=>S.indexOf(t)-S.indexOf(e);function Pt(t){return t.startsWith("--")}const Et=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var Mt=n(4923);function kt(t,e,n,r){const{style:o,vars:a,transform:s,transformKeys:i,transformOrigin:c}=t;i.length=0;let u=!1,l=!1,d=!0;for(const t in e){const n=e[t];if(Pt(t)){a[t]=n;continue}const r=Mt.j[t],p=Et(n,r);if(O.has(t)){if(u=!0,s[t]=p,i.push(t),!d)continue;n!==(r.default||0)&&(d=!1)}else t.startsWith("origin")?(l=!0,c[t]=p):o[t]=p}if(u||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let s="";e.sort(Tt);for(const n of e)s+=`${Ot[n]||n}(${t[n]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),a?s=a(t,o?"":s):r&&o&&(s="none"),s}(t,n,d,r):!e.transform&&o.transform&&(o.transform="none"),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=c;o.transformOrigin=`${t} ${e} ${n}`}}var Rt=n(6978);const jt=new Set(["width","height","top","left","right","bottom","x","y"]),It=t=>jt.has(t),Ft=(t,e)=>{t.set(e,!1),t.set(e)},$t=t=>t===m.Rx||t===h.px;var Dt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Dt||(Dt={}));const Bt=(t,e)=>parseFloat(t.split(", ")[e]),Lt=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Bt(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Bt(e[1],t):0}},Nt=new Set(["x","y","z"]),Yt=S.filter((t=>!Nt.has(t)));const Ut={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Lt(4,13),y:Lt(5,14)},zt=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(It);let s=[],i=!1;const c=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let l=n[o],d=y(l);const p=e[o];let f;if((0,a.C)(p)){const t=p.length,e=null===p[0]?1:0;l=p[e],d=y(l);for(let n=e;n<t;n++)f?(0,gt.k)(y(p[n])===f,"All keyframes must be of the same type"):(f=y(p[n]),(0,gt.k)(f===d||$t(d)&&$t(f),"Keyframes must be of the same dimension as the current value"))}else f=y(p);if(d!==f)if($t(d)&&$t(f)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof p?e[o]=parseFloat(p):Array.isArray(p)&&f===h.px&&(e[o]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==f?void 0:f.transform)&&(0===l||0===p)?0===l?u.set(f.transform(l)):e[o]=d.transform(p):(i||(s=function(t){const e=[];return Yt.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),i=!0),c.push(o),r[o]=void 0!==r[o]?r[o]:e[o],Ft(u,p))})),c.length){const n=c.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.getInstance(),a=getComputedStyle(o),{display:s}=a,i={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{i[t]=Ut[t](r,a)})),e.syncRender();const c=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);Ft(r,i[n]),t[n]=Ut[n](c,a)})),t})(e,t,c);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.syncRender(),lt.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Ht(t,e,n,r){return(t=>Object.keys(t).some(It))(e)?zt(t,e,n,r):{target:e,transitionEnd:r}}var Wt=n(798);function qt(t,{layout:e,layoutId:n}){return O.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Wt.P[t]||"opacity"===t)}function Zt(t){const{style:e}=t,n={};for(const r in e)((0,T.i)(e[r])||qt(r,t))&&(n[r]=e[r]);return n}function Xt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var Kt=n(7557),Jt=n(8834);const Gt={treeType:"dom",readValueFromInstance(t,e){if(O.has(e)){const t=(0,Kt.A)(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(Pt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n},sortNodePosition:(t,e)=>2&t.compareDocumentPosition(e)?1:-1,getBaseTarget(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:(t,{transformPagePoint:e})=>(0,Jt.J)(t,e),resetTransform(t,e,n){const{transformTemplate:r}=n;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform(t,e){t.style.transform=e.style.transform},removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]},makeTargetAnimatable(t,{transition:e,transitionEnd:n,...r},{transformValues:o},a=!0){let s=function(t,e,n){var r;const o={};for(const a in t){const t=C(a,e);o[a]=void 0!==t?t:null===(r=n.getValue(a))||void 0===r?void 0:r.get()}return o}(r,e||{},t);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),a){!function(t,e,n){var r,o;const a=Object.keys(e).filter((e=>!t.hasValue(e))),s=a.length;if(s)for(let i=0;i<s;i++){const s=a[i],l=e[s];let f=null;Array.isArray(l)&&(f=l[0]),null===f&&(f=null!==(o=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==o?o:e[s]),null!=f&&("string"==typeof f&&(/^\-?\d*\.?\d+$/.test(f)||u(f))?f=parseFloat(f):!w(f)&&c.P.test(l)&&(f=(0,p.T)(s,l)),t.addValue(s,(0,d.B)(f)),void 0===n[s]&&(n[s]=f),t.setBaseTarget(s,f))}}(t,r,s);const e=((t,e,n,r)=>{const o=(0,Rt.mH)(t,e,r);return Ht(t,e=o.target,n,r=o.transitionEnd)})(t,r,s,n);n=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:n,...r}},scrapeMotionValuesFromProps:Zt,build(t,e,n,r,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),kt(e,n,r,o.transformTemplate)},render:Xt},_t=Vt(Gt);function Qt(t,e,n){return"string"==typeof t?t:h.px.transform(e+n*t)}const te={offset:"stroke-dashoffset",array:"stroke-dasharray"},ee={offset:"strokeDashoffset",array:"strokeDasharray"};function ne(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...c},u,l){kt(t,c,u,l),t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Qt(e,t.x,t.width)} ${Qt(n,t.y,t.height)}`}(f,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const a=o?te:ee;t[a.offset]=h.px.transform(-r);const s=h.px.transform(e),i=h.px.transform(n);t[a.array]=`${s} ${i}`}(d,a,s,i,!1)}const re=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),oe=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);const ae=Vt({...Gt,getBaseTarget:(t,e)=>t[e],readValueFromInstance(t,e){var n;return O.has(e)?(null===(n=(0,Kt.A)(e))||void 0===n?void 0:n.default)||0:(e=oe.has(e)?e:re(e),t.getAttribute(e))},scrapeMotionValuesFromProps:function(t){const e=Zt(t);for(const n in t)if((0,T.i)(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e},build(t,e,n,r,o){ne(e,n,r,o.transformTemplate)},render:function(t,e,n,r){Xt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(oe.has(n)?n:re(n),e.attrs[n])}}),se=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"]})()})();
|