PageSourceSearch

https://www.agriedge.ma/_next/static/chunks/3454-18c11fbf16d21f0c.js

js agriedge.ma collected 2026-10-06 16:28:16 UTC 93,049 bytes, 1 lines download raw bytes

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

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.