PageSourceSearch

https://www.syfe.com/_next/static/chunks/1854-841092199d2253f3.js

js syfe.com collected 2026-10-01 12:02:13 UTC 90,376 bytes, 1 lines download raw bytes

1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c099982c-cbd5-4baf-9aad-06fa27f44b92",t._sentryDebugIdIdentifier="sentry-dbid-c099982c-cbd5-4baf-9aad-06fa27f44b92")}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1854],{99473:(t,e,i)=>{i.d(e,{P:()=>rG});var n,r,s=i(14232);let o=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),a=(0,s.createContext)({}),l=(0,s.createContext)(null),u="undefined"!=typeof document,h=u?s.useLayoutEffect:s.useEffect,c=(0,s.createContext)({strict:!1});function d(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function p(t){return"string"==typeof t||Array.isArray(t)}function m(t){return"object"==typeof t&&"function"==typeof t.start}let f=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function g(t){return m(t.animate)||f.some(e=>p(t[e]))}function v(t){return!!(g(t)||t.variants)}function y(t){return Array.isArray(t)?t.join(" "):t}let x=t=>({isEnabled:e=>t.some(t=>!!e[t])}),b={measureLayout:x(["layout","layoutId","drag"]),animation:x(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:x(["exit"]),drag:x(["drag","dragControls"]),focus:x(["whileFocus"]),hover:x(["whileHover","onHoverStart","onHoverEnd"]),tap:x(["whileTap","onTap","onTapStart","onTapCancel"]),pan:x(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:x(["whileInView","onViewportEnter","onViewportLeave"])};function w(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}let V={hasAnimatedSinceResize:!0,hasEverUpdated:!1},A=1,T=(0,s.createContext)({});class P extends s.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}let E=(0,s.createContext)({}),S=Symbol.for("motionComponentSymbol"),C=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M(t){if("string"!=typeof t||t.includes("-"));else if(C.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let k={},D=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R=new Set(D);function L(t,{layout:e,layoutId:i}){return R.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!k[t]||"opacity"===t)}let B=t=>!!(null==t?void 0:t.getVelocity),F={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},j=(t,e)=>D.indexOf(t)-D.indexOf(e);function I(t){return t.startsWith("--")}let O=(t,e)=>e&&"number"==typeof t?e.transform(t):t,U=(t,e,i)=>Math.min(Math.max(i,t),e),N={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},$={...N,transform:t=>U(0,1,t)},z={...N,default:1},W=t=>Math.round(1e5*t)/1e5,H=/(-)?([\d]*\.?[\d])+/g,Y=/(#[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,X=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function G(t){return"string"==typeof t}let q=t=>({test:e=>G(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Z=q("deg"),_=q("%"),K=q("px"),J=q("vh"),Q=q("vw"),tt={..._,parse:t=>_.parse(t)/100,transform:t=>_.transform(100*t)},te={...N,transform:Math.round},ti={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:Z,skewX:
1Z,skewY:Z,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:$,originX:tt,originY:tt,originZ:K,zIndex:te,fillOpacity:$,strokeOpacity:$,numOctaves:te};function tn(t,e,i,n){let{style:r,vars:s,transform:o,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,h=!1,c=!0;for(let t in e){let i=e[t];if(I(t)){s[t]=i;continue}let n=ti[t],d=O(i,n);if(R.has(t)){if(u=!0,o[t]=d,a.push(t),!c)continue;i!==(n.default||0)&&(c=!1)}else t.startsWith("origin")?(h=!0,l[t]=d):r[t]=d}if(!e.transform&&(u||n?r.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:i=!0,allowTransformNone:n=!0},r,s){let o="";for(let i of(e.sort(j),e))o+=`${F[i]||i}(${t[i]}) `;return i&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,r?"":o):n&&r&&(o="none"),o}(t,i,c,n):r.transform&&(r.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=l;r.transformOrigin=`${t} ${e} ${i}`}}let tr=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ts(t,e,i){for(let n in e)B(e[n])||L(n,i)||(t[n]=e[n])}let to=new Set(["initial","style","values","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 ta(t){return to.has(t)}let tl=t=>!ta(t);try{!function(t){t&&(tl=e=>e.startsWith("on")?!ta(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}function tu(t,e,i){return"string"==typeof t?t:K.transform(e+i*t)}let th={offset:"stroke-dashoffset",array:"stroke-dasharray"},tc={offset:"strokeDashoffset",array:"strokeDasharray"};function td(t,{attrX:e,attrY:i,originX:n,originY:r,pathLength:s,pathSpacing:o=1,pathOffset:a=0,...l},u,h,c){if(tn(t,l,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==n||void 0!==r||p.transform)&&(p.transformOrigin=function(t,e,i){let n=tu(e,t.x,t.width),r=tu(i,t.y,t.height);return`${n} ${r}`}(m,void 0!==n?n:.5,void 0!==r?r:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==s&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?th:tc;t[s.offset]=K.transform(-n);let o=K.transform(e),a=K.transform(i);t[s.array]=`${o} ${a}`}(d,s,o,a,!1)}let tp=()=>({...tr(),attrs:{}}),tm=t=>"string"==typeof t&&"svg"===t.toLowerCase(),tf=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tg(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let tv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ty(t,e,i,n){for(let i in tg(t,e,void 0,n),e.attrs)t.setAttribute(tv.has(i)?i:tf(i),e.attrs[i])}function tx(t){let{style:e}=t,i={};for(let n in e)(B(e[n])||L(n,t))&&(i[n]=e[n]);return i}function tb(t){let e=tx(t);for(let i in t)B(t[i])&&(e["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]);return e}function tw(t,e,i,n={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),e}let tV=t=>Array.isArray(t),tA=t=>tV(t)?t[t.length-1]||0:t;function tT(t){let e=B(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let tP=t=>(e,i)=>
1{let n=(0,s.useContext)(a),r=(0,s.useContext)(l),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,r,s){let o={latestValues:function(t,e,i,n){let r={},s=n(t);for(let t in s)r[t]=tT(s[t]);let{initial:o,animate:a}=t,l=g(t),u=v(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!m(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=tw(t,e);if(!i)return;let{transitionEnd:n,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in n)r[t]=n[t]}),r}(n,r,s,t),renderState:e()};return i&&(o.mount=t=>i(n,t,o)),o})(t,e,n,r);return i?o():w(o)},tE={useVisualState:tP({scrapeMotionValuesFromProps:tb,createRenderState:tp,onMount:(t,e,{renderState:i,latestValues:n})=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}td(i,n,{enableHardwareAcceleration:!1},tm(e.tagName),t.transformTemplate),ty(e,i)}})},tS={useVisualState:tP({scrapeMotionValuesFromProps:tx,createRenderState:tr})};function tC(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function tM(t,e,i,n){(0,s.useEffect)(()=>{let r=t.current;if(i&&r)return tC(r,e,i,n)},[t,e,i,n])}function tk(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?"mouse"===t.pointerType:t instanceof MouseEvent}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(n||(n={}));let tD={pageX:0,pageY:0};function tR(t,e="page"){return{point:t.touches?function(t,e="page"){let i=t.touches[0]||t.changedTouches[0]||tD;return{x:i[e+"X"],y:i[e+"Y"]}}(t,e):function(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}(t,e)}}let tL=(t,e=!1)=>{let i=e=>t(e,tR(e));return e?t=>{let e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}:i},tB={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},tF={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function tj(t){if(u&&null===window.onpointerdown);else if(u&&null===window.ontouchstart)return tF[t];else if(u&&null===window.onmousedown)return tB[t];return t}function tI(t,e,i,n){return tC(t,tj(e),tL(i,"pointerdown"===e),n)}function tO(t,e,i,n){return tM(t,tj(e),i&&tL(i,"pointerdown"===e),n)}function tU(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tN=tU("dragHorizontal"),t$=tU("dragVertical");function tz(t){let e=!1;if("y"===t)e=t$();else if("x"===t)e=tN();else{let t=tN(),i=t$();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tW(){let t=tz(!0);return!t||(t(),!1)}function tH(t,e,i){return(r,s)=>{!(!tk(r)||tW())&&(t.animationState&&t.animationState.setActive(n.Hover,e),i&&i(r,s))}}let tY=(t,e)=>!!e&&(t===e||tY(t,e.parentElement));function tX(t){return(0,s.useEffect)(()=>()=>t(),[])}let tG=(t,e)=>i=>e(t(i)),tq=(...t)=>t.reduce(tG);var tZ=i(99742);let t_=(void 0===tZ||tZ.env,"production"),tK=new Set,tJ=new WeakMap,tQ=new WeakMap,t0=t=>{let e=tJ.get(t.target);e&&e(t)},t1=t=>{t.forEach(t0)},t5={some:0,all:1},t2=t=>e=>(t(e),null),t3={inView:t2(function({visualElement:t,whileInView:e,onViewportEnter:i,onViewportLeave:r,viewport:o={}}){let a=(0,s.useRef)({hasEnteredView:!1,isInView:!1}),l=!!(e||i||r);o.once&&a.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?function(t,e,i,{fallback:r=!0}){(0,s.useEffect)(()=>{if(t&&r){var s;"production"!==t_&&(s="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",tK.has(s)||(console.warn(s),tK.add(s))),requestAnimationFrame(()=>{e.hasEnteredView=!0;let{onViewportEnter:t}=i.getProps();t&&t(null),i.animationState&&i.animationState.setActive(n.InView,!0)})}},[t])}:function(t,e,i,{root:r,margin:o,amount:a="some",once:l}){(0,s.useEffect)(()=>{if(!t||!i.current)return;let s={root:null==r?void 0:r.current,rootMargin:o,threshold:"number"==typeof a?a:t5[a]};
1return function(t,e,i){let n=function({root:t,...e}){let i=t||document;tQ.has(i)||tQ.set(i,{});let n=tQ.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(t1,{root:t,...e})),n[r]}(e);return tJ.set(t,i),n.observe(t),()=>{tJ.delete(t),n.unobserve(t)}}(i.current,s,t=>{let{isIntersecting:r}=t;if(e.isInView===r||(e.isInView=r,l&&!r&&e.hasEnteredView))return;r&&(e.hasEnteredView=!0),i.animationState&&i.animationState.setActive(n.InView,r);let s=i.getProps(),o=r?s.onViewportEnter:s.onViewportLeave;o&&o(t)})},[t,r,o,a])})(l,a.current,t,o)}),tap:t2(function({onTap:t,onTapStart:e,onTapCancel:i,whileTap:r,visualElement:o}){let a=t||e||i||r,l=(0,s.useRef)(!1),u=(0,s.useRef)(null),h={passive:!(e||t||i||f)};function c(){u.current&&u.current(),u.current=null}function d(){return c(),l.current=!1,o.animationState&&o.animationState.setActive(n.Tap,!1),!tW()}function p(e,n){d()&&(tY(o.current,e.target)?t&&t(e,n):i&&i(e,n))}function m(t,e){d()&&i&&i(t,e)}function f(t,i){c(),!l.current&&(l.current=!0,u.current=tq(tI(window,"pointerup",p,h),tI(window,"pointercancel",m,h)),o.animationState&&o.animationState.setActive(n.Tap,!0),e&&e(t,i))}tO(o,"pointerdown",a?f:void 0,h),tX(c)}),focus:t2(function({whileFocus:t,visualElement:e}){let{animationState:i}=e;tM(e,"focus",t?()=>{i&&i.setActive(n.Focus,!0)}:void 0),tM(e,"blur",t?()=>{i&&i.setActive(n.Focus,!1)}:void 0)}),hover:t2(function({onHoverStart:t,onHoverEnd:e,whileHover:i,visualElement:n}){tO(n,"pointerenter",t||i?tH(n,!0,t):void 0,{passive:!t}),tO(n,"pointerleave",e||i?tH(n,!1,e):void 0,{passive:!e})})};function t9(){let t=(0,s.useContext)(l);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,s.useId)();return(0,s.useEffect)(()=>n(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}function t4(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let t6=t=>/^\-?\d*\.?\d+$/.test(t),t7=t=>/^0[^.\s]+$/.test(t),t8={delta:0,timestamp:0},et=1/60*1e3,ee="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ei="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(ee()),et),en=!0,er=!1,es=!1,eo=["read","update","preRender","render","postRender"],ea=eo.reduce((t,e)=>(t[e]=function(t){let e=[],i=[],n=0,r=!1,s=!1,o=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{let l=a&&r,u=l?e:i;return s&&o.add(t),-1===u.indexOf(t)&&(u.push(t),l&&r&&(n=e.length)),t},cancel:t=>{let e=i.indexOf(t);-1!==e&&i.splice(e,1),o.delete(t)},process:l=>{if(r){s=!0;return}if(r=!0,[e,i]=[i,e],i.length=0,n=e.length)for(let i=0;i<n;i++){let n=e[i];n(l),o.has(n)&&(a.schedule(n),t())}r=!1,s&&(s=!1,a.process(l))}};return a}(()=>er=!0),t),{}),el=eo.reduce((t,e)=>{let i=ea[e];return t[e]=(t,e=!1,n=!1)=>(er||ep(),i.schedule(t,e,n)),t},{}),eu=eo.reduce((t,e)=>(t[e]=ea[e].cancel,t),{}),eh=eo.reduce((t,e)=>(t[e]=()=>ea[e].process(t8),t),{}),ec=t=>ea[t].process(t8),ed=t=>{er=!1,t8.delta=en?et:Math.max(Math.min(t-t8.timestamp,40),1),t8.timestamp=t,es=!0,eo.forEach(ec),es=!1,er&&(en=!1,ei(ed))},ep=()=>{er=!0,en=!0,es||ei(ed)};function em(t,e){-1===t.indexOf(e)&&t.push(e)}function ef(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class eg{constructor(){this.subscriptions=[]}add(t){return em(this.subscriptions,t),()=>ef(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ev(t,e){return e?1e3/e*t:0}class ey{constructor(t,e={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:i,timestamp:n}=t8;this.lastUpdated!==n&&(this.timeDelta=i,this.lastUpdated=n,el.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>el.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=!isNaN(parseFloat(this.current)),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){return this.events[t]||(this.events[t]=new eg),this.events[t].add(e)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ev(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function ex(t,e){return new ey(t,e)}let eb=(t,e)=>i=>!!(G(i)&&X.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),ew=(t,e,i)=>n=>{if(!G(n))return n;let[r,s,o,a]=n.match(H);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eV={...N,transform:t=>Math.round(U(0,255,t))},eA={test:eb("rgb","red"),parse:ew("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+eV.transform(t)+", "+eV.transform(e)+", "+eV.transform(i)+", "+W($.transform(n))+")"},eT={test:eb("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:r?parseInt(r,16)/255:1}},transform:eA.transform},eP={test:eb("hsl","hue"),parse:ew("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+_.transform(W(e))+", "+_.transform(W(i))+", "+W($.transform(n))+")"},eE={test:t=>eA.test(t)||eT.test(t)||eP.test(t),parse:t=>eA.test(t)?eA.parse(t):eP.test(t)?eP.parse(t):eT.parse(t),transform:t=>G(t)?t:t.hasOwnProperty("red")?eA.transform(t):eP.transform(t)},eS="${c}",eC="${n}";function eM(t){"number"==typeof t&&(t=`${t}`);let e=[],i=0,n=0,r=t.match(Y);r&&(i=r.length,t=t.replace(Y,eS),e.push(...r.map(eE.parse)));let s=t.match(H);return s&&(n=s.length,t=t.replace(H,eC),e.push(...s.map(N.parse))),{values:e,numColors:i,numNumbers:n,tokenised:t}}function ek(t){return eM(t).values}function eD(t){let{values:e,numColors:i,tokenised:n}=eM(t),r=e.length;return t=>{let e=n;for(let n=0;n<r;n++)e=e.replace(n<i?eS:eC,n<i?eE.transform(t[n]):W(t[n]));return e}}let eR=t=>"number"==typeof t?0:t,eL={test:function(t){var e,i;return isNaN(t)&&G(t)&&((null==(e=t.match(H))?void 0:e.length)||0)+((null==(i=t.match(Y))?void 0:i.length)||0)>0},parse:ek,createTransformer:eD,getAnimatableNone:function(t){let e=ek(t);return eD(t)(e.map(eR))}},eB=new Set(["brightness","contrast","saturate","opacity"]);function eF(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(H)||[];if(!n)return t;let r=i.replace(n,""),s=+!!eB.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let ej=/([a-z-]*)\(.*?\)/g,eI={...eL,getAnimatableNone:t=>{let e=t.match(ej);return e?e.map(eF).join(" "):t}},eO={...ti,color:eE,backgroundColor:eE,outlineColor:eE,fill:eE,stroke:eE,borderColor:eE,borderTopColor:eE,borderRightColor:eE,borderBottomColor:eE,borderLeftColor:eE,filter:eI,WebkitFilter:eI},eU=t=>eO[t];function eN(t,e){var i;let n=eU(t);return n!==eI&&(n=eL),null==(i=n.getAnimatableNone)?void 0:i.call(n,e)}let e$=t=>e=>e.test(t),ez=[N,K,_,Z,Q,J,{test:t=>"auto"===t,parse:t=>t}],eW=t=>ez.find(e$(t)),eH=[...ez,eE,eL],eY=t=>eH.find(e$(t));function eX(t,e,i){let n=t.getProps();return tw(n,e,void 0!==i?i:n.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}function eG(t){return!!(B(t)&&t.add)}let eq="data-"+tf("framerAppearId");var eZ=function(){},e_=function(){};let eK=t=>1e3*t,eJ={current:!1},eQ=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,e0=t=>e=>1-t(1-e),e1=t=>t*t,e5=e0(e1),e2=eQ(e1),e3=(t,e,i)=>-i*t+i*e+t;function e9(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}let e4=(t,e,i)=>{let n=t*t;return Math.sqrt(Math.max(0,i*(e*e-n)+n))},e6=[eT,eA,eP];function e7(t){let e=e6.find(e=>e.test(t));e_(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===eP&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=e9(a,n,t+1/3),s=e9(a,n,t),o=e9(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let e8=(t,e)=>{let i=e7(t),n=e7(e),r={...i};return t=>(r.red=e4(i.red,n.red,t),r.green=e4(i.green,n.green,t),r.blue=e4(i.blue,n.blue,t),r.alpha=e3(i.alpha,n.alpha,t),eA.transform(r))};function it(t,e){return"number"==typeof t?i=>e3(t,e,i):eE.test(t)?e8(t,e):ir(t,e)}let ie=(t,e)=>{let i=[...t],n=i.length,r=t.map((t,i)=>it(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}},ii=(t,e)=>{let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=it(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}},ir=(t,e)=>{let i=eL.createTransformer(e),n=eM(t),r=eM(e);return n.numColors===r.numColors&&n.numNumbers>=r.numNumbers?tq(ie(n.values,r.values),i):(eZ(!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.`),i=>`${i>0?e:t}`)},is=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},io=(t,e)=>i=>e3(t,e,i);function ia(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;e_(s===e.length,"Both input and output ranges must be the same length"),e_(!n||!Array.isArray(n)||n.length===s-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[s-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let o=function(t,e,i){let n=[],r=i||function(t){if("number"==typeof t);else if("string"==typeof t)if(eE.test(t))return e8;else return ir;else if(Array.isArray(t))return ie;else if("object"==typeof t)return ii;return io}(t[0]),s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=tq(Array.isArray(e)?e[i]:e,s)),n.push(s)}return n}(e,n,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=is(t[i],t[i+1],e);return o[i](n)};return i?e=>l(U(t[0],t[s-1],e)):l}let il=t=>t,iu=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ih(t,e,i,n){return t===e&&i===n?il:r=>0===r||1===r?r:iu(function(t,e,i,n,r){let s,o,a=0;do(s=iu(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o}(r,0,1,t,i),e,n)}let ic=t=>1-Math.sin(Math.acos(t)),id=e0(ic),ip=eQ(id),im=ih(.33,1.53,.69,.99),ig=e0(im),iv=eQ(ig),iy={linear:il,easeIn:e1,easeInOut:e2,easeOut:e5,circIn:ic,circInOut:ip,circOut:id,backIn:ig,backInOut:iv,backOut:im,anticipate:t=>(t*=2)<1?.5*ig(t):.5*(2-Math.pow(2,-10*(t-1)))},ix=t=>{if(Array.isArray(t)){e_(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return ih(e,i,n,r)}return"string"==typeof t?(e_(void 0!==iy[t],`Invalid easing type '${t}'`),iy[t]):t};function ib({keyframes:t,ease:e=e2,times:i,duration:n=300}){var r;t=[...t];let s=ib[0],o=Array.isArray(e)&&"number"!=typeof e[0]?e.map(ix):ix(e),a={done:!1,value:s},l=(r=i&&i.length===ib.length?i:function(t){let e=t.length;return t.map((t,i)=>0!==i?i/(e-1):0)}(t),r.map(t=>t*n));function u(){var e;return ia(l,t,{ease:Array.isArray(o)?o:(e=t).map(()=>o||e2).splice(0,e.length-1)})}let h=u();return{next:t=>(a.value=h(t),a.done=t>=n,a),flipTarget:()=>{t.reverse(),h=u()}}}function iw(t,e){return t*Math.sqrt(1-e*e)}let iV=["duration","bounce"],iA=["stiffness","damping","mass"];function iT(t,e){return e.some(e=>void 0!==t[e])}function iP({keyframes:t,restSpeed:e=2,restDelta:i=.01,...n}){let r=t[0],s=t[t.length-1],o={done:!1,value:r},{stiffness:a,damping:l,mass:u,velocity:h,duration:c,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iT(t,iA)&&iT(t,iV)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;eZ(t<=1e4,"Spring duration must be 10 seconds or less");let o=1-e;o=U(.05,1,o),t=U(.01,10,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iw(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iw(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(n),p=iE,m=h?-(h/1e3):0,f=l/(2*Math.sqrt(a*u));function g(){let t=s-r,e=Math.sqrt(a/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(s-r)/100,.4)),f<1){let i=iw(e,f);p=n=>s-Math.exp(-f*e*n)*((m+f*e*t)/i*Math.sin(i*n)+t*Math.cos(i*n))}else if(1===f)p=i=>s-Math.exp(-e*i)*(t+(m+e*t)*i);else{let i=e*Math.sqrt(f*f-1);p=n=>{let r=Math.exp(-f*e*n),o=Math.min(i*n,300);return s-r*((m+f*e*t)*Math.sinh(o)+i*t*Math.cosh(o))/i}}}return g(),{next:t=>{let n=p(t);if(d)o.done=t>=c;else{let r=m;if(0!==t)if(f<1){let e=Math.max(0,t-5);r=ev(n-p(e),t-e)}else r=0;let a=Math.abs(s-n)<=i;o.done=Math.abs(r)<=e&&a}return o.value=o.done?s:n,o},flipTarget:()=>{m=-m,[r,s]=[s,r],g()}}}iP.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;let iE=t=>0,iS={decay:function({keyframes:t=[0],velocity:e=0,power:i=.8,timeConstant:n=350,restDelta:r=.5,modifyTarget:s}){let o=t[0],a={done:!1,value:o},l=i*e,u=o+l,h=void 0===s?u:s(u);return h!==u&&(l=h-o),{next:t=>{let e=-l*Math.exp(-t/n);return a.done=!(e>r||e<-r),a.value=a.done?h:h+e,a},flipTarget:()=>{}}},keyframes:ib,tween:ib,spring:iP};function iC(t,e,i=0){return t-e-i}let iM=t=>{let e=({delta:e})=>t(e);return{start:()=>el.update(e,!0),stop:()=>eu.update(e)}};function ik({duration:t,driver:e=iM,elapsed:i=0,repeat:n=0,repeatType:r="loop",repeatDelay:s=0,keyframes:o,autoplay:a=!0,onPlay:l,onStop:u,onComplete:h,onRepeat:c,onUpdate:d,type:p="keyframes",...m}){var f;let g,v,y,x=0,b=t,w=!1,V=!0,A=iS[o.length>2?"keyframes":p],T=o[0],P=o[o.length-1];(null==(f=A.needsInterpolation)?void 0:f.call(A,T,P))&&(y=ia([0,100],[T,P],{clamp:!1}),o=[0,100]);let E=A({...m,duration:t,keyframes:o});return a&&(l&&l(),(g=e(function(t){if(V||(t=-t),i+=t,!w){let t=E.next(Math.max(0,i));v=t.value,y&&(v=y(v)),w=V?t.done:i<=0}if(d&&d(v),w)if(0===x&&(b=void 0!==b?b:i),x<n){var e,o;e=i,o=b,(V?e>=o+s:e<=-s)&&(x++,"reverse"===r?i=function(t,e=0,i=0,n=!0){return n?iC(e+-t,e,
1i):e-(t-e)+i}(i,b,s,V=x%2==0):(i=iC(i,b,s),"mirror"===r&&E.flipTarget()),w=!1,c&&c())}else g.stop(),h&&h()})).start()),{stop:()=>{u&&u(),g.stop()},sample:t=>E.next(Math.max(0,t))}}let iD=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,iR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iD([0,.65,.55,1]),circOut:iD([.55,0,1,.45]),backIn:iD([.31,.01,.66,-.59]),backOut:iD([.33,1.53,.69,.99])};function iL(t,e){let i=performance.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&(eu.read(n),t(s-e))};return el.read(n,!0),()=>eu.read(n)}let iB=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),iF=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ij=()=>({type:"keyframes",ease:"linear",duration:.3}),iI={type:"keyframes",duration:.8},iO={x:iB,y:iB,z:iB,rotate:iB,rotateX:iB,rotateY:iB,rotateZ:iB,scaleX:iF,scaleY:iF,scale:iF,opacity:ij,backgroundColor:ij,color:ij,default:iF},iU=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&eL.test(e)&&!e.startsWith("url("));function iN(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function i$(t){return"number"==typeof t?0:eN("",t)}function iz(t,e){return t[e]||t.default||t}let iW={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},iH={},iY={};for(let t in iW)iY[t]=()=>(void 0===iH[t]&&(iH[t]=iW[t]()),iH[t]);let iX=new Set(["opacity"]),iG=(t,e,i,n={})=>r=>{let s=iz(n,t)||{},o=s.delay||n.delay||0,{elapsed:a=0}=n;a-=eK(o);let l=function(t,e,i,n){let r=iU(e,i),s=void 0!==n.from?n.from:t.get();return("none"===s&&r&&"string"==typeof i?s=eN(e,i):iN(s)&&"string"==typeof i?s=i$(i):!Array.isArray(i)&&iN(i)&&"string"==typeof s&&(i=i$(s)),Array.isArray(i))?(null===i[0]&&(i[0]=s),i):[s,i]}(e,t,i,s),u=l[0],h=l[l.length-1],c=iU(t,u),d=iU(t,h);eZ(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),...s,elapsed:a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r(),s.onComplete&&s.onComplete()}};if(!c||!d||eJ.current||!1===s.type)return function({keyframes:t,elapsed:e,onUpdate:i,onComplete:n}){let r=()=>(i&&i(t[t.length-1]),n&&n(),()=>{});return e?iL(r,-e):r()}(p);if("inertia"===s.type){let t=function({keyframes:t,velocity:e=0,min:i,max:n,power:r=.8,timeConstant:s=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:h,onUpdate:c,onComplete:d,onStop:p}){let m,f=t[0];function g(t){return void 0!==i&&t<i||void 0!==n&&t>n}function v(t){return void 0===i?n:void 0===n||Math.abs(i-t)<Math.abs(n-t)?i:n}function y(t){null==m||m.stop(),m=ik({keyframes:[0,1],velocity:0,...t,driver:h,onUpdate:e=>{var i;null==c||c(e),null==(i=t.onUpdate)||i.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:o,damping:a,restDelta:l,...t})}if(g(f))x({velocity:e,keyframes:[f,v(f)]});else{let t,n,o=r*e+f;void 0!==u&&(o=u(o));let a=v(o),h=a===i?-1:1;y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:s,power:r,restDelta:l,modifyTarget:u,onUpdate:g(o)?i=>{t=n,n=i,e=ev(i-t,t8.delta),(1===h&&i>a||-1===h&&i<a)&&x({keyframes:[i,a],velocity:e})}:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(p);return()=>t.stop()}!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(s)&&(p={...p,...((t,{keyframes:e})=>e.length>2?iI:(iO[t]||iO.default)(e[1]))(t,p)}),p.duration&&(p.duration=eK(p.duration)),p.repeatDelay&&(p.repeatDelay=eK(p.repeatDelay));let m=e.owner,f=m&&m.current;if(iY.waapi()&&iX.has(t)&&!p.repeatDelay&&"mirror"!==p.repeatType&&0!==p.damping&&m&&f instanceof HTMLElement&&!m.getProps().onUpdate)return function(t,e,{onUpdate:i,onComplete:n,...r}){var s;let{keyframes:o,duration:a=.3,elapsed:l=0,ease:u}=r;if("spring"===r.type||!(!(s=r.ease)||Array.isArray(s)||"string"==typeof s&&iR[s])){let t=ik(r),e={done:!1,value:o[0]},i=[],n=0;for(;!e.done;)e=t.sample(n),i.push(e.value),n+=10;o=i,a=n-10,u="linear"}
1let h=function(t,e,i,{delay:n=0,duration:r,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){return t.animate({[e]:i,offset:l},{delay:n,duration:r,easing:function(t){if(t)return Array.isArray(t)?iD(t):iR[t]}(a),fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,o,{...r,delay:-l,duration:a,ease:u});return h.onfinish=()=>{t.set(o[o.length-1]),n&&n()},()=>{let{currentTime:e}=h;if(e){let i=ik(r);t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}el.update(()=>h.cancel())}}(e,t,p);{let t=ik(p);return()=>t.stop()}};function iq(t,e,i={}){var n;let r=eX(t,e,i.custom),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>iZ(t,r,i):()=>Promise.resolve(),a=(null==(n=t.variantChildren)?void 0:n.size)?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(i_).forEach((t,n)=>{o.push(iq(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(e)}}function iZ(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e),u=t.getValue("willChange");n&&(o=n);let h=[],c=r&&(null==(s=t.animationState)?void 0:s.getState()[r]);for(let e in l){let n=t.getValue(e),r=l[e];if(!n||void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let s={delay:i,elapsed:0,...o};if(t.shouldReduceMotion&&R.has(e)&&(s={...s,type:!1,delay:0}),!n.hasAnimated){let i=t.getProps()[eq];i&&(s.elapsed=function(t,e){let i,{MotionAppearAnimations:n}=window,r=(i=R.has(e)?"transform":e,`${t}: ${i}`),s=n&&n.get(r);return s?(el.render(()=>{try{s.cancel(),n.delete(r)}catch(t){}}),s.currentTime||0):0}(i,e))}let a=n.start(iG(e,n,r,s));eG(u)&&(u.add(e),a=a.then(()=>u.remove(e))),h.push(a)}return Promise.all(h).then(()=>{a&&function(t,e){let i=eX(t,e),{transitionEnd:n={},transition:r={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...n}){let i=tA(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ex(i))}}(t,a)})}function i_(t,e){return t.sortNodePosition(e)}let iK=[n.Animate,n.InView,n.Focus,n.Hover,n.Tap,n.Drag,n.Exit],iJ=[...iK].reverse(),iQ=iK.length;function i0(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let i1={animation:t2(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>iq(t,e,i)));else if("string"==typeof e)n=iq(t,e,i);else{let r="function"==typeof e?eX(t,e,i.custom):e;n=iZ(t,r,i)}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={[n.Animate]:i0(!0),[n.InView]:i0(),[n.Hover]:i0(),[n.Tap]:i0(),[n.Drag]:i0(),[n.Focus]:i0(),[n.Exit]:i0()},r=!0,s=(e,i)=>{let n=eX(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function o(n,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<iQ;e++){var f,g;let v=iJ[e],y=i[v],x=void 0!==a[v]?a[v]:l[v],b=p(x),w=v===o?y.isActive:null;!1===w&&(d=e);let V=x===l[v]&&x!==a[v]&&b;if(V&&r&&t.manuallyAnimateOnMount&&(V=!1),y.protectedKeys={...c},!y.isActive&&null===w||!x&&!y.prevProp||m(x)||"boolean"==typeof x)continue;let A=(f=y.prevProp,"string"==typeof(g=x)?g!==f:!!Array.isArray(g)&&!t4(g,f)),T=A||v===o&&y.isActive&&!V&&b||e>d&&b,P=Array.isArray(x)?x:[x],E=P.reduce(s,{});!1===w&&(E={});let{prevResolvedValues:S={}}=y,C={...S,...E},M=t=>{T=!0,h.delete(t),y.needsAnimating[t]=!0};for(let t in C){let e=E[t],i=S[t];c.hasOwnProperty(t)||(e!==i?tV(e)&&tV(i)?!t4(e,i)||A?M(t):y.protectedKeys[t]=!0:void 0!==e?M(t):h.add(t):void 0!==e&&h.has(t)?M(t):y.protectedKeys[t]=!0)}y.prevProp=x,y.prevResolvedValues=E,y.isActive&&(c={...c,...E}),r&&t.blockInitialAnimation&&(T=!1),T&&!V&&u.push(...P.map(t=>({animation:t,options:{type:v,...n}})))}if(h.size){let e={};h.forEach(i=>
1{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),u.push({animation:e})}let v=!!u.length;return r&&!1===a.initial&&!t.manuallyAnimateOnMount&&(v=!1),r=!1,v?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n,r){var s;if(i[e].isActive===n)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let a=o(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t)),m(e)&&(0,s.useEffect)(()=>e.subscribe(t),[e])}),exit:t2(t=>{let{custom:e,visualElement:i}=t,[r,o]=t9(),a=(0,s.useContext)(l);(0,s.useEffect)(()=>{i.isPresent=r;let t=i.animationState&&i.animationState.setActive(n.Exit,!r,{custom:a&&a.custom||e});t&&!r&&t.then(o)},[r])})},i5=(t,e)=>Math.abs(t-e);class i2{constructor(t,e,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=i4(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(i5(t.x,e.x)**2+i5(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=t8;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{if(this.lastMoveEvent=t,this.lastMoveEventInfo=i3(e,this.transformPagePoint),tk(t)&&0===t.buttons)return void this.handlePointerUp(t,e);el.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n}=this.handlers,r=i4(i3(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},t.touches&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=i;let n=i3(tR(t),this.transformPagePoint),{point:r}=n,{timestamp:s}=t8;this.history=[{...r,timestamp:s}];let{onSessionStart:o}=e;o&&o(t,i4(n,this.history)),this.removeListeners=tq(tI(window,"pointermove",this.handlePointerMove),tI(window,"pointerup",this.handlePointerUp),tI(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eu.update(this.updatePoint)}}function i3(t,e){return e?{point:e(t.point)}:t}function i9(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i4({point:t},e){return{point:t,delta:i9(t,i6(e)),offset:i9(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=i6(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>eK(.1)));)i--;if(!n)return{x:0,y:0};let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function i6(t){return t[t.length-1]}function i7(t){return t.max-t.min}function i8(t,e=0,i=.01){return Math.abs(t-e)<=i}function nt(t,e,i,n=.5){t.origin=n,t.originPoint=e3(e.min,e.max,t.origin),t.scale=i7(i)/i7(e),(i8(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=e3(i.min,i.max,t.origin)-t.originPoint,(i8(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ne(t,e,i,n){nt(t.x,e.x,i.x,null==n?void 0:n.originX),nt(t.y,e.y,i.y,null==n?void 0:n.originY)}function ni(t,e,i){t.min=i.min+e.min,t.max=t.min+i7(e)}function nn(t,e,i){t.min=e.min-i.min,t.max=t.min+i7(e)}function nr(t,e,i){nn(t.x,e.x,i.x),nn(t.y,e.y,i.y)}function ns(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function no(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function na(t,e,i){return{min:nl(t,e),max:nl(t,i)}}function nl(t,e){return"number"==typeof t?t:t[e]||0}let nu=()=>({translate:0,scale:1,origin:0,originPoint:0}),nh=()=>({x:nu(),y:nu()}),nc=()=>({min:0,max:0}),nd=()=>({x:nc(),y:nc()});function np(t){return[t("x"),t("y")]}function nm({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function nf(t){return void 0===t||1===t}function ng({scale:t,scaleX:e,scaleY:i}){return!nf(t)||!nf(e)||!nf(i)}function nv(t){return ng(t)||ny(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ny(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function nx(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function nb(t,e=0,i=1,n,r){t.min=nx(t.min,e,i,n,r),t.max=nx(t.max,e,i,n,r)}function nw(t,{x:e,y:i}){nb(t.x,e.translate,e.scale,e.originPoint),nb(t.y,i.translate,i.scale,i.originPoint)}function nV(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function nA(t,e){t.min=t.min+e,t.max=t.max+e}function nT(t,e,[i,n,r]){let s=void 0!==e[r]?e[r]:.5,o=e3(t.min,t.max,s);nb(t,e[i],e[n],o,e.scale)}let nP=["x","scaleX","originX"],nE=["y","scaleY","originY"];function nS(t,e){nT(t.x,e,nP),nT(t.y,e,nE)}function nC(t,e){return nm(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let nM=new WeakMap;
1class nk{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=nd(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;let i=t=>{this.stopAnimation(),e&&this.snapToCursor(tR(t,"page").point)},r=(t,e)=>{var i;let{drag:r,dragPropagation:s,onDragStart:o}=this.getProps();(!r||s||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tz(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),np(t=>{var e,i;let n=this.getAxisMotionValue(t).get()||0;if(_.test(n)){let r=null==(i=null==(e=this.visualElement.projection)?void 0:e.layout)?void 0:i.layoutBox[t];r&&(n=i7(r)*(parseFloat(n)/100))}this.originPoint[t]=n}),null==o||o(t,e),null==(i=this.visualElement.animationState)||i.setActive(n.Drag,!0))},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&(null==r||r(this.currentDirection));return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),null==s||s(t,e)},o=(t,e)=>this.stop(t,e);this.panSession=new i2(t,{onSessionStart:i,onStart:r,onMove:s,onSessionEnd:o},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();null==r||r(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null==(t=this.panSession)||t.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null==(e=this.visualElement.animationState)||e.setActive(n.Drag,!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nD(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?e3(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?e3(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:i}=this.visualElement.projection||{},n=this.constraints;t&&d(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ns(t.x,i,r),y:ns(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:na(t,"left","right"),y:na(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&np(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!d(e))return!1;let n=e.current;e_(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=nC(t,i),{scroll:r}=e;return r&&(nA(n.x,r.offset.x),nA(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:no(t.x,s.x),y:no(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=nm(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(np(o=>{if(!nD(o,e,this.currentDirection))return;let l=(null==a?void 0:a[o])||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iG(t,i,0,e))}stopAnimation(){np(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;let i="_drag"+t.toUpperCase();return this.visualElement.getProps()[i]||this.visualElement.getValue(t,(null==(e=this.visualElement.getProps().initial)?void 0:e[t])||0)}snapToCursor(t){np(e=>{let{drag:i}=this.getProps();if(!nD(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-e3(i,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!d(i)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};np(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();r[t]=function(t,e){let i=.5,n=i7(t),r=i7(e);return r>n?i=is(e.min,e.max-n,t.min):n>r&&(i=is(t.min,t.max-r,e.min)),U(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null==(t=n.root)||t.updateScroll(),n.updateLayout(),this.resolveConstraints(),np(t=>{if(!nD(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set(e3(n,s,r[t]))})}addListeners(){var t;if(!this.visualElement.current)return;nM.set(this.visualElement,this);let e=tI(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();d(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(null==(t=n.root)||t.updateScroll(),n.updateLayout()),i();let s=tC(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(np(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),null==o||o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function nD(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nR={pan:t2(function({onPan:t,onPanStart:e,onPanEnd:i,onPanSessionStart:n,visualElement:r}){let a=(0,s.useRef)(null),{transformPagePoint:l}=(0,s.useContext)(o),u={onSessionStart:n,onStart:e,onMove:t,onEnd:(t,e)=>{a.current=null,i&&i(t,e)}};(0,s.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(u)}),tO(r,"pointerdown",(t||e||i||n)&&function(t){a.current=new i2(t,u,{transformPagePoint:l})}),tX(()=>a.current&&a.current.end())}),drag:t2(function(t){let{dragControls:e,visualElement:i}=t,n=w(()=>new nk(i));(0,s.useEffect)(()=>e&&e.subscribe(n),[n,e]),(0,s.useEffect)(()=>n.addListeners(),[n])})};function nL(t){return"string"==typeof t&&t.startsWith("var(--")}let nB=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nF(t,e,i=1){e_(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=nB.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);return s?s.trim():nL(r)?nF(r,e,i+1):r}let nj=new Set(["width","height","top","left","right","bottom","x","y"]),nI=t=>nj.has(t),nO=(t,e)=>{t.set(e,!1),t.set(e)},nU=t=>t===N||t===K;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(r||(r={}));let nN=(t,e)=>parseFloat(t.split(", ")[e]),n$=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return nN(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?nN(e[1],t):0}},nz=new Set(["x","y","z"]),nW=D.filter(t=>!nz.has(t)),nH={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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:n$(4,13),y:n$(5,14)},nY={current:null},nX={current:!1},nG=Object.keys(b),nq=nG.length,nZ=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class n_{constructor({parent:t,props:e,reducedMotionConfig:i,visualState:n},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>el.render(this.render,!1,!0);let{latestValues:s,renderState:o}=n;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=o,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=g(e),this.isVariantNode=v(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(let t in l){let e=l[t];void 0!==s[t]&&B(e)&&(e.set(s[t],!1),eG(a)&&a.add(t))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null==(e=this.parent)?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),nX.current||function(){if(nX.current=!0,u)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nY.current=t.matches;t.addListener(e),e()}else nY.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nY.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,i;for(let n in null==(t=this.projection)||t.unmount(),eu.update(this.notifyUpdate),eu.render(this.render),this.valueSubscriptions.forEach(t=>t()),null==(e=this.removeFromVariantTree)||e.call(this),null==(i=this.parent)||i.children.delete(this),this.events)this.events[n].clear();this.current=null}bindToMotionValue(t,e){let i=R.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&el.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,i,n,r,o){let a=[];"production"!==t_&&i&&e&&e_(!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 e=0;e<nq;e++){let i=nG[e],{isEnabled:n,Component:r}=b[i];n(t)&&r&&a.push((0,s.createElement)(r,{key:i,...t,visualElement:this}))}if(!this.projection&&r){this.projection=new r(n,this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:i,drag:s,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:i,alwaysMeasureLayout:!!s||a&&d(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nd()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<nZ.length;e++){let i=nZ[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let s=e[r],o=i[r];if(B(s))t.addValue(r,s),eG(n)&&n.add(r);else if(B(o))t.addValue(r,ex(s,{owner:t})),eG(n)&&n.remove(r);else if(o!==s)if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,ex(void 0!==e?e:s))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null==(e=this.props.variants)?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null==(t=this.parent)?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,i;if(t)return null==(e=this.parent)?void 0:e.getVariantContext();if(!this.isControllingVariants){let t=(null==(i=this.parent)?void 0:i.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let n={};for(let t=0;t<nJ;t++){let e=nK[t],i=this.props[e];(p(i)||!1===i)&&(n[e]=i)}return n}addVariantChild(t){var e;let i=this.getClosestVariantNode();if(i)return null==(e=i.variantChildren)||e.add(t),()=>i.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null==(e=this.valueSubscriptions.get(t))||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ex(e,{owner:this}),this.addValue(t,i)),i}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,n="string"==typeof i||"object"==typeof i?null==(e=tw(this.props,i))?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||B(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new eg),this.events[t].add(e)}notify(t,...e){var i;null==(i=this.events[t])||i.notify(...e)}}let nK=["initial",...iK],nJ=nK.length;class nQ extends n_{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var i;return null==(i=t.style)?void 0:i[e]}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:n},r){let s=function(t,e,i){var n;let r={};for(let s in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(s,e);r[s]=void 0!==t?t:null==(n=i.getValue(s))?void 0:n.get()}return r}(i,t||{},this);if(n&&(e&&(e=n(e)),i&&(i=n(i)),s&&(s=n(s))),r){!function(t,e,i){var n,r;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(r=null!=(n=i[o])?n:t.readValue(o))?r:e[o]),null!=u&&("string"==typeof u&&(t6(u)||t7(u))?u=parseFloat(u):!eY(u)&&eL.test(l)&&(u=eN(o,l)),t.addValue(o,ex(u,{owner:t})),void 0===i[o]&&(i[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,i,s);let t=((t,e,i,n)=>{var r,s,o,a;let l=function(t,{...e},i){let n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!nL(e))return;let i=nF(e,n);i&&t.set(i)}),e){let t=e[r];if(!nL(t))continue;let s=nF(t,n);s&&(e[r]=s,i&&void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,n);return e=l.target,r=t,s=e,o=i,a=n=l.transitionEnd,Object.keys(s).some(nI)?((t,e,i={},n={})=>{e={...e},n={...n};let r=Object.keys(e).filter(nI),s=[],o=!1,a=[];if(r.forEach(r=>{let l,u=t.getValue(r);if(!t.hasValue(r))return;let h=i[r],c=eW(h),d=e[r];if(tV(d)){let t=d.length,e=+(null===d[0]);c=eW(h=d[e]);for(let i=e;i<t;i++)l?e_(eW(d[i])===l,"All keyframes must be of the same type"):e_((l=eW(d[i]))===c||nU(c)&&nU(l),"Keyframes must be of the same dimension as the current value")}else l=eW(d);if(c!==l)if(nU(c)&&nU(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===K&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[r]=c.transform(d):(o||(s=function(t){let e=[];return nW.forEach(i=>
1{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e.length&&t.render(),e}(t),o=!0),a.push(r),n[r]=void 0!==n[r]?n[r]:e[r],nO(u,d))}),!a.length)return{target:e,transitionEnd:n};{let i=a.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,i)=>{let n=e.measureViewportBox(),r=getComputedStyle(e.current),{display:s}=r,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=nH[t](n,r)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{nO(e.getValue(i),o[i]),t[i]=nH[i](a,r)}),t})(e,t,a);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),u&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}})(r,s,o,a):{target:s,transitionEnd:a}})(this,i,s,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}}class n0 extends nQ{readValueFromInstance(t,e){if(R.has(e)){let t=eU(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(I(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return nC(t,e)}build(t,e,i,n){tn(t,e,i,n.transformTemplate)}scrapeMotionValuesFromProps(t){return tx(t)}renderInstance(t,e,i,n){tg(t,e,i,n)}}class n1 extends nQ{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var i;return R.has(e)?(null==(i=eU(e))?void 0:i.default)||0:(e=tv.has(e)?e:tf(e),t.getAttribute(e))}measureInstanceViewportBox(){return nd()}scrapeMotionValuesFromProps(t){return tb(t)}
1build(t,e,i,n){td(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){ty(t,e,i,n)}mount(t){this.isSVGTag=tm(t.tagName),super.mount(t)}}let n5=(t,e)=>M(t)?new n1(e,{enableHardwareAcceleration:!1}):new n0(e,{enableHardwareAcceleration:!0});function n2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n3={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!K.test(t))return t;else t=parseFloat(t);let i=n2(t,e.target.x),n=n2(t,e.target.y);return`${i}% ${n}%`}},n9="_$css",n4={correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t,r=t.includes("var("),s=[];r&&(t=t.replace(nB,t=>(s.push(t),n9)));let o=eL.parse(t);if(o.length>5)return n;let a=eL.createTransformer(t),l=+("number"!=typeof o[0]),u=i.x.scale*e.x,h=i.y.scale*e.y;o[0+l]/=u,o[1+l]/=h;let c=e3(u,h,.5);"number"==typeof o[2+l]&&(o[2+l]/=c),"number"==typeof o[3+l]&&(o[3+l]/=c);let d=a(o);if(r){let t=0;d=d.replace(n9,()=>{let e=s[t];return t++,e})}return d}};class n6 extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(k,n7),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),V.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||el.postRender(()=>{var t;(null==(t=s.getStack())?void 0:t.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(n),(null==i?void 0:i.deregister)&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;null==t||t()}render(){return null}}let n7={borderRadius:{...n3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n3,borderTopRightRadius:n3,borderBottomLeftRadius:n3,borderBottomRightRadius:n3,boxShadow:n4},n8=["TopLeft","TopRight","BottomLeft","BottomRight"],rt=n8.length,re=t=>"string"==typeof t?parseFloat(t):t,ri=t=>"number"==typeof t||K.test(t);function rn(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rr=ro(0,.5,id),rs=ro(.5,.95,il);function ro(t,e,i){return n=>n<t?0:n>e?1:i(is(t,e,n))}function ra(t,e){t.min=e.min,t.max=e.max}function rl(t,e){ra(t.x,e.x),ra(t.y,e.y)}function ru(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rh(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(_.test(e)&&(e=parseFloat(e),e=e3(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e3(s.min,s.max,n);t===s&&(a-=e),t.min=ru(t.min,e,i,a,r),t.max=ru(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rc=["x","scaleX","originX"],rd=["y","scaleY","originY"];function rp(t,e,i,n){rh(t.x,e,rc,null==i?void 0:i.x,null==n?void 0:n.x),rh(t.y,e,rd,null==i?void 0:i.y,null==n?void 0:n.y)}function rm(t){return 0===t.translate&&1===t.scale}function rf(t){return rm(t.x)&&rm(t.y)}function rg(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 rv(t){return i7(t.x)/i7(t.y)}class ry{constructor(){this.members=[]}add(t){em(this.members,t),t.scheduleRender()}remove(t){if(ef(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){var i;let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),(null==(i=t.root)?void 0:i.isUpdating)&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{var e,i,n,r,s;null==(i=(e=t.options).onExitComplete)||i.call(e),null==(s=null==(n=t.resumingFrom)?void 0:(r=n.options).onExitComplete)||s.call(r)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rx(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(n=`translate3d(${r}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+=`rotate(${t}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(n+=`scale(${o}, ${a})`),n||"none"}let rb=(t,e)=>t.depth-e.depth;class rw{constructor(){this.children=[],this.isDirty=!1}add(t){em(this.children,t),this.isDirty=!0}remove(t){ef(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rb),this.isDirty=!1,this.children.forEach(t)}}let rV=["","X","Y","Z"],rA=0;function rT({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t,i={},n=null==e?void 0:e()){this.id=rA++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!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(rR),this.nodes.forEach(rL)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=i,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.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 rw)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eg),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);null==i||i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,i=!1){var n;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),null==(n=this.parent)||n.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),i&&(s||r)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=iL(n,250),V.hasAnimatedSinceResize&&(V.hasAnimatedSinceResize=!1,this.nodes.forEach(rD))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{var r,s,a,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=null!=(s=null!=(r=this.options.transition)?r:o.getDefaultTransition())?s:rU,{onLayoutAnimationStart:c,onLayoutAnimationComplete:d}=o.getProps(),p=!this.targetLayout||!rg(this.targetLayout,n)||i,m=!e&&i;if((null==(a=this.resumeFrom)?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);let e={...iz(h,"layout"),onPlay:c,onComplete:d};o.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||rD(this),this.isLead()&&(null==(u=(l=this.options).onExitComplete)||u.call(l));this.targetLayout=n})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null==(t=this.getStack())||t.remove(this),null==(e=this.parent)||e.children.delete(this),this.instance=void 0,eu.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.isTreeAnimationBlocked())||!1}startUpdate(){var t;!this.isUpdateBlocked()&&(this.isUpdating=!0,null==(t=this.nodes)||t.forEach(rB),this.animationId++)}willUpdate(t=!0){var e,i,n;if(this.root.isUpdateBlocked()){null==(i=(e=this.options).onExitComplete)||i.call(e);return}
1if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot")}let{layoutId:r,layout:s}=this.options;if(void 0===r&&!s)return;let o=null==(n=this.options.visualElement)?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==o?void 0:o(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rM);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rN),this.potentialNodes.clear()),this.nodes.forEach(rk),this.nodes.forEach(rP),this.nodes.forEach(rE),this.clearAllSnapshots(),eh.update(),eh.preRender(),eh.render())}clearAllSnapshots(){this.nodes.forEach(rC),this.sharedNodes.forEach(rF)}scheduleUpdateProjection(){el.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){el.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance||(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();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nd(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null==(t=this.options.visualElement)||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:n(this.instance),offset:i(this.instance)})}resetTransform(){var t;if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!rf(this.projectionDelta),n=null==(t=this.options.visualElement)?void 0:t.getProps().transformTemplate,s=null==n?void 0:n(this.latestValues,""),o=s!==this.prevTransformTemplateValue;e&&(i||nv(this.latestValues)||o)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),r$((e=n).x),r$(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return nd();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(nA(e.x,i.offset.x),nA(e.y,i.offset.y)),e}removeElementScroll(t){let e=nd();rl(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;if(n!==this.root&&r&&s.layoutScroll){if(r.isRoot){rl(e,t);let{scroll:i}=this.root;i&&(nA(e.x,-i.offset.x),nA(e.y,-i.offset.y))}nA(e.x,r.offset.x),nA(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=nd();rl(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nS(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nv(n.latestValues)&&nS(i,n.latestValues)}return nv(this.latestValues)&&nS(i,this.latestValues),i}removeTransform(t){var e;let i=nd();rl(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!nv(n.latestValues))continue;ng(n.latestValues)&&n.updateSnapshot();let r=nd();rl(r,n.measurePageBox()),rp(i,n.latestValues,null==(e=n.snapshot)?void 0:e.layoutBox,r)}return nv(this.latestValues)&&rp(i,this.latestValues),i}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,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,e,i,n;let r=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:s,layoutId:o}=this.options;
1if(this.layout&&(s||o)){if(!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=nd(),this.relativeTargetOrigin=nd(),nr(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&&((this.target||(this.target=nd(),this.targetWithTransforms=nd()),this.relativeTarget&&this.relativeTargetOrigin&&(null==(t=this.relativeParent)?void 0:t.target))?(e=this.target,i=this.relativeTarget,n=this.relativeParent.target,ni(e.x,i.x,n.x),ni(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rl(this.target,this.layout.layoutBox),nw(this.target,this.targetDelta)):rl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=nd(),this.relativeTargetOrigin=nd(),nr(this.relativeTargetOrigin,this.target,t.target),rl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ng(this.parent.latestValues)||ny(this.parent.latestValues)))if((this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout)return this.parent;else return this.parent.getClosestProjectingParent()}calcProjection(){var t;let{isProjectionDirty:e,isTransformDirty:i}=this;this.isProjectionDirty=this.isTransformDirty=!1;let n=this.getLead(),r=!!this.resumingFrom||this!==n,s=!0;if(e&&(s=!1),r&&i&&(s=!1),s)return;let{layout:o,layoutId:a}=this.options;if(this.isTreeAnimating=!!((null==(t=this.parent)?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(o||a))return;rl(this.layoutCorrected,this.layout.layoutBox),function(t,e,i,n=!1){var r,s;let o,a,l=i.length;if(l){e.x=e.y=1;for(let u=0;u<l;u++)a=(o=i[u]).projectionDelta,(null==(s=null==(r=o.instance)?void 0:r.style)?void 0:s.display)!=="contents"&&(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&nS(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,nw(t,a)),n&&nv(o.latestValues)&&nS(t,o.latestValues));e.x=nV(e.x),e.y=nV(e.y)}}(this.layoutCorrected,this.treeScale,this.path,r);let{target:l}=n;if(!l)return;this.projectionDelta||(this.projectionDelta=nh(),this.projectionDeltaWithTransform=nh());let u=this.treeScale.x,h=this.treeScale.y,c=this.projectionTransform;ne(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rx(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==u||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,i,n;null==(i=(e=this.options).scheduleRender)||i.call(e),t&&(null==(n=this.getStack())||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var i,n;let r=this.snapshot,s=(null==r?void 0:r.latestValues)||{},o={...this.latestValues},a=nh();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;let l=nd(),u=(null==r?void 0:r.source)!==(null==(i=this.layout)?void 0:i.source),h=1>=((null==(n=this.getStack())?void 0:n.members.length)||0),c=!!(u&&!h&&!0===this.options.crossfade&&!this.path.some(rO));this.animationProgress=0,this.mixTargetDelta=e=>{var i,n,r,d,p;let m=e/1e3;rj(a.x,t.x,m),rj(a.y,t.y,m),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null==(i=this.relativeParent)?void 0:i.layout)&&(nr(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,r=this.relativeTargetOrigin,d=l,p=m,rI(n.x,r.x,d.x,p),rI(n.y,r.y,d.y,p)),u&&(this.animationValues=o,function(t,e,
1i,n,r,s){r?(t.opacity=e3(0,void 0!==i.opacity?i.opacity:1,rr(n)),t.opacityExit=e3(void 0!==e.opacity?e.opacity:1,0,rs(n))):s&&(t.opacity=e3(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<rt;r++){let s=`border${n8[r]}Radius`,o=rn(e,s),a=rn(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ri(o)===ri(a)?(t[s]=Math.max(e3(re(o),re(a),n),0),(_.test(a)||_.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=e3(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,m,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(0)}startAnimation(t){var e,i;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),this.resumingFrom&&(null==(i=this.resumingFrom.currentAnimation)||i.stop()),this.pendingAnimation&&(eu.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=el.update(()=>{V.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i={}){let n=B(0)?0:ex(t);return n.start(iG("",n,1e3,i)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}(0,0,{...t,onUpdate:e=>{var i;this.mixTargetDelta(e),null==(i=t.onUpdate)||i.call(t,e)},onComplete:()=>{var e;null==(e=t.onComplete)||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())||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null==(t=this.mixTargetDelta)||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rz(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||nd();let e=i7(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=i7(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rl(e,i),nS(e,r),ne(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){var i,n,r;this.sharedNodes.has(t)||this.sharedNodes.set(t,new ry),this.sharedNodes.get(t).add(e),e.promote({transition:null==(i=e.options.initialPromotionConfig)?void 0:i.transition,preserveFollowOpacity:null==(r=null==(n=e.options.initialPromotionConfig)?void 0:n.shouldPreserveFollowOpacity)?void 0:r.call(n,e)})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e<rV.length;e++){let r="rotate"+rV[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in null==t||t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,i,n;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let s=null==(e=this.options.visualElement)?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tT(t.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tT(t.pointerEvents)||""),this.hasProjected&&!nv(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rx(this.projectionDeltaWithTransform,this.treeScale,a),s&&(r.transform=s(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let t in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!=(n=null!=(i=a.opacity)?i:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,k){if(void 0===a[t])continue;let{correct:e,applyTo:i}=k[t],n=e(a[t],o);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=o===this?tT(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rM),this.root.sharedNodes.clear()}}}function rP(t){t.updateLayout()}function rE(t){var e,i,n;let r=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:i}=t.layout,{animationType:n}=t.options,s=r.source!==t.layout.source;"size"===n?np(t=>{let i=s?r.measuredBox[t]:r.layoutBox[t],n=i7(i);i.min=e[t].min,i.max=i.min+n}):rz(n,r.layoutBox,e)&&np(t=>{let i=s?r.measuredBox[t]:r.layoutBox[t],n=i7(e[t]);i.max=i.min+n});let o=nh();ne(o,e,r.layoutBox);let a=nh();s?ne(a,t.applyTransform(i,!0),r.measuredBox):ne(a,e,r.layoutBox);let l=!rf(o),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:t,layout:n}=i;if(t&&n){let i=nd();nr(i,r.layoutBox,t.layoutBox);let s=nd();nr(s,e,n.layoutBox),rg(i,s)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:r,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null==(n=(i=t.options).onExitComplete)||n.call(i));t.options.transition=void 0}function rS(t){t.isProjectionDirty||(t.isProjectionDirty=!!(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=!!(t.parent&&t.parent.isTransformDirty))}function rC(t){t.clearSnapshot()}function rM(t){t.clearMeasurements()}function rk(t){let{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rD(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function rR(t){t.resolveTargetDelta()}function rL(t){t.calcProjection()}function rB(t){t.resetRotation()}function rF(t){t.removeLeadSnapshot()}function rj(t,e,i){t.translate=e3(e.translate,0,i),t.scale=e3(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rI(t,e,i,n){t.min=e3(e.min,i.min,n),t.max=e3(e.max,i.max,n)}function rO(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rU={duration:.45,ease:[.4,0,.1,1]};function rN(t,e){let i=t.root;for(let e=t.path.length-1;e>=0;e--)if(t.path[e].instance){i=t.path[e];break}
1let n=(i&&i!==t.root?i.instance:document).querySelector(`[data-projection-id="${e}"]`);n&&t.mount(n,!0)}function r$(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function rz(t,e,i){return"position"===t||"preserve-aspect"===t&&!i8(rv(e),rv(i),.2)}let rW=rT({attachResizeListener:(t,e)=>tC(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rH={current:void 0},rY=rT({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rH.current){let t=new rW(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),rH.current=t}return rH.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rX={...i1,...t3,...nR,measureLayout:function(t){let[e,i]=t9(),n=(0,s.useContext)(T);return s.createElement(n6,{...t,layoutGroup:n,switchLayoutGroup:(0,s.useContext)(E),isPresent:e,safeToRemove:i})}},rG=function(t){function e(i,n={}){return function({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:i,useRender:n,useVisualState:r,Component:m}){t&&function(t){for(let e in t)"projectionNodeConstructor"===e?b.projectionNodeConstructor=t[e]:b[e].Component=t[e]}(t);let f=(0,s.forwardRef)(function(f,v){var x;let S={...(0,s.useContext)(o),...f,layoutId:function({layoutId:t}){let e=(0,s.useContext)(T).id;return e&&void 0!==t?e+"-"+t:t}(f)},{isStatic:C}=S,M=null,k=function(t){let{initial:e,animate:i}=function(t,e){if(g(t)){let{initial:e,animate:i}=t;return{initial:!1===e||p(e)?e:void 0,animate:p(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(a));return(0,s.useMemo)(()=>({initial:e,animate:i}),[y(e),y(i)])}(f),D=C?void 0:w(()=>{if(V.hasEverUpdated)return A++}),R=r(f,C);if(!C&&u){k.visualElement=function(t,e,i,n){let r=(0,s.useContext)(a).visualElement,u=(0,s.useContext)(c),d=(0,s.useContext)(l),p=(0,s.useContext)(o).reducedMotion,m=(0,s.useRef)();n=n||u.renderer,!m.current&&n&&(m.current=n(t,{visualState:e,parent:r,props:i,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));let f=m.current;return h(()=>{f&&f.render()}),h(()=>{f&&f.animationState&&f.animationState.animateChanges()}),h(()=>()=>f&&f.notify("Unmount"),[]),f}(m,R,S,e);let n=(0,s.useContext)(c).strict,r=(0,s.useContext)(E);k.visualElement&&(M=k.visualElement.loadFeatures(S,n,t,D,i||b.projectionNodeConstructor,r))}return s.createElement(P,{visualElement:k.visualElement,props:S},M,s.createElement(a.Provider,{value:k},n(m,f,D,(x=k.visualElement,(0,s.useCallback)(t=>{t&&R.mount&&R.mount(t),x&&(t?x.mount(t):x.unmount()),v&&("function"==typeof v?v(t):d(v)&&(v.current=t))},[x])),R,C,k.visualElement)))});return f[S]=m,f}(t(i,n))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,n)=>(i.has(n)||i.set(n,e(n)),i.get(n))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,n,r){return{...M(t)?tE:tS,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,r,{latestValues:o},a)=>{let l=(M(e)?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=tp();return td(i,e,{enableHardwareAcceleration:!1},tm(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ts(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e,i){let n={},r=function(t,e,i){let n=t.style||{},r={};return ts(r,n,t),Object.assign(r,function({transformTemplate:t},e,i){return(0,s.useMemo)(()=>{let n=tr();return tn(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(r):r}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),n.style=r,n})(i,o,a,e),u={...function(t,e,i){let n={};for(let r in t)(tl(r)||!0===i&&ta(r)||!e&&!ta(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),...l,ref:r};return n&&(u["data-projection-id"]=n),(0,s.createElement)(e,u)}}(e),createVisualElement:n,projectionNodeConstructor:r,Component:t}})(t,e,rX,n5,rY))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.