PageSourceSearch

https://www.octoparse.com/_next/static/chunks/7125-d5a61d6e7a6e6665.js

js octoparse.com collected 2026-09-24 08:36:39 UTC 60,015 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7125],{40829:function(t,e,i){i.d(e,{oO:function(){return o}});var n=i(50959),s=i(89317);function o(t=!0){let e=(0,n.useContext)(s.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:r}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return r(a)},[t]);let l=(0,n.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!i&&o?[!1,l]:[!0]}},43554:function(t,e,i){i.d(e,{p:function(){return s}});var n=i(50959);let s=(0,n.createContext)({})},89317:function(t,e,i){i.d(e,{O:function(){return s}});var n=i(50959);let s=(0,n.createContext)(null)},77125:function(t,e,i){i.d(e,{E:function(){return iA}});var n,s=i(50959),o=i(89693),r=i(15950);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}let h=(t,e)=>l(t)?new r.e(e):new o.W(e,{allowProjection:t!==s.Fragment});var u=i(11527),d=i(43554);let c=(0,s.createContext)({strict:!1});var p=i(88552);let m=(0,s.createContext)({});var f=i(53490),v=i(42350);function y(t){return Array.isArray(t)?t.join(" "):t}var g=i(75602),x=i(54786),P=i(94122);let T=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function w(t,e,i){for(let n in e)(0,g.i)(e[n])||(0,x.j)(n,i)||(t[n]=e[n])}function E(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return w(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=T();return(0,P.r)(i,e,t),Object.assign({},i.vars,i.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-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}var A=i(30385);let D=()=>({...T(),attrs:{}});var S=i(24244);function L(t,e,i,n){let o=(0,s.useMemo)(()=>{let i=D();return(0,A.i)(i,e,(0,S.a)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};w(e,t.style,t),o.style={...e,...o.style}}return o}let C=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 R(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||C.has(t)}let b=t=>!R(t);try{n=require("@emotion/is-prop-valid").default,"function"==typeof n&&(b=t=>t.startsWith("on")?!R(t):n(t))}catch{}var j=i(41386),M=i(89317),V=i(25945),k=i(31115);function B(t){return(0,g.i)(t)?t.get():t}let O=t=>(e,i)=>{let n=(0,s.useContext)(m),o=(0,s.useContext)(M.O),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){let o={latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=B(o[t]);let{initial:r,animate:a}=t,l=(0,f.G)(t),h=(0,f.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;u=u||!1===r;let d=u?a:r;if(d&&"boolean"!=typeof d&&!(0,j.H)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=(0,V.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}(i,n,s,t),renderState:e()};return o}
1)(t,e,n,o);return i?r():(0,k.h)(r)};var U=i(16976);let F=O({scrapeMotionValuesFromProps:U.U,createRenderState:T});var I=i(74521);let W=O({scrapeMotionValuesFromProps:I.U,createRenderState:D});var $=i(81094),H=i(13066);let N=Symbol.for("motionComponentSymbol");function z(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var X=i(66922);let Y=(0,s.createContext)({});var G=i(82692);function _(t,{forwardMotionProps:e=!1}={},i,n){i&&function(t){for(let e in t)H.A[e]={...H.A[e],...t[e]}}(i);let o=l(t)?W:F;function r(i,r){var a,h;let x;let P={...(0,s.useContext)(p._),...i,layoutId:function({layoutId:t}){let e=(0,s.useContext)(d.p).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:T}=P,w=function(t){let{initial:e,animate:i}=function(t,e){if((0,f.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,v.$)(e)?e:void 0,animate:(0,v.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(m));return(0,s.useMemo)(()=>({initial:e,animate:i}),[y(e),y(i)])}(i),A=o(i,T);if(!T&&$.j){(0,s.useContext)(c).strict;let e=function(t){let{drag:e,layout:i}=H.A;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(P);x=e.MeasureLayout,w.visualElement=function(t,e,i,n,o){let{visualElement:r}=(0,s.useContext)(m),a=(0,s.useContext)(c),l=(0,s.useContext)(M.O),h=(0,s.useContext)(p._).reducedMotion,u=(0,s.useRef)(null);n=n||a.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:r,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let d=u.current,f=(0,s.useContext)(Y);d&&!d.projection&&o&&("html"===d.type||"svg"===d.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&&z(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(u.current,i,o,f);let v=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{d&&v.current&&d.update(i,l)});let y=i[X.M],g=(0,s.useRef)(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,G.L)(()=>{d&&(v.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,s.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),g.current=!1),d.enteringChildren=void 0)}),d}(t,A,P,n,e.ProjectionNode)}return(0,u.jsxs)(m.Provider,{value:w,children:[x&&w.visualElement?(0,u.jsx)(x,{visualElement:w.visualElement,...P}):null,function(t,e,i,{latestValues:n},o,r=!1){let a=l(t)?L:E,h=a(e,n,o,t),u=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(b(s)||!0===i&&R(s)||!e&&!R(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),d=t!==s.Fragment?{...u,...h,ref:i}:{},{children:c}=e,p=(0,s.useMemo)(()=>(0,g.i)(c)?c.get():c,[c]);return(0,s.createElement)(t,{...d,children:p})}(t,i,(a=w.visualElement,h=r,(0,s.useCallback)(t=>{t&&A.onMount&&A.onMount(t),a&&(t?a.mount(t):a.unmount()),h&&("function"==typeof h?h(t):z(h)&&(h.current=t))},[a])),A,T,e)]})}r.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,s.forwardRef)(r);return a[N]=t,a}var Z=i(22212),K=i(63536);function q(t,e,i,n=0,s=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size;return"function"==typeof i?i(o,r):1===s?o*n:(r-1)*n-o*n}function Q(t,e,i={}){let n=(0,Z.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,K.w)(t,n,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;
1return 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(Q(l,e,{...r,delay:i+("function"==typeof n?0:n)+q(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 J=i(9903);function tt(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 te=i(55776);let ti=te.V.length,tn=[...te.e].reverse(),ts=te.e.length;function to(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tr(){return{animate:to(!0),whileInView:to(),whileHover:to(),whileTap:to(),whileDrag:to(),whileFocus:to(),exit:to()}}class ta{constructor(t){this.isMounted=!1,this.node=t}update(){}}let tl=0;var th=i(17433);let tu={x:!1,y:!1};var td=i(51281),tc=i(44751),tp=i(37026),tm=i(78321),tf=i(69944);function tv(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let ty=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tg(t){return{point:{x:t.pageX,y:t.pageY}}}let tx=t=>e=>ty(e)&&t(e,tg(e));function tP(t,e,i,n){return tv(t,e,tx(i),n)}var tT=i(8295);function tw(t){return t.max-t.min}function tE(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tp.t)(e.min,e.max,t.origin),t.scale=tw(i)/tw(e),t.translate=(0,tp.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 tA(t,e,i,n){tE(t.x,e.x,i.x,n?n.originX:void 0),tE(t.y,e.y,i.y,n?n.originY:void 0)}function tD(t,e,i){t.min=i.min+e.min,t.max=t.min+tw(e)}function tS(t,e,i){t.min=e.min-i.min,t.max=t.min+tw(e)}function tL(t,e,i){tS(t.x,e.x,i.x),tS(t.y,e.y,i.y)}var tC=i(19229);function tR(t){return[t("x"),t("y")]}var tb=i(71713);let tj=({current:t})=>t?t.ownerDocument.defaultView:null;var tM=i(14431),tV=i(58072),tk=i(27406);let tB=(t,e)=>Math.abs(t-e);class tO{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=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=tI(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=tB(t.x,e.x),n=tB(t.y,e.y);return Math.sqrt(i**2+n**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=tc.w0;this.history.push({...n,timestamp:s});let{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tU(e,this.transformPagePoint),tc.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=tI("pointercancel"===t.type?this.lastMoveEventInfo:tU(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!ty(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;let r=tg(t),a=tU(r,this.transformPagePoint),{point:l}=a,{timestamp:h}=tc.w0;this.history=[{...l,timestamp:h}];let{onSessionStart:u}=e;u&&u(t,tI(a,this.history)),this.removeListeners=(0,tV.z)(tP(this.contextWindow,"pointermove",this.handlePointerMove),tP(this.contextWindow,"pointerup",this.handlePointerUp),tP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tc.Pn)(this.updatePoint)}}function tU(t,e){return e?{point:e(t.point)}:t}function tF(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tI({point:t},e){return{point:t,delta:tF(t,tW(e)),offset:tF(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tW(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,tk.w)(.1)));)i--;if(!n)return{x:0,y:0};let o=(0,tk.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 tW(t){return t[t.length-1]}var t$=i(22207),tH=i(18070);function tN(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 tz(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 tX(t,e,i){return{min:tY(t,e),max:tY(t,i)}}function tY(t,e){return"number"==typeof t?t:t[e]||0}
1let tG=new WeakMap;class t_{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,tC.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 s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tg(t).point)},o=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?tu[i]?null:(tu[i]=!0,()=>{tu[i]=!1}):tu.x||tu.y?null:(tu.x=tu.y=!0,()=>{tu.x=tu.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),tR(t=>{let e=this.getAxisMotionValue(t).get()||0;if(td.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=tw(n);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&tc.Wi.postRender(()=>s(t,e)),(0,tM.K)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},r=(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)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>tR(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new tO(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:tj(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&&tc.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||!tZ(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,tp.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tp.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&&z(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:tN(t.x,i,s),y:tN(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:tX(t,"left","right"),y:tX(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tR(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||!z(e))return!1;let n=e.current;(0,tm.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,tb.z)(n,s.root,this.visualElement.getTransformPagePoint()),r={x:tz((t=s.layout.layoutBox).x,o.x),y:tz(t.y,o.y)};if(i){let t=i((0,tT.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,tT.i8)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=tR(r=>{if(!tZ(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)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tM.K)(this.visualElement,t),i.start((0,tf.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tR(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tR(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(),n=i[e];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tR(e=>{let{drag:i}=this.getProps();if(!tZ(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,tp.t)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!z(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tR(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tw(t),s=tw(e);return s>n?i=(0,t$.Y)(e.min,e.max-n,t.min):n>s&&(i=(0,t$.Y)(t.min,t.max-s,e.min)),(0,tH.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(),tR(e=>{if(!tZ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set((0,tp.t)(s,o,n[e]))})}addListeners(){if(!this.visualElement.current)return;tG.set(this.visualElement,this);let t=this.visualElement.current,e=tP(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();z(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,s=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tc.Wi.read(i);let o=tv(window,"resize",()=>this.scalePositionWithinConstraints()),r=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tR(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),e(),s(),r&&r()}}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 tZ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let tK=t=>(e,i)=>{t&&tc.Wi.postRender(()=>t(e,i))};var tq=i(22034),tQ=i(40829);let tJ={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function t0(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let t1={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!td.px.test(t))return t;t=parseFloat(t)}let i=t0(t,e.target.x),n=t0(t,e.target.y);return`${i}% ${n}%`}};var t2=i(15398),t5=i(77513);let t3=!1;class t9 extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;(0,t5.B)(t7),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),t3&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),tJ.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,t3=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent===s||(s?o.promote():o.relegate()||tc.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tq.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;t3=!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 t4(t){let[e,i]=(0,tQ.oO)(),n=(0,s.useContext)(d.p);return(0,u.jsx)(t9,{...t,layoutGroup:n,switchLayoutGroup:(0,s.useContext)(Y),isPresent:e,safeToRemove:i})}let t7={borderRadius:{...t1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t1,borderTopRightRadius:t1,borderBottomLeftRadius:t1,borderBottomRightRadius:t1,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t2.P.parse(t);if(n.length>5)return t;let s=t2.P.createTransformer(t),o="number"!=typeof n[0]?1:0,r=i.x.scale*e.x,a=i.y.scale*e.y;n[0+o]/=r,n[1+o]/=a;let l=(0,tp.t)(r,a,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),s(n)}}};var t6=i(49333),t8=i(23419),et=i(79680),ee=i(12588),ei=i(72065),en=i(71693),es=i(86120),eo=i(36037),er=i(29361),ea=i(77042),el=i(1120);let eh=(t,e)=>t.depth-e.depth;class eu{constructor(){this.children=[],this.isDirty=!1}add(t){(0,el.y4)(this.children,t),this.isDirty=!0}remove(t){(0,el.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eh),this.isDirty=!1,this.children.forEach(t)}}var ed=i(83225);let ec=["TopLeft","TopRight","BottomLeft","BottomRight"],ep=ec.length,em=t=>"string"==typeof t?parseFloat(t):t,ef=t=>"number"==typeof t||td.px.test(t);function ev(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ey=ex(0,.5,ed.Bn),eg=ex(.5,.95,th.Z);function ex(t,e,i){return n=>n<t?0:n>e?1:i((0,t$.Y)(t,e,n))}function eP(t,e){t.min=e.min,t.max=e.max}function eT(t,e){eP(t.x,e.x),eP(t.y,e.y)}function ew(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eE=i(69503);function eA(t,e,i,n,s){return t-=e,t=(0,eE.q2)(t,1/i,n),void 0!==s&&(t=(0,eE.q2)(t,1/s,n)),t}function eD(t,e,[i,n,s],o,r){!function(t,e=0,i=1,n=.5,s,o=t,r=t){if(td.aQ.test(e)){e=parseFloat(e);let t=(0,tp.t)(r.min,r.max,e/100);e=t-r.min}if("number"!=typeof e)return;let a=(0,tp.t)(o.min,o.max,n);t===o&&(a-=e),t.min=eA(t.min,e,i,a,s),t.max=eA(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,o,r)}let eS=["x","scaleX","originX"],eL=["y","scaleY","originY"];function eC(t,e,i,n){eD(t.x,e,eS,i?i.x:void 0,n?n.x:void 0),eD(t.y,e,eL,i?i.y:void 0,n?n.y:void 0)}function eR(t){return 0===t.translate&&1===t.scale}function eb(t){return eR(t.x)&&eR(t.y)}function ej(t,e){return t.min===e.min&&t.max===e.max}function eM(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eV(t,e){return eM(t.x,e.x)&&eM(t.y,e.y)}function ek(t){return tw(t.x)/tw(t.y)}function eB(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class eO{constructor(){this.members=[]}add(t){(0,el.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,el.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)}
1}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 eU=i(76638);let eF={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eI=["","X","Y","Z"],eW=0;function e$(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eH({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eW++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,t6.f.value&&(eF.nodes=eF.calculatedTargetDeltas=eF.calculatedProjections=0),this.nodes.forEach(eX),this.nodes.forEach(eQ),this.nodes.forEach(eJ),this.nodes.forEach(eY),t6.f.addProjectionMetrics&&t6.f.addProjectionMetrics(eF)},this.resolvedRelativeTargetAt=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 eu)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eo.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,t8.v)(e)&&!(0,et.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;tc.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=ei.X.now(),n=({timestamp:s})=>{let o=s-i;o>=e&&((0,tc.Pn)(n),t(o-e))};return tc.Wi.setup(n,!0),()=>(0,tc.Pn)(n)}(s,250),tJ.hasAnimatedSinceResize&&(tJ.hasAnimatedSinceResize=!1,this.nodes.forEach(eq)))})}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()||e9,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eV(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,ee.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||eq(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,tc.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.forEac
1h(e0),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,ea.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tc.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(){this.updateScheduled=!1;let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eZ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eK),this.nodes.forEach(eN),this.nodes.forEach(ez)):this.nodes.forEach(eZ),this.clearAllSnapshots();let e=ei.X.now();tc.w0.delta=(0,tH.u)(0,1e3/60,e-tc.w0.timestamp),tc.w0.timestamp=e,tc.w0.isProcessing=!0,tc.yL.update.process(tc.w0),tc.yL.preRender.process(tc.w0),tc.yL.render.process(tc.w0),tc.w0.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tq.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eG),this.sharedNodes.forEach(e1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tc.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tc.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||tw(this.snapshot.measuredBox.x)||tw(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++){let e=this.path[t];e.updateScroll()}let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,tC.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&&!eb(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,eU.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)),e6((e=n).x),e6(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tC.dO)();let e=t.measureViewportBox(),i=this.scroll?.wasRoot||this.path.some(it);if(!i){let{scroll:t}=this.root;t&&((0,eE.am)(e.x,t.offset.x),(0,eE.am)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tC.dO)();if(eT(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&&eT(e,t),(0,eE.am)(e.x,s.offset.x),(0,eE.am)(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=(0,tC.dO)();eT(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,eE.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,eU.ud)(n.latestValues)&&(0,eE.D2)(i,n.latestValues)}return(0,eU.ud)(this.latestValues)&&(0,eE.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,tC.dO)();eT(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,eU.ud)(i.latestValues))continue;(0,eU.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,tC.dO)(),s=i.measurePageBox();eT(n,s),eC(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,eU.ud)(this.latestValues)&&eC(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!==tc.w0.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,n=!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);
1if(n)return;let{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=tc.w0.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tC.dO)(),this.relativeTargetOrigin=(0,tC.dO)(),tL(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),eT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tC.dO)(),this.targetWithTransforms=(0,tC.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,tD(r.x,a.x,l.x),tD(r.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eT(this.target,this.layout.layoutBox),(0,eE.o2)(this.target,this.targetDelta)):eT(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tC.dO)(),this.relativeTargetOrigin=(0,tC.dO)(),tL(this.relativeTargetOrigin,this.target,t.target),eT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}t6.f.value&&eF.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,eU.Lj)(this.parent.latestValues)||(0,eU.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)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tc.w0.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;eT(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,eE.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,tC.dO)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ew(this.prevProjectionDelta.x,this.projectionDelta.x),ew(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tA(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eB(this.projectionDelta.x,this.prevProjectionDelta.x)&&eB(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),t6.f.value&&eF.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,tC.wc)(),this.projectionDelta=(0,tC.wc)(),this.projectionDeltaWithTransform=(0,tC.wc)()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},r=(0,tC.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tC.dO)(),l=n?n.source:void 0,h=this.layout?this.layout.source:void 0,u=l!==h,d=this.getStack(),c=!d||d.members.length<=1,p=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(e3));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(e2(r.x,t.x,n),e2(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,h,d,m;tL(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d=this.relativeTarget,m=this.relativeTargetOrigin,e5(d.x,m.x,a.x,n),e5(d.y,m.y,a.y,n),i&&(l=this.relativeTarget,h=i,ej(l.x,h.x)&&ej(l.
1y,h.y))&&(this.isProjectionDirty=!1),i||(i=(0,tC.dO)()),eT(i,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,i,n,s,o){s?(t.opacity=(0,tp.t)(0,i.opacity??1,ey(n)),t.opacityExit=(0,tp.t)(e.opacity??1,0,eg(n))):o&&(t.opacity=(0,tp.t)(e.opacity??1,i.opacity??1,n));for(let s=0;s<ep;s++){let o=`border${ec[s]}Radius`,r=ev(e,o),a=ev(i,o);if(void 0===r&&void 0===a)continue;r||(r=0),a||(a=0);let l=0===r||0===a||ef(r)===ef(a);l?(t[o]=Math.max((0,tp.t)(em(r),em(a),n),0),(td.aQ.test(a)||td.aQ.test(r))&&(t[o]+="%")):t[o]=a}(e.rotate||i.rotate)&&(t.rotate=(0,tp.t)(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,p,c)),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,tc.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.Wi.update(()=>{tJ.hasAnimatedSinceResize=!0,en.P.layout++,this.motionValue||(this.motionValue=(0,es.BX)(0)),this.currentAnimation=(0,er.D)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{en.P.layout--},onComplete:()=>{en.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&&e8(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tC.dO)();let e=tw(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tw(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}eT(e,i),(0,eE.D2)(e,s),tA(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eO);let i=this.sharedNodes.get(t);i.add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.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&&e$("z",t,n,this.animationValues);for(let e=0;e<eI.length;e++)e$(`rotate${eI[e]}`,t,n,this.animationValues),e$(`skew${eI[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=B(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=B(e?.pointerEvents)||""),this.hasProjected&&!(0,eU.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,t5.P){if(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=t5.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?B(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e_),this.root.sharedNodes.clear()}}}function eN(t){t.updateLayout()}function ez(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?tR(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=tw(n);n.min=i[t].min,n.max=n.min+s}):e8(s,e.layoutBox,i)&&tR(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],r=tw(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,tC.wc)();tA(r,i,e.layoutBox);let a=(0,tC.wc)();o?tA(a,t.applyTransform(n,!0),e.measuredBox):tA(a,i,e.layoutBox);let l=!eb(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,tC.dO)();tL(r,e.layoutBox,s.layoutBox);let a=(0,tC.dO)();tL(a,i,o.layoutBox),eV(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 eX(t){t6.f.value&&eF.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 eY(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eG(t){t.clearSnapshot()}function e_(t){t.clearMeasurements()}function eZ(t){t.isLayoutDirty=!1}function eK(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eq(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eQ(t){t.resolveTargetDelta()}function eJ(t){t.calcProjection()}function e0(t){t.resetSkewAndRotation()}function e1(t){t.removeLeadSnapshot()}function e2(t,e,i){t.translate=(0,tp.t)(e.translate,0,i),t.scale=(0,tp.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function e5(t,e,i,n){t.min=(0,tp.t)(e.min,i.min,n),t.max=(0,tp.t)(e.max,i.max,n)}function e3(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let e9={duration:.45,ease:[.4,0,.1,1]},e4=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),e7=e4("applewebkit/")&&!e4("chrome/")?Math.round:th.Z;function e6(t){t.min=e7(t.min),t.max=e7(t.max)}function e8(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ek(e)-ek(i)))}function it(t){return t!==t.root&&t.scroll?.wasRoot}let ie=eH({attachResizeListener:(t,e)=>tv(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ii={current:void 0},is=eH({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ii.current){let t=new ie({});t.mount(window),t.setOptions({layoutScroll:!0}),ii.current=t}return ii.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var io=i(13713);function ir(t,e){let i=(0,io.I)(t),n=new AbortController,s={passive:!0,...e,signal:n.signal},o=()=>n.abort();return[i,s,o]}function ia(t){return!("touch"===t.pointerType||tu.x||tu.y)}function il(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tc.Wi.postRender(()=>s(e,tg(e)))}var ih=i(5549);let iu=(t,e)=>!!e&&(t===e||iu(t,e.parentElement)),id=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ic=new WeakSet;function ip(t){return e=>{"Enter"===e.key&&t(e)}}function im(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let iv=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=ip(()=>{if(ic.has(i))return;im(i,"down");let t=ip(()=>{im(i,"up")}),n=()=>im(i,"cancel");i.addEventListener("keyup",t,e),i.addEventListener("blur",n,e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function iy(t){return ty(t)&&!(tu.x||tu.y)}function ig(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&&tc.Wi.postRender(()=>s(e,tg(e)))}let ix=new WeakMap,iP=new WeakMap,iT=t=>{let e=ix.get(t.target);e&&e(t)},iw=t=>{t.forEach(iT)},iE={some:0,all:1},iA=function(t,e){if("undefined"==typeof Proxy)return _;let i=new Map,n=(i,n)=>_(i,n,t,e),s=(t,e)=>n(t,e);return new Proxy(s,{get:(s,o)=>"create"===o?n:(i.has(o)||i.set(o,_(o,void 0,t,e)),i.get(o))})}({animation:{Feature:class extends ta{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)){let s=e.map(e=>Q(t,e,i));n=Promise.all(s)}else if("string"==typeof e)n=Q(t,e,i);else{let s="function"==typeof e?(0,Z.x)(t,e,i.custom):e;n=Promise.all((0,K.w)(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tr(),n=!0,s=e=>(i,n)=>{let s=(0,Z.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<ti;t++){let n=te.V[t],s=e.props[n];((0,v.$)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<ts;e++){var c;let p=tn[e],m=i[p],f=void 0!==r[p]?r[p]:a[p],y=(0,v.$)(f),g=p===o?m.isActive:null;!1===g&&(d=e);let x=f===a[p]&&f!==r[p]&&y;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...u},!m.isActive&&null===g||!f&&!m.prevProp||(0,j.H)(f)||"boolean"==typeof f)continue;let P=(c=m.prevProp,"string"==typeof f?f!==c:!!Array.isArray(f)&&!tt(f,c)),T=P||p===o&&m.isActive&&!x&&y||e>d&&y,w=!1,E=Array.isArray(f)?f:[f],A=E.reduce(s(p),{});!1===g&&(A={});let{prevResolvedValues:D={}}=m,S={...D,...A},L=e=>{T=!0,h.has(e)&&(w=!0,h.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in S){let e=A[t],i=D[t];if(!u.hasOwnProperty(t))((0,J.C)(e)&&(0,J.C)(i)?tt(e,i):e===i)?void 0!==e&&h.has(t)?L(t):m.protectedKeys[t]=!0:null!=e?L(t):h.add(t)}m.prevProp=f,m.prevResolvedValues=A,m.isActive&&(u={...u,...A}),n&&t.blockInitialAnimation&&(T=!1);let C=x&&P,R=!C||w;T&&R&&l.push(...E.map(e=>{let i={type:p};if("string"==typeof e&&n&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,Z.x)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=q(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof r.initial){let i=(0,Z.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 p=!!l.length;return n&&(!1===r.initial||r.initial===r.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?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=tr()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,j.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?.()}}},exit:{Feature:class extends ta{constructor(){super(...arguments),this.id=tl++}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(){}}},inView:{Feature:class extends ta{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:iE[n]},r=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)};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;iP.has(i)||iP.set(i,{});let n=iP.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(iw,{root:t,...e})),n[s]}(e);return ix.set(t,i),n.observe(t),()=>{ix.delete(t),n.unobserve(t)}}(this.node.current,o,r)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ta{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=ir(t,i),r=t=>{let n=t.currentTarget;if(!iy(t))return;ic.add(n);let o=e(n,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ic.has(n)&&ic.delete(n),iy(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,n===window||n===document||i.useGlobalTarget||iu(n,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{let e=i.useGlobalTarget?window:t;e.addEventListener("pointerdown",r,s),(0,ih.R)(t)&&(t.addEventListener("focus",t=>iv(t,s)),id.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(ig(this.node,e,"Start"),(t,{success:e})=>ig(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ta{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,tV.z)(tv(this.node.current,"focus",()=>this.onFocus()),tv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ta{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=ir(t,i),r=t=>{if(!ia(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let o=t=>{ia(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)=>(il(this.node,e,"Start"),t=>il(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ta{constructor(){super(...arguments),this.removePointerDownListener=th.Z}onPointerDown(t){this.session=new tO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tj(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tK(t),onStart:tK(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tc.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tP(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ta{constructor(t){super(t),this.removeGroupControls=th.Z,this.removeListeners=th.Z,this.controls=new t_(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||th.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:is,MeasureLayout:t4},layout:{ProjectionNode:is,MeasureLayout:t4}},h)}
1,5549:function(t,e,i){i.d(e,{R:function(){return s}});var n=i(97634);function s(t){return(0,n.K)(t)&&"offsetHeight"in t}}}]);

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.