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