1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5794],{74522:function(t,e,i){i.d(e,{p:function(){return n}});var s=i(59994);let n=(0,s.createContext)({})},61839:function(t,e,i){i.d(e,{_:function(){return n}});var s=i(59994);let n=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},1768:function(t,e,i){i.d(e,{O:function(){return n}});var s=i(59994);let n=(0,s.createContext)(null)},90130:function(t,e,i){i.d(e,{Z:function(){return r}});var s=i(14993);let n=["read","resolveKeyframes","update","preRender","render","postRender"];function r(t,e){let i=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=n.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,n=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule(t,n=!1,o=!1){let a=o&&s,l=a?e:i;return n&&r.add(t),l.has(t)||l.add(t),t},cancel(t){i.delete(t),r.delete(t)},process(t){if(o=t,s){n=!0;return}s=!0,[e,i]=[i,e],i.clear(),e.forEach(a),s=!1,n&&(n=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:m}=l,f=()=>{let n=s.c.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=r?1e3/60:Math.max(Math.min(n-o.timestamp,40),1),o.timestamp=n,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),m.process(o),o.isProcessing=!1,i&&e&&(r=!1,t(f))},v=()=>{i=!0,r=!0,o.isProcessing||t(f)},g=n.reduce((t,e)=>{let s=l[e];return t[e]=(t,e=!1,n=!1)=>(i||v(),s.schedule(t,e,n)),t},{}),y=t=>{for(let e=0;e<n.length;e++)l[n[e]].cancel(t)};return{schedule:g,cancel:y,state:o,steps:l}}},62983:function(t,e,i){i.d(e,{Pn:function(){return o},S6:function(){return l},Wi:function(){return r},w0:function(){return a}});var s=i(194),n=i(90130);let{schedule:r,cancel:o,state:a,steps:l}=(0,n.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.Z,!0)},91031:function(t,e,i){i.d(e,{E:function(){return rh}});var s,n=i(72329),r=i(59994),o=i(61839);let a=(0,r.createContext)({});var l=i(1768),u=i(31513);let h=(0,r.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),c="data-"+d("framerAppearId");var p=i(90130);let{schedule:m,cancel:f}=(0,p.Z)(queueMicrotask,!1);function v(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let g=(0,r.createContext)({}),y=!1;function x(){window.HandoffComplete=!0}function P(t){return"string"==typeof t||Array.isArray(t)}function w(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let T=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit",],b=["initial",...T];function S(t){return w(t.animate)||b.some(e=>P(t[e]))}function A(t){return Boolean(S(t)||t.variants)}function V(t){return Array.isArray(t)?t.join(" "):t}let C={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag",],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},E={};for(let M in C)E[M]={isEnabled:t=>C[M].some(e=>!!t[e])};var R=i(6200),k=i(74522);let D=Symbol.for("motionComponentSymbol"),L=["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 j(t){if("string"!=typeof t||t.includes("-"));else if(L.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let B={},F=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY",],O=new Set(F);function W(t,{layout:e,layoutId:i}){return O.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!B[t]||"opacity"===t)}let U=t=>Boolean(t&&t.getVelocity),I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$=F.length,N=t=>e=>"string"==typeof e&&e.startsWith(t),z=N("--"),K=N("var(--"),H=t=>{let e=K(t);return!!e&&Y.test(t.split("/*")[0].trim())},Y=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Z=(t,e)=>e&&"number"==typeof t?e.transform(t):t,X=(t,e,i)=>i>e?e:i<t?t:i,G={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},q={...G,transform:t=>X(0,1,t)},_={...G,default:1},J=t=>Math.round(1e5*t)/1e5,Q=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,te=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function ti(t){return"string"==typeof t}let ts=t=>({test:e=>ti(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tn=ts("deg"),tr=ts("%"),to=ts("px"),ta=ts("vh"),tl=ts("vw"),tu={...tr,parse:t=>tr.parse(t)/100,transform:t=>tr.transform(100*t)},th={...G,transform:Math.round},td={borderWidth:to,borderTopWidth:to,borderRightWidth:to,borderBottomWidth:to,borderLeftWidth:to,borderRadius:to,radius:to,borderTopLeftRadius:to,borderTopRightRadius:to,borderBottomRightRadius:to,borderBottomLeftRadius:to,width:to,maxWidth:to,height:to,maxHeight:to,size:to,top:to,right:to,bottom:to,left:to,padding:to,paddingTop:to,paddingRight:to,paddingBottom:to,paddingLeft:to,margin:to,marginTop:to,marginRight:to,marginBottom:to,marginLeft:to,rotate:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:_,scaleX:_,scaleY:_,scaleZ:_,skew:tn,skewX:tn,skewY:tn,distance:to,translateX:to,translateY:to,translateZ:to,x:to,y:to,z:to,perspective:to,transformPerspective:to,opacity:q,originX:tu,originY:tu,originZ:to,zIndex:th,backgroundPositionX:to,backgroundPositionY:to,fillOpacity:q,strokeOpacity:q,numOctaves:th};function tc(t,e,i){let{style:s,vars:n,transform:r,transformOrigin:o}=t,a=!1,l=!1,u=!0;for(let h in e){let d=e[h];
1if(z(h)){n[h]=d;continue}let c=td[h],p=Z(d,c);if(O.has(h)){if(a=!0,r[h]=p,!u)continue;d!==(c.default||0)&&(u=!1)}else h.startsWith("origin")?(l=!0,o[h]=p):s[h]=p}if(!e.transform&&(a||i?s.transform=function(t,e,i){let s="";for(let n=0;n<$;n++){let r=F[n];if(void 0!==t[r]){let o=I[r]||r;s+=`${o}(${t[r]}) `}}return s=s.trim(),i?s=i(t,e?"":s):e&&(s="none"),s}(t.transform,u,i):s.transform&&(s.transform="none")),l){let{originX:m="50%",originY:f="50%",originZ:v=0}=o;s.transformOrigin=`${m} ${f} ${v}`}}let tp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tm(t,e,i){for(let s in e)U(e[s])||W(s,i)||(t[s]=e[s])}function tf(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return tm(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=tp();return tc(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}let tv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport",]);function tg(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tv.has(t)}let ty=t=>!tg(t);try{(s=require("@emotion/is-prop-valid").default)&&(ty=t=>t.startsWith("on")?!tg(t):s(t))}catch(tx){}function tP(t,e,i){return"string"==typeof t?t:to.transform(e+i*t)}let tw={offset:"stroke-dashoffset",array:"stroke-dasharray"},tT={offset:"strokeDashoffset",array:"strokeDasharray"};function tb(t,{attrX:e,attrY:i,attrScale:s,originX:n,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d){if(tc(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&&(m&&(p.transform=c.transform),delete c.transform),m&&(void 0!==n||void 0!==r||p.transform)&&(p.transformOrigin=function(t,e,i){let s=tP(e,t.x,t.width),n=tP(i,t.y,t.height);return`${s} ${n}`}(m,void 0!==n?n:.5,void 0!==r?r:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==o&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?tw:tT;t[r.offset]=to.transform(-s);let o=to.transform(e),a=to.transform(i);t[r.array]=`${o} ${a}`}(c,o,a,l,!1)}let tS=()=>({...tp(),attrs:{}}),tA=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tV(t,e,i,s){let n=(0,r.useMemo)(()=>{let i=tS();return tb(i,e,tA(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let o={};tm(o,t.style,t),n.style={...o,...n.style}}return n}function tC(t,{style:e,vars:i},s,n){for(let r in Object.assign(t.style,e,n&&n.getProjectionStyles(s)),i)t.style.setProperty(r,i[r])}let tE=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 tM(t,e,i,s){for(let n in tC(t,e,void 0,s),e.attrs)t.setAttribute(tE.has(n)?n:d(n),e.attrs[n])}function tR(t,e,i){var s;let{style:n}=t,r={};for(let o in n)(U(n[o])||e.style&&U(e.style[o])||W(o,t)||(null===(s=null==i?void 0:i.getValue(o))||void 0===s?void 0:s.liveStyle)!==void 0)&&(r[o]=n[o]);return i&&n&&"string"==typeof n.willChange&&(i.applyWillChange=!1),r}function tk(t,e,i){let s=tR(t,e,i);for(let n in t)if(U(t[n])||U(e[n])){let r=-1!==F.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;s[r]=t[n]}return s}function tD(t){let e=[{},{}];
1return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tL(t,e,i,s){if("function"==typeof e){let[n,r]=tD(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[o,a]=tD(s);e=e(void 0!==i?i:t.custom,o,a)}return e}var tj=i(93219);let tB=t=>Array.isArray(t),tF=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),tO=t=>tB(t)?t[t.length-1]||0:t;function tW(t){let e=U(t)?t.get():t;return tF(e)?e.toValue():e}let tU=new Set(["opacity","clipPath","filter","transform"]);function tI(t){return O.has(t)?"transform":tU.has(t)?d(t):void 0}function t$(t,e){-1===t.indexOf(e)&&t.push(e)}function tN(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}let tz=t=>(e,i)=>{let s=(0,r.useContext)(a),n=(0,r.useContext)(l.O),o=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:i,onMount:s},n,r,o,a){let l={latestValues:function(t,e,i,s,n){var r;let o={},a=[],l=s&&(null===(r=t.style)||void 0===r?void 0:r.willChange)===void 0,u=n(t,{});for(let h in u)o[h]=tW(u[h]);let{initial:d,animate:c}=t,p=S(t),m=A(t);e&&m&&!p&&!1!==t.inherit&&(void 0===d&&(d=e.initial),void 0===c&&(c=e.animate));let f=!!i&&!1===i.initial;f=f||!1===d;let v=f?c:d;return v&&"boolean"!=typeof v&&!w(v)&&tH(t,v,(t,e)=>{for(let i in t){let s=t[i];if(Array.isArray(s)){let n=f?s.length-1:0;s=s[n]}null!==s&&(o[i]=s)}for(let r in e)o[r]=e[r]}),l&&(c&&!1!==d&&!w(c)&&tH(t,c,t=>{for(let e in t)tK(a,e)}),a.length&&(o.willChange=a.join(","))),o}(n,r,o,!a&&t,e),renderState:i()};return s&&(l.mount=t=>s(n,t,l)),l})(t,e,s,n,i);return i?o():(0,tj.h)(o)};function tK(t,e){let i=tI(e);i&&t$(t,i)}function tH(t,e,i){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let r=tL(t,s[n]);if(r){let{transitionEnd:o,transition:a,...l}=r;i(l,o)}}}var tY=i(62983);let tZ={useVisualState:tz({scrapeMotionValuesFromProps:tk,createRenderState:tS,onMount(t,e,{renderState:i,latestValues:s}){tY.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tY.Wi.render(()=>{tb(i,s,tA(e.tagName),t.transformTemplate),tM(e,i)})}})},tX={useVisualState:tz({applyWillChange:!0,scrapeMotionValuesFromProps:tR,createRenderState:tp})};function tG(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let tq=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function t_(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let tJ=t=>e=>tq(e)&&t(e,t_(e));function tQ(t,e,i,s){return tG(t,e,tJ(i),s)}let t0=(t,e)=>i=>e(t(i)),t1=(...t)=>t.reduce(t0);function t5(t){let e=null;return()=>{let i=()=>{e=null};return null===e&&(e=t,i)}}let t3=t5("dragHorizontal"),t9=t5("dragVertical");function t2(t){let e=!1;if("y"===t)e=t9();else if("x"===t)e=t3();else{let i=t3(),s=t9();i&&s?e=()=>{i(),s()}:(i&&i(),s&&s())}return e}function t4(){let t=t2(!0);return!t||(t(),!1)}class t6{constructor(t){this.isMounted=!1,this.node=t}update(){}}function t8(t,e){let i=e?"onHoverStart":"onHoverEnd",s=(s,n)=>{if("touch"===s.pointerType||t4())return;let r=t.getProps();t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",e);let o=r[i];o&&tY.Wi.postRender(()=>o(s,n))};return tQ(t.current,e?"pointerenter":"pointerleave",s,{passive:!t.getProps()[i]})}let t7=(t,e)=>!!e&&(t===e||t7(t,e.parentElement));var et=i(194);function ee(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,t_(i))}let ei=new WeakMap,es=new WeakMap,en=t=>{let e=ei.get(t.target);e&&e(t)},er=t=>{t.forEach(en)},eo={some:0,all:1};function ea(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function el(t,e,i){let s=t.getProps();return tL(s,e,void 0!==i?i:s.custom,t)}let eu=t=>1e3*t,eh=t=>t/1e3,ed={type:"spring",stiffness:500,damping:25,restSpeed:10},ec=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ep={type:"keyframes",duration:.8},em={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ef=(t,{keyframes:e})=>e.length>2?ep:O.has(t)?t.startsWith("scale")?ec(e[1]):ed:em;function ev(t,e){return t[e]||t.default||t}var eg=i(14993);let ey={current:!1},ex=t=>null!==t;function eP(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(ex),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return r&&void 0!==s?s:n[r]}let ew;function eT(){ew=void 0}let eb={now:()=>(void 0===ew&&eb.set(tY.w0.isProcessing||eg.c.useManualTiming?tY.w0.timestamp:performance.now()),ew),set(t){ew=t,queueMicrotask(eT)}
1},eS=t=>/^0[^.\s]+$/u.test(t);function eA(t){return"number"==typeof t?0===t:null===t||"none"===t||"0"===t||eS(t)}var eV=i(10059);let eC=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),eE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eM(t,e,i=1){(0,eV.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[s,n]=function(t){let e=eE.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${null!=i?i:s}`,n]}(t);if(!s)return;let r=window.getComputedStyle(e).getPropertyValue(s);if(r){let o=r.trim();return eC(o)?parseFloat(o):o}return H(n)?eM(n,e,i+1):n}let eR=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY",]),ek=t=>t===G||t===to,eD=(t,e)=>parseFloat(t.split(", ")[e]),eL=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let n=s.match(/^matrix3d\((.+)\)$/u);if(n)return eD(n[1],e);{let r=s.match(/^matrix\((.+)\)$/u);return r?eD(r[1],t):0}},ej=new Set(["x","y","z"]),eB=F.filter(t=>!ej.has(t)),eF={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:eL(4,13),y:eL(5,14)};eF.translateX=eF.x,eF.translateY=eF.y;let eO=t=>e=>e.test(t),eW=[G,to,tr,tn,tl,ta,{test:t=>"auto"===t,parse:t=>t}],eU=t=>eW.find(eO(t)),eI=new Set,e$=!1,eN=!1;function ez(){if(eN){let t=Array.from(eI).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eB.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null===(s=t.getValue(e))||void 0===s||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eN=!1,e$=!1,eI.forEach(t=>t.complete()),eI.clear()}function eK(){eI.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eN=!0)})}class eH{constructor(t,e,i,s,n,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eI.add(this),e$||(e$=!0,tY.Wi.read(eK),tY.Wi.resolveKeyframes(ez))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let n=0;n<t.length;n++)if(null===t[n]){if(0===n){let r=null==s?void 0:s.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let a=i.readValue(e,o);null!=a&&(t[0]=a)}void 0===t[0]&&(t[0]=o),s&&void 0===r&&s.set(t[0])}else t[n]=t[n-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),eI.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eI.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eY=(t,e)=>i=>{var s;return Boolean(ti(i)&&te.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e))},eZ=(t,e,i)=>s=>{if(!ti(s))return s;let[n,r,o,a]=s.match(Q);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eX=t=>X(0,255,t),eG={...G,transform:t=>Math.round(eX(t))},eq={test:eY("rgb","red"),parse:eZ("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+eG.transform(t)+", "+eG.transform(e)+", "+eG.transform(i)+", "+J(q.transform(s))+")"},e_={test:eY("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alph
1a:n?parseInt(n,16)/255:1}},transform:eq.transform},eJ={test:eY("hsl","hue"),parse:eZ("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+tr.transform(J(e))+", "+tr.transform(J(i))+", "+J(q.transform(s))+")"},eQ={test:t=>eq.test(t)||e_.test(t)||eJ.test(t),parse:t=>eq.test(t)?eq.parse(t):eJ.test(t)?eJ.parse(t):e_.parse(t),transform:t=>ti(t)?t:t.hasOwnProperty("red")?eq.transform(t):eJ.transform(t)},e0="number",e1="color",e5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function e3(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(e5,t=>(eQ.test(t)?(s.color.push(r),n.push(e1),i.push(eQ.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(e0),i.push(parseFloat(t))),++r,"${}")),a=o.split("${}");return{values:i,split:a,indexes:s,types:n}}function e9(t){return e3(t).values}function e2(t){let{split:e,types:i}=e3(t),s=e.length;return t=>{let n="";for(let r=0;r<s;r++)if(n+=e[r],void 0!==t[r]){let o=i[r];o===e0?n+=J(t[r]):o===e1?n+=eQ.transform(t[r]):n+=t[r]}return n}}let e4=t=>"number"==typeof t?0:t,e6={test:function(t){var e,i;return isNaN(t)&&ti(t)&&((null===(e=t.match(Q))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(tt))||void 0===i?void 0:i.length)||0)>0},parse:e9,createTransformer:e2,getAnimatableNone:function(t){let e=e9(t),i=e2(t);return i(e.map(e4))}},e8=new Set(["brightness","contrast","saturate","opacity"]);function e7(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(Q)||[];if(!s)return t;let n=i.replace(s,""),r=e8.has(e)?1:0;return s!==i&&(r*=100),e+"("+r+n+")"}let it=/\b([a-z-]*)\(.*?\)/gu,ie={...e6,getAnimatableNone(t){let e=t.match(it);return e?e.map(e7).join(" "):t}},ii={...td,color:eQ,backgroundColor:eQ,outlineColor:eQ,fill:eQ,stroke:eQ,borderColor:eQ,borderTopColor:eQ,borderRightColor:eQ,borderBottomColor:eQ,borderLeftColor:eQ,filter:ie,WebkitFilter:ie},is=t=>ii[t];function ir(t,e){let i=is(t);return i!==ie&&(i=e6),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let io=new Set(["auto","none","0"]);class ia extends eH{constructor(t,e,i,s){super(t,e,i,s,null==s?void 0:s.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e.current)return;super.readKeyframes();for(let s=0;s<t.length;s++){let n=t[s];if("string"==typeof n&&H(n=n.trim())){let r=eM(n,e.current);void 0!==r&&(t[s]=r),s===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!eR.has(i)||2!==t.length)return;let[o,a]=t,l=eU(o),u=eU(a);if(l!==u){if(ek(l)&&ek(u))for(let h=0;h<t.length;h++){let d=t[h];"string"==typeof d&&(t[h]=parseFloat(d))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let s=0;s<t.length;s++)eA(t[s])&&i.push(s);i.length&&function(t,e,i){let s=0,n;for(;s<t.length&&!n;){let r=t[s];"string"==typeof r&&!io.has(r)&&e3(r).values.length&&(n=t[s]),s++}if(n&&i)for(let o of e)t[o]=ir(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eF[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let r=s.length-1,o=s[r];s[r]=eF[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function il(t){let e;return()=>(void 0===e&&(e=t()),e)}let iu=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(e6.test(t)||"0"===t)&&!t.startsWith("url("));class ih{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,...o},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(eK(),ez()),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:n,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=iu(n,e),a=iu(r,e);return(0,eV.K)(o===a,`You are trying to animate ${e} from "${n}" to "${r}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${r} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||"spring"===i&&s)}(t,i,s,n)){if(ey.current||!r){null==a||a(eP(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function id(t,e){return e?t*(1e3/e):0}function ic(t,e,i){let s=Math.max(e-5,0);return id(i-t(s),e-s)}function ip(t,e){return t*Math.sqrt(1-e*e)}let im=["duration","bounce"],iv=["stiffness","damping","mass"];function ig(t,e){return e.some(e=>void 0!==t[e])}function iy({keyframes:t,restDelta:e,restSpeed:i,...s}){let n=t[0],r=t[t.length-1],o={done:!1,value:n},{stiffness:a,damping:l,mass:u,duration:h,velocity:d,isResolvedFromDuration:c}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ig(t,iv)&&ig(t,im)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:s=1}){let n,r;(0,eV.K)(t<=eu(10),"Spring duration must be 10 seconds or less");let o=1-e;o=X(.05,1,o),t=X(.01,10,eh(t)),o<1?(n=e=>{let s=e*o,n=s*t,r=ip(e,o);return .001-(s-i)/r*Math.exp(-n)},r=e=>{let s=e*o,r=s*t,a=Math.pow(o,2)*Math.pow(e,2)*t,l=ip(Math.pow(e,2),o),u=-n(e)+.001>0?-1:1;return u*((r*i+i-a)*Math.exp(-r))/l}):(n=e=>{let s=Math.exp(-e*t),n=(e-i)*t+1;return -.001+s*n},r=e=>{let s=Math.exp(-e*t),n=(i-e)*(t*t);return s*n});let a=5/t,l=function(t,e,i){let s=i;for(let n=1;n<12;n++)s-=t(s)/e(s);return s}(n,r,a);if(t=eu(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let u=Math.pow(l,2)*s;return{stiffness:u,damping:2*o*Math.sqrt(s*u),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-eh(s.velocity||0)}),p=d||0,m=l/(2*Math.sqrt(a*u)),f=r-n,v=eh(Math.sqrt(a/u)),g=5>Math.abs(f);i||(i=g?.01:2),e||(e=g?.005:.5);let y;if(m<1){let x=ip(v,m);y=t=>r-Math.exp(-m*v*t)*((p+m*v*f)/x*Math.sin(x*t)+f*Math.cos(x*t))}else if(1===m)y=t=>r-Math.exp(-v*t)*(f+(p+v*f)*t);else{let P=v*Math.sqrt(m*m-1);y=t=>{let e=Math.min(P*t,300);return r-Math.exp(-m*v*t)*((p+m*v*f)*Math.sinh(e)+P*f*Math.cosh(e))/P}}return{calculatedDuration:c&&h||null,next(t){let s=y(t);if(c)o.done=t>=h;else{let n=p;0!==t&&(n=m<1?ic(y,t,s):0);let a=Math.abs(n)<=i,l=Math.abs(r-s)<=e;o.done=a&&l}return o.value=o.done?r:s,o}}}function ix({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d=t[0],c={done:!1,value:d},p=t=>void 0!==a&&t<a||void 0!==l&&t>l,m=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,f=i*e,v=d+f,g=void 0===o?v:o(v);g!==v&&(f=g-d);let y=t=>-f*Math.exp(-t/s),x=t=>g+y(t),P=t=>{let e=y(t),i=x(t);c.done=Math.abs(e)<=u,c.value=c.done?g:i},w,T,b=t=>{p(c.value)&&(w=t,T=iy({keyframes:[c.value,m(c.value)],velocity:ic(x,t,c.value),damping:n,stiffness:r,restDelta:u,restSpeed:h}
1))};return b(0),{calculatedDuration:null,next(t){let e=!1;return(T||void 0!==w||(e=!0,P(t),b(t)),void 0!==w&&t>=w)?T.next(t-w):(e||P(t),c)}}}let iP=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iw(t,e,i,s){if(t===e&&i===s)return et.Z;let n=e=>(function(t,e,i,s,n){let r,o,a=0;do(r=iP(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:iP(n(t),e,s)}let iT=iw(.42,0,1,1),ib=iw(0,0,.58,1),iS=iw(.42,0,.58,1),iA=t=>Array.isArray(t)&&"number"!=typeof t[0],iV=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iC=t=>e=>1-t(1-e),iE=t=>1-Math.sin(Math.acos(t)),iM=iC(iE),iR=iV(iE),ik=iw(.33,1.53,.69,.99),iD=iC(ik),iL=iV(iD),ij=t=>(t*=2)<1?.5*iD(t):.5*(2-Math.pow(2,-10*(t-1))),iB={linear:et.Z,easeIn:iT,easeInOut:iS,easeOut:ib,circIn:iE,circInOut:iR,circOut:iM,backIn:iD,backInOut:iL,backOut:ik,anticipate:ij},iF=t=>{if(Array.isArray(t)){(0,eV.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,n]=t;return iw(e,i,s,n)}return"string"==typeof t?((0,eV.k)(void 0!==iB[t],`Invalid easing type '${t}'`),iB[t]):t},iO=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s},iW=(t,e,i)=>t+(e-t)*i;function iU(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iI(t,e){return i=>i>0?e:t}let i$=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},iN=[e_,eq,eJ],iz=t=>iN.find(e=>e.test(t));function iK(t){let e=iz(t);if((0,eV.K)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===eJ&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let a=i<.5?i*(1+e):i+e-i*e,l=2*i-a;n=iU(l,a,t+1/3),r=iU(l,a,t),o=iU(l,a,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let iH=(t,e)=>{let i=iK(t),s=iK(e);if(!i||!s)return iI(t,e);let n={...i};return t=>(n.red=i$(i.red,s.red,t),n.green=i$(i.green,s.green,t),n.blue=i$(i.blue,s.blue,t),n.alpha=iW(i.alpha,s.alpha,t),eq.transform(n))},iY=new Set(["none","hidden"]);function iZ(t,e){return i=>iW(t,e,i)}function iX(t){return"number"==typeof t?iZ:"string"==typeof t?H(t)?iI:eQ.test(t)?iH:i_:Array.isArray(t)?iG:"object"==typeof t?eQ.test(t)?iH:iq:iI}function iG(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>iX(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function iq(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=iX(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let i_=(t,e)=>{let i=e6.createTransformer(e),s=e3(t),n=e3(e),r=s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length;if(!r)return(0,eV.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iI(t,e);if(iY.has(t)&&!n.values.length||iY.has(e)&&!s.values.length){var o,a;return iY.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}return t1(iG(function(t,e){var i;let s=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let o=e.types[r],a=t.indexes[o][n[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;s[r]=l,n[o]++}return s}(s,n),n.values),i)};function iJ(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return iW(t,e,i);let s=iX(t);return s(t,e)}function iQ({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n,r,o,a;let l=iA(s)?s.map(iF):iF(s),u={done:!1,value:e[0]},h=(n=i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=iO(0,e,s);t.push(iW(i,1,n))}}(e,t.length-1),e}(e)).map(e=>e*t),d=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if((0,eV.k)(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],n=i||iJ,r=t.length-1;for(let o=0;o<r;o++){let a=n(t[o],t[o+1]);if(e){let l=Array.isArray(e)?e[o]||et.Z:e;a=t1(l,a)}s.push(a)}return s}(e,s,n),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let s=iO(t[i],t[i+1],e);return o[i](s)};return i?e=>l(X(t[0],t[r-1],e)):l}(h,e,{ease:Array.isArray(l)?l:e.map(()=>l||iS).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(u.value=d(e),u.done=e>=t,u)}}let i0=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tY.Wi.update(e,!0),stop:()=>(0,tY.Pn)(e),now:()=>
1tY.w0.isProcessing?tY.w0.timestamp:eb.now()}},i1={decay:ix,inertia:ix,tween:iQ,keyframes:iQ,spring:iy},i5=t=>t/100;class i3 extends ih{constructor({KeyframeResolver:t=eH,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:i,motionValue:s,keyframes:n}=this.options,r=(t,e)=>this.onKeyframesResolved(t,e);i&&s&&s.owner?this.resolver=s.owner.resolveKeyframes(n,r,i,s):this.resolver=new t(n,r,i,s),this.resolver.scheduleResolve()}initPlayback(t){let{type:e="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=this.options,o=i1[e]||iQ,a,l;o!==iQ&&"number"!=typeof t[0]&&(a=t1(i5,iJ(t[0],t[1])),t=[0,100]);let u=o({...this.options,keyframes:t});"mirror"===n&&(l=o({...this.options,keyframes:[...t].reverse(),velocity:-r})),null===u.calculatedDuration&&(u.calculatedDuration=function(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(i+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:s}=this.options;return{done:!0,value:s[s.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:h,resolvedDuration:d}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:p,repeatType:m,repeatDelay:f,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let x=this.currentTime,P=r;if(p){let w=Math.min(this.currentTime,h)/d,T=Math.floor(w),b=w%1;!b&&w>=1&&(b=1),1===b&&T--,T=Math.min(T,p+1);let S=Boolean(T%2);S&&("reverse"===m?(b=1-b,f&&(b-=f/d)):"mirror"===m&&(P=o)),x=X(0,1,b)*d}let A=y?{done:!1,value:l[0]}:P.next(x);a&&(A.value=a(A.value));let{done:V}=A;y||null===u||(V=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&V);return C&&void 0!==n&&(A.value=eP(l,this.options,n)),v&&v(A.value),C&&this.finish(),A}get duration(){let{resolved:t}=this;return t?eh(t.calculatedDuration):0}get time(){return eh(this.currentTime)}set time(t){t=eu(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=eh(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=i0,onPlay:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=i),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedProm
1ise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let i9=t=>Array.isArray(t)&&"number"==typeof t[0],i2=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,i4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:i2([0,.65,.55,1]),circOut:i2([.55,0,1,.45]),backIn:i2([.31,.01,.66,-.59]),backOut:i2([.33,1.53,.69,.99])};function i6(t){return i8(t)||i4.easeOut}function i8(t){if(t)return i9(t)?i2(t):Array.isArray(t)?t.map(i6):(0,i4[t])}let i7=il(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class st extends ih{constructor(t){super(t);let{name:e,motionValue:i,keyframes:s}=this.options;this.resolver=new ia(s,(t,e)=>this.onKeyframesResolved(t,e),e,i),this.resolver.scheduleResolve()}initPlayback(t,e){var i,s;let{duration:n=300,times:r,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("spring"===(s=this.options).type||!function t(e){return Boolean(!e||"string"==typeof e&&e in i4||i9(e)||Array.isArray(e)&&e.every(t))}(s.ease)){let{onComplete:h,onUpdate:d,motionValue:c,...p}=this.options,m=function(t,e){let i=new i3({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},n=[],r=0;for(;!s.done&&r<2e4;)n.push((s=i.sample(r)).value),r+=10;return{times:void 0,keyframes:n,duration:r-10,ease:"linear"}}(t,p);1===(t=m.keyframes).length&&(t[1]=t[0]),n=m.duration,r=m.times,o=m.ease,a="keyframes"}let f=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=i8(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:s,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:n,times:r,ease:o});return f.startTime=eb.now(),this.pendingTimeline?(f.timeline=this.pendingTimeline,this.pendingTimeline=void 0):f.onfinish=()=>{let{onComplete:i}=this.options;l.set(eP(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:n,times:r,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return eh(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return eh(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=eu(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return et.Z;let{animation:i}=e;i.timeline=t,i.onfinish=null}else this.pendingTimeline=t;return et.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:n,ease:r,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:a,onUpdate:l,onComplete:u,...h}=this.options,d=new i3({...h,keyframes:i,duration:s,type:n,ease:r,times:o,isGenerator:!0}),c=eu(this.time);a.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:p}=this.options;p&&p(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o}=t;return i7()&&i&&tU.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}}let se=il(()=>void 0!==window.ScrollTimeline);class si{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}
1then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>{if(!se()||!e.attachTimeline)return e.pause(),function(t,e){let i,s=()=>{let{currentTime:s}=e,n=null===s?0:s.value,r=n/100;i!==r&&t(r),i=r};return tY.Wi.update(s,!0),()=>(0,tY.Pn)(s)}(t=>{e.time=e.duration*t},t);e.attachTimeline(t)});return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let ss=(t,e,i,s={},n,r,o)=>a=>{let l=ev(s,t)||{},u=l.delay||s.delay||0,{elapsed:h=0}=s;h-=eu(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate(t){e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete(){a(),l.onComplete&&l.onComplete(),o&&o()},onStop:o,name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&(d={...d,...ef(t,d)}),d.duration&&(d.duration=eu(d.duration)),d.repeatDelay&&(d.repeatDelay=eu(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(c=!0)),(ey.current||eg.c.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!r&&void 0!==e.get()){let p=eP(d.keyframes,l);if(void 0!==p)return tY.Wi.update(()=>{d.onUpdate(p),d.onComplete()}),new si([])}return!r&&st.supports(d)?new st(d):new i3(d)};class sn{constructor(){this.subscriptions=[]}add(t){return t$(this.subscriptions,t),()=>tN(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s){if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let sr=t=>!isNaN(parseFloat(t)),so={current:void 0};class sa{constructor(t,e={}){this.version="11.3.5",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=eb.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eb.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=sr(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new sn);let i=this.events[t].add(e);return"change"===t?()=>{i(),tY.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return so.current&&so.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=eb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return id(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function sl(t,e){return new sa(t,e)}function su(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,sl(i))}function sh(t){return t.getProps()[c]}class sd extends sa{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){let e=tI(t);if(!e)return;let i=this.counts.get(e)||0;this.counts.set(e,i+1),0===i&&(this.output.push(e),this.update());let s=!1;return()=>{if(s)return;s=!0;let t=this.counts.get(e)-1;this.counts.set(e,t),0===t&&(tN(this.output,e),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function sc(t,e){var i,s;if(!t.applyWillChange)return;let n=t.getValue("willChange");if(n||(null===(i=t.props.style)||void 0===i?void 0:i.willChange)||(n=new sd("auto"),t.addValue("willChange",n)),Boolean(U(s=n)&&s.add))return n.add(e)}function sp({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}
1function sm(t,e,{delay:i=0,transitionOverride:s,type:n}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);let u=[],h=n&&t.animationState&&t.animationState.getState()[n];for(let d in l){let c=t.getValue(d,null!==(r=t.latestValues[d])&&void 0!==r?r:null),p=l[d];if(void 0===p||h&&sp(h,d))continue;let m={delay:i,elapsed:0,...ev(o||{},d)},f=!1;if(window.HandoffAppearAnimations){let v=sh(t);if(v){let g=window.HandoffAppearAnimations(v,d,c,tY.Wi);null!==g&&(m.elapsed=g,f=!0)}}c.start(ss(d,c,p,t.shouldReduceMotion&&O.has(d)?{type:!1}:m,t,f,sc(t,d)));let y=c.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{tY.Wi.update(()=>{a&&function(t,e){let i=el(t,e),{transitionEnd:s={},transition:n={},...r}=i||{};for(let o in r={...r,...s}){let a=tO(r[o]);su(t,o,a)}}(t,a)})}),u}function sf(t,e,i={}){var s;let n=el(t,e,"exit"===i.type?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverri
1de);let o=n?()=>Promise.all(sm(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,s=0,n=1,r){let o=[],a=(t.variantChildren.size-1)*s,l=1===n?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(sv).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(sf(t,e,{...r,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+s,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([o(),a(i.delay)]);{let[u,h]="beforeChildren"===l?[o,a]:[a,o];return u().then(()=>h())}}function sv(t,e){return t.sortNodePosition(e)}let sg=[...T].reverse(),sy=T.length;function sx(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!ea(e,t)}function sP(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sw(){return{animate:sP(!0),whileInView:sP(),whileHover:sP(),whileTap:sP(),whileDrag:sP(),whileFocus:sP(),exit:sP()}}let sT=0,sb=(t,e)=>Math.abs(t-e);class sS{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=sC(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=sb(t.x,e.x),s=sb(t.y,e.y);return Math.sqrt(i**2+s**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:n}=tY.w0;this.history.push({...s,timestamp:n});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=sA(e,this.transformPagePoint),tY.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sC("pointercancel"===t.type?this.lastMoveEventInfo:sA(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!tq(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let r=t_(t),o=sA(r,this.transformPagePoint),{point:a}=o,{timestamp:l}=tY.w0;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,sC(o,this.history)),this.removeListeners=t1(tQ(this.contextWindow,"pointermove",this.handlePointerMove),tQ(this.contextWindow,"pointerup",this.handlePointerUp),tQ(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tY.Pn)(this.updatePoint)}}function sA(t,e){return e?{point:e(t.point)}:t}function sV(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sC({point:t},e){var i;return{point:t,delta:sV(t,sE(e)),offset:sV(t,(i=e,i[0])),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=sE(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>eu(.1)));)i--;if(!s)return{x:0,y:0};let r=eh(n.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let o={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function sE(t){return t[t.length-1]}function sM(t){return t.max-t.min}function sR(t,e=0,i=.01){return Math.abs(t-e)<=i}function sk(t,e,i,s=.5){t.origin=s,t.originPoint=iW(e.min,e.max,t.origin),t.scale=sM(i)/sM(e),(sR(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=iW(i.min,i.max,t.origin)-t.originPoint,(sR(t.translate)||isNaN(t.translate))&&(t.translate=0)}function sD(t,e,i,s){sk(t.x,e.x,i.x,s?s.originX:void 0),sk(t.y,e.y,i.y,s?s.originY:void 0)}
1function sL(t,e,i){t.min=i.min+e.min,t.max=t.min+sM(e)}function sj(t,e,i){t.min=e.min-i.min,t.max=t.min+sM(e)}function sB(t,e,i){sj(t.x,e.x,i.x),sj(t.y,e.y,i.y)}function sF(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sO(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function sW(t,e,i){return{min:sU(t,e),max:sU(t,i)}}function sU(t,e){return"number"==typeof t?t:t[e]||0}let sI=()=>({translate:0,scale:1,origin:0,originPoint:0}),s$=()=>({x:sI(),y:sI()}),sN=()=>({min:0,max:0}),sz=()=>({x:sN(),y:sN()});function sK(t){return[t("x"),t("y")]}function sH({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function sY(t){return void 0===t||1===t}function sZ({scale:t,scaleX:e,scaleY:i}){return!sY(t)||!sY(e)||!sY(i)}function sX(t){return sZ(t)||sG(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function sG(t){return sq(t.x)||sq(t.y)}function sq(t){return t&&"0%"!==t}function s_(t,e,i,s,n){var r,o,a,l,u,h;return void 0!==n&&(r=t,o=n,t=(a=s)+o*(r-a)),s+i*((l=t)-s)+e}function sJ(t,e=0,i=1,s,n){t.min=s_(t.min,e,i,s,n),t.max=s_(t.max,e,i,s,n)}function sQ(t,{x:e,y:i}){sJ(t.x,e.translate,e.scale,e.originPoint),sJ(t.y,i.translate,i.scale,i.originPoint)}function s0(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function s1(t,e){t.min=t.min+e,t.max=t.max+e}function s5(t,e,[i,s,n]){let r=void 0!==e[n]?e[n]:.5,o=iW(t.min,t.max,r);sJ(t,e[i],e[s],o,e.scale)}let s3=["x","scaleX","originX"],s9=["y","scaleY","originY"];function s2(t,e){s5(t.x,e,s3),s5(t.y,e,s9)}function s4(t,e){return sH(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let s6=({current:t})=>t?t.ownerDocument.defaultView:null,s8=new WeakMap;class s7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=sz(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(t_(t,"page").point)},n=(t,e)=>{var i;let{drag:s,dragPropagation:n,onDragStart:r}=this.getProps();if(s&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t2(s),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sK(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let n=sM(s);e=n*(parseFloat(e)/100)}}}this.originPoint[t]=e}),r&&tY.Wi.postRender(()=>r(t,e)),null===(i=this.removeWillChange)||void 0===i||i.call(this),this.removeWillChange=sc(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},r=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>this.stop(t,e),a=()=>sK(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new sS(t,{onSessionStart:s,onStart:n,onMove:r,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:s6(this.visualElement)})}stop(t,e){var i;null===(i=this.removeWillChange)||void 0===i||i.call(this);let s=this.isDragging;if(this.cancel(),!s)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&tY.Wi.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!nt(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?iW(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?iW(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&&v(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:sF(t.x,i,n),y:sF(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sW(t,"left","right"),y:sW(t,"top","bottom")}}(i),n!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&sK(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t,e;let{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!v(i))return!1;let n=i.current;(0,eV.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let o=function(t,e,i){let s=s4(t,i),{scroll:n}=e;return n&&(s1(s.x,n.offset.x),s1(s.y,n.offset.y)),s}(n,r.root,this.visualElement.getTransformPagePoint()),a={x:sO((t=r.layout.layoutBox).x,o.x),y:sO(t.y,o.y)};if(s){let l=s(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!l,l&&(a=sH(l))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=sK(o=>{if(!nt(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(ss(t,i,0,e,this.visualElement,!1,sc(this.visualElement,t)))}stopAnimation(){sK(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sK(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),s=i[e];return s||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){sK(e=>{let{drag:i}=this.getProps();if(!nt(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:r,max:o}=s.layout.layoutBox[e];n.set(t[e]-iW(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!v(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sK(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=sM(t),n=sM(e);return n>s?i=iO(e.min,e.max-s,t.min):s>n&&(i=iO(t.min,t.max-n,e.min)),X(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sK(e=>{if(!nt(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(iW(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;s8.set(this.visualElement,this);let t=this.visualElement.current,e=tQ(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();v(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,n=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tY.Wi.read(i);let r=tG(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sK(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function nt(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let ne=t=>(e,i)=>{t&&tY.Wi.postRender(()=>t(e,i))},ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ns(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nn={correct(t,e){if(!e.target)return t;if("string"==typeof t){if(!to.test(t))return t;t=parseFloat(t)}let i=ns(t,e.target.x),s=ns(t,e.target.y);return`${i}% ${s}%`}};class nr extends r.Component{componentDidMount(){var t;let{visualElement:e,layoutGroup:i,switchLayoutGroup:s,layoutId:n}=this.props,{projection:r}=e;Object.assign(B,na),r&&(i.group&&i.group.add(r),s&&s.register&&n&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,r=i.projection;return r&&(r.isPresent=n,s||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent===n||(n?r.promote():r.relegate()||tY.Wi.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),m.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function no(t){let[e,i]=function(){let t=(0,r.useContext)(l.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,n=(0,r.useId)();(0,r.useEffect)(()=>s(n),[]);let o=()=>i&&i(n);return!e&&i?[!1,o]:[!0]}(),s=(0,r.useContext)(k.p);return(0,n.jsx)(nr,{...t,layoutGroup:s,switchLayoutGroup:(0,r.useContext)(g),isPresent:e,safeToRemove:i})}let na={borderRadius:{...nn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius",]},borderTopLeftRadius:nn,borderTopRightRadius:nn,borderBottomLeftRadius:nn,borderBottomRightRadius:nn,boxShadow:{correct(t,{treeScale:e,projectionDelta:i}){let s=e6.parse(t);if(s.length>5)return t;let n=e6.createTransformer(t),r="number"!=typeof s[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=iW(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}},nl=["TopLeft","TopRight","BottomLeft","BottomRight"],nu=nl.length,nh=t=>"string"==typeof t?parseFloat(t):t,nd=t=>"number"==typeof t||to.test(t);function nc(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let np=nf(0,.5,iM),nm=nf(.5,.95,et.Z);function nf(t,e,i){return s=>s<t?0:s>e?1:i(iO(t,e,s))}function nv(t,e){t.min=e.min,t.max=e.max}function ng(t,e){nv(t.x,e.x),nv(t.y,e.y)}function ny(t,e,i,s,n){var r,o,a,l,u,h;return t-=e,r=t,t=s+(o=1/i)*(r-s),void 0!==n&&(l=t,u=1/n,t=(h=s)+u*(l-h)),t}function nx(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(tr.test(e)){e=parseFloat(e);
1let a=iW(o.min,o.max,e/100);e=a-o.min}if("number"!=typeof e)return;let l=iW(r.min,r.max,s);t===r&&(l-=e),t.min=ny(t.min,e,i,l,n),t.max=ny(t.max,e,i,l,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let nP=["x","scaleX","originX"],nw=["y","scaleY","originY"];function nT(t,e,i,s){nx(t.x,e,nP,i?i.x:void 0,s?s.x:void 0),nx(t.y,e,nw,i?i.y:void 0,s?s.y:void 0)}function nb(t){return 0===t.translate&&1===t.scale}function nS(t){return nb(t.x)&&nb(t.y)}function nA(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function nV(t){return sM(t.x)/sM(t.y)}class nC{constructor(){this.members=[]}add(t){t$(this.members,t),t.scheduleRender()}remove(t){if(tN(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){let e=this.members.findIndex(e=>t===e);if(0===e)return!1;let i;for(let s=e;s>=0;s--){let n=this.members[s];if(!1!==n.isPresent){i=n;break}}return!!i&&(this.promote(i),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nE(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:a,rotate:l,rotateX:u,rotateY:h,skewX:d,skewY:c}=i;a&&(s=`perspective(${a}px) ${s}`),l&&(s+=`rotate(${l}deg) `),u&&(s+=`rotateX(${u}deg) `),h&&(s+=`rotateY(${h}deg) `),d&&(s+=`skewX(${d}deg) `),c&&(s+=`skewY(${c}deg) `)}let p=t.x.scale*e.x,m=t.y.scale*e.y;return(1!==p||1!==m)&&(s+=`scale(${p}, ${m})`),s||"none"}let nM=(t,e)=>t.depth-e.depth;class nR{constructor(){this.children=[],this.isDirty=!1}add(t){t$(this.children,t),this.isDirty=!0}remove(t){tN(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nM),this.isDirty=!1,this.children.forEach(t)}}let nk=["","X","Y","Z"],nD={visibility:"hidden"},nL=0,nj={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nB(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function nF({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,nj.totalNodes=nj.resolvedTargetDeltas=nj.recalculatedProjection=0,this.nodes.forEach(nU),this.nodes.forEach(nY),this.nodes.forEach(nZ),this.nodes.forEach(nI),window.MotionDebug&&window.MotionDebug.record(nj)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let s=0;s<this.path.length;s++)this.path[s].shouldResetTransform=!0;this.root===this&&(this.nodes=new nR)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new sn),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){var s;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let a,l=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,a&&a(),a=function(t,e){let i=eb.now(),s=({timestamp:n})=>{let r=n-i;r>=e&&((0,tY.Pn)(s),t(r-e))};return tY.Wi.read(s,!0),()=>(0,tY.Pn)(s)}(l,250),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(nH))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||nQ,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!nA(this.targetLayout,s)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let h={...ev(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(h.delay=0,h.type=!1),this.startAnimation(h)}else e||nH(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tY.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nX),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;let{visualElement:i}=e.options;return!!i&&(!!sh(i)||!!e.parent&&!e.parent.hasCheckedOptimisedAppear&&t(e.parent))}(this)&&window.HandoffCancelAllAnimations(),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let i=this.path[e];i.shouldResetTransform=!0,i.updateScroll("snapshot"),i.options.layoutRoot&&i.willUpdate(!1)}let{layoutId:s,layout:n}=this.options;if(void 0===s&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nN);return}this.isUpdating||this.nodes.forEach(nz),this.isUpdating=!1,this.nodes.forEach(nK),this.nodes.forEach(nO),this.nodes.forEach(nW),this.clearAllSnapshots();let e=eb.now();tY.w0.delta=X(0,1e3/60,e-tY.w0.timestamp),tY.w0.timestamp=e,tY.w0.isProcessing=!0,tY.S6.update.process(tY.w0),tY.S6.preRender.process(tY.w0),tY.S6.render.process(tY.w0),tY.w0.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,m.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n$),this.sharedNodes.forEach(nG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tY.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tY.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){let e=this.path[t];e.updateScroll()}let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=sz(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:s(this.instance),offset:i(this.instance)})}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nS(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&(e||sX(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),n5((e=s).x),n5(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return sz();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(s1(e.x,i.offset.x),s1(e.y,i.offset.y)),e}removeElementScroll(t){let e=sz();ng(e,t);for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;if(s!==this.root&&n&&r.layoutScroll){if(n.isRoot){ng(e,t);let{scroll:o}=this.root;o&&(s1(e.x,-o.offset.x),s1(e.y,-o.offset.y))}s1(e.x,n.offset.x),s1(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let i=sz();ng(i,t);for(let s=0;s<this.path.length;s++){let n=this.path[s];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&s2(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),sX(n.latestValues)&&s2(i,n.latestValues)}return sX(this.latestValues)&&s2(i,this.latestValues),i}removeTransform(t){let e=sz();ng(e,t);for(let i=0;i<this.path.length;i++){let s=this.path[i];if(!s.instance||!sX(s.latestValues))continue;sZ(s.latestValues)&&s.updateSnapshot();let n=sz(),r=s.measurePageBox();ng(n,r),nT(e,s.latestValues,s.snapshot?s.snapshot.layoutBox:void 0,n)}return sX(this.latestValues)&&nT(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tY.w0.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,n;let r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let o=Boolean(this.resumingFrom)||this!==r,a=!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(a)return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=tY.w0.timestamp,!this.targetDelta&&!this.relativeTarget){let h=this.getClosestProjectingParent();h&&h.layout&&1!==this.animationProgress?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=sz(),this.relativeTargetOrigin=sz(),sB(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ng(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=sz(),this.targetWithTransforms=sz()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,n=this.relativeParent.target,sL(i.x,s.x,n.x),sL(i.y,s.y,n.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ng(this.target,this.layout.layoutBox),sQ(this.target,this.targetDelta)):ng(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let d=this.getClosestProjectingParent();d&&Boolean(d.resumingFrom)===Boolean(this.resumingFrom)&&!d.options.layoutScroll&&d.target&&1!==this.animationProgress?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=sz(),this.relativeTargetOrigin=sz(),sB(this.relativeTargetOrigin,this.target,d.target),ng(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nj.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||sZ(this.parent.latestValues)||sG(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=Boolean(this.resumingFrom)||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===tY.w0.timestamp&&(s=!1),s)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;ng(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;
1!function(t,e,i,s=!1){let n=i.length;if(!n)return;e.x=e.y=1;let r,o;for(let a=0;a<n;a++){o=(r=i[a]).projectionDelta;let{visualElement:l}=r.options;(!l||!l.props.style||"contents"!==l.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&s2(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,sQ(t,o)),s&&sX(r.latestValues)&&s2(t,r.latestValues))}e.x=s0(e.x),e.y=s0(e.y)}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=sz());let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=s$(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=s$(),this.projectionDeltaWithTransform=s$());let u=this.projectionTransform;sD(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=nE(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nj.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i=this.snapshot,s=i?i.latestValues:{},n={...this.latestValues},r=s$();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=sz(),a=i?i.source:void 0,l=this.layout?this.layout.source:void 0,u=a!==l,h=this.getStack(),d=!h||h.members.length<=1,c=Boolean(u&&!d&&!0===this.options.crossfade&&!this.path.some(nJ));this.animationProgress=0;let p;this.mixTargetDelta=e=>{let i=e/1e3;if(nq(r.x,t.x,i),nq(r.y,t.y,i),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var a,l,h,m,f,v;if(sB(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,m=this.relativeTargetOrigin,f=o,v=i,n_(h.x,m.x,f.x,v),n_(h.y,m.y,f.y,v),p&&(a=this.relativeTarget,l=p,a.x.min===l.x.min&&a.x.max===l.x.max&&a.y.min===l.y.min&&a.y.max===l.y.max))this.isProjectionDirty=!1;p||(p=sz()),ng(p,this.relativeTarget)}u&&(this.animationValues=n,function(t,e,i,s,n,r){n?(t.opacity=iW(0,void 0!==i.opacity?i.opacity:1,np(s)),t.opacityExit=iW(void 0!==e.opacity?e.opacity:1,0,nm(s))):r&&(t.opacity=iW(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let o=0;o<nu;o++){let a=`border${nl[o]}Radius`,l=nc(e,a),u=nc(i,a);if(void 0===l&&void 0===u)continue;l||(l=0),u||(u=0);let h=0===l||0===u||nd(l)===nd(u);h?(t[a]=Math.max(iW(nh(l),nh(u),s),0),(tr.test(u)||tr.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||i.rotate)&&(t.rotate=iW(e.rotate||0,i.rotate||0,s))}(n,s,this.latestValues,i,c,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tY.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tY.Wi.update(()=>{ni.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=U(t)?t:sl(t);return s.start(ss("",s,1e3,i)),s.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&n3(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||sz();let r=sM(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+r;let o=sM(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+o}ng(e,i),s2(e,n),sD(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nC);let i=this.sharedNodes.get(t);i.add(e);let s=e.options.initialPromotionConfig;e.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}
1resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&nB("z",t,s,this.animationValues);for(let n=0;n<nk.length;n++)nB(`rotate${nk[n]}`,t,s,this.animationValues),nB(`skew${nk[n]}`,t,s,this.animationValues);for(let r in t.render(),s)t.setStaticValue(r,s[r]),this.animationValues&&(this.animationValues[r]=s[r]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nD;let s={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=tW(null==t?void 0:t.pointerEvents)||"",s.transform=n?n(this.latestValues,""):"none",s;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let o={};return this.options.layoutId&&(o.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,o.pointerEvents=tW(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!sX(this.latestValues)&&(o.transform=n?n({},""):"none",this.hasProjected=!1),o}let a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),s.transform=nE(this.projectionDeltaWithTransform,this.treeScale,a),n&&(s.transform=n(a,s.transform));let{x:l,y:u}=this.projectionDelta;for(let h in s.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?s.opacity=r===this?null!==(i=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:s.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,B){if(void 0===a[h])continue;let{correct:d,applyTo:c}=B[h],p="none"===s.transform?a[h]:d(a[h],r);if(c){let m=c.length;for(let f=0;f<m;f++)s[c[f]]=p}else s[h]=p}return this.options.layoutId&&(s.pointerEvents=r===this?tW(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(nN),this.root.sharedNodes.clear()}}}function nO(t){t.updateLayout()}function nW(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:s,measuredBox:n}=t.layout,{animationType:r}=t.options,o=i.source!==t.layout.source;"size"===r?sK(t=>{let e=o?i.measuredBox[t]:i.layoutBox[t],n=sM(e);e.min=s[t].min,e.max=e.min+n}):n3(r,i.layoutBox,s)&&sK(e=>{let n=o?i.measuredBox[e]:i.layoutBox[e],r=sM(s[e]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[e].max=t.relativeTarget[e].min+r)});let a=s$();sD(a,s,i.layoutBox);let l=s$();o?sD(l,t.applyTransform(n,!0),i.measuredBox):sD(l,s,i.layoutBox);let u=!nS(a),h=!1;if(!t.resumeFrom){let d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:c,layout:p}=d;if(c&&p){let m=sz();sB(m,i.layoutBox,c.layoutBox);let f=sz();sB(f,s,p.layoutBox),nA(m,f)||(h=!0),d.options.layoutRoot&&(t.relativeTarget=f,t.relativeTargetOrigin=m,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:v}=t.options;v&&v()}t.options.transition=void 0}function nU(t){nj.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nI(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n$(t){t.clearSnapshot()}function nN(t){t.clearMeasurements()}function nz(t){t.isLayoutDirty=!1}function nK(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nH(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nY(t){t.resolveTargetDelta()}function nZ(t){t.calcProjection()}
1function nX(t){t.resetSkewAndRotation()}function nG(t){t.removeLeadSnapshot()}function nq(t,e,i){t.translate=iW(e.translate,0,i),t.scale=iW(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n_(t,e,i,s){t.min=iW(e.min,i.min,s),t.max=iW(e.max,i.max,s)}function nJ(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nQ={duration:.45,ease:[.4,0,.1,1]},n0=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),n1=n0("applewebkit/")&&!n0("chrome/")?Math.round:et.Z;function n5(t){t.min=n1(t.min),t.max=n1(t.max)}function n3(t,e,i){return"position"===t||"preserve-aspect"===t&&!sR(nV(e),nV(i),.2)}let n9=nF({attachResizeListener:(t,e)=>tG(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n2={current:void 0},n4=nF({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent(){if(!n2.current){let t=new n9({});t.mount(window),t.setOptions({layoutScroll:!0}),n2.current=t}return n2.current},resetTransform(t,e){t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),n6={current:null},n8={current:!1},n7=new WeakMap,rt=[...eW,eQ,e6],re=t=>rt.find(eO(t)),ri=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete",],rs=b.length;class rn{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},o={}){this.applyWillChange=!1,this.resolveKeyframes=(t,e,i,s)=>new this.KeyframeResolver(t,e,i,s,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eH,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tY.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=Boolean(n),this.isControllingVariants=S(e),this.isVariantNode=A(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let d in h){let c=h[d];void 0!==a[d]&&U(c)&&c.set(a[d],!1)}}mount(t){this.current=t,n7.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),n8.current||function(){if(n8.current=!0,R.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n6.current=t.matches;t.addListener(e),e()}else n6.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n6.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in n7.delete(this.current),this.projection&&this.projection.unmount(),(0,tY.Pn)(this.notifyUpdate),(0,tY.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let e in this.features){let i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i=O.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tY.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in E){let e=E[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):sz()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let i=0;i<ri.length;i++){let s=ri[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);let n="on"+s,r=t[n];r&&(this.propEventSubscriptions[s]=this.on(s,r))}
1this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(U(n))t.addValue(s,n);else if(U(r))t.addValue(s,sl(n,{owner:t}));else if(r!==n){if(t.hasValue(s)){let o=t.getValue(s);!0===o.liveStyle?o.jump(n):o.hasAnimated||o.set(n)}else{let a=t.getStaticValue(s);t.addValue(s,sl(void 0!==a?a:n,{owner:t}))}}}for(let l in i)void 0===e[l]&&t.removeValue(l);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let i={};for(let s=0;s<rs;s++){let n=b[s],r=this.props[n];(P(r)||!1===r)&&(i[n]=r)}return i}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=sl(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&(eC(s)||eS(s))?s=parseFloat(s):!re(s)&&e6.test(e)&&(s=ir(t,e)),this.setBaseTarget(t,U(s)?s.get():s)),U(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,s;if("string"==typeof i||"object"==typeof i){let n=tL(this.props,i,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&&(s=n[t])}if(i&&void 0!==s)return s;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||U(r)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new sn),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rr extends rn{constructor(){super(...arguments),this.KeyframeResolver=ia}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class ro extends rr{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0}readValueFromInstance(t,e){if(O.has(e)){let i=is(e);return i&&i.default||0}{var s;let n=window.getComputedStyle(t),r=(z(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return s4(t,e)}build(t,e,i){tc(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return tR(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;U(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,s){tC(t,e,i,s)}}class ra extends rr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(O.has(e)){let i=is(e);return i&&i.default||0}return e=tE.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return sz()}
1scrapeMotionValuesFromProps(t,e,i){return tk(t,e,i)}build(t,e,i){tb(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){tM(t,e,i,s)}mount(t){this.isSVGTag=tA(t.tagName),super.mount(t)}}let rl=(t,e)=>j(t)?new ra(e):new ro(e,{allowProjection:t!==r.Fragment}),ru={animation:{Feature:class extends t6{constructor(t){super(t),t.animationState||(t.animationState=function(t){var e;let i=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){let n=e.map(e=>sf(t,e,i));s=Promise.all(n)}else if("string"==typeof e)s=sf(t,e,i);else{let r="function"==typeof e?el(t,e,i.custom):e;s=Promise.all(sm(t,r,i))}return s.then(()=>{tY.Wi.postRender(()=>{t.notify("AnimationComplete",e)})})})(t,e,i))),s=sw(),n=!0,r=e=>(i,s)=>{var n;let r=el(t,s,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(r){let{transition:o,transitionEnd:a,...l}=r;i={...i,...l,...a}}return i};function o(e){let o=t.getProps(),a=t.getVariantContext(!0)||{},l=[],u=new Set,h={},d=1/0;for(let c=0;c<sy;c++){let p=sg[c],m=s[p],f=void 0!==o[p]?o[p]:a[p],v=P(f),g=p===e?m.isActive:null;!1===g&&(d=c);let y=f===a[p]&&f!==o[p]&&v;if(y&&n&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...h},!m.isActive&&null===g||!f&&!m.prevProp||w(f)||"boolean"==typeof f)continue;let x=sx(m.prevProp,f),T=x||p===e&&m.isActive&&!y&&v||c>d&&v,b=!1,S=Array.isArray(f)?f:[f],A=S.reduce(r(p),{});!1===g&&(A={});let{prevResolvedValues:V={}}=m,C={...V,...A},E=e=>{T=!0,u.has(e)&&(b=!0,u.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let M in C){let R=A[M],k=V[M];if(h.hasOwnProperty(M))continue;let D=!1;(tB(R)&&tB(k)?ea(R,k):R===k)?void 0!==R&&u.has(M)?E(M):m.protectedKeys[M]=!0:null!=R?E(M):u.add(M)}m.prevProp=f,m.prevResolvedValues=A,m.isActive&&(h={...h,...A}),n&&t.blockInitialAnimation&&(T=!1),T&&(!y||b)&&l.push(...S.map(t=>({animation:t,options:{type:p}})))}if(u.size){let L={};u.forEach(e=>{let i=t.getBaseTarget(e),s=t.getValue(e);s&&(s.liveStyle=!0),L[e]=null!=i?i:null}),l.push({animation:L})}let j=Boolean(l.length);return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(j=!1),n=!1,j?i(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var n;if(s[e].isActive===i)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var s;return null===(s=t.animationState)||void 0===s?void 0:s.setActive(e,i)}),s[e].isActive=i;let r=o(e);for(let a in s)s[a].protectedKeys={};return r},setAnimateFunction:function(e){i=e(t)},getState:()=>s,reset(){s=sw(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();w(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends t6{constructor(){super(...arguments),this.id=sT++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends t6{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:eo[s]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;es.has(i)||es.set(i,{});let s=es.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(er,{root:t,...e})),s[n]}(e);return ei.set(t,i),s.observe(t),()=>{ei.delete(t),s.unobserve(t)}}(this.node.current,r,o)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends t6{constructor(){super(...arguments),this.removeStartListeners=et.Z,this.removeEndListeners=et.Z,this.removeAccessibleListeners=et.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:n}=this.node.getProps(),r=n||t7(this.node.current,t.target)?i:s;r&&tY.Wi.update(()=>r(t,e))},n=tQ(window,"pointerup",s,{passive:!(i.onTap||i.onPointerUp)}),r=tQ(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=t1(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&ee("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tY.Wi.postRender(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=tG(this.node.current,"keyup",e),ee("down",(t,e)=>{this.startPress(t,e)})},e=tG(this.node.current,"keydown",t),i=()=>{this.isPressing&&ee("cancel",(t,e)=>this.cancelPress(t,e))},s=tG(this.node.current,"blur",i);this.removeAccessibleListeners=t1(e,s)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&tY.Wi.postRender(()=>i(t,e))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let t=this.node.getProps();return t.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!t4()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tY.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tQ(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tG(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=t1(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends t6{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=t1(tG(this.node.current,"focus",()=>this.onFocus()),tG(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends t6{mount(){this.unmount=t1(t8(this.node,!0),t8(this.node,!1))}unmount(){}}},pan:{Feature:class extends t6{constructor(){super(...arguments),this.removePointerDownListener=et.Z}onPointerDown(t){this.session=new sS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s6(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ne(t),onStart:ne(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&tY.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=tQ(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends t6{constructor(t){super(t),this.removeGroupControls=et.Z,this.removeListeners=et.Z,this.controls=new s7(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:n4,MeasureLayout:no},layout:{ProjectionNode:n4,MeasureLayout:no}},rh=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:d}){t&&function(t){for(let e in t)E[e]={...E[e],...t[e]}}(t);let p=(0,r.forwardRef)(function(p,f){var w,T,b,A,C;let M,D={...(0,r.useContext)(o._),...p,layoutId:function({layoutId:t}){let e=(0,r.useContext)(k.p).id;return e&&void 0!==t?e+"-"+t:t}(p)},{isStatic:L}=D,j=function(t){let{initial:e,animate:i}=function(t,e){if(S(t)){let{initial:i,animate:s}=t;return{initial:!1===i||P(i)?i:void 0,animate:P(s)?s:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(a));return(0,r.useMemo)(()=>({initial:e,animate:i}),[V(e),V(i)])}(p),B=s(p,L);
1if(!L&&R.j){A=D,C=t,(0,r.useContext)(h).strict;let F=function(t){let{drag:e,layout:i}=E;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(D);M=F.MeasureLayout,j.visualElement=function(t,e,i,s,n){let{visualElement:d}=(0,r.useContext)(a),p=(0,r.useContext)(h),f=(0,r.useContext)(l.O),P=(0,r.useContext)(o._).reducedMotion,w=(0,r.useRef)();s=s||p.renderer,!w.current&&s&&(w.current=s(t,{visualState:e,parent:d,props:i,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:P}));let T=w.current,b=(0,r.useContext)(g);T&&!T.projection&&n&&("html"===T.type||"svg"===T.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:Boolean(o)||a&&v(a),visualElement:t,scheduleRender:()=>t.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}(w.current,i,n,b),(0,r.useInsertionEffect)(()=>{T&&T.update(i,f)});let S=(0,r.useRef)(Boolean(i[c]&&!window.HandoffComplete));return(0,u.L)(()=>{T&&(T.updateFeatures(),m.render(T.render),S.current&&T.animationState&&T.animationState.animateChanges())}),(0,r.useEffect)(()=>{T&&(!S.current&&T.animationState&&T.animationState.animateChanges(),S.current&&(S.current=!1,y||(y=!0,queueMicrotask(x))))}),T}(d,B,D,e,F.ProjectionNode)}return(0,n.jsxs)(a.Provider,{value:j,children:[M&&j.visualElement?(0,n.jsx)(M,{visualElement:j.visualElement,...D}):null,i(d,p,(T=j.visualElement,b=f,(0,r.useCallback)(t=>{t&&B.mount&&B.mount(t),T&&(t?T.mount(t):T.unmount()),b&&("function"==typeof b?b(t):v(b)&&(b.current=t))},[T])),B,L,j.visualElement)]})});return p[D]=d,p}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,s)=>(i.has(s)||i.set(s,e(s)),i.get(s))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,s){let n=j(t)?tZ:tX;return{...n,preloadedFeatures:i,useRender:function(t=!1){let e=(e,i,s,{latestValues:n},o)=>{let a=j(e)?tV:tf,l=a(i,n,o,e),u=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(ty(n)||!0===i&&tg(n)||!e&&!tg(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(i,"string"==typeof e,t),h=e!==r.Fragment?{...u,...l,ref:s}:{},{children:d}=i,c=(0,r.useMemo)(()=>U(d)?d.get():d,[d]);return(0,r.createElement)(e,{...h,children:c})};return e}(e),createVisualElement:s,Component:t}})(t,e,ru,rl))},14993:function(t,e,i){i.d(e,{c:function(){return s}});let s={skipAnimations:!1,useManualTiming:!1}},10059:function(t,e,i){i.d(e,{K:function(){return n},k:function(){return r}});var s=i(194);let n=s.Z,r=s.Z},6200:function(t,e,i){i.d(e,{j:function(){return s}});let s="undefined"!=typeof document},194:function(t,e,i){i.d(e,{Z:function(){return s}});let s=t=>t},93219:function(t,e,i){i.d(e,{h:function(){return n}});var s=i(59994);function n(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},54297:function(t,e,i){i.d(e,{N:function(){return o}});var s=i(59994),n=i(47600),r=i(62983);function o(){let t=(0,n.t)(),[e,i]=(0,s.useState)(0),o=(0,s.useCallback)(()=>{t.current&&i(e+1)},[e]),a=(0,s.useCallback)(()=>r.Wi.postRender(o),[o]);return[a,e]}},47600:function(t,e,i){i.d(e,{t:function(){return r}});var s=i(59994),n=i(31513);function r(){let t=(0,s.useRef)(!1);return(0,n.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}},31513:function(t,e,i){i.d(e,{L:function(){return r}});var s=i(59994),n=i(6200);let r=n.j?s.useLayoutEffect:s.useEffect}}]);
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.