1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55559,37541,52101,t=>{"use strict";t.s(["eachAxis",0,function(t){return[t("x"),t("y")]}],55559);var e=t.i(39676);t.s(["setDragLock",0,function(t){if("x"===t||"y"===t)if(e.isDragging[t])return null;else return e.isDragging[t]=!0,()=>{e.isDragging[t]=!1};return e.isDragging.x||e.isDragging.y?null:(e.isDragging.x=e.isDragging.y=!0,()=>{e.isDragging.x=e.isDragging.y=!1})}],37541);var i=t.i(706);function s(t){return t.max-t.min}function o(t,e,n,r=.5){t.origin=r,t.originPoint=(0,i.mixNumber)(e.min,e.max,t.origin),t.scale=s(n)/s(e),t.translate=(0,i.mixNumber)(n.min,n.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 n(t,e,o,r=0){t.min=(r?(0,i.mixNumber)(o.min,o.max,r):o.min)+e.min,t.max=t.min+s(e)}function r(t,e,o,n=0){let a=n?(0,i.mixNumber)(o.min,o.max,n):o.min;t.min=e.min-a,t.max=t.min+s(e)}t.s(["calcBoxDelta",0,function(t,e,i,s){o(t.x,e.x,i.x,s?s.originX:void 0),o(t.y,e.y,i.y,s?s.originY:void 0)},"calcLength",0,s,"calcRelativeBox",0,function(t,e,i,s){n(t.x,e.x,i.x,s?.x),n(t.y,e.y,i.y,s?.y)},"calcRelativePosition",0,function(t,e,i,s){r(t.x,e.x,i.x,s?.x),r(t.y,e.y,i.y,s?.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],52101)},89026,t=>{"use strict";var e=t.i(42824);t.s(["isSVGElement",0,function(t){return(0,e.isObject)(t)&&"ownerSVGElement"in t}])},33986,85651,7230,77397,t=>{"use strict";let e,i;var s=t.i(42098),o=t.i(60830),n=t.i(30162),r=t.i(87022),a=t.i(55559),l=t.i(53689),h=t.i(27677),u=t.i(80538),c=t.i(39011),d=t.i(706),m=t.i(82774),p=t.i(37541),g=t.i(65091),f=t.i(52101),y=t.i(89026),v=t.i(49652);let x=new WeakMap,P=(t,e,i)=>(s,o)=>o&&o[0]?o[0][t+"Size"]:(0,y.isSVGElement)(s)&&"getBBox"in s?s.getBBox()[e]:s[i],D=P("inline","width","offsetWidth"),T=P("block","height","offsetHeight");function E({target:t,borderBoxSize:e}){x.get(t)?.forEach(i=>{i(t,{get width(){return D(t,e)},get height(){return T(t,e)}})})}function S(t){t.forEach(E)}let w=new Set;function B(t,s){let o;return"function"==typeof t?(w.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};w.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{w.delete(t),w.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(S)),(o=(0,v.resolveElements)(t)).forEach(t=>{let i=x.get(t);i||(i=new Set,x.set(t,i)),i.add(s),e?.observe(t)}),()=>{o.forEach(t=>{let i=x.get(t);i?.delete(s),i?.size||e?.unobserve(t)})})}var A=t.i(19880),L=t.i(65566),R=t.i(65536);function j(t,e,i,s){return(0,m.addDomEvent)(t,e,(0,R.addPointerInfo)(i),s)}let V=({current:t})=>t?t.ownerDocument.defaultView:null;var M=t.i(25522),b=t.i(41327),C=t.i(38638),k=t.i(63074);let U=(t,e)=>Math.abs(t-e),I=new Set(["auto","scroll"]);class F{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:n=3,element:a}={}){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=O(this.lastRawMoveEventInfo,this.transformPagePoint));let i=W(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,o=(t=i.offset,e={x:0,y:0},Math.sqrt(U(t.x,e.x)**2+U(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!o)return;let{point:n}=i,{timestamp:a}=r.frameData;this.history.push({...n,timestamp:a});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=O(e,this.transformPagePoint),r.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:o}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=W("pointercancel"===t.type?this.lastMoveEventInfo:O(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!(0,b.isPrimaryPointer)(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=s||window;const l=O((0,R.extractEventInfo)(t),this.transformPagePoint),{point:h}=l,{timestamp:u}=r.frameData;this.history=[{...h,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,W(l,this.history)),this.removeListeners=(0,C.pipe)(j(this.contextWindow,"pointermove",this.handlePointerMove),j(this.contextWindow,"pointerup",this.handlePointerUp),j(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(I.has(t.overflowX)||I.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},o={x:s.x-e.x,y:s.y-e.y};(0!==o.x||0!==o.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,s),r.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,r.cancelFrame)(this.updatePoint)}}function O(t,e){return e?{point:e(t.point)}:t}function N(t,e){return{x:t.x-e.x,y:t.y-e.y}}function W({point:t},e){return{point:t,delta:N(t,z(e)),offset:N(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=z(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,k.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>
12*(0,k.secondsToMilliseconds)(.1)&&(i=t[1]);let o=(0,k.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let n={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}(e)}}function z(t){return t[t.length-1]}var G=t.i(83920),$=t.i(76959);function H(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 X(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 Y(t,e,i){return{min:q(t,e),max:q(t,i)}}function q(t,e){return"number"==typeof t?t:t[e]||0}let K=new WeakMap;class Z{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,n.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 o=t=>{e&&this.snapToCursor((0,R.extractEventInfo)(t).point),this.stopAnimation()},n=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,p.setDragLock)(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),(0,a.eachAxis)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(g.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=(0,f.calcLength)(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),o&&r.frame.update(()=>o(t,e),!1,!0),(0,u.addValueToWillChange)(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},l=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),n&&r.frame.update(()=>n(t,e),!1,!0)},h=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new F(t,{onSessionStart:o,onStart:n,onMove:l,onSessionEnd:h,resumeAnimation:c},{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,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;let{velocity:n}=s;this.startAnimation(n);let{onDragEnd:a}=this.getProps();a&&r.frame.postRender(()=>a(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||!J(t,s,this.currentDirection))return;let o=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,d.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,d.mixNumber)(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),o.set(n)}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,M.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:o}){return{x:H(t.x,i,o),y:H(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:Y(t,"left","right"),y:Y(t,"top","bottom")}}(e),s!==this.constraints&&!(0,M.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&(0,a.eachAxis)(t=>{var e,s;let o;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],o={},void 0!==s.min&&(o.min=s.min-e.min),void 0!==s.max&&(o.max=s.max-e.min),o))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,M.isRefObject)(e))return!1;let s=e.current;(0,L.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:o}=this.visualElement;if(!o||!o.layout)return!1;let n=(0,l.measurePageBox)(s,o.root,this.visualElement.getTransformPagePoint()),r=(t=o.layout.layoutBox,{x:X(t.x,n.x),y:X(t.y,n.y)});if(i){let t=i((0,h.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,h.convertBoundingBoxToBox)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:n,onDragTransitionEnd:r}=this.getProps(),l=this.constraints||{};return Promise.all((0,a.eachAxis)(r=>{if(!J(r,e,this.currentDirection))return;let a=l&&l[r]||{};(!0===n||n===r)&&(a={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,...o,...a};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,u.addValueToWillChange)(this.visualElement,t),i.start((0,c.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){(0,a.eachAxis)(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){(0,a.eachAxis)(e=>{let{drag:i}=this.getProps();if(!J(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,o=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e],r=o.get()||0;o.set(t[e]-(0,d.mixNumber)(i,n,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,M.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};(0,a.eachAxis)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,o;let n,r,a,l=e.get();s[t]=(i={min:l,max:l},o=this.constraints[t],n=.5,r=(0,f.calcLength)(i),(a=(0,f.calcLength)(o))>r?n=(0,G.progress)(o.min,o.max-r,i.min):r>a&&(n=(0,G.progress)(i.min,i.max-a,o.min)),(0,$.clamp)(0,1,n))}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,a.eachAxis)(e=>{if(!J(e,t,null))return;let i=this.getAxisMotionValue(e),{min:o,max:n}=this.constraints[e];i.set((0,d.mixNumber)(o,n,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;K.set(this.visualElement,this);let e=this.visualElement.current,i=j(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),o=t.target,n=o!==e&&(0,A.isElementTextInput)(o);i&&s&&!n&&this.start(t)}),s=()=>{var i,s,o;let n,r,{dragConstraints:a}=this.getProps();(0,M.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,n=B(i,_(o=()=>this.scalePositionWithinConstraints())),r=B(s,_(o)),t=()=>{n(),r()}))},{projection:o}=this.visualElement,n=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r.frame.read(s);let l=(0,m.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),h=o.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&((0,a.eachAxis)(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{l(),i(),n(),h&&h(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:n=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:n,dragMomentum:r}}}function _(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function J(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class Q extends s.Feature{constructor(t){super(t),this.removeGroupControls=o.noop,this.removeListeners=o.noop,this.controls=new Z(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()}}t.s(["DragGesture",0,Q],33986);var tt=s;let te=t=>(e,i)=>{t&&r.frame.update(()=>t(e,i),!1,!0)};class ti extends tt.Feature{constructor(){super(...arguments),this.removePointerDownListener=o.noop}onPointerDown(t){this.session=new F(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:te(t),onStart:te(e),onMove:te(i),onEnd:(t,e)=>{delete this.session,s&&r.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=j(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",0,ti],85651);var ts=t.i(43476);let to={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",0,to],7230);var tn=t.i(60140),tr=t.i(71645),ta=t.i(64978),tl=t.i(31178),th=t.i(4035);let tu=!1;class tc extends tr.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=t;o&&(e.group&&e.group.add(o),i&&i.register&&s&&i.register(o),tu&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),to.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,{projection:n}=i;return n&&(n.isPresent=o,t.layoutDependency!==e&&n.setOptions({...n.options,layoutDependency:e}),tu=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==o?n.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?n.promote():n.relegate()||r.frame.postRender(()=>{let t=n.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(),tn.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;tu=!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}}t.s(["MeasureLayout",0,function(t){let[e,i]=(0,ta.usePresence)(),s=(0,tr.useContext)(tl.LayoutGroupContext);return(0,ts.jsx)(tc,{...t,layoutGroup:s,switchLayoutGroup:(0,tr.useContext)(th.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}],77397)},68705,t=>{"use strict";var e=t.i(39011),i=t.i(86427),s=t.i(83411);t.s(["animateSingleValue",0,function(t,o,n){let r=(0,s.isMotionValue)(t)?t:(0,i.motionValue)(t);return r.start((0,e.animateMotionValue)("",r,o,n)),r.animation}])},67807,t=>{"use strict";var e=t.i(96173);t.i(63074);var i=t.i(87022);t.s(["delay",0,function(t,s){let o=e.time.now(),n=({timestamp:e})=>{let r=e-o;r>=s&&((0,i.cancelFrame)(n),t(r-s))};return i.frame.setup(n,!0),()=>(0,i.cancelFrame)(n)}])},36331,t=>{"use strict";var e=t.i(89026);t.s(["isSVGSVGElement",0,function(t){return(0,e.isSVGElement)(t)&&"svg"===t.tagName}])},46932,t=>{"use strict";var e=t.i(54505),i=t.i(7051),s=t.i(23070),o=t.i(33986),n=t.i(85651),r=t.i(77397),a=t.i(70596),l=t.i(76959),h=t.i(60830),u=t.i(68705),c=t.i(16896),d=t.i(87333),m=t.i(60140),p=t.i(96173),g=t.i(24463),f=t.i(4169),y=t.i(80248),v=t.i(67807),x=t.i(89026),P=t.i(36331),D=t.i(
1706),T=t.i(86427),E=t.i(33871),S=t.i(65091),w=t.i(83920),B=t.i(91559);let A=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],L=A.length,R=t=>"string"==typeof t?parseFloat(t):t,j=t=>"number"==typeof t||S.px.test(t);function V(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let M=C(0,.5,B.circOut),b=C(.5,.95,h.noop);function C(t,e,i){return s=>s<t?0:s>e?1:i((0,w.progress)(t,e,s))}function k(t,e){t.min=e.min,t.max=e.max}function U(t,e){k(t.x,e.x),k(t.y,e.y)}function I(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var F=t.i(35636),O=t.i(52101);function N(t,e,i,s,o){return t-=e,t=(0,F.scalePoint)(t,1/i,s),void 0!==o&&(t=(0,F.scalePoint)(t,1/o,s)),t}function W(t,e,[i,s,o],n,r){!function(t,e=0,i=1,s=.5,o,n=t,r=t){if(S.percent.test(e)&&(e=parseFloat(e),e=(0,D.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,D.mixNumber)(n.min,n.max,s);t===n&&(a-=e),t.min=N(t.min,e,i,a,o),t.max=N(t.max,e,i,a,o)}(t,e[i],e[s],e[o],e.scale,n,r)}let z=["x","scaleX","originX"],G=["y","scaleY","originY"];function $(t,e,i,s){W(t.x,e,z,i?i.x:void 0,s?s.x:void 0),W(t.y,e,G,i?i.y:void 0,s?s.y:void 0)}var H=t.i(30162);function X(t){return 0===t.translate&&1===t.scale}function Y(t){return X(t.x)&&X(t.y)}function q(t,e){return t.min===e.min&&t.max===e.max}function K(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Z(t,e){return K(t.x,e.x)&&K(t.y,e.y)}function _(t){return(0,O.calcLength)(t.x)/(0,O.calcLength)(t.y)}function J(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var Q=t.i(33887);class tt{constructor(){this.members=[]}add(t){(0,Q.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,Q.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,Q.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:s}=i.options,{layoutDependency:o}=t.options;(void 0===s||s!==o)&&(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)}}var te=t.i(55559);let ti=(t,e)=>t.depth-e.depth;class ts{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Q.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,Q.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ti),this.isDirty=!1,this.children.forEach(t)}}var to=t.i(77777),tn=t.i(7230),tr=t.i(87022);let ta={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tl=["","X","Y","Z"],th=0;function tu(t,e,i,s){let{latestValues:o}=e;o[t]&&(i[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tc({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(t={},i=e?.()){this.id=th++,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,y.statsBuffer.value&&(ta.nodes=ta.calculatedTargetDeltas=ta.calculatedProjections=0),this.nodes.forEac
1h(tp),this.nodes.forEach(tE),this.nodes.forEach(tS),this.nodes.forEach(tg),y.statsBuffer.addProjectionMetrics&&y.statsBuffer.addProjectionMetrics(ta)},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 ts)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new a.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,x.isSVGElement)(e)&&!(0,P.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.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,o=()=>this.root.updateBlockedByResize=!1;tr.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=(0,v.delay)(o,250),tn.globalProjectionState.hasAnimatedSinceResize&&(tn.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tT)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(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 n=this.options.transition||o.getDefaultTransition()||tj,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!Z(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,d.getValueTransition)(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tT(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,tr.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(tw),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,c.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tr.frame,!(t||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&t(o)}(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.forEac
1h(tv),this.nodes.forEach(ty);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tx);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tP),this.nodes.forEach(tD),this.nodes.forEach(td),this.nodes.forEach(tm)):this.nodes.forEach(tx),this.clearAllSnapshots();let t=p.time.now();tr.frameData.delta=(0,l.clamp)(0,1e3/60,t-tr.frameData.timestamp),tr.frameData.timestamp=t,tr.frameData.isProcessing=!0,tr.frameSteps.update.process(tr.frameData),tr.frameSteps.preRender.process(tr.frameData),tr.frameSteps.render.process(tr.frameData),tr.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,m.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tf),this.sharedNodes.forEach(tB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tr.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tr.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,O.calcLength)(this.snapshot.measuredBox.x)||(0,O.calcLength)(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,H.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(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Y(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,to.hasTransform)(this.latestValues)||n)&&(o(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)),tb((e=s).x),tb(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,H.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tk))){let{scroll:t}=this.root;t&&((0,F.translateAxis)(e.x,t.offset.x),(0,F.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,H.createBox)();if(U(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:o,options:n}=s;s!==this.root&&o&&n.layoutScroll&&(o.wasRoot&&U(e,t),(0,F.translateAxis)(e.x,o.offset.x),(0,F.translateAxis)(e.y,o.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||(0,H.createBox)();U(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,F.translateAxis)(s.x,-i.scroll.offset.x),(0,F.translateAxis)(s.y,-i.scroll.offset.y)),(0,to.hasTransform)(i.latestValues)&&(0,F.transformBox)(s,i.latestValues,i.layout?.layoutBox)}return(0,to.hasTransform)(this.latestValues)&&(0,F.transformBox)(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=(0,H.createBox)();U(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];(0,to.hasTransform)(s.latestValues)&&(s.instance&&((0,to.hasScale)(s.latestValues)&&s.updateSnapshot(),U(i=(0,H.createBox)(),s.measurePageBox())),$(e,s.latestValues,s.snapshot?.layoutBox,i))}return(0,to.hasTransform)(this.latestValues)&&$(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!==tr.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:o}=this.options;if(!this.layout||!(s||o))return;this.resolvedRelativeTargetAt=tr.frameData.timestamp;let n=this.getClosestProjectingParent();n&&this.linkedParentVersion!==n.layoutVersion&&!n.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&n&&n.layout?this.createRelativeTarget(n,this.layout.layoutBox,n.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,H.createBox)(),this.targetWithTransforms=(0,H.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,O.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):U(this.target,this.layout.layoutBox),(0,F.applyBoxDelta)(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&1!==this.animationProgress?this.createRelativeTarget(n,this.target,n.target):this.relativeParent=this.relativeTarget=void 0),y.statsBuffer.value&&ta.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,to.hasScale)(this.parent.latestValues)||(0,to.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,H.createBox)(),this.relativeTargetOrigin=(0,H.createBox)(),(0,O.calcRelativePosition)(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),U(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===tr.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:o}=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||o))return;U(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,r=this.treeScale.y;(0,F.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,H.createBox)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(I(this.prevProjectionDelta.x,this.projectionDelta.x),I(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,O.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===n&&this.treeScale.y===r&&J(this.projectionDelta.x,this.prevProjectionDelta.x)&&J(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),y.statsBuffer.value&&ta.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,H.createDelta)(),this.projectionDelta=(0,H.createDelta)(),this.projectionDeltaWithTransform=(0,H.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,o=s?s.latestValues:{},n={...this.latestValues},r=(0,H.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,H.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(tR));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(tA(r.x,t.x,s),tA(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p,g,f;(0,O.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,p=this.relativeTargetOrigin,g=a,f=s,tL(m.x,p.x,g.x,f),tL(m.y,p.y,g.y,f),i&&(h=this.relativeTarget,d=i,q(h.x,d.x)&&q(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,H.createBox)()),U(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,s,o,n){o?(t.opacity=(0,D.mixNumber)(0,i.opacity??1,M(s)),t.opacityExit=(0,D.mixNumber)(e.opacity??1,0,b(s))):n&&(t.opacity=(0,D.mixNumber)(e.opacity??1,i.opacity??1,s));for(let o=0;o<L;o++){let n=A[o],r=V(e,n),a=V(i,n);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||j(r)===j(a)?(t[n]=Math.max((0,D.mixNumber)(R(r),R(a),s),0),(S.percent.test(a)||S.percent.test(r))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,D.mixNumber)(e.rotate||0,i.rotate||0,s))}(n,o,this.latestValues,s,c,u)),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,tr.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tr.frame.update(()=>{tn.globalProjectionState.hasAnimatedSinceResize=!0,f.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,T.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,u.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{f.activeAnimations.layout--},onComplete:()=>{f.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:o}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tC(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,H.createBox)();let e=(0,O.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,O.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}U(e,i),(0,F.transformBox)(e,o),(0,O.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tt),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&&tu("z",t,s,this.animationValues);for(let e=0;e<tl.length;e++)tu(`rotate${tl[e]}`,t,s,this.animationValues),tu(`skew${tl[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,E.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,E.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,to.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let o=s.animationValues||s.latestValues;this.applyTransformsToTarget();let n=function(t,e,i){let s="",o=t.x.translate/e.x,n=t.y.translate/e.y,r=i?.z||0;if((o||n||r)&&(s=`translate3d(${o}px, ${n}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:o,rotateY:n,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),o&&(s+=`rotateX(${o}deg) `),n&&(s+=`rotateY(${n}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,o);i&&(n=i(o,n)),t.transform=n;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?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,g.scaleCorrectors){if
1(void 0===o[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=g.scaleCorrectors[e],l="none"===n?o[e]:i(o[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,E.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ty),this.root.sharedNodes.clear()}}}function td(t){t.updateLayout()}function tm(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:o}=t.options,n=e.source!==t.layout.source;if("size"===o)(0,te.eachAxis)(t=>{let s=n?e.measuredBox[t]:e.layoutBox[t],o=(0,O.calcLength)(s);s.min=i[t].min,s.max=s.min+o});else if("x"===o||"y"===o){let t="x"===o?"y":"x";k(n?e.measuredBox[t]:e.layoutBox[t],i[t])}else tC(o,e.layoutBox,i)&&(0,te.eachAxis)(s=>{let o=n?e.measuredBox[s]:e.layoutBox[s],r=(0,O.calcLength)(i[s]);o.max=o.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,H.createDelta)();(0,O.calcBoxDelta)(r,i,e.layoutBox);let a=(0,H.createDelta)();n?(0,O.calcBoxDelta)(a,t.applyTransform(s,!0),e.measuredBox):(0,O.calcBoxDelta)(a,i,e.layoutBox);let l=!Y(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:o,layout:n}=s;if(o&&n){let r=t.options.layoutAnchor||void 0,a=(0,H.createBox)();(0,O.calcRelativePosition)(a,e.layoutBox,o.layoutBox,r);let l=(0,H.createBox)();(0,O.calcRelativePosition)(l,i,n.layoutBox,r),Z(a,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tp(t){y.statsBuffer.value&&ta.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 tg(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tf(t){t.clearSnapshot()}function ty(t){t.clearMeasurements()}function tv(t){t.isLayoutDirty=!0,t.updateLayout()}function tx(t){t.isLayoutDirty=!1}function tP(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function tD(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tT(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tE(t){t.resolveTargetDelta()}function tS(t){t.calcProjection()}function tw(t){t.resetSkewAndRotation()}function tB(t){t.removeLeadSnapshot()}function tA(t,e,i){t.translate=(0,D.mixNumber)(e.translate,0,i),t.scale=(0,D.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tL(t,e,i,s){t.min=(0,D.mixNumber)(e.min,i.min,s),t.max=(0,D.mixNumber)(e.max,i.max,s)}function tR(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tj={duration:.45,ease:[.4,0,.1,1]},tV=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tM=tV("applewebkit/")&&!tV("chrome/")?Math.round:h.noop;function tb(t){t.min=tM(t.min),t.max=tM(t.max)}function tC(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,O.isNear)(_(e),_(i),.2)}function tk(t){return t!==t.root&&t.scroll?.wasRoot}
1var tU=t.i(82774);let tI=tc({attachResizeListener:(t,e)=>(0,tU.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tF={current:void 0},tO=tc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tF.current){let t=new tI({});t.mount(window),t.setOptions({layoutScroll:!0}),tF.current=t}return tF.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),tN={pan:{Feature:n.PanGesture},drag:{Feature:o.DragGesture,ProjectionNode:tO,MeasureLayout:r.MeasureLayout}};var tW=t.i(8149);let tz={layout:{ProjectionNode:tO,MeasureLayout:r.MeasureLayout}},tG={...s.animations,...tW.gestureAnimations,...tN,...tz},t$=(0,i.createMotionProxy)(tG,e.createDomVisualElement);t.s(["motion",0,t$],46932)}]);
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.