PageSourceSearch

https://refundsol.app/_next/static/chunks/791-476fb0e574a966d1.js

js refundsol.app collected 2026-10-08 12:43:29 UTC 59,584 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[791],{89791:function(t,e,i){i.d(e,{E:function(){return iE}});var n,s=i(2265),o=i(59282),r=i(89256);let a=["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 l(t){if("string"!=typeof t||t.includes("-"));else if(a.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var h=i(57437);let u=(0,s.createContext)({}),c=(0,s.createContext)({strict:!1}),d=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),m=(0,s.createContext)({});var p=i(17743),f=i(74115);function v(t){return Array.isArray(t)?t.join(" "):t}var y=i(87493),g=i(77556),x=i(39991);let P=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function T(t,e,i){for(let n in e)(0,y.i)(e[n])||(0,g.j)(n,i)||(t[n]=e[n])}var E=i(59944);let D=()=>({...P(),attrs:{}});var w=i(37380);let A=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function S(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||A.has(t)}let C=t=>!S(t);try{n=require("@emotion/is-prop-valid").default,"function"==typeof n&&(C=t=>t.startsWith("on")?!S(t):n(t))}catch{}var L=i(20569);let j=(0,s.createContext)(null);var R=i(31297),b=i(53576);function M(t){return(0,y.i)(t)?t.get():t}let V=t=>(e,i)=>{let n=(0,s.useContext)(m),o=(0,s.useContext)(j),r=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:o}=t;return{latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=M(o[t]);let{initial:r,animate:a}=t,l=(0,p.G)(t),h=(0,p.M)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===r)?a:r;if(c&&"boolean"!=typeof c&&!(0,L.H)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,R.o)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,n,s),renderState:o()}})(t,e,n,o);return i?r():(0,b.h)(r)},k=V({scrapeMotionValuesFromProps:i(67971).U,createRenderState:P}),B=V({scrapeMotionValuesFromProps:i(67098).U,createRenderState:D});var O=i(44563),U=i(35938);let F=Symbol.for("motionComponentSymbol");function I(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var W=i(61750);let H=(0,s.createContext)({}),N=O.j?s.useLayoutEffect:s.useEffect;function z(t){var e,i;let{forwardMotionProps:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;o&&function(t){for(let e in t)U.featureDefinitions[e]={...U.featureDefinitions[e],...t[e]}}(o);let a=l(t)?B:k;function g(e,i){var o;let g;let A={...(0,s.useContext)(d),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,s.useContext)(u).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:L}=A,R=function(t){let{initial:e,animate:i}=function(t,e){if((0,p.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,f.$)(e)?e:void 0,animate:(0,f.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(m));return(0,s.useMemo)(()=>({initial:e,animate:i}),[v(e),v(i)])}(e),b=a(e,L);if(!L&&O.j){(0,s.useContext)(c).strict;let e=function(t){let{drag:e,layout:i}=U.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(A);
1g=e.MeasureLayout,R.visualElement=function(t,e,i,n,o){var r,a,l,h;let{visualElement:u}=(0,s.useContext)(m),p=(0,s.useContext)(c),f=(0,s.useContext)(j),v=(0,s.useContext)(d).reducedMotion,y=(0,s.useRef)(null);n=n||p.renderer,!y.current&&n&&(y.current=n(t,{visualState:e,parent:u,props:i,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:v}));let g=y.current,x=(0,s.useContext)(H);g&&!g.projection&&o&&("html"===g.type||"svg"===g.type)&&function(t,e,i,n){let{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&I(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(y.current,i,o,x);let P=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{g&&P.current&&g.update(i,f)});let T=i[W.M],E=(0,s.useRef)(!!T&&!(null===(r=(a=window).MotionHandoffIsComplete)||void 0===r?void 0:r.call(a,T))&&(null===(l=(h=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(h,T)));return N(()=>{g&&(P.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),E.current&&g.animationState&&g.animationState.animateChanges())}),(0,s.useEffect)(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,T)}),E.current=!1),g.enteringChildren=void 0)}),g}(t,b,A,r,e.ProjectionNode)}return(0,h.jsxs)(m.Provider,{value:R,children:[g&&R.visualElement?(0,h.jsx)(g,{visualElement:R.visualElement,...A}):null,function(t,e,i,n,o){let{latestValues:r}=n,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],h=(l(t)?function(t,e,i,n){let o=(0,s.useMemo)(()=>{let i=D();return(0,E.i)(i,e,(0,w.a)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};T(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return T(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,s.useMemo)(()=>{let t=P();return(0,x.r)(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,r,o,t),u=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(C(s)||!0===i&&S(s)||!e&&!S(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,a),c=t!==s.Fragment?{...u,...h,ref:i}:{},{children:d}=e,m=(0,s.useMemo)(()=>(0,y.i)(d)?d.get():d,[d]);return(0,s.createElement)(t,{...c,children:m})}(t,e,(o=R.visualElement,(0,s.useCallback)(t=>{t&&b.onMount&&b.onMount(t),o&&(t?o.mount(t):o.unmount()),i&&("function"==typeof i?i(t):I(i)&&(i.current=t))},[o])),b,L,n)]})}g.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let A=(0,s.forwardRef)(g);return A[F]=t,A}var $=i(67043),X=i(60871);function Y(t,e,i,n=0,s=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*n;return"function"==typeof i?i(o,r):1===s?o*n:a-o*n}function G(t,e,i={}){let n=(0,$.x)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all((0,X.w)(t,n,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,o=1,r){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(G(l,e,{...r,delay:i+("function"==typeof n?0:n)+Y(t.variantChildren,l,n,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,o,r,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([o(),r(i.delay)]);{let[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}}var Z=i(44944);function _(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var K=i(72589);
1let q=K.V.length,Q=[...K.e].reverse(),J=K.e.length;function tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function te(){return{animate:tt(!0),whileInView:tt(),whileHover:tt(),whileTap:tt(),whileDrag:tt(),whileFocus:tt(),exit:tt()}}class ti{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tn extends ti{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>G(t,e,i)));else if("string"==typeof e)n=G(t,e,i);else{let s="function"==typeof e?(0,$.x)(t,e,i.custom):e;n=Promise.all((0,X.w)(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=te(),n=!0,s=e=>(i,n)=>{let s=(0,$.x)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:r}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<q;t++){let n=K.V[t],s=e.props[n];((0,f.$)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},l=[],h=new Set,u={},c=1/0;for(let e=0;e<J;e++){var d;let m=Q[e],p=i[m],v=void 0!==r[m]?r[m]:a[m],y=(0,f.$)(v),g=m===o?p.isActive:null;!1===g&&(c=e);let x=v===a[m]&&v!==r[m]&&y;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...u},!p.isActive&&null===g||!v&&!p.prevProp||(0,L.H)(v)||"boolean"==typeof v)continue;let P=(d=p.prevProp,"string"==typeof v?v!==d:!!Array.isArray(v)&&!_(v,d)),T=P||m===o&&p.isActive&&!x&&y||e>c&&y,E=!1,D=Array.isArray(v)?v:[v],w=D.reduce(s(m),{});!1===g&&(w={});let{prevResolvedValues:A={}}=p,S={...A,...w},C=e=>{T=!0,h.has(e)&&(E=!0,h.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in S){let e=w[t],i=A[t];if(!u.hasOwnProperty(t))((0,Z.C)(e)&&(0,Z.C)(i)?_(e,i):e===i)?void 0!==e&&h.has(t)?C(t):p.protectedKeys[t]=!0:null!=e?C(t):h.add(t)}p.prevProp=v,p.prevResolvedValues=w,p.isActive&&(u={...u,...w}),n&&t.blockInitialAnimation&&(T=!1);let j=x&&P,R=!j||E;T&&R&&l.push(...D.map(e=>{let i={type:m};if("string"==typeof e&&n&&!j&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,$.x)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=Y(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof r.initial){let i=(0,$.x)(t,Array.isArray(r.initial)?r.initial[0]:r.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===r.initial||r.initial===r.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=te()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,L.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ts=0;class to extends ti{constructor(){super(...arguments),this.id=ts++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var tr=i(56277);let ta={x:!1,y:!1};var tl=i(92854),th=i(26147),tu=i(33811),tc=i(62035),td=i(62616);function tm(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let tp=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tf(t){return{point:{x:t.pageX,y:t.pageY}}}let tv=t=>e=>tp(e)&&t(e,tf(e));function ty(t,e,i,n){return tm(t,e,tv(i),n)}var tg=i(82063);function tx(t){return t.max-t.min}function tP(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tu.t)(e.min,e.max,t.origin),t.scale=tx(i)/tx(e),t.translate=(0,tu.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tT(t,e,i,n){tP(t.x,e.x,i.x,n?n.originX:void 0),tP(t.y,e.y,i.y,n?n.originY:void 0)}function tE(t,e,i){t.min=i.min+e.min,t.max=t.min+tx(e)}function tD(t,e,i){t.min=e.min-i.min,t.max=t.min+tx(e)}function tw(t,e,i){tD(t.x,e.x,i.x),tD(t.y,e.y,i.y)}var tA=i(96674);function tS(t){return[t("x"),t("y")]}var tC=i(50813);let tL=({current:t})=>t?t.ownerDocument.defaultView:null;var tj=i(1327),tR=i(24750),tb=i(29711);let tM=(t,e)=>Math.abs(t-e);class tV{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tO(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(tM(t.x,e.x)**2+tM(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:o}=i,{timestamp:r}=th.frameData;this.history.push({...o,timestamp:r});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tk(e,this.transformPagePoint),th.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tO("pointercancel"===t.type?this.lastMoveEventInfo:tk(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!tp(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;let r=tk(tf(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=th.frameData;this.history=[{...a,timestamp:l}];let{onSessionStart:h}=e;h&&h(t,tO(r,this.history)),this.removeListeners=(0,tR.z)(ty(this.contextWindow,"pointermove",this.handlePointerMove),ty(this.contextWindow,"pointerup",this.handlePointerUp),ty(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,th.Pn)(this.updatePoint)}}function tk(t,e){return e?{point:e(t.point)}:t}function tB(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tO({point:t},e){return{point:t,delta:tB(t,tU(e)),offset:tB(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tU(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,tb.w)(.1)));)i--;if(!n)return{x:0,y:0};let o=(0,tb.X)(s.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let r={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,0)}}function tU(t){return t[t.length-1]}var tF=i(81645),tI=i(21865);function tW(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function tH(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tN(t,e,i){return{min:tz(t,e),max:tz(t,i)}}function tz(t,e){return"number"==typeof t?t:t[e]||0}let t$=new WeakMap;class tX{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tA.dO)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new tV(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tf(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?ta[i]?null:(ta[i]=!0,()=>{ta[i]=!1}):ta.x||ta.y?null:(ta.x=ta.y=!0,()=>{ta.x=ta.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tS(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tl.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=tx(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),s&&th.Wi.postRender(()=>s(t,e)),(0,tj.K)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>tS(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:i,contextWindow:tL(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&th.Wi.postRender(()=>r(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tY(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tu.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tu.t)(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&I(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:tW(t.x,i,s),y:tW(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tN(t,"left","right"),y:tN(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tS(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!I(e))return!1;let n=e.current;(0,tc.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=(0,tC.z)(n,s.root,this.visualElement.getTransformPagePoint()),r={x:tH((t=s.layout.layoutBox).x,o.x),y:tH(t.y,o.y)};if(i){let t=i((0,tg.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,tg.i8)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(tS(r=>{if(!tY(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tj.K)(this.visualElement,t),i.start((0,td.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tS(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tS(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tS(e=>{let{drag:i}=this.getProps();
1if(!tY(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[e];s.set(t[e]-(0,tu.t)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!I(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tS(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tx(t),s=tx(e);return s>n?i=(0,tF.Y)(e.min,e.max-n,t.min):n>s&&(i=(0,tF.Y)(t.min,t.max-s,e.min)),(0,tI.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tS(e=>{if(!tY(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set((0,tu.t)(s,o,n[e]))})}addListeners(){if(!this.visualElement.current)return;t$.set(this.visualElement,this);let t=ty(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();I(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),th.Wi.read(e);let s=tm(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tS(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function tY(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tG extends ti{constructor(t){super(t),this.removeGroupControls=tr.Z,this.removeListeners=tr.Z,this.controls=new tX(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tZ=t=>(e,i)=>{t&&th.Wi.postRender(()=>t(e,i))};class t_ extends ti{constructor(){super(...arguments),this.removePointerDownListener=tr.Z}onPointerDown(t){this.session=new tV(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tL(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tZ(t),onStart:tZ(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&th.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ty(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tK=i(3697);let tq={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tQ=!1;class tJ extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),tQ&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),tq.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,tQ=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent===s||(s?o.promote():o.relegate()||th.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tK.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;tQ=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function t0(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,s.useContext)(j);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:o}=e,r=(0,s.useId)();(0,s.useEffect)(()=>
1{if(t)return o(r)},[t]);let a=(0,s.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,s.useContext)(u);return(0,h.jsx)(tJ,{...t,layoutGroup:n,switchLayoutGroup:(0,s.useContext)(H),isPresent:e,safeToRemove:i})}var t1=i(20557),t5=i(51413),t2=i(89582),t3=i(25551),t7=i(41927),t9=i(35818),t4=i(94357),t6=i(94513),t8=i(82993),et=i(34005),ee=i(98425);let ei=(t,e)=>t.depth-e.depth;class en{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ee.y4)(this.children,t),this.isDirty=!0}remove(t){(0,ee.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ei),this.isDirty=!1,this.children.forEach(t)}}var es=i(52927);let eo=["TopLeft","TopRight","BottomLeft","BottomRight"],er=eo.length,ea=t=>"string"==typeof t?parseFloat(t):t,el=t=>"number"==typeof t||tl.px.test(t);function eh(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eu=ed(0,.5,es.Bn),ec=ed(.5,.95,tr.Z);function ed(t,e,i){return n=>n<t?0:n>e?1:i((0,tF.Y)(t,e,n))}function em(t,e){t.min=e.min,t.max=e.max}function ep(t,e){em(t.x,e.x),em(t.y,e.y)}function ef(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var ev=i(47227);function ey(t,e,i,n,s){return t-=e,t=(0,ev.q2)(t,1/i,n),void 0!==s&&(t=(0,ev.q2)(t,1/s,n)),t}function eg(t,e,[i,n,s],o,r){!function(t,e=0,i=1,n=.5,s,o=t,r=t){if(tl.aQ.test(e)&&(e=parseFloat(e),e=(0,tu.t)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,tu.t)(o.min,o.max,n);t===o&&(a-=e),t.min=ey(t.min,e,i,a,s),t.max=ey(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,o,r)}let ex=["x","scaleX","originX"],eP=["y","scaleY","originY"];function eT(t,e,i,n){eg(t.x,e,ex,i?i.x:void 0,n?n.x:void 0),eg(t.y,e,eP,i?i.y:void 0,n?n.y:void 0)}function eE(t){return 0===t.translate&&1===t.scale}function eD(t){return eE(t.x)&&eE(t.y)}function ew(t,e){return t.min===e.min&&t.max===e.max}function eA(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eS(t,e){return eA(t.x,e.x)&&eA(t.y,e.y)}function eC(t){return tx(t.x)/tx(t.y)}function eL(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ej{constructor(){this.members=[]}add(t){(0,ee.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,ee.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var eR=i(84423),eb=i(12787);let eM={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eV=["","X","Y","Z"],ek=0;function eB(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eO({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=ek++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,t1.f.value&&(eM.nodes=eM.calculatedTargetDeltas=eM.calculatedProjections=0),this.nodes.forEac
1h(eI),this.nodes.forEach(eY),this.nodes.forEach(eG),this.nodes.forEach(eW),t1.f.addProjectionMetrics&&t1.f.addProjectionMetrics(eM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new en)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t6.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,t5.v)(e)&&!(0,t2.r)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,s=()=>this.root.updateBlockedByResize=!1;th.Wi.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t7.X.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,th.Pn)(n),t(s-250))};return th.Wi.setup(n,!0),()=>(0,th.Pn)(n)}(s,0),tq.hasAnimatedSinceResize&&(tq.hasAnimatedSinceResize=!1,this.nodes.forEach(eX)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||eJ,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eS(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,t3.e)(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||eX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,th.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eZ),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,et.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",th.Wi,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(eN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ez);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e$),this.nodes.forEach(eU),this.nodes.forEach(eF)):this.nodes.forEach(ez),this.clearAllSnapshots();let t=t7.X.now();th.frameData.delta=(0,tI.u)(0,1e3/60,t-th.frameData.timestamp),th.frameData.timestamp=t,th.frameData.isProcessing=!0,th.yL.update.process(th.frameData),th.yL.preRender.process(th.frameData),th.yL.render.process(th.frameData),th.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tK.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eH),this.sharedNodes.forEach(e_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,th.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){th.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||tx(this.snapshot.measuredBox.x)||tx(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,tA.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eD(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,eb.ud)(this.latestValues)||o)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),e5((e=n).x),e5(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tA.dO)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(e3))){let{scroll:t}=this.root;t&&((0,ev.am)(e.x,t.offset.x),(0,ev.am)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tA.dO)();if(ep(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:o}=n;n!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&ep(e,t),(0,ev.am)(e.x,s.offset.x),(0,ev.am)(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=(0,tA.dO)();ep(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,ev.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,eb.ud)(n.latestValues)&&(0,ev.D2)(i,n.latestValues)}return(0,eb.ud)(this.latestValues)&&(0,ev.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,tA.dO)();ep(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,eb.ud)(i.latestValues))continue;(0,eb.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,tA.dO)();ep(n,i.measurePageBox()),eT(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,eb.ud)(this.latestValues)&&eT(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==th.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=th.frameData.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tA.dO)(),this.targetWithTransforms=(0,tA.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,l;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,tE(r.x,a.x,l.x),tE(r.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ep(this.target,this.layout.layoutBox),(0,ev.o2)(this.target,this.targetDelta)):ep(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),t1.f.value&&eM.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||(0,eb.Lj)(this.parent.latestValues)||(0,eb.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tA.dO)(),this.relativeTargetOrigin=(0,tA.dO)(),tw(this.relativeTargetOrigin,e,i),ep(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===th.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;ep(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,ev.YY)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,tA.dO)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ef(this.prevProjectionDelta.x,this.projectionDelta.x),ef(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tT(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eL(this.projectionDelta.x,this.prevProjectionDelta.x)&&eL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),t1.f.value&&eM.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tA.wc)(),this.projectionDelta=(0,tA.wc)(),this.projectionDeltaWithTransform=(0,tA.wc)()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},r=(0,tA.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tA.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(eQ));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(eK(r.x,t.x,n),eK(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p;tw(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,eq(m.x,p.x,a.x,n),eq(m.y,p.y,a.y,n),i&&(h=this.relativeTarget,d=i,ew(h.x,d.x)&&ew(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tA.dO)()),ep(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,n,s,o){s?(t.opacity=(0,tu.t)(0,i.opacity??1,eu(n)),t.opacityExit=(0,tu.t)(e.opacity??1,0,ec(n))):o&&(t.opacity=(0,tu.t)(e.opacity??1,i.opacity??1,n));for(let s=0;s<er;s++){let o=`border${eo[s]}Radius`,r=eh(e,o),a=eh(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||el(r)===el(a)?(t[o]=Math.max((0,tu.t)(ea(r),ea(a),n),0),(tl.aQ.test(a)||tl.aQ.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tu.t)(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,th.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=th.Wi.update(()=>{tq.hasAnimatedSinceResize=!0,t9.P.layout++,this.motionValue||(this.motionValue=(0,t4.BX)(0)),this.currentAnimation=(0,t8.D)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t9.P.layout--},onComplete:()=>{t9.P.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&e2(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tA.dO)();let e=tx(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tx(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}ep(e,i),(0,ev.D2)(e,s),tT(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ej),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&eB("z",t,n,this.animationValues);for(let e=0;e<eV.length;e++)eB(`rotate${eV[e]}`,t,n,this.animationValues),eB(`skew${eV[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=M(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=M(e?.pointerEvents)||""),this.hasProjected&&!(0,eb.ud)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let n="",s=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((s||o||r)&&(n=`translate3d(${s}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),r&&(n+=`skewX(${r}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(o=i(s,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eR.P){if(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=eR.P[e],l="none"===o?s[e]:i(s[e],n);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?M(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(eN),this.root.sharedNodes.clear()}}}function eU(t){t.updateLayout()}function eF(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;"size"===s?tS(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=tx(n);n.min=i[t].min,n.max=n.min+s}):e2(s,e.layoutBox,i)&&tS(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],r=tx(i[n]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+r)});let r=(0,tA.wc)();tT(r,i,e.layoutBox);let a=(0,tA.wc)();o?tT(a,t.applyTransform(n,!0),e.measuredBox):tT(a,i,e.layoutBox);let l=!eD(r),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:o}=n;if(s&&o){let r=(0,tA.dO)();tw(r,e.layoutBox,s.layoutBox);let a=(0,tA.dO)();tw(a,i,o.layoutBox),eS(r,a)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eI(t){t1.f.value&&eM.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eW(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eH(t){t.clearSnapshot()}function eN(t){t.clearMeasurements()}function ez(t){t.isLayoutDirty=!1}function e$(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eX(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eY(t){t.resolveTargetDelta()}function eG(t){t.calcProjection()}function eZ(t){t.resetSkewAndRotation()}function e_(t){t.removeLeadSnapshot()}function eK(t,e,i){t.translate=(0,tu.t)(e.translate,0,i),t.scale=(0,tu.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eq(t,e,i,n){t.min=(0,tu.t)(e.min,i.min,n),t.max=(0,tu.t)(e.max,i.max,n)}function eQ(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eJ={duration:.45,ease:[.4,0,.1,1]},e0=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),e1=e0("applewebkit/")&&!e0("chrome/")?Math.round:tr.Z;function e5(t){t.min=e1(t.min),t.max=e1(t.max)}function e2(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eC(e)-eC(i)))}function e3(t){return t!==t.root&&t.scroll?.wasRoot}let e7=eO({attachResizeListener:(t,e)=>tm(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),e9={current:void 0},e4=eO({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!e9.current){let t=new e7({});t.mount(window),t.setOptions({layoutScroll:!0}),e9.current=t}return e9.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var e6=i(59960);function e8(t,e){let i=(0,e6.I)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function it(t){return!("touch"===t.pointerType||ta.x||ta.y)}function ie(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&th.Wi.postRender(()=>s(e,tf(e)))}class ii extends ti{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=e8(t,i),r=t=>{if(!it(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let o=t=>{it(t)&&(n(t),i.removeEventListener("pointerleave",o))};i.addEventListener("pointerleave",o,s)};return n.forEach(t=>{t.addEventListener("pointerenter",r,s)}),o}(t,(t,e)=>(ie(this.node,e,"Start"),t=>ie(this.node,t,"End"))))}unmount(){}}class is extends ti{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tR.z)(tm(this.node.current,"focus",()=>this.onFocus()),tm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var io=i(41464);let ir=(t,e)=>!!e&&(t===e||ir(t,e.parentElement)),ia=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),il=new WeakSet;function ih(t){return e=>{"Enter"===e.key&&t(e)}}function iu(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let ic=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=ih(()=>{if(il.has(i))return;iu(i,"down");let t=ih(()=>{iu(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iu(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function id(t){return tp(t)&&!(ta.x||ta.y)}function im(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&th.Wi.postRender(()=>s(e,tf(e)))}class ip extends ti{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,s,o]=e8(t,i),r=t=>{let n=t.currentTarget;if(!id(t))return;il.add(n);let o=e(n,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),il.has(n)&&il.delete(n),id(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,n===window||n===document||i.useGlobalTarget||ir(n,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),(0,io.K)(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>ic(t,s)),ia.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(im(this.node,e,"Start"),(t,{success:e})=>im(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iv=new WeakMap,iy=new WeakMap,ig=t=>{let e=iv.get(t.target);e&&e(t)},ix=t=>{t.forEach(ig)},iP={some:0,all:1};class iT extends ti{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:iP[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;iy.has(i)||iy.set(i,{});let n=iy.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(ix,{root:t,...e})),n[s]}(e);return iv.set(t,i),n.observe(t),()=>{iv.delete(t),n.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),o=e?i:n;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let iE=function(t,e){if("undefined"==typeof Proxy)return z;let i=new Map,n=(i,n)=>z(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,o)=>"create"===o?n:(i.has(o)||i.set(o,z(o,void 0,t,e)),i.get(o))})}({animation:{Feature:tn},exit:{Feature:to},inView:{Feature:iT},tap:{Feature:ip},focus:{Feature:is},hover:{Feature:ii},pan:{Feature:t_},drag:{Feature:tG,ProjectionNode:e4,MeasureLayout:t0},layout:{ProjectionNode:e4,MeasureLayout:t0}},(t,e)=>l(t)?new r.e(e):new o.W(e,{allowProjection:t!==s.Fragment}))},53576:function(t,e,i){i.d(e,{h:function(){return s}});var n=i(2265);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}}}]);

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.