PageSourceSearch

https://www.televisa.com/_next/static/chunks/0qfhal5g_ccn3.js

js televisa.com collected 2026-10-02 02:33:16 UTC 80,770 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,562704,t=>{"use strict";var e=t.i(871803),i=t.i(615889),n=t.i(776889),s=t.i(845981);let o=(0,n.lazy)(()=>t.A(703965)),r=(0,n.memo)(function(t){let r,a,l,h,u=(0,i.c)(8),[c,d]=(0,n.useState)(!1);u[0]!==t?(r=(0,e.jsx)(o,{...t}),u[0]=t,u[1]=r):r=u[1];let m=r;return u[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{(0,s.isNotificationSupported)()&&d(!0)},u[2]=a):a=u[2],u[3]!==c?(l=[c],u[3]=c,u[4]=l):l=u[4],(0,n.useEffect)(a,l),u[5]!==m||u[6]!==c?(h=c?(0,e.jsx)(n.Suspense,{fallback:null,children:m}):null,u[5]=m,u[6]=c,u[7]=h):h=u[7],h});t.s(["default",0,r])},938818,t=>{"use strict";var e=t.i(871803),i=t.i(615889),n=t.i(776889),s=t.i(911312),o=t.i(408660),r=t.i(539618);let a=(0,n.memo)(function(t){let n,s,a=(0,i.c)(4),{hasOneTrust:l}=t;return a[0]!==l?(n=(0,o.getScriptType)(r.PERFORMANCE_COOKIES,l),a[0]=l,a[1]=n):n=a[1],a[2]!==n?(s=(0,e.jsx)("script",{async:!0,className:r.PERFORMANCE_COOKIES,src:"https://static.chartbeat.com/js/chartbeat_mab.js",type:n}),a[2]=n,a[3]=s):s=a[3],s});t.s(["default",0,function(t){let o,r,l,h,u=(0,i.c)(8),{chartbeatDomain:c,hasOneTrust:d}=t,[m,p]=(0,n.useState)(!1);return(u[0]!==c?(o=()=>{(0,n.startTransition)(()=>{window._sf_async_config=window._sf_async_config||{},window._sf_async_config.uid=38125,window._sf_async_config.domain=c,window._sf_async_config.useCanonical=!0,window._sf_async_config.useCanonicalDomain=!0,window._sf_async_config.flickerControl=!1,p(!0)})},r=[c],u[0]=c,u[1]=o,u[2]=r):(o=u[1],r=u[2]),(0,n.useEffect)(o,r),m)?(u[3]!==d?(l=(0,e.jsx)(a,{hasOneTrust:d}),u[3]=d,u[4]=l):l=u[4],u[5]!==d||u[6]!==l?(h=(0,e.jsx)(n.Suspense,{fallback:null,children:(0,e.jsx)(s.default,{hasOneTrust:d,children:l})}),u[5]=d,u[6]=l,u[7]=h):h=u[7],h):null}],938818)},206541,t=>{"use strict";let e,i;var n=t.i(871803),s=t.i(615889);class o{constructor(t){this.isMounted=!1,this.node=t}update(){}}var r=t.i(260830),a=t.i(130162),l=t.i(287022);function h(t){return[t("x"),t("y")]}function u({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}var c=t.i(100706);function d(t){return void 0===t||1===t}function m({scale:t,scaleX:e,scaleY:i}){return!d(t)||!d(e)||!d(i)}function p(t){return m(t)||f(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function f(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function y(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function g(t,e=0,i=1,n,s){t.min=y(t.min,e,i,n,s),t.max=y(t.max,e,i,n,s)}function v(t,{x:e,y:i}){g(t.x,e.translate,e.scale,e.originPoint),g(t.y,i.translate,i.scale,i.originPoint)}function x(t,e){t.min+=e,t.max+=e}function w(t,e,i,n,s=.5){let o=(0,c.mixNumber)(t.min,t.max,s);g(t,e,i,o,n)}function P(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function S(t,e,i){let n=i??t;w(t.x,P(e.x,n.x),e.scaleX,e.scale,e.originX),w(t.y,P(e.y,n.y),e.scaleY,e.scale,e.originY)}function T(t,e){return u(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}var E=t.i(846791),A=t.i(83411);function b(t,e){let i=t.getValue("willChange");if((0,A.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&E.MotionGlobalConfig.WillChange){let i=new E.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var D=t.i(763074),V=t.i(496173),C=t.i(83352),R=t.i(414229),L=t.i(921012),j=t.i(476959),k=t.i(794581),M=t.i(368e3),B=t.i(44573),O=t.i(791559),F=t.i(641980);let I={anticipate:t.i(878047).anticipate,backInOut:F.backInOut,circInOut:O.circInOut};class U extends M.NativeAnimation{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in I&&(t.ease=I[t.ease])}(t),(0,B.replaceTransitionType)(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let r=new C.JSAnimation({...o,autoplay:!1}),a=Math.max(10,V.time.now()-this.startTime),l=(0,j.clamp)(0,10,a-10),h=r.
1sample(a).value,{name:u}=this.options;s&&u&&(0,k.setStyle)(s,u,h),e.setWithVelocity(r.sample(Math.max(0,a-l)).value,h,l),r.stop()}}var N=t.i(965566),_=t.i(997307),z=t.i(569577);let W=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(z.complex.test(t)||"0"===t)&&!t.startsWith("url("));function G(t){t.duration=0,t.type="keyframes"}var $=t.i(779294),K=t.i(260900),H=t.i(962118);let Y=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,X=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),q=(0,K.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class J extends $.WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o="loop",keyframes:r,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=V.time.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:o,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||L.KeyframeResolver;this.keyframeResolver=new d(r,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:o,type:a,velocity:l,delay:h,isHandoff:u,onUpdate:c}=i;this.resolvedAt=V.time.now();let d=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],r=W(s,e),a=W(o,e);return(0,N.warning)(r===a,`You are trying to animate ${e} from "${s}" to "${o}". "${r?o:s}" is not an animatable value.`,"value-not-animatable"),!!r&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,_.isGenerator)(i))&&n)}(t,o,a,l)&&(d=!1,(E.MotionGlobalConfig.instantAnimations||!h)&&c?.((0,R.getFinalKeyframe)(t,i,e)),t[0]=t[t.length-1],G(i),i.repeat=0);let m={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return q()&&i&&(H.acceleratedValues.has(i)||X.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&Y.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!l&&!n&&"mirror"!==s&&0!==o&&"inertia"!==r}(m),f=m.motionValue?.owner?.current;if(p)try{s=new U({...m,element:f})}catch{s=new C.JSAnimation(m)}else s=new C.JSAnimation(m);s.finished.then(()=>{this.notifyFinished()}).catch(r.noop),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,L.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Z(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function Q(t,e){let i=t?.[e]??t?.default??t;return i!==t?Z(i,t):i}var tt=t.i(157788);let te={type:"spring",stiffness:500,damping:25,restSpeed:10},ti={type:"keyframes",duration:.8},tn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ts=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),to=(t,e,i,n={},s,o)=>r=>{let a=Q(n,t)||{},h=a.delay||n.delay||0,{elapsed:u=0}=n;u-=(0,D.secondsToMilliseconds)(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};!function(t){for(let e in t)if(!ts.has(e))return!0;return!1}(a)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?ti:tt.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:te:tn)(t,c)),c.duration&&(c.duration=(0,D.secondsToMilliseconds)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,D.secondsToMilliseconds)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(G(c),0===c.delay&&(d=!0)),(E.MotionGlobalConfig.instantAnimations||E.MotionGlobalConfig.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,G(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!o&&void 0!==e.get()){let t=(0,R.getFinalKeyframe)(c.keyframes,a);if(void 0!==t)return void l.frame.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new C.JSAnimation(c):new J(c)};function tr(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let ta={x:!1,y:!1};var tl=t.i(265091);function th(t){return t.max-t.min}function tu(t,e,i,n=.5){t.origin=n,t.originPoint=(0,c.mixNumber)(e.min,e.max,t.origin),t.scale=th(i)/th(e),t.translate=(0,c.mixNumber)(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 tc(t,e,i,n){tu(t.x,e.x,i.x,n?n.originX:void 0),tu(t.y,e.y,i.y,n?n.originY:void 0)}function td(t,e,i,n=0){t.min=(n?(0,c.mixNumber)(i.min,i.max,n):i.min)+e.min,t.max=t.min+th(e)}function tm(t,e,i,n=0){let s=n?(0,c.mixNumber)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+th(e)}
1function tp(t,e,i,n){tm(t.x,e.x,i.x,n?.x),tm(t.y,e.y,i.y,n?.y)}let tf=t=>"object"==typeof t&&null!==t;function ty(t){return tf(t)&&"ownerSVGElement"in t}function tg(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let tv=new WeakMap,tx=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:ty(n)&&"getBBox"in n?n.getBBox()[e]:n[i],tw=tx("inline","width","offsetWidth"),tP=tx("block","height","offsetHeight");function tS({target:t,borderBoxSize:e}){tv.get(t)?.forEach(i=>{i(t,{get width(){return tw(t,e)},get height(){return tP(t,e)}})})}function tT(t){t.forEach(tS)}let tE=new Set;function tA(t,n){let s;return"function"==typeof t?(tE.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tE.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{tE.delete(t),tE.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(tT)),(s=tg(t)).forEach(t=>{let i=tv.get(t);i||(i=new Set,tv.set(t,i)),i.add(n),e?.observe(t)}),()=>{s.forEach(t=>{let i=tv.get(t);i?.delete(n),i?.size||e?.unobserve(t)})})}let tb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tD=new Set(["INPUT","SELECT","TEXTAREA"]),tV=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tC(t){return{point:{x:t.pageX,y:t.pageY}}}function tR(t,e,i,n){return tr(t,e,t=>tV(t)&&i(t,tC(t)),n)}let tL=({current:t})=>t?t.ownerDocument.defaultView:null;var tj=t.i(325522),tk=t.i(738638);let tM=(t,e)=>Math.abs(t-e),tB=new Set(["auto","scroll"]);class tO{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=tF(this.lastRawMoveEventInfo,this.transformPagePoint));let i=tU(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}=l.frameData;this.history.push({...o,timestamp:r});let{onStart:a,onMove:h}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=tF(e,this.transformPagePoint),l.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tU("pointercancel"===t.type?this.lastMoveEventInfo:tF(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!tV(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;const a=tF(tC(t),this.transformPagePoint),{point:h}=a,{timestamp:u}=l.frameData;this.history=[{...h,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,tU(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=(0,tk.pipe)(tR(this.contextWindow,"pointermove",this.handlePointerMove,d),tR(this.contextWindow,"pointerup",this.handlePointerUp,d),tR(this.contextWindow,"pointercancel",this.handlePointerUp,d)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tB.has(t.overflowX)||tB.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),l.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,l.cancelFrame)(this.updatePoint)}}function tF(t,e){return e?{point:e(t.point)}:t}function tI(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tU({point:t},e){return{point:t,delta:tI(t,tN(e)),offset:tI(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=tN(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>(0,D.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>
12*(0,D.secondsToMilliseconds)(.1)&&(i=t[1]);let s=(0,D.millisecondsToSeconds)(n.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function tN(t){return t[t.length-1]}var t_=t.i(783920);function tz(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 tW(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 tG(t,e,i){return{min:t$(t,e),max:t$(t,i)}}function t$(t,e){return"number"==typeof t?t:t[e]||0}let tK=new WeakMap;class tH{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,a.createBox)(),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=>{e&&this.snapToCursor(tC(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ta[t])return null;else return ta[t]=!0,()=>{ta[t]=!1};return ta.x||ta.y?null:(ta.x=ta.y=!0,()=>{ta.x=ta.y=!1})}(i),!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),h(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tl.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=th(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&l.frame.update(()=>s(t,e),!1,!0),b(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&&l.frame.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new tO(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:tL(this.visualElement),element:this.visualElement.current})}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&&l.frame.postRender(()=>r(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tX(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,c.mixNumber)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,c.mixNumber)(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&&(0,tj.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:tz(t.x,i,s),y:tz(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:tG(t,"left","right"),y:tG(t,"top","bottom")}}(e),n!==this.constraints&&!(0,tj.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&h(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,tj.isRefObject)(e))return!1;let n=e.current;(0,N.invariant)(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;s.root&&(s.root.scroll=void 0,s.root.updateScroll());
1let o=function(t,e,i){let n=T(t,i),{scroll:s}=e;return s&&(x(n.x,s.offset.x),x(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),r=(t=s.layout.layoutBox,{x:tW(t.x,o.x),y:tW(t.y,o.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=u(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(h(r=>{if(!tX(r,e,this.currentDirection))return;let l=a&&a[r]||{};(!0===o||o===r)&&(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 b(this.visualElement,t),i.start(to(t,i,0,e,this.visualElement,!1))}stopAnimation(){h(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){h(e=>{let{drag:i}=this.getProps();if(!tX(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],r=s.get()||0;s.set(t[e]-(0,c.mixNumber)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,tj.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};h(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let o,r,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],o=.5,r=th(i),(a=th(s))>r?o=(0,t_.progress)(s.min,s.max-r,i.min):r>a&&(o=(0,t_.progress)(i.min,i.max-a,s.min)),(0,j.clamp)(0,1,o))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),h(e=>{if(!tX(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set((0,c.mixNumber)(s,o,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;tK.set(this.visualElement,this);let e=this.visualElement.current,i=tR(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,o=s!==e&&(tD.has(s.tagName)||!0===s.isContentEditable);i&&n&&!o&&this.start(t)}),n=()=>{var i,n,s;let o,r,{dragConstraints:a}=this.getProps();(0,tj.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,o=tA(i,tY(s=()=>this.scalePositionWithinConstraints())),r=tA(n,tY(s)),t=()=>{o(),r()}))},{projection:s}=this.visualElement,o=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),l.frame.read(n);let r=tr(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(h(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),i(),o(),a&&a(),t&&t()}}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){let e=!0;return()=>{if(e){e=!1;return}t()}}function tX(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let tq=t=>(e,i)=>{t&&l.frame.update(()=>t(e,i),!1,!0)},tJ={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var tZ=t.i(560140),tQ=t.i(776889),t0=t.i(821476),t1=t.i(231178),t9=t.i(104035);let t5=!1;class t8 extends tQ.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),t5&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,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,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),t5=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||l.frame.postRender(()=>
1{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),tZ.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;t5=!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 t7(t){let[e,i]=function(t=!0){let e=(0,tQ.useContext)(t0.PresenceContext);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,o=(0,tQ.useId)();(0,tQ.useEffect)(()=>{if(t)return s(o)},[t]);let r=(0,tQ.useCallback)(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,r]:[!0]}(),s=(0,tQ.useContext)(t1.LayoutGroupContext);return(0,n.jsx)(t8,{...t,layoutGroup:s,switchLayoutGroup:(0,tQ.useContext)(t9.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}var t3=t.i(570596),t2=t.i(486427),t6=t.i(535043);function t4(t){return t.props[t6.optimizedAppearDataAttribute]}var et=t.i(924463),ee=t.i(733871),ei=t.i(895051);let en=ei.cornerRadiusProps.length,es=t=>"string"==typeof t?parseFloat(t):t,eo=t=>"number"==typeof t||tl.px.test(t);function er(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ea=eh(0,.5,O.circOut),el=eh(.5,.95,r.noop);function eh(t,e,i){return n=>n<t?0:n>e?1:i((0,t_.progress)(t,e,n))}function eu(t,e){t.min=e.min,t.max=e.max}function ec(t,e){eu(t.x,e.x),eu(t.y,e.y)}function ed(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function em(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function ep(t,e,[i,n,s],o,r){!function(t,e=0,i=1,n=.5,s,o=t,r=t){if(tl.percent.test(e)&&(e=parseFloat(e),e=(0,c.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,c.mixNumber)(o.min,o.max,n);t===o&&(a-=e),t.min=em(t.min,e,i,a,s),t.max=em(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,o,r)}let ef=["x","scaleX","originX"],ey=["y","scaleY","originY"];function eg(t,e,i,n){ep(t.x,e,ef,i?i.x:void 0,n?n.x:void 0),ep(t.y,e,ey,i?i.y:void 0,n?n.y:void 0)}function ev(t){return 0===t.translate&&1===t.scale}function ex(t){return ev(t.x)&&ev(t.y)}function ew(t,e){return t.min===e.min&&t.max===e.max}function eP(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eS(t,e){return eP(t.x,e.x)&&eP(t.y,e.y)}function eT(t){return th(t.x)/th(t.y)}function eE(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eA=t.i(133887);class eb{constructor(){this.members=[]}add(t){(0,eA.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,eA.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,eA.removeItem)(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){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let eD=(t,e)=>t.depth-e.depth;class eV{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eA.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,eA.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eD),this.isDirty=!1,this.children.forEac
1h(t)}}let eC=["","X","Y","Z"],eR=0;function eL(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ej({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eR++,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,this.nodes.forEach(eB),this.nodes.forEach(eG),this.nodes.forEach(e$),this.nodes.forEach(eO)},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 eV)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t3.SubscriptionManager),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=ty(e)&&!(ty(e)&&"svg"===e.tagName),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,n=0,s=()=>this.root.updateBlockedByResize=!1;l.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,o;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=V.time.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,l.cancelFrame)(o),s(i-250))},l.frame.setup(o,!0),i=()=>(0,l.cancelFrame)(o),tJ.hasAnimatedSinceResize&&(tJ.hasAnimatedSinceResize=!1,this.nodes.forEach(eW))}})}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={...Q(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||eW(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,l.cancelFrame)(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(eK),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=t4(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",l.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}
1(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!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()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(eU),this.nodes.forEach(eI);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(eN);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e_),this.nodes.forEach(ez),this.nodes.forEach(ek),this.nodes.forEach(eM)):this.nodes.forEach(eN),this.clearAllSnapshots();let t=V.time.now();l.frameData.delta=(0,j.clamp)(0,1e3/60,t-l.frameData.timestamp),l.frameData.timestamp=t,l.frameData.isProcessing=!0,l.frameSteps.update.process(l.frameData),l.frameSteps.preRender.process(l.frameData),l.frameSteps.render.process(l.frameData),l.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tZ.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eF),this.sharedNodes.forEach(eH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,l.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){l.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||th(this.snapshot.measuredBox.x)||th(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||(this.layoutCorrected=(0,a.createBox)()),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&&!ex(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||p(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)),e0((e=n).x),e0(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,a.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(e9))){let{scroll:t}=this.root;t&&(x(e.x,t.offset.x),x(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,a.createBox)();if(ec(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&&ec(e,t),x(e.x,s.offset.x),x(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||(0,a.createBox)();ec(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(x(n.x,-i.scroll.offset.x),x(n.y,-i.scroll.offset.y)),p(i.latestValues)&&S(n,i.latestValues,i.layout?.layoutBox)}return p(this.latestValues)&&S(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=(0,a.createBox)();ec(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];p(n.latestValues)&&(n.instance&&(m(n.latestValues)&&n.updateSnapshot(),ec(i=(0,a.createBox)(),n.measurePageBox())),eg(e,n.latestValues,n.snapshot?.layoutBox,i))}return p(this.latestValues)&&eg(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!==l.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=l.frameData.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,a.createBox)(),this.targetWithTransforms=(0,a.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,h,u,c;this.forceRelativeParentToResolveTarget(),r=this.target,h=this.relativeTarget,u=this.relativeParent.target,c=this.options.layoutAnchor||void 0,td(r.x,h.x,u.x,c?.x),td(r.y,h.y,u.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ec(this.target,this.layout.layoutBox),v(this.target,this.targetDelta)):ec(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&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)}}getClosestProjectingParent(){if(!(!this.parent||m(this.parent.latestValues)||f(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return 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,a.createBox)(),this.relativeTargetOrigin=(0,a.createBox)(),tp(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),ec(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===l.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;ec(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;!function(t,e,i,n=!1){let s,o,r=i.length;if(r){e.x=e.y=1;for(let a=0;a<r;a++){o=(s=i[a]).projectionDelta;let{visualElement:r}=s.options;(!r||!r.props.style||"contents"!==r.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(x(t.x,-s.scroll.offset.x),x(t.y,-s.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,v(t,o)),n&&p(s.latestValues)&&S(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(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,a.createBox)());let{target:h}=t;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ed(this.prevProjectionDelta.x,this.projectionDelta.x),ed(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tc(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eE(this.projectionDelta.x,this.prevProjectionDelta.x)&&eE(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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,a.createDelta)(),this.projectionDelta=(0,a.createDelta)(),this.projectionDeltaWithTransform=(0,a.createDelta)()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,o=s?s.latestValues:{},r={...this.latestValues},l=(0,a.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let h=(0,a.createBox)(),u=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),m=!d||d.members.length<=1,p=!!(u&&!m&&!0===this.options.crossfade&&!this.path.some(eq));this.animationProgress=0;let f=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=f?.(i);if(s?(l.x.translate=s.x,l.x.scale=(0,c.mixNumber)(t.x.scale,1,i),l.x.origin=t.x.origin,l.x.originPoint=t.x.originPoint,l.y.translate=s.y,l.y.scale=(0,c.mixNumber)(t.y.scale,1,i),l.y.origin=t.y.origin,l.y.originPoint=t.y.originPoint):(eY(l.x,t.x,i),eY(l.y,t.y,i)),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,y,g,v,x,w;tp(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),g=this.relativeTarget,v=this.relativeTargetOrigin,x=h,w=i,eX(g.x,v.x,x.x,w),eX(g.y,v.y,x.y,w),n&&(d=this.relativeTarget,y=n,ew(d.x,y.x)&&ew(d.y,y.y))&&(this.isProjectionDirty=!1),n||(n=(0,a.createBox)()),ec(n,this.relativeTarget)}u&&(this.animationValues=r,function(t,e,i,n,s,o){s?(t.opacity=(0,c.mixNumber)(0,i.opacity??1,ea(n)),t.opacityExit=(0,c.mixNumber)(e.opacity??1,0,el(n))):o&&(t.opacity=(0,c.mixNumber)(e.opacity??1,i.opacity??1,n));for(let s=0;s<en;s++){let o=ei.cornerRadiusProps[s],r=er(e,o),a=er(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||eo(r)===eo(a)?(t[o]=Math.max((0,c.mixNumber)(es(r),es(a),n),0),(tl.percent.test(a)||tl.percent.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,c.mixNumber)(e.rotate||0,i.rotate||0,n))}(r,o,this.latestValues,i,p,m)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=r),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,l.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=l.frame.update(()=>{var e,i,n;let s;tJ.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,t2.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=(0,A.isMotionValue)(e)?e:(0,t2.motionValue)(e)).start(to("",s,i,n)),s.animation),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&&e1(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,a.createBox)();let e=th(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=th(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}ec(e,i),S(e,s),tc(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eb),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&&eL("z",t,n,this.animationValues);for(let e=0;e<eC.length;e++)eL(`rotate${eC[e]}`,t,n,this.animationValues),eL(`skew${eC[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=(0,ee.resolveMotionValue)(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=(0,ee.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!p(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,pathRotation:s,rotateX:o,rotateY:r,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),o&&(n+=`rotateX(${o}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}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,et.scaleCorrectors){if
1(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=et.scaleCorrectors[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?(0,ee.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(eI),this.root.sharedNodes.clear()}}}function ek(t){t.updateLayout()}function eM(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;if("size"===s)h(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=th(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";eu(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else e1(s,e.layoutBox,i)&&h(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],r=th(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,a.createDelta)();tc(r,i,e.layoutBox);let l=(0,a.createDelta)();o?tc(l,t.applyTransform(n,!0),e.measuredBox):tc(l,i,e.layoutBox);let u=!ex(r),c=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:o}=n;if(s&&o){let r=t.options.layoutAnchor||void 0,l=(0,a.createBox)();tp(l,e.layoutBox,s.layoutBox,r);let h=(0,a.createBox)();tp(h,i,o.layoutBox,r),eS(l,h)||(c=!0),n.options.layoutRoot&&(t.relativeTarget=h,t.relativeTargetOrigin=l,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:l,layoutDelta:r,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eB(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eO(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eF(t){t.clearSnapshot()}function eI(t){t.clearMeasurements()}function eU(t){t.isLayoutDirty=!0,t.updateLayout()}function eN(t){t.isLayoutDirty=!1}function e_(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ez(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eW(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eG(t){t.resolveTargetDelta()}function e$(t){t.calcProjection()}function eK(t){t.resetSkewAndRotation()}function eH(t){t.removeLeadSnapshot()}function eY(t,e,i){t.translate=(0,c.mixNumber)(e.translate,0,i),t.scale=(0,c.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eX(t,e,i,n){t.min=(0,c.mixNumber)(e.min,i.min,n),t.max=(0,c.mixNumber)(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]},eZ=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eQ=eZ("applewebkit/")&&!eZ("chrome/")?Math.round:r.noop;function e0(t){t.min=eQ(t.min),t.max=eQ(t.max)}function e1(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eT(e)-eT(i)))}function e9(t){return t!==t.root&&t.scroll?.wasRoot}let e5=ej({attachResizeListener:(t,e)=>tr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),e8={current:void 0},e7=ej({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!e8.current){let t=new e5({});t.mount(window),t.setOptions({layoutScroll:!0}),e8.current=t}return e8.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var e3=t.i(386579);function e2(t,e,i){let n=t.getProps();return(0,e3.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}let e6=new Set(["width","height","top","left","right","bottom",...tt.transformPropOrder]),e4=t=>Array.isArray(t);function it(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:o,transitionEnd:r,...a}=e,h=t.getDefaultTransition();o=o?Z(o,h):h;let u=o?.reduceMotion,c=o?.skipAnimations;n&&(o=n);let d=[],m=s&&t.animationState&&t.animationState.getState()[s],p=o?.path;for(let e in p&&p.animateVisualElement(t,a,o,i,d),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||m&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(m,e))continue;let r={delay:i,...Q(o||{},e)};c&&(r.skipAnimations=!0);let h=n.get();if(void 0!==h&&!n.isAnimating()&&!Array.isArray(s)&&s===h&&!r.velocity){l.frame.update(()=>n.set(s));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t4(t);if(i){let t=window.MotionHandoffAnimation(i,e,l.frame);null!==t&&(r.startTime=t,p=!0)}}b(t,e);let f=u??t.shouldReduceMotion;n.start(to(e,n,s,f&&e6.has(e)?{type:!1}:r,t,p));let y=n.animation;y&&d.push(y)}if(r){let e=()=>l.frame.update(()=>{r&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=e2(t,e)||{};for(let e in s={...s,...i}){var o;let i=e4(o=s[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,t2.motionValue)(i))}}(t,r)});d.length?Promise.all(d).then(e):e()}return d}function ie(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}
1function ii(t,e,i={}){let n=e2(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(it(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(ii(l,e,{...r,delay:i+("function"==typeof n?0:n)+ie(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 is=t.i(732525),io=t.i(706840);let ir=io.variantProps.length;var ia=t.i(885983);function il(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}let ih=[...io.variantPriorityOrder].reverse(),iu=io.variantPriorityOrder.length;function ic(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function id(){return{animate:ic(!0),whileInView:ic(),whileHover:ic(),whileTap:ic(),whileDrag:ic(),whileFocus:ic(),exit:ic()}}let im=0;function ip(t,e){let i=tg(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function iy(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&l.frame.postRender(()=>s(e,tC(e)))}let ig=(t,e)=>!!e&&(t===e||ig(t,e.parentElement)),iv=new WeakSet;function ix(t){return e=>{"Enter"===e.key&&t(e)}}function iw(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iP(t){return tV(t)&&!(ta.x||ta.y)}let iS=new WeakSet;function iT(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&&l.frame.postRender(()=>s(e,tC(e)))}let iE=new WeakMap,iA=new WeakMap,ib=t=>{let e=iE.get(t.target);e&&e(t)},iD=t=>{t.forEach(ib)},iV={some:0,all:1};var iC=t.i(203973),iR=t.i(277942),iL=t.i(172590),ij=t.i(19928);let ik=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var iM=L,iB=t.i(547507),iO=t.i(775554);let iF=new Set(["auto","none","0"]);var iI=t.i(44493);class iU extends iM.KeyframeResolver{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,ij.isCSSVariableToken)(n))){let s=function t(e,i,n=1){(0,N.invariant)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,o]=function(t){let e=ik.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let r=window.getComputedStyle(i).getPropertyValue(s);if(r){let t=r.trim();return(0,iL.isNumericalString)(t)?parseFloat(t):t}return(0,ij.isCSSVariableToken)(o)?t(o,i,n+1):o}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!e6.has(i)||2!==t.length)return;let[n,s]=t,o=(0,iR.findDimensionValueType)(n),r=(0,iR.findDimensionValueType)(s);if((0,ij.containsCSSVariable)(n)!==(0,ij.containsCSSVariable)(s)&&iI.positionalValues[i]){this.needsMeasurement=!0;return}if(o!==r)if((0,iI.isNumOrPxType)(o)&&(0,iI.isNumOrPxType)(r))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else iI.positionalValues[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||(0,iB.isZeroValueString)(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!iF.has(e)&&(0,z.analyseComplexValue)(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=(0,iO.getAnimatableNone)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=iI.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,o=i[s];i[s]=iI.positionalValues[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var iN=t.i(617218);class i_ extends iN.VisualElement{constructor(){super(...arguments),this.KeyframeResolver=iU}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,A.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var iz=t.i(793787),iW=t.i(181261);let iG=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var i$=t.i(399951);function iK(t,{style:e,vars:i},n,s){let o,r=t.style;for(o in e)r[o]=e[o];for(o in s?.applyProjectionStyles(r,n),i)r.setProperty(o,i[o])}var iH=t.i(767926);class iY extends i_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=a.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(tt.transformProps.has(e)){let t=(0,iC.getDefaultValueType)(e);return t&&t.default||0}return e=iG.has(e)?e:(0,iz.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,iH.scrapeMotionValuesFromProps)(t,e,i)}build(t,e,i){(0,iW.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in iK(t,e,void 0,n),e.attrs)t.setAttribute(iG.has(i)?i:(0,iz.camelToDash)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,i$.isSVGTag)(t.tagName),super.mount(t)}}var iX=t.i(381296),iq=t.i(544947),iJ=t.i(984049);class iZ extends i_{constructor(){super(...arguments),this.type="html",this.renderInstance=iK}readValueFromInstance(t,e){if(tt.transformProps.has(e))return this.projection?.isProjecting?(0,iX.defaultTransformValue)(e):(0,iX.readTransformValue)(t,e);{let i=window.getComputedStyle(t),n=((0,ij.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return T(t,e)}build(t,e,i){(0,iq.buildHTMLStyles)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,iJ.scrapeMotionValuesFromProps)(t,e,i)}}var iQ=t.i(944966);let i0={renderer:(t,e)=>e.isSVG??(0,iQ.isSVGComponent)(t)?new iY(e):new iZ(e,{allowProjection:t!==tQ.Fragment}),animation:{Feature:class extends o{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=>ii(t,e,i)));else if("string"==typeof e)n=ii(t,e,i);else{let s="function"==typeof e?e2(t,e,i.custom):e;n=Promise.all(it(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=id(),n=!0,s=!1,o=e=>(i,n)=>{let s=e2(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 r(r){let{props:a}=t,l=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<ir;t++){let n=io.variantProps[t],s=e.props[n];((0,is.isVariantLabel)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<iu;e++){var m,p;let f=ih[e],y=i[f],g=void 0!==a[f]?a[f]:l[f],v=(0,is.isVariantLabel)(g),x=f===r?y.isActive:null;!1===x&&(d=e);let w=g===l[f]&&g!==a[f]&&v;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===x||!g&&!y.prevProp||(0,ia.isAnimationControls)(g)||"boolean"==typeof g)continue;if("exit"===f&&y.isActive&&!0!==x){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let P=(m=y.prevProp,"string"==typeof(p=g)?p!==m:!!Array.isArray(p)&&!il(p,m)),S=P||f===r&&y.isActive&&!w&&v||e>d&&v,T=!1,E=Array.isArray(g)?g:[g],A=E.reduce(o(f),{});!1===x&&(A={});let{prevResolvedValues:b={}}=y,D={...b,...A},V=e=>{S=!0,u.has(e)&&(T=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in D){let e=A[t],i=b[t];if(!c.hasOwnProperty(t))(e4(e)&&e4(i)?!il(e,i)||P:e!==i)?null!=e?V(t):u.add(t):void 0!==e&&u.has(t)?V(t):y.protectedKeys[t]=!0}y.prevProp=g,y.prevResolvedValues=A,y.isActive&&(c={...c,...A}),(n||s)&&t.blockInitialAnimation&&(S=!1);let C=w&&P,R=!C||T;S&&R&&h.push(...E.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=e2(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=ie(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=e2(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:r,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=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=id(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,ia.isAnimationControls)(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 o{constructor(){super(...arguments),this.id=im++,this.isExitComplete=!1}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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=e2(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,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 o{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:r}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof o?o:iV[o]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!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(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;iA.has(i)||iA.set(i,{});let n=iA.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(iD,{root:t,...e})),n[s]}(a),iE.set(t,l),e.observe(t),()=>{iE.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends o{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,o]=ip(t,i),r=t=>{let n=t.currentTarget;if(!iP(t)||iS.has(t))return;iv.add(n),i.stopPropagation&&iS.add(t);let o=e(n,t),r={...s,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,r),window.removeEventListener("pointercancel",h,r),iv.has(n)&&iv.delete(n),iP(t)&&"function"==typeof o&&o(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||ig(n,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",h,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),tf(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=ix(()=>{if(iv.has(i))return;iw(i,"down");let t=ix(()=>{iw(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iw(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),tb.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(iT(this.node,e,"Start"),(t,{success:e})=>iT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends o{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,tk.pipe)(tr(this.node.current,"focus",()=>this.onFocus()),tr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends o{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=ip(t,i);return n.forEach(t=>{let i,n=!1,o=!1,r=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{if("touch"!==t.pointerType){if(n){o=!0;return}r(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||ta.x||ta.y)return;o=!1;let r=e(t,n);"function"==typeof r&&(i=r,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),o}(t,(t,e)=>(iy(this.node,e,"Start"),t=>iy(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends o{constructor(){super(...arguments),this.removePointerDownListener=r.noop}onPointerDown(t){this.session=new tO(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:tq(t),onStart:tq(e),onMove:tq(i),onEnd:(t,e)=>{delete this.session,n&&l.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tR(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 o{constructor(t){super(t),this.removeGroupControls=r.noop,this.removeListeners=r.noop,this.controls=new tH(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:e7,MeasureLayout:t7},layout:{ProjectionNode:e7,MeasureLayout:t7}};var i1=t.i(648070),i9=t.i(513565);function i5({children:t,features:e,strict:i=!1}){let[,s]=(0,tQ.useState)(!i8(e)),o=(0,tQ.useRef)(void 0);if(!i8(e)){let{renderer:t,...i}=e;o.current=t,(0,i9.loadFeatures)(i)}return(0,tQ.useEffect)(()=>
1{i8(e)&&e().then(({renderer:t,...e})=>{(0,i9.loadFeatures)(e),o.current=t,s(!0)})},[]),(0,n.jsx)(i1.LazyContext.Provider,{value:{renderer:o.current,strict:i},children:t})}function i8(t){return"function"==typeof t}t.s(["default",0,function(t){let e,i=(0,s.c)(2),{children:o}=t;return i[0]!==o?(e=(0,n.jsx)(i5,{features:i0,children:o}),i[0]=o,i[1]=e):e=i[1],e}],206541)},954997,t=>{"use strict";var e=t.i(871803),i=t.i(615889),n=t.i(776889),s=t.i(572169),o=t.i(991732);function r(){(0,n.startTransition)(a)}function a(){(0,o.gtmConsentEvent)({consent:o.CONSENT_DEFAULT})}t.s(["default",0,function(t){let o,a,l=(0,i.c)(3),{analyticsId:h}=t;l[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],l[0]=o):o=l[0],(0,n.useEffect)(r,o);let u=`https://www.googletagmanager.com/gtm.js?id=${h}`;return l[1]!==u?(a=(0,e.jsx)(s.default,{src:u,strategy:"afterInteractive"}),l[1]=u,l[2]=a):a=l[2],a}])},152469,t=>{"use strict";var e=t.i(871803),i=t.i(615889),n=t.i(776889);let s=(0,n.lazy)(()=>t.A(436709)),o=(0,n.memo)(function(){let t,o,r=(0,i.c)(2);r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,e.jsx)(s,{}),r[0]=t):t=r[0];let a=t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,e.jsx)(n.Suspense,{children:a}),r[1]=o):o=r[1],o}),r=(0,n.lazy)(()=>t.A(916135)),a=(0,n.memo)(function(){let t,s,o=(0,i.c)(2);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,e.jsx)(r,{}),o[0]=t):t=o[0];let a=t;return o[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,e.jsx)(n.Suspense,{children:a}),o[1]=s):s=o[1],s});t.s(["default",0,function(t){let n,s,r,l=(0,i.c)(7),{disableRadio:h,disableVideo:u}=t;return l[0]!==u?(n=!u&&(0,e.jsx)(a,{}),l[0]=u,l[1]=n):n=l[1],l[2]!==h?(s=!h&&(0,e.jsx)(o,{}),l[2]=h,l[3]=s):s=l[3],l[4]!==n||l[5]!==s?(r=(0,e.jsxs)(e.Fragment,{children:[n,s]}),l[4]=n,l[5]=s,l[6]=r):r=l[6],r}],152469)},99441,t=>{"use strict";var e=t.i(615889),i=t.i(776889),n=t.i(716915),s=t.i(625774),o=t.i(991732),r=t.i(744051),a=t.i(419031),l=t.i(261374),h=t.i(50313),u=t.i(134344);function c(){return window.addEventListener("pageshow",d),()=>window.removeEventListener("pageshow",d)}function d(t){t.persisted&&n.default.done()}function m(){(0,h.resetSequenceOrder)(),googletag?.destroySlots()}function p(){window.location.hash||setTimeout(f,0)}function f(){return window.scroll(0,0)}function y(t){return t.increaseSpaPageCount}function g(t){return!!t.featureFlag?.emergencyFlag}function v(t){return t.device}function x(t){return t.contentType}function w(t){return t.setScriptLoaded}function P(t){return t.currentPath}function S(t){return t.setCurrentPath}function T(t){return t.setCurrentPathLoaded}let E=(0,i.memo)(function(){let t,h,d,f,E,A,b,D=(0,e.c)(19),V=(0,s.usePathname)(),C=(0,u.default)(T),R=(0,u.default)(S),L=(0,u.default)(P)||"/",j=(0,u.default)(w),k=(0,u.default)(x),M=(0,u.default)(v),B=(0,u.default)(g),O=(0,u.default)(y),F=(0,i.useRef)(!1);return D[0]!==M?(t=()=>{M===l.MOBILE&&p()},D[0]=M,D[1]=t):t=D[1],D[2]!==M||D[3]!==V?(h=[V,M,p],D[2]=M,D[3]=V,D[4]=h):h=D[4],(0,i.useEffect)(t,h),D[5]!==k||D[6]!==L||D[7]!==B||D[8]!==V||D[9]!==R||D[10]!==j?(d=()=>{V===L||F.current||(F.current=!0,k!==r.ContentTypes.VIDEO&&j("gptStarted",!1),window.googletag?.apiReady&&googletag.cmd.push(m),window._taboola&&window._taboola_containers&&window._taboola_containers.length>0&&(window._taboola.push({notify:"newPageLoad"}),window._taboola_containers=[]),(0,o.resetDataLayer)(),B&&(0,o.triggerEvent)({[a.EMERGENCY_MODE_DATA_LAYER_KEY]:!0}),R(V))},f=[V,k,L,B,R,j],D[5]=k,D[6]=L,D[7]=B,D[8]=V,D[9]=R,D[10]=j,D[11]=d,D[12]=f):(d=D[11],f=D[12]),(0,i.useEffect)(d,f),D[13]!==O||D[14]!==V||D[15]!==C?(E=()=>{F.current=!1,n.default.done(),C(V),O()},A=[O,V,C],D[13]=O,D[14]=V,D[15]=C,D[16]=E,D[17]=A):(E=D[16],A=D[17]),(0,i.useEffect)(E,A),D[18]===Symbol.for("react.memo_cache_sentinel")?(b=[],D[18]=b):b=D[18],(0,i.useEffect)(c,b),null});t.s(["default",0,E])},972343,t=>{"use strict";var e=t.i(871803),i=t.i(615889),n=t.i(867585),s=t.i(145003),o=t.i(
1776889),r=t.i(573500),a=t.i(668174),l=t.i(680241);async function h(t,e,i){let n,s=e?.userLocation||l.US,o=e?.url||e?.optionalCacheKey||i||"",r=a.default.env.GRAPHQL_SERVER_URL||"https://prod-fullevo-graphql.univision.com/graphql",h=await fetch(`${r}?cacheKey=${o}&userLocation=${s}`,{body:JSON.stringify({extensions:{persistedQuery:{sha256Hash:t?.id,version:1}},variables:e}),cache:"no-store",headers:{"Accept-Encoding":"gzip, deflate, br","content-type":"application/json"},method:"POST"});try{n=await h?.json()}catch(t){return console.log("Fetch Error",t),null}return n}let u=new s.QueryResponseCache({size:100,ttl:5e3});function c(){async function t(t,e,i){let n="query"===t.operationKind,s=t.id??t.cacheID,o=i?.force&&!(0,r.default)();if(null!=u&&n&&!o){let t=u.get(s,e);if(null!=t)return Promise.resolve(t)}return h(t,e)}let e=s.Network.create(t);return e.responseCache=u,e}let d=function(){if((0,r.default)())return null;let t=c(),e=new s.Environment({isServer:!1,network:t,store:new s.Store(new s.RecordSource)});return e.getNetwork().responseCache=t.responseCache,e}();(0,o.cache)(()=>{let t=c(),e=new s.Environment({isServer:!0,network:t,store:new s.Store(new s.RecordSource)});return e.getNetwork().responseCache=t.responseCache,e}),t.s(["default",0,function(t){let s,o=(0,i.c)(2),{children:r}=t;return o[0]!==r?(s=(0,e.jsx)(n.RelayEnvironmentProvider,{environment:d,children:r}),o[0]=r,o[1]=s):s=o[1],s}],972343)}]);

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.