1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{50429:function(t,e,n){n.d(e,{g:function(){return rs}});var i=n(67294);function o(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function s(t){return!!t.touches}const r={pageX:0,pageY:0};function a(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||r;return{x:n[e+"X"],y:n[e+"Y"]}}function l(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function u(t,e="page"){return{point:s(t)?a(t,e):l(t,e)}}const c=(t,e=!1)=>{const n=e=>t(e,u(e));return e?(i=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}):n;var i};var h=n(54735);const d=t=>1e3*t;function p(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function m(t,e,n,o){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return p(i,e,n,o)}),[t,e,n,o])}var f=n(11741);const v={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},g={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function y(t){return f.j&&null===window.onpointerdown?t:f.j&&null===window.ontouchstart?g[t]:f.j&&null===window.onmousedown?v[t]:t}function x(t,e,n,i){return p(t,y(e),c(n,"pointerdown"===e),i)}function b(t,e,n,i){return m(t,y(e),n&&c(n,"pointerdown"===e),i)}const P=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),V=t=>P(t)&&t.hasOwnProperty("z"),E=t=>"number"===typeof t,T=(t,e)=>Math.abs(t-e);function w(t,e){if(E(t)&&E(e))return T(t,e);if(P(t)&&P(e)){const n=T(t.x,e.x),i=T(t.y,e.y),o=V(t)&&V(e)?T(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}const A=(t,e)=>n=>e(t(n)),S=(...t)=>t.reduce(A);class C{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=R(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=w(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=(0,h.$B)();this.history.push({...i,timestamp:o});const{onStart:s,onMove:r}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=M(e,this.transformPagePoint),o(t)&&0===t.buttons?this.handlePointerUp(t,e):h.ZP.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,o=R(M(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},s(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const i=M(u(t),this.transformPagePoint),{point:r}=i,{timestamp:a}=(0,h.$B)();this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,R(i,this.history)),this.removeListeners=S(x(window,"pointermove",this.handlePointerMove),x(window,"pointerup",this.handlePointerUp),x(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),h.qY.update(this.updatePoint)}}function M(t,e){return e?{point:e(t.point)}:t}function D(t,e){return{x:t.x-e.x,y:t.y-e.y}}function R({point:t},e){return{point:t,delta:D(t,j(e)),offset:D(t,B(e)),velocity:L(e,.1)}}function B(t){return t[0]}function j(t){return t[t.length-1]}function L(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=j(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>d(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function k(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const F=k("dragHorizontal"),O=k("dragVertical");function I(t){let e=!1;if("y"===t)e=O();else if("x"===t)e=F();else{const t=F(),n=O();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function U(){const t=I(!0);return!t||(t(),!1)}var N=n(51804);const $=(t,e,n)=>-n*t+n*e+t,z=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},H=(t,e,n)=>Math.min(Math.max(n,t),e);function Y(t){return t.max-t.min}function G(t,e=0,n=.01){return w(t,e)<n}function q(t,e,n,i=.5){t.origin=i,t.originPoint=$(e.min,e.max,t.origin),t.scale=Y(n)/Y(e),(G(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=$(n.min,n.max,t.origin)-t.originPoint,(G(t.translate)||isNaN(t.translate))&&(t.translate=0)}function W(t,e,n,i){q(t.x,e.x,n.x,null===i||void 0===i?void 0:i.originX),q(t.y,e.y,n.y,null===i||void 0===i?void 0:i.originY)}function Z(t,e,n){t.min=n.min+e.min,t.max=t.min+Y(e)}function X(t,e,n){t.min=e.min-n.min,t.max=t.min+Y(e)}function K(t,e,n){X(t.x,e.x,n.x),X(t.y,e.y,n.y)}function _(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Q(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const J=.35;function tt(t,e,n){return{min:et(t,e),max:et(t,n)}}function et(t,e){var n;return"number"===typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}var nt;!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(nt||(nt={}));function it(t){return[t("x"),t("y")]}function ot({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function st(t){return void 0===t||1===t}function rt({scale:t,scaleX:e,scaleY:n}){return!st(t)||!st(e)||!st(n)}function at(t){return rt(t)||lt(t)||t.z||t.rotate||t.rotateX||t.rotateY}function lt(t){return ut(t.x)||ut(t.y)}function ut(t){return t&&"0%"!==t}function ct(t,e,n){return n+e*(t-n)}function ht(t,e,n,i,o){return void 0!==o&&(t=ct(t,o,i)),ct(t,n,i)+e}function dt(t,e=0,n=1,i,o){t.min=ht(t.min,e,n,i,o),t.max=ht(t.max,e,n,i,o)}function pt(t,{x:e,y:n}){dt(t.x,e.translate,e.scale,e.originPoint),dt(t.y,n.translate,n.scale,n.originPoint)}function mt(t,e){t.min=t.min+e,t.max=t.max+e}function ft(t,e,[n,i,o]){const s=void 0!==e[o]?e[o]:.5,r=$(t.min,t.max,s);dt(t,e[n],e[i],r,e.scale)}const vt=["x","scaleX","originX"],gt=["y","scaleY","originY"];function yt(t,e){ft(t.x,e,vt),ft(t.y,e,gt)}function xt(t,e){return ot(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}function bt(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}Object.create;Object.create;const Pt=.001;function Vt({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let o,s,r=1-e;r=H(.05,1,r),t=H(.01,10,t/1e3),r<1?(o=e=>{const i=e*r,o=i*t,s=i-n,a=Et(e,r),l=Math.exp(-o);return Pt-s/a*l},s=e=>{const i=e*r*t,s=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Et(Math.pow(e,2),r);return(-o(e)+Pt>0?-1:1)*((s-a)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,s=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let o=1;o<12;o++)i-=t(i)/e(i);return i}(o,s,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}function Et(t,e){return t*Math.sqrt(1-e*e)}const Tt=["duration","bounce"],wt=["stiffness","damping","mass"];function At(t,e){return e.some((e=>void 0!==t[e]))}function St(t){var{from:e=0,to:n=1,restSpeed:i=2,restDelta:o}=t,s=bt(t,["from","to","restSpeed","restDelta"]);const r={done:!1,value:e};let{stiffness:a,damping:l,mass:u,velocity:c,duration:h,isResolvedFromDuration:d}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!At(t,wt)&&At(t,Tt)){const n=Vt(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(s),p=Ct,m=Ct;function f(){const t=c?-c/1e3:0,i=n-e,s=l/(2*Math.sqrt(a*u)),r=Math.sqrt(a/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-e)/100,.4)),s<1){const e=Et(r,s);p=o=>{const a=Math.exp(-s*r*o);
1return n-a*((t+s*r*i)/e*Math.sin(e*o)+i*Math.cos(e*o))},m=n=>{const o=Math.exp(-s*r*n);return s*r*o*(Math.sin(e*n)*(t+s*r*i)/e+i*Math.cos(e*n))-o*(Math.cos(e*n)*(t+s*r*i)-e*i*Math.sin(e*n))}}else if(1===s)p=e=>n-Math.exp(-r*e)*(i+(t+r*i)*e);else{const e=r*Math.sqrt(s*s-1);p=o=>{const a=Math.exp(-s*r*o),l=Math.min(e*o,300);return n-a*((t+s*r*i)*Math.sinh(l)+e*i*Math.cosh(l))/e}}}return f(),{next:t=>{const e=p(t);if(d)r.done=t>=h;else{const s=1e3*m(t),a=Math.abs(s)<=i,l=Math.abs(n-e)<=o;r.done=a&&l}return r.value=r.done?n:e,r},flipTarget:()=>{c=-c,[e,n]=[n,e],f()}}}St.needsInterpolation=(t,e)=>"string"===typeof t||"string"===typeof e;const Ct=t=>0;var Mt=n(11248),Dt=n(16777);const Rt=(t,e)=>n=>Boolean((0,Dt.HD)(n)&&Dt.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Bt=(t,e,n)=>i=>{if(!(0,Dt.HD)(i))return i;const[o,s,r,a]=i.match(Dt.KP);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},jt=(0,Dt.uZ)(0,255),Lt=Object.assign(Object.assign({},Mt.Rx),{transform:t=>Math.round(jt(t))}),kt={test:Rt("rgb","red"),parse:Bt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Lt.transform(t)+", "+Lt.transform(e)+", "+Lt.transform(n)+", "+(0,Dt.Nw)(Mt.Fq.transform(i))+")"};const Ft={test:Rt("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:kt.transform};var Ot=n(2969);const It={test:Rt("hsl","hue"),parse:Bt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Ot.aQ.transform((0,Dt.Nw)(e))+", "+Ot.aQ.transform((0,Dt.Nw)(n))+", "+(0,Dt.Nw)(Mt.Fq.transform(i))+")"};function Ut(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Nt({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=Ut(a,i,t+1/3),s=Ut(a,i,t),r=Ut(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}const $t=(t,e,n)=>{const i=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-i)+i))},zt=[Ft,kt,It],Ht=t=>zt.find((e=>e.test(t))),Yt=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Gt=(t,e)=>{let n=Ht(t),i=Ht(e);Yt(t),Yt(e);let o=n.parse(t),s=i.parse(e);n===It&&(o=Nt(o),n=kt),i===It&&(s=Nt(s),i=kt);const r=Object.assign({},o);return t=>{for(const e in r)"alpha"!==e&&(r[e]=$t(o[e],s[e],t));return r.alpha=$(o.alpha,s.alpha,t),n.transform(r)}},qt={test:t=>kt.test(t)||Ft.test(t)||It.test(t),parse:t=>kt.test(t)?kt.parse(t):It.test(t)?It.parse(t):Ft.parse(t),transform:t=>(0,Dt.HD)(t)?t:t.hasOwnProperty("red")?kt.transform(t):It.transform(t)},Wt="${c}",Zt="${n}";function Xt(t){"number"===typeof t&&(t=`${t}`);const e=[];let n=0;const i=t.match(Dt.dA);i&&(n=i.length,t=t.replace(Dt.dA,Wt),e.push(...i.map(qt.parse)));const o=t.match(Dt.KP);return o&&(t=t.replace(Dt.KP,Zt),e.push(...o.map(Mt.Rx.parse))),{values:e,numColors:n,tokenised:t}}function Kt(t){return Xt(t).values}function _t(t){const{values:e,numColors:n,tokenised:i}=Xt(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=e.replace(i<n?Wt:Zt,i<n?qt.transform(t[i]):(0,Dt.Nw)(t[i]));return e}}const Qt=t=>"number"===typeof t?0:t;const Jt={test:function(t){var e,n,i,o;return isNaN(t)&&(0,Dt.HD)(t)&&(null!==(n=null===(e=t.match(Dt.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(i=t.match(Dt.dA))||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0},parse:Kt,createTransformer:_t,getAnimatableNone:function(t){const e=Kt(t);return _t(t)(e.map(Qt))}};function te(t,e){return E(t)?n=>$(t,e,n):qt.test(t)?Gt(t,e):oe(t,e)}const ee=(t,e)=>{const n=[...t],i=n.length,o=t.map(((t,n)=>te(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},ne=(t,e)=>{const n=Object.assign(Object.assign({},t),e),i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=te(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}};function ie(t){const e=Jt.parse(t),n=e.length;let i=0,o=0,s=0;for(let r=0;r<n;r++)i||"number"===typeof e[r]?i++:void 0!==e[r].hue?s++:o++;return{parsed:e,numNumbers:i,numRGB:o,numHSL:s}}const oe=(t,e)=>{const n=Jt.createTransformer(e),i=ie(t),o=ie(e);return i.numHSL===o.numHSL&&i.numRGB===o.numRGB&&i.numNumbers>=o.numNumbers?S(ee(i.parsed,o.parsed),n):n=>`${n>0?e:t}`},se=(t,e)=>n=>$(t,e,n);function re(t,e,n){const i=[],o=n||("number"===typeof(s=t[0])?se:"string"===typeof s?qt.test(s)?Gt:oe:Array.isArray(s)?ee:"object"===typeof s?ne:void 0);var s;const r=t.length-1;for(let a=0;a<r;a++){let n=o(t[a],t[a+1]);if(e){const t=Array.isArray(e)?e[a]:e;n=S(t,n)}i.push(n)}return i}function ae(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const s=t.length;e.length,!i||!Array.isArray(i)||i.length,t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const r=re(e,i,o),a=2===s?function([t,e],[n]){return i=>n(z(t,e,i))}(t,r):function(t,e){const n=t.length,i=n-1;return o=>{let s=0,r=!1;if(o<=t[0]?r=!0:o>=t[i]&&(s=i-1,r=!0),!r){let e=1;for(;e<n&&!(t[e]>o||e===i);e++);s=e-1}const a=z(t[s],t[s+1],o);return e[s](a)}}(t,r);return n?e=>a(H(t[0],t[s-1],e)):a}const le=t=>e=>1-t(1-e),ue=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ce=t=>e=>e*e*((t+1)*e-t),he=t=>t,de=(pe=2,t=>Math.pow(t,pe));var pe;
1const me=le(de),fe=ue(de),ve=t=>1-Math.sin(Math.acos(t)),ge=le(ve),ye=ue(ge),xe=ce(1.525),be=le(xe),Pe=ue(xe),Ve=(t=>{const e=ce(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),Ee=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},Te=le(Ee);function we(t,e){return t.map((()=>e||fe)).splice(0,t.length-1)}function Ae({from:t=0,to:e=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:t},r=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(i&&i.length===r.length?i:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(r),o);function l(){return ae(a,r,{ease:Array.isArray(n)?n:we(r,n)})}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{r.reverse(),u=l()}}}const Se={keyframes:Ae,spring:St,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r={done:!1,value:e};let a=n*t;const l=e+a,u=void 0===s?l:s(l);return u!==l&&(a=u-e),{next:t=>{const e=-a*Math.exp(-t/i);return r.done=!(e>o||e<-o),r.value=r.done?u:u+e,r},flipTarget:()=>{}}}};function Ce(t,e,n=0){return t-e-n}const Me=t=>{const e=({delta:e})=>t(e);return{start:()=>h.ZP.update(e,!0),stop:()=>h.qY.update(e)}};function De(t){var e,n,{from:i,autoplay:o=!0,driver:s=Me,elapsed:r=0,repeat:a=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:h,onComplete:d,onRepeat:p,onUpdate:m}=t,f=bt(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:x}=f,b=0,P=f.duration,V=!1,E=!0;const T=function(t){if(Array.isArray(t.to))return Ae;if(Se[t.type])return Se[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Ae:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?St:Ae}(f);(null===(n=(e=T).needsInterpolation)||void 0===n?void 0:n.call(e,i,x))&&(y=ae([0,100],[i,x],{clamp:!1}),i=0,x=100);const w=T(Object.assign(Object.assign({},f),{from:i,to:x}));function A(){b++,"reverse"===l?(E=b%2===0,r=function(t,e,n=0,i=!0){return i?Ce(e+-t,e,n):e-(t-e)+n}(r,P,u,E)):(r=Ce(r,P,u),"mirror"===l&&w.flipTarget()),V=!1,p&&p()}function S(t){if(E||(t=-t),r+=t,!V){const t=w.next(Math.max(0,r));g=t.value,y&&(g=y(g)),V=E?t.done:r<=0}null===m||void 0===m||m(g),V&&(0===b&&(null!==P&&void 0!==P||(P=r)),b<a?function(t,e,n,i){return i?t>=e+n:t<=-n}(r,P,u,E)&&A():(v.stop(),d&&d()))}return o&&(null===c||void 0===c||c(),v=s(S),v.start()),{stop:()=>{null===h||void 0===h||h(),v.stop()}}}var Re=n(99296);const Be=(t,e)=>1-3*e+3*t,je=(t,e)=>3*e-6*t,Le=t=>3*t,ke=(t,e,n)=>((Be(e,n)*t+je(e,n))*t+Le(e))*t,Fe=(t,e,n)=>3*Be(e,n)*t*t+2*je(e,n)*t+Le(e);const Oe=.1;function Ie(t,e,n,i){if(t===e&&n===i)return he;const o=new Float32Array(11);for(let r=0;r<11;++r)o[r]=ke(r*Oe,t,n);function s(e){let i=0,s=1;for(;10!==s&&o[s]<=e;++s)i+=Oe;--s;const r=i+(e-o[s])/(o[s+1]-o[s])*Oe,a=Fe(r,t,n);return a>=.001?function(t,e,n,i){for(let o=0;o<8;++o){const o=Fe(e,n,i);if(0===o)return e;e-=(ke(e,n,i)-t)/o}return e}(e,r,t,n):0===a?r:function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=ke(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<10);return r}(e,i,i+Oe,t,n)}return t=>0===t||1===t?t:ke(s(t),e,i)}const Ue={linear:he,easeIn:de,easeInOut:fe,easeOut:me,circIn:ve,circInOut:ye,circOut:ge,backIn:xe,backInOut:Pe,backOut:be,anticipate:Ve,bounceIn:Te,bounceInOut:t=>t<.5?.5*(1-Ee(1-2*t)):.5*Ee(2*t-1)+.5,bounceOut:Ee},Ne=t=>{if(Array.isArray(t)){t.length;const[e,n,i,o]=t;return Ie(e,n,i,o)}return"string"===typeof t?Ue[t]:t},$e=(t,e)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!Jt.test(e)||e.startsWith("url(")));var ze=n(48488);const He=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Ye=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),Ge=()=>({type:"keyframes",ease:"linear",duration:.3}),qe=t=>({type:"keyframes",duration:.8,values:t}),We={x:He,y:He,z:He,rotate:He,rotateX:He,rotateY:He,rotateZ:He,scaleX:Ye,scaleY:Ye,scale:Ye,opacity:Ge,backgroundColor:Ge,color:Ge,default:Ye},Ze=(t,e)=>{let n;return n=(0,ze.C)(e)?qe:We[t]||We.default,{to:e,...n(e)}},Xe=new Set(["brightness","contrast","saturate","opacity"]);function Ke(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Dt.KP)||[];if(!i)return t;const o=n.replace(i,"");let s=Xe.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+o+")"}const _e=/([a-z-]*)\(.*?\)/g,Qe=Object.assign(Object.assign({},Jt),{getAnimatableNone:t=>{const e=t.match(_e);return e?e.map(Ke).join(" "):t}});const Je={...n(36173).j,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:Qe,WebkitFilter:Qe},tn=t=>Je[t];function en(t,e){var n;let i=tn(t);return i!==Qe&&(i=Jt),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}const nn=!1;var on=n(8715);function sn(t,e){const n=performance.now(),i=({timestamp:o})=>{const s=o-n;s>=e&&(h.qY.read(i),t(s-e))};return h.ZP.read(i,!0),()=>h.qY.read(i)}let rn=!1;function an({ease:t,times:e,yoyo:n,flip:i,loop:o,...s}){const r={...s};return e&&(r.offset=e),s.duration&&(r.duration=d(s.duration)),s.repeatDelay&&(r.repeatDelay=d(s.repeatDelay)),t&&(r.ease=(t=>Array.isArray(t)&&"number"!==typeof t[0])(t)?t.map(Ne):Ne(t)),"tween"===s.type&&(r.type="keyframes"),(n||o||i)&&(rn=!0,n?r.repeatType="reverse":o?r.repeatType="loop":i&&(r.repeatType="mirror"),r.repeat=o||n||i||s.repeat),"spring"!==s.type&&(r.type="keyframes"),r}function ln(t,e,n){return Array.isArray(e.to)&&void 0===t.duration&&(t.duration=.8),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(t)||(t={...t,...Ze(n,e.to)}),{...e,...an(t)}}function un(t,e,n,i,o){const s=dn(i,t)||{};let r=void 0!==s.from?s.from:e.get();const a=$e(t,n);"none"===r&&a&&"string"===typeof n?r=en(t,n):cn(r)&&"string"===typeof n?r=hn(n):!Array.isArray(n)&&cn(n)&&"string"===typeof r&&(n=hn(r));const l=$e(t,r);return l&&a&&!1!==s.type?function(){const i={from:r,to:n,velocity:e.getVelocity(),onComplete:o,onUp
1date:t=>e.set(t)};return"inertia"===s.type||"decay"===s.type?function({from:t=0,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:p,onStop:m}){let f;function v(t){return void 0!==n&&t<n||void 0!==i&&t>i}function g(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function y(t){null===f||void 0===f||f.stop(),f=De(Object.assign(Object.assign({},t),{driver:c,onUpdate:e=>{var n;null===d||void 0===d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:p,onStop:m}))}function x(t){y(Object.assign({type:"spring",stiffness:r,damping:a,restDelta:l},t))}if(v(t))x({from:t,velocity:e,to:g(t)});else{let i=o*e+t;"undefined"!==typeof u&&(i=u(i));const r=g(i),a=r===n?-1:1;let c,d;const p=t=>{c=d,d=t,e=(0,Re.R)(t-c,(0,h.$B)().delta),(1===a&&t>r||-1===a&&t<r)&&x({from:t,to:r,velocity:e})};y({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:v(i)?p:void 0})}return{stop:()=>null===f||void 0===f?void 0:f.stop()}}({...i,...s}):De({...ln(s,i,t),onUpdate:t=>{i.onUpdate(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{i.onComplete(),s.onComplete&&s.onComplete()}})}:function(){const t=(0,on.Y)(n);return e.set(t),o(),s.onUpdate&&s.onUpdate(t),s.onComplete&&s.onComplete(),{stop:()=>{}}}}function cn(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function hn(t){return"number"===typeof t?0:en("",t)}function dn(t,e){return t[e]||t.default||t}function pn(t,e,n,i={}){return nn&&(i={type:!1}),e.start((o=>{let s;const r=un(t,e,n,i,o),a=function(t,e){var n,i;return null!==(i=null!==(n=(dn(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==i?i:0}(i,t),l=()=>s=r();let u;return a?u=sn(l,d(a)):l(),()=>{u&&u(),s&&s.stop()}}))}const mn=new WeakMap;class fn{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new C(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(u(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=I(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),it((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(Ot.aQ.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=Y(o)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null===s||void 0===s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(nt.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null===o||void 0===o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null===s||void 0===s||s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:o}=this.getProps();null===o||void 0===o||o(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(nt.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!vn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?$(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?$(n,t,i.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,N.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:_(t.x,n,o),y:_(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=J){return!1===t?t=0:!0===t&&(t=J),{x:tt(t,"left","right"),y:tt(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&it((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,N.I)(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=function(t,e,n){const i=xt(t,n),{scroll:o}=e;return o&&(mt(i.x,o.offset.x),mt(i.y,o.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let s=function(t,e){return{x:Q(t.x,e.x),y:Q(t.y,e.y)}}(i.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=ot(t))}return s}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=it((r=>{var l;if(!vn(r,e,this.currentDirection))return;let u=null!==(l=null===a||void 0===a?void 0:a[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});const c=i?200:1e6,h=i?40:1e7,d={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(r,d)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){return pn(t,this.getAxisMotionValue(t),0,e)}stopAnimation(){it((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e,n;const i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){it((e=>{const{drag:n}=this.getProps();
1if(!vn(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-$(n,s,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,N.I)(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};it((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=function(t,e){let n=.5;const i=Y(t),o=Y(e);return o>i?n=z(e.min,e.max-i,t.min):i>o&&(n=z(t.min,t.max-o,e.min)),H(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),it((t=>{if(!vn(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set($(i,s,o[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;mn.set(this.visualElement,this);const e=x(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),n=()=>{const{dragConstraints:t}=this.getProps();(0,N.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),n();const s=p(window,"resize",(()=>this.scalePositionWithinConstraints())),r=i.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(it((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),e(),o(),null===r||void 0===r||r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=J,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function vn(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var gn=n(96681);var yn=n(16014);function xn(t){return(0,i.useEffect)((()=>()=>t()),[])}const bn=t=>e=>(t(e),null),Pn={pan:bn((function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:o,visualElement:s}){const r=t||e||n||o,a=(0,i.useRef)(null),{transformPagePoint:l}=(0,i.useContext)(yn._),u={onSessionStart:o,onStart:e,onMove:t,onEnd:(t,e)=>{a.current=null,n&&n(t,e)}};(0,i.useEffect)((()=>{null!==a.current&&a.current.updateHandlers(u)})),b(s,"pointerdown",r&&function(t){a.current=new C(t,u,{transformPagePoint:l})}),xn((()=>a.current&&a.current.end()))})),drag:bn((function(t){const{dragControls:e,visualElement:n}=t,o=(0,gn.h)((()=>new fn(n)));(0,i.useEffect)((()=>e&&e.subscribe(o)),[o,e]),(0,i.useEffect)((()=>o.addListeners()),[o])}))};var Vn=n(240);function En(){const t=(0,i.useContext)(Vn.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,s=(0,i.useId)();(0,i.useEffect)((()=>o(s)),[]);return!e&&n?[!1,()=>n&&n(s)]:[!0]}var Tn=n(25364),wn=n(41705),An=n(93083);function Sn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Cn={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!Ot.px.test(t))return t;t=parseFloat(t)}return`${Sn(t,e.target.x)}% ${Sn(t,e.target.y)}%`}};function Mn(t){return"string"===typeof t&&t.startsWith("var(--")}const Dn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Rn(t,e,n=1){const[i,o]=function(t){const e=Dn.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);return s?s.trim():Mn(o)?Rn(o,e,n+1):o}const Bn="_$css",jn={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(Dn,(t=>(s.push(t),Bn))));const r=Jt.parse(t);if(r.length>5)return i;const a=Jt.createTransformer(t),l="number"!==typeof r[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;r[0+l]/=u,r[1+l]/=c;const h=$(u,c,.5);"number"===typeof r[2+l]&&(r[2+l]/=h),"number"===typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(o){let t=0;d=d.replace(Bn,(()=>{const e=s[t];return t++,e}))}return d}};var Ln=n(64561);class kn extends i.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;(0,Ln.B)(Fn),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),An.V.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||h.ZP.postRender((()=>{var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null===e||void 0===e?void 0:e.group)&&e.group.remove(i),(null===n||void 0===n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null===t||void 0===t||t()}render(){return null}}const Fn={borderRadius:{...Cn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cn,borderTopRightRadius:Cn,borderBottomLeftRadius:Cn,borderBottomRightRadius:Cn,boxShadow:jn},On={measureLayout:function(t){const[e,n]=En(),o=(0,i.useContext)(Tn.p);return i.createElement(kn,{...t,layoutGroup:o,switchLayoutGroup:(0,i.useContext)(wn.g),isPresent:e,safeToRemove:n})}};var In=n(2445);function Un(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Nn=t=>/^0[^.\s]+$/.test(t);var $n=n(33234);const zn=t=>e=>e.test(t),Hn=[Mt.Rx,Ot.px,Ot.aQ,Ot.RW,Ot.vw,Ot.vh,{test:t=>"auto"===t,parse:t=>t}],Yn=t=>Hn.find(zn(t)),Gn=[...Hn,qt,Jt],qn=t=>Gn.find(zn(t));var Wn=n(79432);function Zn(t,e,n){const i=t.getProps();return(0,Wn.o)(i,e,void 0!==n?n:i.custom,function(t){const e={};
1return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function Xn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,$n.B)(n))}function Kn(t,e){const n=Zn(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const r in s){Xn(t,r,(0,on.Y)(s[r]))}}function _n(t,e){if(!e)return;return(e[t]||e.default||e).from}var Qn=n(94714),Jn=n(40406);function ti(t){return Boolean((0,Jn.i)(t)&&t.add)}function ei(t,e,n={}){var i;const o=Zn(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>ni(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(ii).forEach(((t,i)=>{r.push(ei(t,e,{...s,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function ni(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");i&&(r=i);const c=[],h=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const d in l){const e=t.getValue(d),i=l[d];if(!e||void 0===i||h&&oi(h,d))continue;let o={delay:n,...r};t.shouldReduceMotion&&Qn.G.has(d)&&(o={...o,type:!1,delay:0});let s=pn(d,e,i,o);ti(u)&&(u.add(d),s=s.then((()=>u.remove(d)))),c.push(s)}return Promise.all(c).then((()=>{a&&Kn(t,a)}))}function ii(t,e){return t.sortNodePosition(e)}function oi({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}var si=n(97732);const ri=[nt.Animate,nt.InView,nt.Focus,nt.Hover,nt.Tap,nt.Drag,nt.Exit],ai=[...ri].reverse(),li=ri.length;function ui(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>ei(t,e,n)));i=Promise.all(o)}else if("string"===typeof e)i=ei(t,e,n);else{const o="function"===typeof e?Zn(t,e,n.custom):e;i=ni(t,o,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function ci(t){let e=ui(t);const n={[nt.Animate]:di(!0),[nt.InView]:di(),[nt.Hover]:di(),[nt.Tap]:di(),[nt.Drag]:di(),[nt.Focus]:di(),[nt.Exit]:di()};let i=!0;const o=(e,n)=>{const i=Zn(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function s(s,r){var a;const l=t.getProps(),u=t.getVariantContext(!0)||{},c=[],h=new Set;let d={},p=1/0;for(let e=0;e<li;e++){const m=ai[e],f=n[m],v=null!==(a=l[m])&&void 0!==a?a:u[m],g=(0,si.$)(v),y=m===r?f.isActive:null;!1===y&&(p=e);let x=v===u[m]&&v!==l[m]&&g;if(x&&i&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...d},!f.isActive&&null===y||!v&&!f.prevProp||(0,In.H)(v)||"boolean"===typeof v)continue;const b=hi(f.prevProp,v);let P=b||m===r&&f.isActive&&!x&&g||e>p&&g;const V=Array.isArray(v)?v:[v];let E=V.reduce(o,{});!1===y&&(E={});const{prevResolvedValues:T={}}=f,w={...T,...E},A=t=>{P=!0,h.delete(t),f.needsAnimating[t]=!0};for(const t in w){const e=E[t],n=T[t];d.hasOwnProperty(t)||(e!==n?(0,ze.C)(e)&&(0,ze.C)(n)?!Un(e,n)||b?A(t):f.protectedKeys[t]=!0:void 0!==e?A(t):h.add(t):void 0!==e&&h.has(t)?A(t):f.protectedKeys[t]=!0)}f.prevProp=v,f.prevResolvedValues=E,f.isActive&&(d={...d,...E}),i&&t.blockInitialAnimation&&(P=!1),P&&!x&&c.push(...V.map((t=>({animation:t,options:{type:m,...s}}))))}if(h.size){const e={};h.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),c.push({animation:e})}let m=Boolean(c.length);return i&&!1===l.initial&&!t.manuallyAnimateOnMount&&(m=!1),i=!1,m?e(c):Promise.resolve()}return{animateChanges:s,setActive:function(e,i,o){var r;if(n[e].isActive===i)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=s(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function hi(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!Un(e,t)}function di(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const pi={animation:bn((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=ci(t)),(0,In.H)(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:bn((t=>{const{custom:e,visualElement:n}=t,[o,s]=En(),r=(0,i.useContext)(Vn.O);(0,i.useEffect)((()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(nt.Exit,!o,{custom:r&&r.custom||e});t&&!o&&t.then(s)}),[o])}))};function mi(t,e,n){return(i,s)=>{o(i)&&!U()&&(t.animationState&&t.animationState.setActive(nt.Hover,e),n&&n(i,s))}}const fi=(t,e)=>!!e&&(t===e||fi(t,e.parentElement));var vi=n(83454);const gi=("undefined"===typeof vi||vi.env,"production"),yi=new Set;const xi=new WeakMap,bi=new WeakMap,Pi=t=>{const e=xi.get(t.target);e&&e(t)}
1,Vi=t=>{t.forEach(Pi)};function Ei(t,e,n){const i=function({root:t,...e}){const n=t||document;bi.has(n)||bi.set(n,{});const i=bi.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(Vi,{root:t,...e})),i[o]}(e);return xi.set(t,n),i.observe(t),()=>{xi.delete(t),i.unobserve(t)}}const Ti={some:0,all:1};function wi(t,e,n,{root:o,margin:s,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null===o||void 0===o?void 0:o.current,rootMargin:s,threshold:"number"===typeof r?r:Ti[r]};return Ei(n.current,i,(t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(nt.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[t,o,s,r])}function Ai(t,e,n,{fallback:o=!0}){(0,i.useEffect)((()=>{var i,s;t&&o&&("production"!==gi&&(i="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||yi.has(i)||(console.warn(i),s&&console.warn(s),yi.add(i))),requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(nt.InView,!0)})))}),[t])}const Si={inView:bn((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"===typeof IntersectionObserver?Ai:wi)(a,r.current,t,s)})),tap:bn((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s}){const r=t||e||n||o,a=(0,i.useRef)(!1),l=(0,i.useRef)(null),u={passive:!(e||t||n||m)};function c(){l.current&&l.current(),l.current=null}function h(){return c(),a.current=!1,s.animationState&&s.animationState.setActive(nt.Tap,!1),!U()}function d(e,i){h()&&(fi(s.current,e.target)?t&&t(e,i):n&&n(e,i))}function p(t,e){h()&&n&&n(t,e)}function m(t,n){c(),a.current||(a.current=!0,l.current=S(x(window,"pointerup",d,u),x(window,"pointercancel",p,u)),s.animationState&&s.animationState.setActive(nt.Tap,!0),e&&e(t,n))}b(s,"pointerdown",r?m:void 0,u),xn(c)})),focus:bn((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;m(e,"focus",t?()=>{n&&n.setActive(nt.Focus,!0)}:void 0),m(e,"blur",t?()=>{n&&n.setActive(nt.Focus,!1)}:void 0)})),hover:bn((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){b(i,"pointerenter",t||n?mi(i,!0,t):void 0,{passive:!t}),b(i,"pointerleave",e||n?mi(i,!1,e):void 0,{passive:!e})}))};var Ci=n(38057),Mi=n(57630),Di=n(50189),Ri=n(34242);const Bi=new Set(["width","height","top","left","right","bottom","x","y"]),ji=t=>Bi.has(t),Li=(t,e)=>{t.set(e,!1),t.set(e)},ki=t=>t===Mt.Rx||t===Ot.px;var Fi;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Fi||(Fi={}));const Oi=(t,e)=>parseFloat(t.split(", ")[e]),Ii=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return Oi(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?Oi(e[1],t):0}},Ui=new Set(["x","y","z"]),Ni=Qn._.filter((t=>!Ui.has(t)));const $i={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ii(4,13),y:Ii(5,14)},zi=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(ji);let s=[],r=!1;const a=[];if(o.forEach((o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],c=Yn(u);const h=e[o];let d;if((0,ze.C)(h)){const t=h.length,e=null===h[0]?1:0;u=h[e],c=Yn(u);for(let n=e;n<t;n++)d?Yn(h[n]):(d=Yn(h[n]),d===c||ki(c)&&ki(d))}else d=Yn(h);if(c!==d)if(ki(c)&&ki(d)){const t=l.get();"string"===typeof t&&l.set(parseFloat(t)),"string"===typeof h?e[o]=parseFloat(h):Array.isArray(h)&&d===Ot.px&&(e[o]=h.map(parseFloat))}else(null===c||void 0===c?void 0:c.transform)&&(null===d||void 0===d?void 0:d.transform)&&(0===u||0===h)?0===u?l.set(d.transform(u)):e[o]=c.transform(h):(r||(s=function(t){const e=[];return Ni.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),r=!0),a.push(o),i[o]=void 0!==i[o]?i[o]:e[o],Li(l,h))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEac
1h((t=>{a[t]=$i[t](i,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);Li(i,a[n]),t[n]=$i[n](l,s)})),t})(e,t,a);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),f.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function Hi(t,e,n,i){return(t=>Object.keys(t).some(ji))(e)?zi(t,e,n,i):{target:e,transitionEnd:i}}const Yi=(t,e,n,i)=>{const o=function(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!Mn(e))return;const n=Rn(e,i);n&&t.set(n)}));for(const o in e){const t=e[o];if(!Mn(t))continue;const s=Rn(t,i);s&&(e[o]=s,n&&void 0===n[o]&&(n[o]=t))}return{target:e,transitionEnd:n}}(t,e,i);return Hi(t,e=o.target,n,i=o.transitionEnd)};var Gi=n(9442);const qi={current:null},Wi={current:!1};var Zi=n(21560),Xi=n(7504);const Ki=Object.keys(Gi.A),_i=Ki.length,Qi=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Ji=["initial",...ri],to=Ji.length;class eo extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>h.ZP.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=(0,Xi.G)(e),this.isVariantNode=(0,Xi.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(const u in l){const t=l[u];void 0!==s[u]&&(0,Jn.i)(t)&&(t.set(s[u],!1),ti(a)&&a.add(u))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Wi.current||function(){if(Wi.current=!0,f.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qi.current=t.matches;t.addListener(e),e()}else qi.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||qi.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),h.qY.update(this.notifyUpdate),h.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,e){const n=Qn.G.has(t),i=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&h.ZP.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,o,s,r){const a=[];for(let l=0;l<_i;l++){const e=Ki[l],{isEnabled:n,Component:o}=Gi.A[e];n(t)&&o&&a.push((0,i.createElement)(o,{key:e,...t,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||a&&(0,N.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<Qi.length;e++){const n=Qi[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const o in e){const s=e[o],r=n[o];if((0,Jn.i)(s))t.addValue(o,s),ti(i)&&i.add(o);else if((0,Jn.i)(r))t.addValue(o,(0,$n.B)(s)),ti(i)&&i.remove(o);else if(r!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,$n.B)(void 0!==e?e:s))}}for(const o in n)void 0===e[o]&&t.removeValue(o);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let o=0;o<to;o++){const t=Ji[o],e=this.props[t];((0,si.$)(e)||!1===e)&&(i[t]=e)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,$n.B)(e),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"===typeof n||"object"===typeof n?null===(e=(0,Wn.o)(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,Jn.i)(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Zi.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=_n(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),void 0!==u&&null!==u&&("string"===typeof u&&(/^\-?\d*\.?\d+$/.test(u)||Nn(u))?u=parseFloat(u):!qn(u)&&Jt.test(l)&&(u=en(r,l)),t.addValue(r,(0,$n.B)(u)),void 0===n[r]&&(n[r]=u),null!==u&&t.setBaseTarget(r,u))}}(this,n,s);const t=Yi(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class no extends eo{readValueFromInstance(t,e){if(Qn.G.has(e)){const t=tn(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=((0,Mi.o)(e)?i.getPropertyValue(e):i[e])||0;return"string"===typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return xt(t,e)}build(t,e,n,i){(0,Ci.r)(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return(0,Di.U)(t)}renderInstance(t,e,n,i){(0,Ri.N)(t,e,n,i)}}var io=n(16832),oo=n(85415),so=n(93193),ro=n(77302),ao=n(68504);class lo extends eo{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return Qn.G.has(e)?(null===(n=tn(e))||void 0===n?void 0:n.default)||0:(e=ro.s.has(e)?e:(0,so.D)(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t){return(0,io.U)(t)}build(t,e,n,i){(0,oo.i)(t,e,n,i.transformTemplate)}renderInstance(t,e,n,i){(0,ao.K)(t,e,n,i)}}var uo=n(62627);const co={renderer:(t,e)=>(0,uo.q)(t)?new lo(e,{enableHardwareAcceleration:!1}):new no(e,{enableHardwareAcceleration:!0}),...pi,...Si};
1const ho=["TopLeft","TopRight","BottomLeft","BottomRight"],po=ho.length,mo=t=>"string"===typeof t?parseFloat(t):t,fo=t=>"number"===typeof t||Ot.px.test(t);function vo(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}const go=xo(0,.5,ge),yo=xo(.5,.95,he);function xo(t,e,n){return i=>i<t?0:i>e?1:n(z(t,e,i))}function bo(t,e){t.min=e.min,t.max=e.max}function Po(t,e){bo(t.x,e.x),bo(t.y,e.y)}function Vo(t,e,n,i,o){return t=ct(t-=e,1/n,i),void 0!==o&&(t=ct(t,1/o,i)),t}function Eo(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){Ot.aQ.test(e)&&(e=parseFloat(e),e=$(r.min,r.max,e/100)-r.min);if("number"!==typeof e)return;let a=$(s.min,s.max,i);t===s&&(a-=e),t.min=Vo(t.min,e,n,a,o),t.max=Vo(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const To=["x","scaleX","originX"],wo=["y","scaleY","originY"];function Ao(t,e,n,i){Eo(t.x,e,To,null===n||void 0===n?void 0:n.x,null===i||void 0===i?void 0:i.x),Eo(t.y,e,wo,null===n||void 0===n?void 0:n.y,null===i||void 0===i?void 0:i.y)}function So(t){return 0===t.translate&&1===t.scale}function Co(t){return So(t.x)&&So(t.y)}function Mo(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Do(t){return Y(t.x)/Y(t.y)}var Ro=n(10010);class Bo{constructor(){this.members=[]}add(t){(0,Ro.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,Ro.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jo(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y;if((o||s)&&(i=`translate3d(${o}px, ${s}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}const Lo=(t,e)=>t.depth-e.depth;class ko{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Ro.y4)(this.children,t),this.isDirty=!0}remove(t){(0,Ro.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lo),this.isDirty=!1,this.children.forEach(t)}}var Fo=n(16399);const Oo=["","X","Y","Z"];let Io=0;function Uo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null===e||void 0===e?void 0:e())){this.id=Io++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(zo),this.nodes.forEach(Wo),this.nodes.forEach(Zo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ko)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Zi.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null===n||void 0===n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:o,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=sn(i,250),An.V.hasAnimatedSinceResize&&(An.V.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(qo))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:ts,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!Mo(this.targetLayout,i)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...dn(c,"layout"),onPlay:h,onComplete:d};r.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||qo(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,h.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(Xo),this.animationId++)}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const t=this.path[a];t.shouldResetTransform=!0,t.updateScroll("snapshot")}const{layoutId:o,layout:s}=this.options;if(void 0===o&&!s)return;const r=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null===r||void 0===r?void 0:r(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Yo);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(es),this.potentialNodes.clear()),this.nodes.forEach(Go),this.nodes.forEach(No),this.nodes.forEach($o),this.clearAllSnapshots(),h.iW.update(),h.iW.preRender(),h.iW.render())}clearAllSnapshots(){this.nodes.forEach(Ho),this.sharedNodes.forEach(Ko)}scheduleUpdateProjection(){h.ZP.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){h.ZP.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null===e||void 0===e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Co(this.projectionDelta),i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,s=null===i||void 0===i?void 0:i(this.latestValues,""),r=s!==this.prevTransformTemplateValue;e&&(n||at(this.latestValues)||r)&&(o(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),ns((i=n).x),ns(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(mt(e.x,n.offset.x),mt(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Po(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;
1if(i!==this.root&&o&&s.layoutScroll){if(o.isRoot){Po(e,t);const{scroll:n}=this.root;n&&(mt(e.x,-n.offset.x),mt(e.y,-n.offset.y))}mt(e.x,o.offset.x),mt(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Po(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&yt(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),at(t.latestValues)&&yt(n,t.latestValues)}return at(this.latestValues)&&yt(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};Po(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];if(!t.instance)continue;if(!at(t.latestValues))continue;rt(t.latestValues)&&t.updateSnapshot();const o={x:{min:0,max:0},y:{min:0,max:0}};Po(o,t.measurePageBox()),Ao(n,t.latestValues,null===(e=t.snapshot)||void 0===e?void 0:e.layoutBox,o)}return at(this.latestValues)&&Ao(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},K(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Po(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,s,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,s=this.relativeTarget,r=this.relativeParent.target,Z(o.x,s.x,r.x),Z(o.y,s.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Po(this.target,this.layout.layoutBox),pt(this.target,this.targetDelta)):Po(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},K(this.relativeTargetOrigin,this.target,t.target),Po(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!rt(this.parent.latestValues)&&!lt(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),o=Boolean(this.resumingFrom)||this!==i;let s=!0;if(e&&(s=!1),o&&n&&(s=!1),s)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;Po(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,i=!1){var o,s;const r=n.length;if(!r)return;let a,l;e.x=e.y=1;for(let u=0;u<r;u++)a=n[u],l=a.projectionDelta,"contents"!==(null===(s=null===(o=a.instance)||void 0===o?void 0:o.style)||void 0===s?void 0:s.display)&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&yt(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,pt(t,l)),i&&at(a.latestValues)&&yt(t,a.latestValues))}(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;W(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=jo(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const o=this.snapshot,s=(null===o||void 0===o?void 0:o.latestValues)||{},r={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l={x:{min:0,max:0},y:{min:0,max:0}},u=(null===o||void 0===o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(Jo));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var o,d,p,m;_o(a.x,t.x,i),_o(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(K(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,Qo(o.x,d.x,p.x,m),Qo(o.y,d.y,p.y,m)),u&&(this.animationValues=r,function(t,e,n,i,o,s){var r,a,l,u;o?(t.opacity=$(0,null!==(r=n.opacity)&&void 0!==r?r:1,go(i)),t.opacityExit=$(null!==(a=e.opacity)&&void 0!==a?a:1,0,yo(i))):s&&(t.opacity=$(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.op
1acity)&&void 0!==u?u:1,i));for(let c=0;c<po;c++){const o=`border${ho[c]}Radius`;let s=vo(e,o),r=vo(n,o);void 0===s&&void 0===r||(s||(s=0),r||(r=0),0===s||0===r||fo(s)===fo(r)?(t[o]=Math.max($(mo(s),mo(r),i),0),(Ot.aQ.test(r)||Ot.aQ.test(s))&&(t[o]+="%")):t[o]=r)}(e.rotate||n.rotate)&&(t.rotate=$(e.rotate||0,n.rotate||0,i))}(r,s,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(h.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=h.ZP.update((()=>{An.V.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,Jn.i)(t)?t:(0,$n.B)(t);return pn("",i,e,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&is(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Y(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Y(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Po(e,n),yt(e,o),W(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Bo);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let o=0;o<Oo.length;o++){const e="rotate"+Oo[o];n[e]&&(i[e]=n[e],t.setStaticValue(e,0))}null===t||void 0===t||t.render();for(const o in i)t.setStaticValue(o,i[o]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const s=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=(0,Fo.b)(t.pointerEvents)||"",o.transform=s?s(this.latestValues,""):"none",o;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,Fo.b)(t.pointerEvents)||""),this.hasProjected&&!at(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),o.transform=jo(this.projectionDeltaWithTransform,this.treeScale,a),s&&(o.transform=s(a,o.transform));const{x:l,y:u}=this.projectionDelta;o.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?o.opacity=r===this?null!==(i=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in Ln.P){if(void 0===a[c])continue;const{correct:t,applyTo:e}=Ln.P[c],n=t(a[c],r);if(e){const t=e.length;for(let i=0;i<t;i++)o[e[i]]=n}else o[c]=n}return this.options.layoutId&&(o.pointerEvents=r===this?(0,Fo.b)(t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Yo),this.root.sharedNodes.clear()}}}function No(t){t.updateLayout()}function $o(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,s=o.source!==t.layout.source;"size"===i?it((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=Y(n);n.min=e[t].min,n.max=n.min+i})):is(i,o.layoutBox,e)&&it((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=Y(e[t]);n.max=n.min+i}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};W(r,e,o.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?W(a,t.applyTransform(n,!0),o.measuredBox):W(a,e,o.layoutBox);const l=!Co(r);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:i}=n;if(t&&i){const n={x:{min:0,max:0},y:{min:0,max:0}};K(n,o.layoutBox,t.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};K(s,e,i.layoutBox),Mo(n,s)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function zo(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function Ho(t){t.clearSnapshot()}function Yo(t){t.clearMeasurements()}function Go(t){const{visualElement:e}=t.options;(null===e||void 0===e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Wo(t){t.resolveTargetDelta()}function Zo(t){t.calcProjection()}function Xo(t){t.resetRotation()}function Ko(t){t.removeLeadSnapshot()}function _o(t,e,n){t.translate=$(e.translate,0,n),t.scale=$(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qo(t,e,n,i){t.min=$(e.min,n.min,i),t.max=$(e.max,n.max,i)}function Jo(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ts={duration:.45,ease:[.4,0,.1,1]};function es(t,e){let n=t.root;for(let o=t.path.length-1;o>=0;o--)if(Boolean(t.path[o].instance)){n=t.path[o];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-
1projection-id="${e}"]`);i&&t.mount(i,!0)}function ns(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function is(t,e,n){return"position"===t||"preserve-aspect"===t&&!function(t,e,n=.1){return w(t,e)<=n}(Do(e),Do(n),.2)}const os=Uo({attachResizeListener:(t,e)=>p(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ss={current:void 0},rs={...co,...Pn,...On,projectionNodeConstructor:Uo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ss.current){const t=new os(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ss.current=t}return ss.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)})}},10010:function(t,e,n){function i(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return o},y4:function(){return i}})},21560:function(t,e,n){n.d(e,{L:function(){return o}});var i=n(10010);class o{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},33234:function(t,e,n){n.d(e,{B:function(){return a}});var i=n(54735),o=n(99296),s=n(21560);class r{constructor(t){var e;this.version="7.6.12",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new s.L,this.velocityUpdateSubscribers=new s.L,this.renderSubscribers=new s.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,i.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,i.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>i.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function a(t){return new r(t)}},54735:function(t,e,n){n.d(e,{qY:function(){return p},ZP:function(){return x},iW:function(){return m},$B:function(){return y}});const i=1/60*1e3,o="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!==typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),i);let r=!0,a=!1,l=!1;const u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>a=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(a||g(),n.schedule(t,e,i)),t}),{}),p=c.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),m=c.reduce(((t,e)=>(t[e]=()=>h[e].process(u),t)),{}),f=t=>h[t].process(u),v=t=>{a=!1,u.delta=r?i:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,l=!0,c.forEac
1h(f),l=!1,a&&(r=!1,s(v))},g=()=>{a=!0,r=!0,l||s(v)},y=()=>u;var x=d},99296:function(t,e,n){function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:function(){return i}})}}]);
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.