HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/www/wp-content/plugins_backup/surerank/build/vendor-66bb3aca/index.js
"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[9254],{921:(t,n,e)=>{e.d(n,{H:()=>l});var i=e(5),s=e(1207),o=e(71912),r=e(3044);function a(t,n,e){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===e);const r=i["onTap"+("End"===e?"":e)];r&&s.Gt.postRender(()=>r(n,(0,o.e)(n)))}class l extends r.X{mount(){const{current:t}=this.node;t&&(this.unmount=(0,i.c)(t,(t,n)=>(a(this.node,n,"Start"),(t,{success:n})=>a(this.node,t,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},1712:(t,n,e)=>{e.d(n,{p:()=>i});const i=t=>Array.isArray(t)},12846:(t,n,e)=>{e.d(n,{e:()=>l});var i=e(83979),s=e(1207),o=e(71912),r=e(3044);function a(t,n,e){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===e);const r=i["onHover"+e];r&&s.Gt.postRender(()=>r(n,(0,o.e)(n)))}class l extends r.X{mount(){const{current:t}=this.node;t&&(this.unmount=(0,i.P)(t,(t,n)=>(a(this.node,n,"Start"),t=>a(this.node,t,"End"))))}unmount(){}}},19293:(t,n,e)=>{e.d(n,{f:()=>f});var i=e(35835),s=e(49864),o=e(1207),r=e(5753),a=e(24736),l=e(77331),c=e(98731);const u=t=>null!==t;var h=e(92518);const d={type:"spring",stiffness:500,damping:25,restSpeed:10},p={type:"keyframes",duration:.8},m={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},f=(t,n,e,f={},g,v)=>y=>{const x=(0,i.r)(f,t)||{},P=x.delay||f.delay||0;let{elapsed:E=0}=f;E-=(0,l.f)(P);const A={keyframes:Array.isArray(e)?e:[null,e],ease:"easeOut",velocity:n.getVelocity(),...x,delay:-E,onUpdate:t=>{n.set(t),x.onUpdate&&x.onUpdate(t)},onComplete:()=>{y(),x.onComplete&&x.onComplete()},name:t,motionValue:n,element:v?void 0:g};(function({when:t,delay:n,delayChildren:e,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(x)||Object.assign(A,((t,{keyframes:n})=>n.length>2?p:h.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:d:m)(t,A)),A.duration&&(A.duration=(0,l.f)(A.duration)),A.repeatDelay&&(A.repeatDelay=(0,l.f)(A.repeatDelay)),void 0!==A.from&&(A.keyframes[0]=A.from);let C=!1;if((!1===A.type||0===A.duration&&!A.repeatDelay)&&((0,s._)(A),0===A.delay&&(C=!0)),(c.W.instantAnimations||c.W.skipAnimations)&&(C=!0,(0,s._)(A),A.delay=0),A.allowFlatten=!x.type&&!x.ease,C&&!v&&void 0!==n.get()){const t=function(t,{repeat:n,repeatType:e="loop"},i){const s=t.filter(u),o=n&&"loop"!==e&&n%2===1?0:s.length-1;return o&&void 0!==i?i:s[o]}(A.keyframes,x);if(void 0!==t)return void o.Gt.update(()=>{A.onUpdate(t),A.onComplete()})}return x.isSync?new r.s(A):new a.A(A)}},23717:(t,n,e)=>{e.d(n,{N:()=>i});const i=(0,e(51609).createContext)({})},25650:(t,n,e)=>{function i(t,n,e,i=0,s=1){const o=Array.from(t).sort((t,n)=>t.sortNodePosition(n)).indexOf(n),r=t.size,a=(r-1)*i;return"function"===typeof e?e(o,r):1===s?o*i:a-o*i}e.d(n,{L:()=>i})},27523:(t,n,e)=>{e.d(n,{_:()=>f});var i=e(74737),s=e(35835),o=e(1207),r=e(26571),a=e(24714),l=e(50029),c=e(94458),u=e(19293);function h({protectedKeys:t,needsAnimating:n},e){const i=t.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,i}function d(t,n,{delay:e=0,transitionOverride:i,type:d}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:m,...f}=n;i&&(p=i);const g=[],v=d&&t.animationState&&t.animationState.getState()[d];for(const a in f){const n=t.getValue(a,t.latestValues[a]??null),i=f[a];if(void 0===i||v&&h(v,a))continue;const d={delay:e,...(0,s.r)(p||{},a)},m=n.get();if(void 0!==m&&!n.isAnimating&&!Array.isArray(i)&&i===m&&!d.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const n=(0,c.P)(t);if(n){const t=window.MotionHandoffAnimation(n,a,o.Gt);null!==t&&(d.startTime=t,y=!0)}}(0,l.g)(t,a),n.start((0,u.f)(a,n,i,t.shouldReduceMotion&&r.$.has(a)?{type:!1}:d,t,y));const x=n.animation;x&&g.push(x)}return m&&Promise.all(g).then(()=>{o.Gt.update(()=>{m&&(0,a.U)(t,m)})}),g}var p=e(25650);function m(t,n,e={}){const s=(0,i.K)(t,n,"exit"===e.type?t.presenceContext?.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};e.transitionOverride&&(o=e.transitionOverride);const r=s?()=>Promise.all(d(t,s,e)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,n,e=0,i=0,s=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",n),a.push(m(l,n,{...r,delay:e+("function"===typeof i?0:i)+(0,p.L)(t.variantChildren,l,i,s,o)}).then(()=>l.notify("AnimationComplete",n)));return Promise.all(a)}(t,n,i,s,r,a,e)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,n]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>n())}return Promise.all([r(),a(e.delay)])}function f(t,n,e={}){let s;if(t.notify("AnimationStart",n),Array.isArray(n)){const i=n.map(n=>m(t,n,e));s=Promise.all(i)}else if("string"===typeof n)s=m(t,n,e);else{const o="function"===typeof n?(0,i.K)(t,n,e.custom):n;s=Promise.all(d(t,o,e))}return s.then(()=>{t.notify("AnimationComplete",n)})}},29473:(t,n,e)=>{e.d(n,{L:()=>i});const i=(0,e(51609).createContext)({})},35446:(t,n,e)=>{e.d(n,{Q:()=>i});const i=(0,e(51609).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},38016:(t,n,e)=>{e.d(n,{c:()=>r});var i=e(2718),s=e(63998),o=e(3044);class r extends o.X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(n){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,i.F)((0,s.k)(this.node.current,"focus",()=>this.onFocus()),(0,s.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},38792:(t,n,e)=>{e.d(n,{f:()=>u});var i=e(1207),s=e(41533),o=e(92901),r=e(3044),a=e(84364),l=e(92275);const c=t=>(n,e)=>{t&&i.Gt.postRender(()=>t(n,e))};class u extends r.X{constructor(){super(...arguments),this.removePointerDownListener=s.l}onPointerDown(t){this.session=new l.Q(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:(0,a.s)(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:e,onPanEnd:s}=this.node.getProps();return{onSessionStart:c(t),onStart:c(n),onMove:e,onEnd:(t,n)=>{delete this.session,s&&i.Gt.postRender(()=>s(t,n))}}}mount(){this.removePointerDownListener=(0,o.h)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},44495:(t,n,e)=>{e.d(n,{w:()=>j});var i=e(3044),s=e(41533),o=e(56257),r=e(20538),a=e(1207),l=e(65744),c=e(8104),u=e(19293),h=e(63998),d=e(92901),p=e(71912),m=e(38448),f=e(55120),g=e(54106),v=e(75338),y=e(94805),x=e(84364),P=e(83953),E=e(50029),A=e(92275),C=e(86896),w=e(17046);function M(t,n,e){return{min:void 0!==n?t.min+n:void 0,max:void 0!==e?t.max+e-(t.max-t.min):void 0}}function S(t,n){let e=n.min-t.min,i=n.max-t.max;return n.max-n.min<t.max-t.min&&([e,i]=[i,e]),{min:e,max:i}}const D=.35;function L(t,n,e){return{min:k(t,n),max:k(t,e)}}function k(t,n){return"number"===typeof t?t:t[n]||0}const T=new WeakMap;class X{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,g.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:e}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new A.Q(t,{onSessionStart:t=>{const{dragSnapToOrigin:e}=this.getProps();e?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor((0,p.e)(t).point)},onStart:(t,n)=>{const{drag:e,dragPropagation:i,onDragStart:s}=this.getProps();if(e&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,o.W)(e),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=n,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,v.X)(t=>{let n=this.getAxisMotionValue(t).get()||0;if(r.KN.test(n)){const{projection:e}=this.visualElement;if(e&&e.layout){const i=e.layout.layoutBox[t];i&&(n=(0,f.CQ)(i)*(parseFloat(n)/100))}}this.originPoint[t]=n}),s&&a.Gt.postRender(()=>s(t,n)),(0,E.g)(this.visualElement,"transform");const{animationState:l}=this.visualElement;l&&l.setActive("whileDrag",!0)},onMove:(t,n)=>{this.latestPointerEvent=t,this.latestPanInfo=n;const{dragPropagation:e,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!e&&!this.openDragLock)return;const{offset:r}=n;if(i&&null===this.currentDirection)return this.currentDirection=function(t,n=10){let e=null;return Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x"),e}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",n.point,r),this.updateAxis("y",n.point,r),this.visualElement.render(),o&&o(t,n)},onSessionEnd:(t,n)=>{this.latestPointerEvent=t,this.latestPanInfo=n,this.stop(t,n),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>(0,v.X)(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:e,contextWindow:(0,x.s)(this.visualElement)})}stop(t,n){const e=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!e)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&a.Gt.postRender(()=>r(e,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:e}=this.getProps();!e&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,e){const{drag:i}=this.getProps();if(!e||!b(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+e[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:n,max:e},i){return void 0!==n&&t<n?t=i?(0,l.k)(n,t,i.min):Math.max(t,n):void 0!==e&&t>e&&(t=i?(0,l.k)(e,t,i.max):Math.min(t,e)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),e=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&(0,P.X)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!e)&&function(t,{top:n,left:e,bottom:i,right:s}){return{x:M(t.x,e,s),y:M(t.y,n,i)}}(e.layoutBox,t),this.elastic=function(t=D){return!1===t?t=0:!0===t&&(t=D),{x:L(t,"left","right"),y:L(t,"top","bottom")}}(n),i!==this.constraints&&e&&this.constraints&&!this.hasMutatedConstraints&&(0,v.X)(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,n){const e={};return void 0!==n.min&&(e.min=n.min-t.min),void 0!==n.max&&(e.max=n.max-t.min),e}(e.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!(0,P.X)(t))return!1;const e=t.current;(0,c.V)(null!==e,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=(0,y.L)(e,i.root,this.visualElement.getTransformPagePoint());let o=function(t,n){return{x:S(t.x,n.x),y:S(t.y,n.y)}}(i.layout.layoutBox,s);if(n){const t=n((0,m.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,m.FY)(t))}return o}startAnimation(t){const{drag:n,dragMomentum:e,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=(0,v.X)(r=>{if(!b(r,n,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const c={type:"inertia",velocity:e?t[r]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)});return Promise.all(l).then(r)}startAxisValueAnimation(t,n){const e=this.getAxisMotionValue(t);return(0,E.g)(this.visualElement,t),e.start((0,u.f)(t,e,0,n,this.visualElement,!1))}stopAnimation(){(0,v.X)(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){(0,v.X)(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,e=this.visualElement.getProps();return e[n]||this.visualElement.getValue(t,(e.initial?e.initial[t]:void 0)||0)}snapToCursor(t){(0,v.X)(n=>{const{drag:e}=this.getProps();if(!b(n,e,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:e,max:o}=i.layout.layoutBox[n];s.set(t[n]-(0,l.k)(e,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:e}=this.visualElement;if(!(0,P.X)(n)||!e||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};(0,v.X)(t=>{const n=this.getAxisMotionValue(t);if(n&&!1!==this.constraints){const e=n.get();i[t]=function(t,n){let e=.5;const i=(0,f.CQ)(t),s=(0,f.CQ)(n);return s>i?e=(0,C.q)(n.min,n.max-i,t.min):i>s&&(e=(0,C.q)(t.min,t.max-s,n.min)),(0,w.q)(0,1,e)}({min:e,max:e},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",e.root&&e.root.updateScroll(),e.updateLayout(),this.resolveConstraints(),(0,v.X)(n=>{if(!b(n,t,null))return;const e=this.getAxisMotionValue(n),{min:s,max:o}=this.constraints[n];e.set((0,l.k)(s,o,i[n]))})}addListeners(){if(!this.visualElement.current)return;T.set(this.visualElement,this);const t=(0,d.h)(this.visualElement.current,"pointerdown",t=>{const{drag:n,dragListener:e=!0}=this.getProps();n&&e&&this.start(t)}),n=()=>{const{dragConstraints:t}=this.getProps();(0,P.X)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:e}=this.visualElement,i=e.addEventListener("measure",n);e&&!e.layout&&(e.root&&e.root.updateScroll(),e.updateLayout()),a.Gt.read(n);const s=(0,h.k)(window,"resize",()=>this.scalePositionWithinConstraints()),o=e.addEventListener("didUpdate",({delta:t,hasLayoutChanged:n})=>{this.isDragging&&n&&((0,v.X)(n=>{const e=this.getAxisMotionValue(n);e&&(this.originPoint[n]+=t[n].translate,e.set(e.get()+t[n].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:e=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=D,dragMomentum:r=!0}=t;return{...t,drag:n,dragDirectionLock:e,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function b(t,n,e){return(!0===n||n===t)&&(null===e||e===t)}class j extends i.X{constructor(t){super(t),this.removeGroupControls=s.l,this.removeListeners=s.l,this.controls=new X(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||s.l}unmount(){this.removeGroupControls(),this.removeListeners()}}},45153:(t,n,e)=>{e.d(n,{A:()=>i});const i=(0,e(51609).createContext)({})},60990:(t,n,e)=>{e.d(n,{z:()=>a});var i=e(51609),s=e(45153),o=e(837),r=e(36551);function a(t){const{initial:n,animate:e}=function(t,n){if((0,o.e)(t)){const{initial:n,animate:e}=t;return{initial:!1===n||(0,r.w)(n)?n:void 0,animate:(0,r.w)(e)?e:void 0}}return!1!==t.inherit?n:{}}(t,(0,i.useContext)(s.A));return(0,i.useMemo)(()=>({initial:n,animate:e}),[l(n),l(e)])}function l(t){return Array.isArray(t)?t.join(" "):t}},62956:(t,n,e)=>{e.d(n,{z:()=>r});var i=e(4766),s=e(89495),o=e(19293);function r(t,n,e){const r=(0,s.S)(t)?t:(0,i.OQ)(t);return r.start((0,o.f)("",r,n,e)),r.animation}},63998:(t,n,e)=>{function i(t,n,e,i={passive:!0}){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e)}e.d(n,{k:()=>i})},65490:(t,n,e)=>{function i(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}e.d(n,{N:()=>i})},66048:(t,n,e)=>{e.d(n,{Y:()=>i});const i=(0,e(51609).createContext)({strict:!1})},66221:(t,n,e)=>{e.d(n,{N:()=>x});var i=e(74848),s=e(51609),o=e(29473),r=e(28601),a=e(25128),l=e(86719),c=e(76995),u=e(35446),h=e(22681);class d extends s.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const t=n.offsetParent,e=(0,c.s)(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=e-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:t,isPresent:n,anchorX:e,root:o}){const r=(0,s.useId)(),a=(0,s.useRef)(null),l=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,s.useContext)(u.Q),p=(0,h.s)(a,t?.ref);return(0,s.useInsertionEffect)(()=>{const{width:t,height:i,top:s,left:u,right:h}=l.current;if(n||!a.current||!t||!i)return;const d="left"===e?`left: ${u}`:`right: ${h}`;a.current.dataset.motionPopId=r;const p=document.createElement("style");c&&(p.nonce=c);const m=o??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${t}px !important;\n            height: ${i}px !important;\n            ${d}px !important;\n            top: ${s}px !important;\n          }\n        `),()=>{m.contains(p)&&m.removeChild(p)}},[n]),(0,i.jsx)(d,{isPresent:n,childRef:a,sizeRef:l,children:s.cloneElement(t,{ref:p})})}const m=({children:t,initial:n,isPresent:e,onExitComplete:o,custom:a,presenceAffectsLayout:c,mode:u,anchorX:h,root:d})=>{const m=(0,r.M)(f),g=(0,s.useId)();let v=!0,y=(0,s.useMemo)(()=>(v=!1,{id:g,initial:n,isPresent:e,custom:a,onExitComplete:t=>{m.set(t,!0);for(const n of m.values())if(!n)return;o&&o()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[e,m,o]);return c&&v&&(y={...y}),(0,s.useMemo)(()=>{m.forEach((t,n)=>m.set(n,!1))},[e]),s.useEffect(()=>{!e&&!m.size&&o&&o()},[e]),"popLayout"===u&&(t=(0,i.jsx)(p,{isPresent:e,anchorX:h,root:d,children:t})),(0,i.jsx)(l.t.Provider,{value:y,children:t})};function f(){return new Map}var g=e(89120);const v=t=>t.key||"";function y(t){const n=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&n.push(t)}),n}const x=({children:t,custom:n,initial:e=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:h=!1,anchorX:d="left",root:p})=>{const[f,x]=(0,g.xQ)(h),P=(0,s.useMemo)(()=>y(t),[t]),E=h&&!f?[]:P.map(v),A=(0,s.useRef)(!0),C=(0,s.useRef)(P),w=(0,r.M)(()=>new Map),[M,S]=(0,s.useState)(P),[D,L]=(0,s.useState)(P);(0,a.E)(()=>{A.current=!1,C.current=P;for(let t=0;t<D.length;t++){const n=v(D[t]);E.includes(n)?w.delete(n):!0!==w.get(n)&&w.set(n,!1)}},[D,E.length,E.join("-")]);const k=[];if(P!==M){let t=[...P];for(let n=0;n<D.length;n++){const e=D[n],i=v(e);E.includes(i)||(t.splice(n,0,e),k.push(e))}return"wait"===u&&k.length&&(t=k),L(y(t)),S(P),null}const{forceRender:T}=(0,s.useContext)(o.L);return(0,i.jsx)(i.Fragment,{children:D.map(t=>{const s=v(t),o=!(h&&!f)&&(P===D||E.includes(s));return(0,i.jsx)(m,{isPresent:o,initial:!(A.current&&!e)&&void 0,custom:n,presenceAffectsLayout:c,mode:u,root:p,onExitComplete:o?void 0:()=>{if(!w.has(s))return;w.set(s,!0);let t=!0;w.forEach(n=>{n||(t=!1)}),t&&(T?.(),L(C.current),h&&x?.(),l&&l())},anchorX:d,children:t},s)})})}},71912:(t,n,e)=>{e.d(n,{F:()=>o,e:()=>s});var i=e(56228);function s(t){return{point:{x:t.pageX,y:t.pageY}}}const o=t=>n=>(0,i.M)(n)&&t(n,s(n))},82392:(t,n,e)=>{e.d(n,{n:()=>i});const i="data-"+(0,e(48062).I)("framerAppearId")},86719:(t,n,e)=>{e.d(n,{t:()=>i});const i=(0,e(51609).createContext)(null)},89120:(t,n,e)=>{e.d(n,{xQ:()=>o});var i=e(51609),s=e(86719);function o(t=!0){const n=(0,i.useContext)(s.t);if(null===n)return[!0,null];const{isPresent:e,onExitComplete:o,register:r}=n,a=(0,i.useId)();(0,i.useEffect)(()=>{if(t)return r(a)},[t]);const l=(0,i.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!e&&o?[!1,l]:[!0]}},92275:(t,n,e)=>{e.d(n,{Q:()=>u});var i=e(56228),s=e(1207),o=e(2718),r=e(77331),a=e(92901),l=e(71912),c=e(15746);class u{constructor(t,n,{transformPagePoint:e,contextWindow:r=window,dragSnapToOrigin:u=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=p(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,e=(0,c.w)(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!n&&!e)return;const{point:i}=t,{timestamp:o}=s.uv;this.history.push({...i,timestamp:o});const{onStart:r,onMove:a}=this.handlers;n||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,n)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=h(n,this.transformPagePoint),s.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,n)=>{this.end();const{onEnd:e,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=p("pointercancel"===t.type?this.lastMoveEventInfo:h(n,this.transformPagePoint),this.history);this.startEvent&&e&&e(t,o),i&&i(t,o)},!(0,i.M)(t))return;this.dragSnapToOrigin=u,this.handlers=n,this.transformPagePoint=e,this.distanceThreshold=d,this.contextWindow=r||window;const m=h((0,l.e)(t),this.transformPagePoint),{point:f}=m,{timestamp:g}=s.uv;this.history=[{...f,timestamp:g}];const{onSessionStart:v}=n;v&&v(t,p(m,this.history)),this.removeListeners=(0,o.F)((0,a.h)(this.contextWindow,"pointermove",this.handlePointerMove),(0,a.h)(this.contextWindow,"pointerup",this.handlePointerUp),(0,a.h)(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,s.WG)(this.updatePoint)}}function h(t,n){return n?{point:n(t.point)}:t}function d(t,n){return{x:t.x-n.x,y:t.y-n.y}}function p({point:t},n){return{point:t,delta:d(t,f(n)),offset:d(t,m(n)),velocity:g(n,.1)}}function m(t){return t[0]}function f(t){return t[t.length-1]}function g(t,n){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null;const s=f(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,r.f)(n)));)e--;if(!i)return{x:0,y:0};const o=(0,r.X)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const a={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}},92901:(t,n,e)=>{e.d(n,{h:()=>o});var i=e(63998),s=e(71912);function o(t,n,e,o){return(0,i.k)(t,n,(0,s.F)(e),o)}},94458:(t,n,e)=>{e.d(n,{P:()=>s});var i=e(82392);function s(t){return t.props[i.n]}}}]);