PageSourceSearch

https://instatus.com/_next/static/immutable/chunks/39_wpgz6xrpx7.js

js instatus.com collected 2026-09-24 08:37:09 UTC 59,667 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,665536,451794,t=>{"use strict";let e=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function i(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,e],451794),t.s(["addPointerInfo",0,t=>s=>e(s)&&t(s,i(s)),"extractEventInfo",0,i],665536)},99642,980164,t=>{"use strict";var e=t.i(61951),i=t.i(39930),s=t.i(323890);class n extends e.Feature{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,s.pipe)((0,i.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,i.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",0,n],99642);let o=(t,e)=>!!e&&(t===e||o(t,e.parentElement));t.s(["isNodeOrChild",0,o],980164)},957512,t=>{"use strict";var e=t.i(61951),i=t.i(303670),s=t.i(44820),n=t.i(665536);function o(t,e,i){let{props:o}=t;t.animationState&&o.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=o["onHover"+i];r&&s.frame.postRender(()=>r(e,(0,n.extractEventInfo)(e)))}class r extends e.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=(0,i.hover)(t,(t,e)=>(o(this.node,e,"Start"),t=>o(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",0,r])},223070,61951,t=>{"use strict";class e{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",0,e],61951);var i=t.i(30131),s=t.i(751918);function n(t,e,i,s=0,o=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,l=(a-1)*s;return"function"==typeof i?i(r,a):1===o?r*s:l-r*s}function o(t,e,r={}){let a=(0,i.resolveVariant)(t,e,"exit"===r.type?t.presenceContext?.custom:void 0),{transition:l=t.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(l=r.transitionOverride);let h=a?()=>Promise.all((0,s.animateTarget)(t,a,r)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:h}=l;return function(t,e,i=0,s=0,r=0,a=1,l){let h=[];for(let u of t.variantChildren)u.notify("AnimationStart",e),h.push(o(u,e,{...l,delay:i+("function"==typeof s?0:s)+n(t.variantChildren,u,s,r,a)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(h)}(t,e,i,s,a,h,r)}:()=>Promise.resolve(),{when:c}=l;if(!c)return Promise.all([h(),u(r.delay)]);{let[t,e]="beforeChildren"===c?[h,u]:[u,h];return t().then(()=>e())}}var r=t.i(85866),a=t.i(996731);let l=a.variantProps.length;var h=t.i(657449),u=t.i(214806);function c(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let d=[...a.variantPriorityOrder].reverse(),m=a.variantPriorityOrder.length;function p(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function v(){return{animate:p(!0),whileInView:p(),whileHover:p(),whileTap:p(),whileDrag:p(),whileFocus:p(),exit:p()}}let f=0;t.s(["animations",0,{animation:{Feature:class extends e{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>o(t,e,n)));else if("string"==typeof e)r=o(t,e,n);else{let o="function"==typeof e?(0,i.resolveVariant)(t,e,n.custom):e;r=Promise.all((0,s.animateTarget)(t,o,n))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),p=v(),f=!0,y=!1,g=e=>(s,n)=>{let o=(0,i.resolveVariant)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(o){let{transition:t,transitionEnd:e,...i}=o;s={...s,...i,...e}}return s};function x(s){let{props:o}=t,v=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<l;t++){let s=a.variantProps[t],n=e.props[s];((0,r.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},x=[],P=new Set,T={},E=1/0;for(let e=0;e<m;e++){var D,w;let a=d[e],l=p[a],m=void 0!==o[a]?o[a]:v[a],A=(0,r.isVariantLabel)(m),S=a===s?l.isActive:null;!1===S&&(E=e);let L=m===v[a]&&m!==o[a]&&A;if(L&&(f||y)&&t.manuallyAnimateOnMount&&(L=!1),l.protectedKeys={...T},!l.isActive&&null===S||!m&&!l.prevProp||(0,h.isAnimationControls)(m)||"boolean"==typeof m)continue;if("exit"===a&&l.isActive&&!0!==S){l.prevResolvedValues&&(T={...T,...l.prevResolvedValues});continue}let V=(D=l.prevProp,"string"==typeof(w=m)?w!==D:!!Array.isArray(w)&&!c(w,D)),b=V||a===s&&l.isActive&&!L&&A||e>E&&A,B=!1,R=Array.isArray(m)?m:[m],C=R.reduce(g(a),{});!1===S&&(C={});let{prevResolvedValues:j={}}=l,M={...j,...C},k=e=>{b=!0,P.has(e)&&(B=!0,P.delete(e)),l.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in M){let e=C[t],i=j[t];if(!T.hasOwnProperty(t))((0,u.isKeyframesTarget)(e)&&(0,u.isKeyframesTarget)(i)?c(e,i):e===i)?void 0!==e&&P.has(t)?k(t):l.protectedKeys[t]=!0:null!=e?k(t):P.add(t)}l.prevProp=m,l.prevResolvedValues=C,l.isActive&&(T={...T,...C}),(f||y)&&t.blockInitialAnimation&&(b=!1);let F=L&&V,I=!F||B;b&&I&&x.push(...R.map(e=>{let s={type:a};if("string"==typeof e&&(f||y)&&!F&&t.manuallyAnimateOnMount&&t.parent){let{parent:o}=t,r=(0,i.resolveVariant)(o,e);if(o.enteringChildren&&r){let{delayChildren:e}=r.transition||{};s.delay=n(o.enteringChildren,t,e)}}return{animation:e,options:s}}))}if(P.size){let e={};if("boolean"!=typeof o.initial){let s=(0,i.resolveVariant)(t,Array.isArray(o.initial)?o.initial[0]:o.initial);s&&s.transition&&(e.transition=s.transition)}P.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),x.push({animation:e})}let A=!!x.length;return f&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(A=!1),f=!1,y=!1,A?e(x):Promise.resolve()}return{animateChanges:x,setActive:function(e,i){if(p[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),p[e].isActive=i;let s=x(e);for(let t in p)p[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>p,reset:()=>{p=v(),y=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,h.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 e{constructor(){super(...arguments),this.id=f++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&!1===s){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let s=(0,i.resolveVariant)(this.node,t,e);if(s){let{transition:t,transitionEnd:e,...i}=s;for(let t in i)this.node.getValue(t)?.jump(i[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(){}}}}],223070)},708149,t=>{"use strict";var e=t.i(957512),i=t.i(99642),s=t.i(61951),n=t.i(503154),o=t.i(602611),r=t.i(980164),a=t.i(451794),l=t.i(986685),h=t.i(740695);let u=new WeakSet;function c(t){return e=>{"Enter"===e.key&&t(e)}}function d(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function m(t){return(0,a.isPrimaryPointer)(t)&&!(0,o.isDragActive)()}let p=new WeakSet;var v=t.i(44820),f=t.i(665536);function y(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&v.frame.postRender(()=>n(e,(0,f.extractEventInfo)(e)))}class g extends s.Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,o,a]=(0,l.setupGesture)(t,i),v=t=>{let s=t.currentTarget;if(!m(t)||p.has(t))return;u.add(s),i.stopPropagation&&p.add(t);let n=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",h),u.has(s)&&u.delete(s),m(t)&&"function"==typeof n&&n(t,{success:e})},l=t=>{a(t,s===window||s===document||i.useGlobalTarget||(0,r.isNodeOrChild)(s,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",v,o),(0,n.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=c(()=>{if(u.has(i))return;d(i,"down");let t=c(()=>{d(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>d(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,o)),(0,h.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(y(this.node,e,"Start"),(t,{success:e})=>y(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}var x=s;let P=new WeakMap,T=new WeakMap,E=t=>{let e=P.get(t.target);e&&e(t)},D=t=>{t.forEach(E)},w={some:0,all:1};class A extends x.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:r}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:w[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:s}=this.node.getProps(),n=e?i:s;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;T.has(i)||T.set(i,{});let s=T.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(D,{root:t,...e})),s[n]}(a),P.set(t,l),e.observe(t),()=>{P.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}}let S={inView:{Feature:A},tap:{Feature:g},focus:{Feature:i.FocusGesture},hover:{Feature:e.HoverGesture}};t.s(["gestureAnimations",0,S],708149)},846932,t=>{"use strict";var e=t.i(154505),i=t.i(907051),s=t.i(223070),n=t.i(61951),o=t.i(344046),r=t.i(546010),a=t.i(44820);function l(t){return[t("x"),t("y")]}var h=t.i(195063),u=t.i(81990),c=t.i(372017),d=t.i(219542),m=t.i(128924),p=t.i(39930),v=t.i(602611),f=t.i(434195);function y(t){return t.max-t.min}function g(t,e,i,s=.5){t.origin=s,t.originPoint=(0,m.mixNumber)(e.min,e.max,t.origin),t.scale=y(i)/y(e),t.translate=(0,m.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 x(t,e,i,s){g(t.x,e.x,i.x,s?s.originX:void 0),g(t.y,e.y,i.y,s?s.originY:void 0)}function P(t,e,i,s=0){t.min=(s?(0,m.mixNumber)(i.min,i.max,s):i.min)+e.min,t.max=t.min+y(e)}function T(t,e,i,s=0){let n=s?(0,m.mixNumber)(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+y(e)}function E(t,e,i,s){T(t.x,e.x,i.x,s?.x),T(t.y,e.y,i.y,s?.y)}var D=t.i(368455),w=t.i(740695),A=t.i(591069),S=t.i(665536);function L(t,e,i,s){return(0,p.addDomEvent)(t,e,(0,S.addPointerInfo)(i),s)}let V=({current:t})=>t?t.ownerDocument.defaultView:null;var b=t.i(325522),B=t.i(451794),R=t.i(323890),C=t.i(742522);let j=(t,e)=>Math.abs(t-e),M=new Set(["auto","scroll"]);class k{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!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=F(this.lastRawMoveEventInfo,this.transformPagePoint));let i=O(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(j(t.x,e.x)**2+j(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:o}=i,{timestamp:r}=a.frameData;this.history.push({...o,timestamp:r});let{onStart:l,onMove:h}=this.handlers;s||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=F(e,this.transformPagePoint),a.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=O("pointercancel"===t.type?this.lastMoveEventInfo:F(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!(0,B.isPrimaryPointer)(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const l=F((0,S.extractEventInfo)(t),this.transformPagePoint),{point:h}=l,{timestamp:u}=a.frameData;this.history=[{...h,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,O(l,this.history)),this.removeListeners=(0,R.pipe)(L(this.contextWindow,"pointermove",this.handlePointerMove),L(this.contextWindow,"pointerup",this.handlePointerUp),L(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(M.has(t.overflowX)||M.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,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),a.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,a.cancelFrame)(this.updatePoint)}}function F(t,e){return e?{point:e(t.point)}:t}function I(t,e){return{x:t.x-e.x,y:t.y-e.y}}function O({point:t},e){return{point:t,delta:I(t,U(e)),offset:I(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=U(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,C.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>
12*(0,C.secondsToMilliseconds)(.1)&&(i=t[1]);let n=(0,C.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let o={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function U(t){return t[t.length-1]}var N=t.i(456642),G=t.i(633371);function W(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 z(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function H(t,e,i){return{min:$(t,e),max:$(t,i)}}function $(t,e){return"number"==typeof t?t:t[e]||0}let X=new WeakMap;class Y{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,r.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor((0,S.extractEventInfo)(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(v.isDragging[t])return null;else return v.isDragging[t]=!0,()=>{v.isDragging[t]=!1};return v.isDragging.x||v.isDragging.y?null:(v.isDragging.x=v.isDragging.y=!0,()=>{v.isDragging.x=v.isDragging.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),l(t=>{let e=this.getAxisMotionValue(t).get()||0;if(f.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=y(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&a.frame.update(()=>n(t,e),!1,!0),(0,c.addValueToWillChange)(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:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&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&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&a.frame.update(()=>o(t,e),!1,!0)},h=(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:d}=this.getProps();this.panSession=new k(t,{onSessionStart:n,onStart:o,onMove:r,onSessionEnd:h,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:i,contextWindow:V(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:o}=s;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&a.frame.postRender(()=>r(i,s))}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:s}=this.getProps();if(!i||!q(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,m.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,m.mixNumber)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.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,s=this.constraints;t&&(0,b.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:W(t.x,i,n),y:W(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:H(t,"left","right"),y:H(t,"top","bottom")}}(e),s!==this.constraints&&!(0,b.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&l(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,b.isRefObject)(e))return!1;let s=e.current;(0,A.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=(0,h.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),r=(t=n.layout.layoutBox,{x:z(t.x,o.x),y:z(t.y,o.y)});if(i){let t=i((0,u.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,u.convertBoundingBoxToBox)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(l(r=>{if(!q(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:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,c.addValueToWillChange)(this.visualElement,t),i.start((0,d.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){l(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){l(e=>{let{drag:i}=this.getProps();if(!q(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e],r=n.get()||0;n.set(t[e]-(0,m.mixNumber)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,b.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};l(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let o,r,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],o=.5,r=y(i),(a=y(n))>r?o=(0,N.progress)(n.min,n.max-r,i.min):r>a&&(o=(0,N.progress)(i.min,i.max-a,n.min)),(0,G.clamp)(0,1,o))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),l(e=>{if(!q(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,m.mixNumber)(n,o,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;X.set(this.visualElement,this);let e=this.visualElement.current,i=L(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),n=t.target,o=n!==e&&(0,w.isElementTextInput)(n);i&&s&&!o&&this.start(t)}),s=()=>{var i,s,n;let o,r,{dragConstraints:a}=this.getProps();(0,b.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,n=()=>this.scalePositionWithinConstraints(),o=(0,D.resize)(i,K(n)),r=(0,D.resize)(s,K(n)),t=()=>{o(),r()}))},{projection:n}=this.visualElement,o=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),a.frame.read(s);let r=(0,p.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),h=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(l(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(),h&&h(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:o,dragMomentum:r}}}function K(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function q(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class Z extends n.Feature{constructor(t){super(t),this.removeGroupControls=o.noop,this.removeListeners=o.noop,this.controls=new Y(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.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()}}var J=n;let _=t=>(e,i)=>{t&&a.frame.update(()=>t(e,i),!1,!0)};class Q extends J.Feature{constructor(){super(...arguments),this.removePointerDownListener=o.noop}onPointerDown(t){this.session=new k(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:V(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:_(t),onStart:_(e),onMove:_(i),onEnd:(t,e)=>{delete this.session,s&&a.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=L(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tt=t.i(843476);let te={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ti=t.i(670398),ts=t.i(271645),tn=t.i(464978),to=t.i(231178),tr=t.i(104035);let ta=!1;class tl extends ts.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),ta&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),te.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:o}=i;return o&&(o.isPresent=n,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),ta=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?o.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?o.promote():o.relegate()||a.frame.postRender(()=>{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(),ti.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;ta=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function th(t){let[e,i]=(0,tn.usePresence)(),s=(0,ts.useContext)(to.LayoutGroupContext);return(0,tt.jsx)(tl,{...t,layoutGroup:s,switchLayoutGroup:(0,ts.useContext)(tr.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}var tu=t.i(116618),tc=t.i(562233),td=t.i(641152),tm=t.i(366141),tp=t.i(140265),tv=t.i(665210),tf=t.i(586499),ty=t.i(839921),tg=t.i(311734),tx=t.i(639202),tP=t.i(957907),tT=t.i(211228),tE=t.i(143362);let tD=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],tw=tD.length,tA=t=>"string"==typeof t?parseFloat(t):t,tS=t=>"number"==typeof t||f.px.test(t);function tL(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tV=tB(0,.5,tE.circOut),tb=tB(.5,.95,o.noop);function tB(t,e,i){return s=>s<t?0:s>e?1:i((0,N.progress)(t,e,s))}function tR(t,e){t.min=e.min,t.max=e.max}function tC(t,e){tR(t.x,e.x),tR(t.y,e.y)}function tj(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tM=t.i(412393);function tk(t,e,i,s,n){return t-=e,t=(0,tM.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,tM.scalePoint)(t,1/n,s)),t}function tF(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(f.percent.test(e)&&(e=parseFloat(e),e=(0,m.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,m.mixNumber)(o.min,o.max,s);t===o&&(a-=e),t.min=tk(t.min,e,i,a,n),t.max=tk(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let tI=["x","scaleX","originX"],tO=["y","scaleY","originY"];function tU(t,e,i,s){tF(t.x,e,tI,i?i.x:void 0,s?s.x:void 0),tF(t.y,e,tO,i?i.y:void 0,s?s.y:void 0)}function tN(t){return 0===t.translate&&1===t.scale}function tG(t){return tN(t.x)&&tN(t.y)}function tW(t,e){return t.min===e.min&&t.max===e.max}function tz(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tH(t,e){return tz(t.x,e.x)&&tz(t.y,e.y)}function t$(t){return y(t.x)/y(t.y)}function tX(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var tY=t.i(546735);class tK{constructor(){this.members=[]}add(t){(0,tY.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 s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,tY.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,tY.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)}
1}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:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(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 tq=(t,e)=>t.depth-e.depth;class tZ{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tY.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,tY.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tq),this.isDirty=!1,this.children.forEach(t)}}var tJ=t.i(96021);let t_={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tQ=["","X","Y","Z"],t0=0;function t1(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function t6({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=t0++,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,ty.statsBuffer.value&&(t_.nodes=t_.calculatedTargetDeltas=t_.calculatedProjections=0),this.nodes.forEach(t4),this.nodes.forEach(en),this.nodes.forEach(eo),this.nodes.forEach(t3),ty.statsBuffer.addProjectionMetrics&&ty.statsBuffer.addProjectionMetrics(t_)},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 tZ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tu.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=(0,tg.isSVGElement)(e)&&!(0,tx.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;a.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,o;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=tp.time.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,a.cancelFrame)(o),n())},a.frame.setup(o,!0),i=()=>(0,a.cancelFrame)(o),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(es))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||n.getDefaultTransition()||ec,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!tH(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,tm.getValueTransition)(o,"layout"),onPlay:r,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||es(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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,a.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.forEac
1h(er),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 s=(0,td.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",a.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(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(t8),this.nodes.forEach(t7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(et);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ee),this.nodes.forEach(ei),this.nodes.forEach(t5),this.nodes.forEach(t9)):this.nodes.forEach(et),this.clearAllSnapshots();let t=tp.time.now();a.frameData.delta=(0,G.clamp)(0,1e3/60,t-a.frameData.timestamp),a.frameData.timestamp=t,a.frameData.isProcessing=!0,a.frameSteps.update.process(a.frameData),a.frameSteps.preRender.process(a.frameData),a.frameSteps.render.process(a.frameData),a.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ti.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t2),this.sharedNodes.forEach(ea)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,a.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){a.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||y(this.snapshot.measuredBox.x)||y(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,r.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=s(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tG(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tJ.hasTransform)(this.latestValues)||o)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),ep((e=s).x),ep(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,r.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ef))){let{scroll:t}=this.root;t&&((0,tM.translateAxis)(e.x,t.offset.x),(0,tM.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,r.createBox)();if(tC(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&tC(e,t),(0,tM.translateAxis)(e.x,n.offset.x),(0,tM.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||(0,r.createBox)();tC(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,tM.translateAxis)(s.x,-i.scroll.offset.x),(0,tM.translateAxis)(s.y,-i.scroll.offset.y)),(0,tJ.hasTransform)(i.latestValues)&&(0,tM.transformBox)(s,i.latestValues,i.layout?.layoutBox)}return(0,tJ.hasTransform)(this.latestValues)&&(0,tM.transformBox)(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=(0,r.createBox)();tC(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];(0,tJ.hasTransform)(s.latestValues)&&(s.instance&&((0,tJ.hasScale)(s.latestValues)&&s.updateSnapshot(),tC(i=(0,r.createBox)(),s.measurePageBox())),tU(e,s.latestValues,s.snapshot?.layoutBox,i))}return(0,tJ.hasTransform)(this.latestValues)&&tU(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!==a.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:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=a.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,r.createBox)(),this.targetWithTransforms=(0,r.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var l,h,u,c;this.forceRelativeParentToResolveTarget(),l=this.target,h=this.relativeTarget,u=this.relativeParent.target,c=this.options.layoutAnchor||void 0,P(l.x,h.x,u.x,c?.x),P(l.y,h.y,u.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):tC(this.target,this.layout.layoutBox),(0,tM.applyBoxDelta)(this.target,this.targetDelta)):tC(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),ty.statsBuffer.value&&t_.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,tJ.hasScale)(this.parent.latestValues)||(0,tJ.has2DTranslate)(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,r.createBox)(),this.relativeTargetOrigin=(0,r.createBox)(),E(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),tC(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===a.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;tC(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,l=this.treeScale.y;(0,tM.applyTreeDeltas)(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,r.createBox)());let{target:h}=t;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tj(this.prevProjectionDelta.x,this.projectionDelta.x),tj(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),x(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===o&&this.treeScale.y===l&&tX(this.projectionDelta.x,this.prevProjectionDelta.x)&&tX(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),ty.statsBuffer.value&&t_.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,r.createDelta)(),this.projectionDelta=(0,r.createDelta)(),this.projectionDeltaWithTransform=(0,r.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},a=(0,r.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,r.createBox)(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(h&&!c&&!0===this.options.crossfade&&!this.path.some(eu));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(el(a.x,t.x,s),el(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,v,y,g,x;E(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),v=this.relativeTarget,y=this.relativeTargetOrigin,g=l,x=s,eh(v.x,y.x,g.x,x),eh(v.y,y.y,g.y,x),i&&(u=this.relativeTarget,p=i,tW(u.x,p.x)&&tW(u.y,p.y))&&(this.isProjectionDirty=!1),i||(i=(0,r.createBox)()),tC(i,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,m.mixNumber)(0,i.opacity??1,tV(s)),t.opacityExit=(0,m.mixNumber)(e.opacity??1,0,tb(s))):o&&(t.opacity=(0,m.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<tw;n++){let o=tD[n],r=tL(e,o),a=tL(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||tS(r)===tS(a)?(t[o]=Math.max((0,m.mixNumber)(tA(r),tA(a),s),0),(f.percent.test(a)||f.percent.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,m.mixNumber)(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,s,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,a.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=a.frame.update(()=>{te.hasAnimatedSinceResize=!0,tf.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,tP.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,tc.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tf.activeAnimations.layout--},onComplete:()=>{tf.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&ev(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,r.createBox)();let e=y(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=y(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tC(e,i),(0,tM.transformBox)(e,n),x(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tK),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 s=this.getStack();s&&s.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 s={};i.z&&t1("z",t,s,this.animationValues);for(let e=0;e<tQ.length;e++)t1(`rotate${tQ[e]}`,t,s,this.animationValues),t1(`skew${tQ[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[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,tT.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,tT.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,tJ.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:o,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),r&&(s+=`skewX(${r}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(o=i(n,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tv.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=tv.scaleCorrectors[e],l="none"===o?n[e]:i(n[e],s);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=s===this?(0,tT.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(t7),this.root.sharedNodes.clear()}}}function t5(t){t.updateLayout()}function t9(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;if("size"===n)l(t=>{let s=o?e.measuredBox[t]:e.layoutBox[t],n=y(s);s.min=i[t].min,s.max=s.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";tR(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else ev(n,e.layoutBox,i)&&l(s=>{let n=o?e.measuredBox[s]:e.layoutBox[s],r=y(i[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let a=(0,r.createDelta)();x(a,i,e.layoutBox);let h=(0,r.createDelta)();o?x(h,t.applyTransform(s,!0),e.measuredBox):x(h,i,e.layoutBox);let u=!tG(a),c=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let a=t.options.layoutAnchor||void 0,l=(0,r.createBox)();E(l,e.layoutBox,n.layoutBox,a);let h=(0,r.createBox)();E(h,i,o.layoutBox,a),tH(l,h)||(c=!0),s.options.layoutRoot&&(t.relativeTarget=h,t.relativeTargetOrigin=l,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:h,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function t4(t){ty.statsBuffer.value&&t_.nodes++,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 t3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function t2(t){t.clearSnapshot()}function t7(t){t.clearMeasurements()}function t8(t){t.isLayoutDirty=!0,t.updateLayout()}function et(t){t.isLayoutDirty=!1}function ee(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ei(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function es(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function en(t){t.resolveTargetDelta()}function eo(t){t.calcProjection()}function er(t){t.resetSkewAndRotation()}function ea(t){t.removeLeadSnapshot()}function el(t,e,i){t.translate=(0,m.mixNumber)(e.translate,0,i),t.scale=(0,m.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eh(t,e,i,s){t.min=(0,m.mixNumber)(e.min,i.min,s),t.max=(0,m.mixNumber)(e.max,i.max,s)}function eu(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ec={duration:.45,ease:[.4,0,.1,1]},ed=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),em=ed("applewebkit/")&&!ed("chrome/")?Math.round:o.noop;function ep(t){t.min=em(t.min),t.max=em(t.max)}function ev(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t$(e)-t$(i)))}function ef(t){return t!==t.root&&t.scroll?.wasRoot}let ey=t6({attachResizeListener:(t,e)=>(0,p.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),eg={current:void 0},ex=t6({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eg.current){let t=new ey({});t.mount(window),t.setOptions({layoutScroll:!0}),eg.current=t}return eg.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var eP=t.i(708149);let eT={...s.animations,...eP.gestureAnimations,pan:{Feature:Q},drag:{Feature:Z,ProjectionNode:ex,MeasureLayout:th},layout:{ProjectionNode:ex,MeasureLayout:th}},eE=(0,i.createMotionProxy)(eT,e.createDomVisualElement);t.s(["motion",0,eE],846932)},154505,t=>{"use strict";var e=t.i(994567),i=t.i(423987),s=t.i(271645),n=t.i(944966);t.s(["createDomVisualElement",0,(t,o)=>o.isSVG??(0,n.isSVGComponent)(t)?new e.SVGVisualElement(o):new i.HTMLVisualElement(o,{allowProjection:t!==s.Fragment})])},39930,t=>{"use strict";
1t.s(["addDomEvent",0,function(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}])},602611,t=>{"use strict";let e={x:!1,y:!1};t.s(["isDragActive",0,function(){return e.x||e.y},"isDragging",0,e])},303670,986685,t=>{"use strict";var e=t.i(602611),i=t.i(129463);function s(t,e){let s=(0,i.resolveElements)(t),n=new AbortController;return[s,{passive:!0,...e,signal:n.signal},()=>n.abort()]}t.s(["setupGesture",0,s],986685),t.s(["hover",0,function(t,i,n={}){let[o,r,a]=s(t,n);return o.forEach(t=>{let s,n=!1,o=!1,a=e=>{s&&(s(e),s=void 0),t.removeEventListener("pointerleave",h)},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),o&&(o=!1,a(t))},h=t=>{if("touch"!==t.pointerType){if(n){o=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,e.isDragActive)())return;o=!1;let a=i(t,n);"function"==typeof a&&(s=a,t.addEventListener("pointerleave",h,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),a}],303670)},740695,t=>{"use strict";let e=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),i=new Set(["INPUT","SELECT","TEXTAREA"]);t.s(["isElementKeyboardAccessible",0,function(t){return e.has(t.tagName)||!0===t.isContentEditable},"isElementTextInput",0,function(t){return i.has(t.tagName)||!0===t.isContentEditable}])}]);

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.