PageSourceSearch

https://olist.com/_next/static/chunks/6135-d9bbbe6fdec8b6f4.js

js olist.com collected 2026-09-24 18:44:55 UTC 69,089 bytes, 98 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6135],{93202:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(67294);let s=t=>n.createElement("svg",Object.assign({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 16c1.174 0 2.156.81 2.425 1.9H21.4a.6.6 0 0 1 0 1.2H9.925a2.499 2.499 0 0 1-4.85 0H2.6a.6.6 0 0 1 0-1.2h2.475A2.499 2.499 0 0 1 7.5 16Zm0 1.2a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6ZM15.5 9.5c1.174 0 2.156.81 2.425 1.9H21.4a.6.6 0 0 1 0 1.2h-3.475a2.499 2.499 0 0 1-4.85 0H2.6a.6.6 0 0 1 0-1.2h10.475A2.498 2.498 0 0 1 15.5 9.5Zm0 1.2a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6ZM8.5 3c1.174 0 2.156.81 2.425 1.9H21.4a.6.6 0 0 1 0 1.2H10.925a2.499 2.499 0 0 1-4.85 0H2.6a.6.6 0 0 1 0-1.2h3.475A2.499 2.499 0 0 1 8.5 3Zm0 1.2a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6Z",fill:"currentColor"}))},85087:function(t,e,i){"use strict";i.d(e,{t:function(){return E}});var n,s,r=i(52938),o=i(67294);(n=s||(s={})).PREVIOUS="previous",n.NEXT="next",n.ELLIPSIS="...";var a=i(71045),l=i(68972),u=i(43769),h=i(19521),c=i(4579),d=i(48861);let p=h.ZP.nav(({theme:t})=>(0,h.iv)`
2    display: flex;
3    align-items: center;
4
5    gap: ${t.olist.spacing.inline.small};
6    ${u.d8}
7  `),m=h.ZP.ul`
8  list-style: none;
9  display: flex;
10  margin-left: auto;
11`,f=h.ZP.button(({selected:t,notInteractive:e,theme:{olist:{components:{pagination:i},opacity:n}}})=>(0,h.iv)`
12    width: ${i.button.size};
13    height: ${i.button.size};
14    display: flex;
15    align-items: center;
16    justify-content: center;
17    cursor: pointer;
18
19    color: ${i.button.color.rest};
20    background-color: ${i.button["background-color"].rest};
21    border: none;
22
23    outline: none;
24
25    &:hover,
26    &:focus {
27      background-color: ${i.button["background-color"].hover};
28    }
29
30    ${(0,c.A)({inset:!0})``}
31
32    &:active {
33      background-color: ${i.button["background-color"].active};
34    }
35
36    ${t&&(0,h.iv)`
37      background-color: ${i.button["background-color"].selected};
38
39      ${d.Z} {
40        color: ${i.button.color.selected};
41      }
42    `}
43
44    &:disabled {
45      background-color: ${i.button["background-color"].disabled};
46      opacity: ${n.base};
47      cursor: not-allowed;
48    }
49
50    ${e&&(0,h.iv)`
51      pointer-events: none;
52    `}
53  `),g=h.ZP.li(({theme:{olist:{breakpoints:t,components:{pagination:e}}}})=>(0,h.iv)`
54    display: none;
55
56    border-top: 1px solid ${e.button["border-color"]};
57    border-right: 1px solid ${e.button["border-color"]};
58    border-bottom: 1px solid ${e.button["border-color"]};
59
60    &:first-child {
61      display: block;
62      border-left: 1px solid ${e.button["border-color"]};
63
64      &,
65      ${f} {
66        border-top-left-radius: ${e.button["border-radius"]};
67        border-bottom-left-radius: ${e.button["border-radius"]};
68      }
69    }
70
71    &:last-child {
72      display: block;
73
74      &,
75      ${f} {
76        border-top-right-radius: ${e.button["border-radius"]};
77        border-bottom-right-radius: ${e.button["border-radius"]};
78      }
79    }
80
81    @media (min-width: ${t.small}) {
82      display: block;
83    }
84  `),v=h.ZP.div(({theme:t})=>(0,h.iv)`
85    display: none;
86
87    @media (min-width: ${t.olist.breakpoints.small}) {
88      display: block;
89    }
90  `);function y(t){var{item:e,currentPage:i,pageCount:n=0,onPageChange:u,nextAriaLabel:h,pageAriaLabel:c,previousAriaLabel:p,disableLastPage:m,infiniteScroll:v}=t,y=(0,r._)(t,["item","currentPage","pageCount","onPageChange","nextAriaLabel","pageAriaLabel","previousAriaLabel","disableLastPage","infiniteScroll"]);let x=e===s.ELLIPSIS,P=e===s.PREVIOUS,E=e===s.NEXT,T=i===n||v&&!(null==v?void 0:v.next),b=i===e,S=e===n,w=i===n-1,A=(5===n||4===n)&&e===n-1,D=P?p:E?h:`${c} ${e}`,L=P&&1===i||E&&T||m&&!T&&!w&&S||m&&A&&!w&&i!==n-2&&!T||!v&&!n;return o.createElement(g,null,o.createElement(f,Object.assign({},y,{onClick:t=>{if(u){if(P){u(i-1);return}if(E){u(i+1);return}if(x||i===e){t.preventDefault();return}u(e)}},notInteractive:x,tabIndex:x?-1:0,selected:b,disabled:L,"aria-label":x?void 0:D,"aria-hidden":x}),P&&o.createElement(a.Z,null),!P&&!E&&o.createElement(d.Z,{bold:!!b},e),E&&o.createElement(l.Z,null)))}let x=(t,e)=>e?`P\xe1gina ${t} de ${e}`:`P\xe1gina ${t}`;var P=i(11194);let E=(0,o.forwardRef)((t,e)=>{var{currentPage:i=1,pageCount:n,onPageChange:a,showChoosePage:l,disableLastPage:u=!1,nextAriaLabel:h="avan\xe7ar p\xe1gina",pageAriaLabel:c="p\xe1gina",previousAriaLabel:f="retroceder p\xe1gina",choosePageText:g="escolher p\xe1gina",a
90ppendPageDropdownTo:E,infoFormatter:T=x,infiniteScroll:b}=t,S=(0,r._)(t,["currentPage","pageCount","onPageChange","showChoosePage","disableLastPage","nextAriaLabel","pageAriaLabel","previousAriaLabel","choosePageText","appendPageDropdownTo","infoFormatter","infiniteScroll"]);let w=(0,o.useRef)(null),A=(0,o.useRef)(null),[D,L]=(0,o.useState)(!1),{itemList:R,uiItemList:C}=function({numberOfPages:t,activePage:e}){let i=Array.from({length:t||0},(t,e)=>e+1),n=function({range:t,activePage:e}){let i=[...t],n=i[i.length-1];return i.length<=5||(e>3&&n-1===e+1?i.splice(1,e-2,s.ELLIPSIS):e<=2&&n-1!==e+1?i.splice(2,i.length-3,s.ELLIPSIS):e<=3&&n-1!==e+1?i.splice(3,i.length-4,s.ELLIPSIS):e>3&&e>=i.length-1?i.splice(1,i.length-3,s.ELLIPSIS):e>3&&e<i.length-1&&(i.splice(1,e-2,s.ELLIPSIS),i.splice(3,i.length-4,s.ELLIPSIS))),i}({range:i,activePage:e});return n.unshift(s.PREVIOUS),n.push(s.NEXT),{uiItemList:n,itemList:i}}({numberOfPages:n,activePage:i});(0,o.useEffect)(()=>{let t=A.current;if(t&&i){let e=t.children[i-1];t.scrollTop=e.offsetTop-8}},[D]);let j=t=>()=>{L(!1),a&&a(t)},M=l&&!u&&n;return o.createElement(p,Object.assign({"aria-label":"pagina\xe7\xe3o"},S,{ref:e}),o.createElement(d.Z,null,T(i,n)),o.createElement(m,null,C.map((t,e)=>{let r=t===s.ELLIPSIS&&e>2;return o.createElement(y,{key:r?"...2":t,item:t,"aria-current":i===t?"page":void 0,currentPage:i,pageCount:n,onPageChange:a,previousAriaLabel:f,nextAriaLabel:h,pageAriaLabel:c,disableLastPage:u,infiniteScroll:b})})),M&&o.createElement(v,null,o.createElement(P.Z.Toggle,{ref:w,onClick:()=>{L(!D)}},g),o.createElement(P.Z,{anchorElement:w,isOpen:D,onClose:()=>{L(!1)},maxHeight:"248px",maxWidth:"160px",appendTo:E,ref:A},R.map(t=>o.createElement(P.Z.Item,{as:"button",onClick:j(t),key:t,"aria-label":`${c} ${t}`},t)))))});E.displayName="Pagination"},57638:function(){},64172:function(){},30775:function(t,e,i){"use strict";i.d(e,{M:function(){return y}});var n=i(85893),s=i(67294),r=i(40910),o=i(47281),a=i(14822),l=i(4048),u=i(77439),h=i(52099);class c extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,h.R)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:e,anchorX:i}){let r=(0,s.useId)(),o=(0,s.useRef)(null),a=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,s.useContext)(u._);return(0,s.useInsertionEffect)(()=>{let{width:t,height:n,top:s,left:u,right:h}=a.current;if(e||!o.current||!t||!n)return;let c="left"===i?`left: ${u}`:`right: ${h}`;o.current.dataset.motionPopId=r;let d=document.createElement("style");return l&&(d.nonce=l),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
91          [data-motion-pop-id="${r}"] {
92            position: absolute !important;
93            width: ${t}px !important;
94            height: ${n}px !important;
95            ${c}px !important;
96            top: ${s}px !important;
97          }
98        `),()=>{document.head.contains(d)&&document.head.removeChild(d)}},[e]),(0,n.jsx)(c,{isPresent:e,childRef:o,sizeRef:a,children:s.cloneElement(t,{ref:o})})}let p=({children:t,initial:e,isPresent:i,onExitComplete:r,custom:a,presenceAffectsLayout:u,mode:h,anchorX:c})=>{let p=(0,o.h)(m),f=(0,s.useId)(),g=!0,v=(0,s.useMemo)(()=>(g=!1,{id:f,initial:e,isPresent:i,custom:a,onExitComplete:t=>{for(let e of(p.set(t,!0),p.values()))if(!e)return;r&&r()},register:t=>(p.set(t,!1),()=>p.delete(t))}),[i,p,r]);return u&&g&&(v={...v}),(0,s.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[i]),s.useEffect(()=>{i||p.size||!r||r()},[i]),"popLayout"===h&&(t=(0,n.jsx)(d,{isPresent:i,anchorX:c,children:t})),(0,n.jsx)(l.O.Provider,{value:v,children:t})};function m(){return new Map}var f=i(89805);let g=t=>t.key||"";function v(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}let y=({children:t,custom:e,initial:i=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left"})=>{let[m,y]=(0,f.oO)(c),x=(0,s.useMemo)(()=>v(t),[t]),P=c&&!m?[]:x.map(g),E=(0,s.useRef)(!0),T=(0,s.useRef)(x),b=(0,o.h)(()=>
98new Map),[S,w]=(0,s.useState)(x),[A,D]=(0,s.useState)(x);(0,a.L)(()=>{E.current=!1,T.current=x;for(let t=0;t<A.length;t++){let e=g(A[t]);P.includes(e)?b.delete(e):!0!==b.get(e)&&b.set(e,!1)}},[A,P.length,P.join("-")]);let L=[];if(x!==S){let t=[...x];for(let e=0;e<A.length;e++){let i=A[e],n=g(i);P.includes(n)||(t.splice(e,0,i),L.push(i))}return"wait"===h&&L.length&&(t=L),D(v(t)),w(x),null}let{forceRender:R}=(0,s.useContext)(r.p);return(0,n.jsx)(n.Fragment,{children:A.map(t=>{let s=g(t),r=(!c||!!m)&&(x===A||P.includes(s));return(0,n.jsx)(p,{isPresent:r,initial:(!E.current||!!i)&&void 0,custom:e,presenceAffectsLayout:u,mode:h,onExitComplete:r?void 0:()=>{if(!b.has(s))return;b.set(s,!0);let t=!0;b.forEach(e=>{e||(t=!1)}),t&&(R?.(),D(T.current),c&&y?.(),l&&l())},anchorX:d,children:t},s)})})}},89805:function(t,e,i){"use strict";i.d(e,{oO:function(){return r}});var n=i(67294),s=i(4048);function r(t=!0){let e=(0,n.useContext)(s.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&r&&r(a),[a,r,t]);return!i&&r?[!1,l]:[!0]}},40910:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(67294).createContext)({})},77439:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(67294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},4048:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(67294).createContext)(null)},4801:function(t,e,i){"use strict";i.d(e,{E:function(){return iR}});var n,s,r,o=i(80488),a=i(5196),l=i(48208);function u(t,e,i={}){let n=(0,a.x)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all((0,l.w)(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=1,r){let o=[],a=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(h).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(u(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:c}=s;if(!c)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===c?[r,o]:[o,r];return t().then(()=>e())}}function h(t,e){return t.sortNodePosition(e)}var c=i(16181);function d(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var p=i(94355),m=i(77871);let f=m.V.length,g=[...m.e].reverse(),v=m.e.length;function y(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x(){return{animate:y(!0),whileInView:y(),whileHover:y(),whileTap:y(),whileDrag:y(),whileFocus:y(),exit:y()}}class P{constructor(t){this.isMounted=!1,this.node=t}update(){}}class E extends P{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>u(t,e,i)));else if("string"==typeof e)n=u(t,e,i);else{let s="function"==typeof e?(0,a.x)(t,e,i.custom):e;n=Promise.all((0,l.w)(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=x(),n=!0,s=e=>(i,n)=>{let s=(0,a.x)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:l}=t,u=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<f;t++){let n=m.V[t],s=e.props[n];((0,p.$)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],y=new Set,x={},P=1/0;for(let e=0;e<v;e++){var E;let a=g[e],m=i[a],f=void 0!==l[a]?l[a]:u[a],v=(0,p.$)(f),T=a===r?m.isActive:null;!1===T&&(P=e);let b=f===u[a]&&f!==l[a]&&v;if(b&&n&&t.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...x},!m.isActive&&null===T||!f&&!m.prevProp||(0,o.H)(f)||"boolean"==typeof f)continue;let S=(E=m.prevProp,"string"==typeof f?f!==E:!!Array.isArray(f)&&!d(f,E)),w=S||a===r&&m.isActive&&!b&&v||e>P&&v,A=!1,D=Array.isArray(f)?f:[f],L=D.reduce(s(a),{});!1===T&&(L={});let{prevResolvedValues:R={}}=m,C={...R,...L},j=e=>{w=!0,y.has(e)&&(A=!0,y.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);
98i&&(i.liveStyle=!1)};for(let t in C){let e=L[t],i=R[t];if(!x.hasOwnProperty(t))((0,c.C)(e)&&(0,c.C)(i)?d(e,i):e===i)?void 0!==e&&y.has(t)?j(t):m.protectedKeys[t]=!0:null!=e?j(t):y.add(t)}m.prevProp=f,m.prevResolvedValues=L,m.isActive&&(x={...x,...L}),n&&t.blockInitialAnimation&&(w=!1);let M=!(b&&S)||A;w&&M&&h.push(...D.map(t=>({animation:t,options:{type:a}})))}if(y.size){let e={};if("boolean"!=typeof l.initial){let i=(0,a.x)(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}y.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let T=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(T=!1),n=!1,T?e(h):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=x(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,o.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let T=0;class b extends P{constructor(){super(...arguments),this.id=T++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
98e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var S=i(88935);function w(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let A=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function D(t){return{point:{x:t.pageX,y:t.pageY}}}let L=t=>e=>A(e)&&t(e,D(e));function R(t,e,i,n){return w(t,e,L(i),n)}var C=i(53276),j=i(98272);function M(t){return t.max-t.min}function k(t,e,i,n=.5){t.origin=n,t.originPoint=(0,j.t)(e.min,e.max,t.origin),t.scale=M(i)/M(e),t.translate=(0,j.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function V(t,e,i,n){k(t.x,e.x,i.x,n?n.originX:void 0),k(t.y,e.y,i.y,n?n.originY:void 0)}function O(t,e,i){t.min=i.min+e.min,t.max=t.min+M(e)}function B(t,e,i){t.min=e.min-i.min,t.max=t.min+M(e)}function $(t,e,i){B(t.x,e.x,i.x),B(t.y,e.y,i.y)}var I=i(63427);function U(t){return[t("x"),t("y")]}var F=i(93091);let W=({current:t})=>t?t.ownerDocument.defaultView:null;function H(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var N=i(82685);let Z=(t,e)=>Math.abs(t-e);var z=i(75364),X=i(79552),Y=i(718);class G{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=K(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(Z(t.x,e.x)**2+Z(t.y,e.y)**2)>=3);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=z.frameData;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=_(e,this.transformPagePoint),z.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=K("pointercancel"===t.type?this.lastMoveEventInfo:_(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!A(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=_(D(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=z.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,K(r,this.history)),this.removeListeners=(0,X.z)(R(this.contextWindow,"pointermove",this.handlePointerMove),R(this.contextWindow,"pointerup",this.handlePointerUp),R(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,z.Pn)(this.updatePoint)}}function _(t,e){return e?{point:e(t.point)}:t}function q(t,e){return{x:t.x-e.x,y:t.y-e.y}}function K({point:t},e){return{point:t,delta:q(t,Q(e)),offset:q(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=Q(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,Y.w)(.1)));)i--;if(!n)return{x:0,y:0};let r=(0,Y.X)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function Q(t){return t[t.length-1]}var J=i(49181),tt=i(45060);function te(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 ti(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tn(t,e,i){return{min:ts(t,e),max:ts(t,i)}}function ts(t,e){return"number"==typeof t?t:t[e]||0}var tr=i(15888);let to={x:!1,y:!1};var ta=i(83617);let tl=new WeakMap;class tu{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,I.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new G(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(D(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?to[i]?null:(to[i]=!0,()=>{to[i]=!1}):to.x||to.y?null:(to.x=to.y=!0,()=>{to.x=to.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ta.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=M(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),s&&z.Wi.postRender(()=>s(t,e)),(0,N.K)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>U(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:W(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&z.Wi.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!th(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,j.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,j.t)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&H(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:te(t.x,i,s),y:te(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tn(t,"left","right"),y:tn(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!H(e))return!1;let n=e.current;(0,tr.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,F.z)(n,s.root,this.visualElement.getTransformPagePoint()),o={x:ti((t=s.layout.layoutBox).x,r.x),y:ti(t.y,r.y)};if(i){let t=i((0,C.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,C.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(U(o=>
98{if(!th(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,N.K)(this.visualElement,t),i.start((0,S.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){U(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){U(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){U(e=>{let{drag:i}=this.getProps();if(!th(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,j.t)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!H(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};U(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=M(t),s=M(e);return s>n?i=(0,J.Y)(e.min,e.max-n,t.min):n>s&&(i=(0,J.Y)(t.min,t.max-s,e.min)),(0,tt.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),U(e=>{if(!th(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,j.t)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;tl.set(this.visualElement,this);let t=R(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();H(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),z.Wi.read(e);let s=w(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function th(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}var tc=i(52308);class td extends P{constructor(t){super(t),this.removeGroupControls=tc.Z,this.removeListeners=tc.Z,this.controls=new tu(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tc.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tp=t=>(e,i)=>{t&&z.Wi.postRender(()=>t(e,i))};class tm extends P{constructor(){super(...arguments),this.removePointerDownListener=tc.Z}onPointerDown(t){this.session=new G(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:W(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tp(t),onStart:tp(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&z.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=R(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 tf=i(85893),tg=i(67294),tv=i(89805),ty=i(40910);let tx=(0,tg.createContext)({}),tP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tE(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tT={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!ta.px.test(t))return t;t=parseFloat(t)}let i=tE(t,e.target.x),n=tE(t,e.target.y);return`${i}% ${n}%`}};var tb=i(90477),tS=i(41434);let{schedule:tw,cancel:tA}
98=(0,i(15397).Z)(queueMicrotask,!1);class tD extends tg.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;(0,tS.B)(tR),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),tP.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||z.Wi.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tw.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tL(t){let[e,i]=(0,tv.oO)(),n=(0,tg.useContext)(ty.p);return(0,tf.jsx)(tD,{...t,layoutGroup:n,switchLayoutGroup:(0,tg.useContext)(tx),isPresent:e,safeToRemove:i})}let tR={borderRadius:{...tT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tT,borderTopRightRadius:tT,borderBottomLeftRadius:tT,borderBottomRightRadius:tT,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tb.P.parse(t);if(n.length>5)return t;let s=tb.P.createTransformer(t),r="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=(0,j.t)(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var tC=i(30379),tj=i(49588);let tM=(t,e)=>t.depth-e.depth;var tk=i(39515);class tV{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tk.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tk.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tM),this.isDirty=!1,this.children.forEach(t)}}var tO=i(5293),tB=i(9585);function t$(t){return(0,tB.i)(t)?t.get():t}var tI=i(28105);let tU=["TopLeft","TopRight","BottomLeft","BottomRight"],tF=tU.length,tW=t=>"string"==typeof t?parseFloat(t):t,tH=t=>"number"==typeof t||ta.px.test(t);function tN(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tZ=tX(0,.5,tI.Bn),tz=tX(.5,.95,tc.Z);function tX(t,e,i){return n=>n<t?0:n>e?1:i((0,J.Y)(t,e,n))}function tY(t,e){t.min=e.min,t.max=e.max}function tG(t,e){tY(t.x,e.x),tY(t.y,e.y)}function t_(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tq=i(37465);function tK(t,e,i,n,s){return t-=e,t=(0,tq.q2)(t,1/i,n),void 0!==s&&(t=(0,tq.q2)(t,1/s,n)),t}function tQ(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(ta.aQ.test(e)&&(e=parseFloat(e),e=(0,j.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,j.t)(r.min,r.max,n);t===r&&(a-=e),t.min=tK(t.min,e,i,a,s),t.max=tK(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let tJ=["x","scaleX","originX"],t0=["y","scaleY","originY"];function t1(t,e,i,n){tQ(t.x,e,tJ,i?i.x:void 0,n?n.x:void 0),tQ(t.y,e,t0,i?i.y:void 0,n?n.y:void 0)}function t2(t){return 0===t.translate&&1===t.scale}function t4(t){return t2(t.x)&&t2(t.y)}function t9(t,e){return t.min===e.min&&t.max===e.max}function t5(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t3(t,e){return t5(t.x,e.x)&&t5(t.y,e.y)}function t8(t){return M(t.x)/M(t.y)}function t6(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class t7{constructor(){this.members=[]}add(t){(0,tk.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tk.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}
98exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var et=i(34210),ee=i(19062),ei=i(97689),en=i(66326),es=i(65569),er=i(70128),eo=i(13153),ea=i(15353);let el={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eu=["","X","Y","Z"],eh={visibility:"hidden"},ec=0;function ed(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ep({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=ec++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ee.f.value&&(el.nodes=el.calculatedTargetDeltas=el.calculatedProjections=0),this.nodes.forEach(eg),this.nodes.forEach(eb),this.nodes.forEach(eS),this.nodes.forEach(ev),ee.f.addProjectionMetrics&&ee.f.addProjectionMetrics(el)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tV)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ei.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,en.v)(e)&&!(0,es.r)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tO.X.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,z.Pn)(n),t(s-250))};return z.Wi.setup(n,!0),()=>(0,z.Pn)(n)}(n,0),tP.hasAnimatedSinceResize&&(tP.hasAnimatedSinceResize=!1,this.nodes.forEach(eT))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||eC,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!t3(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,er.e)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||eT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,z.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
98h(ew),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tj.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",z.Wi,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(eP),this.isUpdating=!1,this.nodes.forEach(eE),this.nodes.forEach(em),this.nodes.forEach(ef),this.clearAllSnapshots();let t=tO.X.now();z.frameData.delta=(0,tt.u)(0,1e3/60,t-z.frameData.timestamp),z.frameData.timestamp=t,z.frameData.isProcessing=!0,z.yL.update.process(z.frameData),z.yL.preRender.process(z.frameData),z.yL.render.process(z.frameData),z.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ey),this.sharedNodes.forEach(eA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,z.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){z.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||M(this.snapshot.measuredBox.x)||M(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.layoutCorrected=(0,I.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t4(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,et.ud)(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),ek((e=n).x),ek(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,I.dO)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(eO))){let{scroll:t}=this.root;t&&((0,tq.am)(e.x,t.offset.x),(0,tq.am)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,I.dO)();if(tG(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&tG(e,t),(0,tq.am)(e.x,s.offset.x),(0,tq.am)(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=(0,I.dO)();tG(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,tq.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,et.ud)(n.latestValues)&&(0,tq.D2)(i,n.latestValues)}return(0,et.ud)(this.latestValues)&&(0,tq.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,I.dO)();tG(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,et.ud)(i.latestValues))continue;(0,et.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,I.dO)();tG(n,i.measurePageBox()),t1(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,et.ud)(this.latestValues)&&t1(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!==z.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=z.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),$(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,I.dO)(),this.targetWithTransforms=(0,I.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,o,a;this.forceRelativeParentToResolveTarget(),r=this.target,o=this.relativeTarget,a=this.relativeParent.target,O(r.x,o.x,a.x),O(r.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tG(this.target,this.layout.layoutBox),(0,tq.o2)(this.target,this.targetDelta)):tG(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),$(this.relativeTargetOrigin,this.target,t.target),tG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ee.f.value&&el.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,et.Lj)(this.parent.latestValues)||(0,et.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
98if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===z.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;tG(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;(0,tq.YY)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,I.dO)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(t_(this.prevProjectionDelta.x,this.projectionDelta.x),t_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),V(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&t6(this.projectionDelta.x,this.prevProjectionDelta.x)&&t6(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ee.f.value&&el.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,I.wc)(),this.projectionDelta=(0,I.wc)(),this.projectionDeltaWithTransform=(0,I.wc)()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=(0,I.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,I.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(eR));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(eD(o.x,t.x,n),eD(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m;$(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,eL(p.x,m.x,a.x,n),eL(p.y,m.y,a.y,n),i&&(u=this.relativeTarget,d=i,t9(u.x,d.x)&&t9(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,I.dO)()),tG(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,j.t)(0,i.opacity??1,tZ(n)),t.opacityExit=(0,j.t)(e.opacity??1,0,tz(n))):r&&(t.opacity=(0,j.t)(e.opacity??1,i.opacity??1,n));for(let s=0;s<tF;s++){let r=`border${tU[s]}Radius`,o=tN(e,r),a=tN(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||tH(o)===tH(a)?(t[r]=Math.max((0,j.t)(tW(o),tW(a),n),0),(ta.aQ.test(a)||ta.aQ.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,j.t)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,z.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.Wi.update(()=>{tP.hasAnimatedSinceResize=!0,eo.P.layout++,this.motionValue||(this.motionValue=(0,ea.BX)(0)),this.currentAnimation=(0,tC.D)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{eo.P.layout--},onComplete:()=>{eo.P.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eV(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,I.dO)();let e=M(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=M(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tG(e,i),(0,tq.D2)(e,s),V(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t7),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;
98return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&ed("z",t,n,this.animationValues);for(let e=0;e<eu.length;e++)ed(`rotate${eu[e]}`,t,n,this.animationValues),ed(`skew${eu[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return eh;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=t$(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=t$(t?.pointerEvents)||""),this.hasProjected&&!(0,et.ud)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*r.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,tS.P){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:o}=tS.P[t],a="none"===e.transform?s[t]:i(s[t],n);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=a}else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=n===this?t$(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function em(t){t.updateLayout()}function ef(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?U(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=M(n);n.min=i[t].min,n.max=n.min+s}):eV(s,e.layoutBox,i)&&U(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=M(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,I.wc)();V(o,i,e.layoutBox);let a=(0,I.wc)();r?V(a,t.applyTransform(n,!0),e.measuredBox):V(a,i,e.layoutBox);let l=!t4(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=(0,I.dO)();$(o,e.layoutBox,s.layoutBox);let a=(0,I.dO)();$(a,i,r.layoutBox),t3(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eg(t){ee.f.value&&el.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
98isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ev(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ey(t){t.clearSnapshot()}function ex(t){t.clearMeasurements()}function eP(t){t.isLayoutDirty=!1}function eE(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eT(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eb(t){t.resolveTargetDelta()}function eS(t){t.calcProjection()}function ew(t){t.resetSkewAndRotation()}function eA(t){t.removeLeadSnapshot()}function eD(t,e,i){t.translate=(0,j.t)(e.translate,0,i),t.scale=(0,j.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eL(t,e,i,n){t.min=(0,j.t)(e.min,i.min,n),t.max=(0,j.t)(e.max,i.max,n)}function eR(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eC={duration:.45,ease:[.4,0,.1,1]},ej=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eM=ej("applewebkit/")&&!ej("chrome/")?Math.round:tc.Z;function ek(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(t8(e)-t8(i)))}function eO(t){return t!==t.root&&t.scroll?.wasRoot}let eB=ep({attachResizeListener:(t,e)=>w(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),e$={current:void 0},eI=ep({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!e$.current){let t=new eB({});t.mount(window),t.setOptions({layoutScroll:!0}),e$.current=t}return e$.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var eU=i(7900);function eF(t,e){let i=(0,eU.I)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function eW(t){return!("touch"===t.pointerType||to.x||to.y)}function eH(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&z.Wi.postRender(()=>s(e,D(e)))}class eN extends P{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=eF(t,i),o=t=>{if(!eW(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{eW(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(eH(this.node,e,"Start"),t=>eH(this.node,t,"End"))))}unmount(){}}class eZ extends P{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,X.z)(w(this.node.current,"focus",()=>this.onFocus()),w(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ez=i(52099);let eX=(t,e)=>!!e&&(t===e||eX(t,e.parentElement)),eY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eG=new WeakSet;function e_(t){return e=>{"Enter"===e.key&&t(e)}}function eq(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let eK=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=e_(()=>{if(eG.has(i))return;eq(i,"down");let t=e_(()=>{eq(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>eq(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function eQ(t){return A(t)&&!(to.x||to.y)}function eJ(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&z.Wi.postRender(()=>s(e,D(e)))}class e0 extends P{mount(){let{current:t}=this.node;
98t&&(this.unmount=function(t,e,i={}){let[n,s,r]=eF(t,i),o=t=>{let n=t.currentTarget;if(!eQ(t))return;eG.add(n);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),eG.has(n)&&eG.delete(n),eQ(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||eX(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),(0,ez.R)(t)&&(t.addEventListener("focus",t=>eK(t,s)),eY.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(eJ(this.node,e,"Start"),(t,{success:e})=>eJ(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let e1=new WeakMap,e2=new WeakMap,e4=t=>{let e=e1.get(t.target);e&&e(t)},e9=t=>{t.forEach(e4)},e5={some:0,all:1};class e3 extends P{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:e5[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;e2.has(i)||e2.set(i,{});let n=e2.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(e9,{root:t,...e})),n[s]}(e);return e1.set(t,i),n.observe(t),()=>{e1.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==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(){}}let e8=(0,tg.createContext)({strict:!1});var e6=i(77439);let e7=(0,tg.createContext)({});var it=i(87602);function ie(t){return Array.isArray(t)?t.join(" "):t}var ii=i(28269),is=i(17427);let ir=Symbol.for("motionComponentSymbol");var io=i(80949),ia=i(4048),il=i(14822),iu=i(7672),ih=i(66463);let ic=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function id(t,e,i){for(let n in e)(0,tB.i)(e[n])||(0,iu.j)(n,i)||(t[n]=e[n])}var ip=i(25558);let im=()=>({...ic(),attrs:{}});var ig=i(42781);let iv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function iy(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iv.has(t)}let ix=t=>!iy(t);try{(n=require("@emotion/is-prop-valid").default)&&(ix=t=>t.startsWith("on")?!iy(t):n(t))}catch{}let iP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iE(t){if("string"!=typeof t||t.includes("-"));else if(iP.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var iT=i(2145),ib=i(47281);let iS=t=>(e,i)=>{let n=(0,tg.useContext)(e7),s=(0,tg.useContext)(ia.O),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=t$(r[t]);let{initial:a,animate:l}=t,u=(0,it.G)(t),h=(0,it.M)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!(0,o.H)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=(0,iT.o)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():(0,ib.h)(r)},iw={useVisualState:iS({scrapeMotionValuesFromProps:i(32e3).U,createRenderState:ic})},iA={useVisualState:iS({scrapeMotionValuesFromProps:i(30909).U,createRenderState:im})};var iD=i(63138),iL=i(83470);let iR=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((s={animation:{Feature:E},exit:{Feature:b},inView:{Feature:e3},tap:{Feature:e0},focus:{Feature:eZ},hover:{Feature:eN},pan:{Feature:tm},drag:{Feature:td,ProjectionNode:eI,MeasureLayout:tL},layout:{ProjectionNode:eI,MeasureLayout:tL}},r=(t,e)=>iE(t)?new iL.e(e):new iD.W(e,{allowProjection:t!==tg.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:s}){function r(t,r){var o;let a;let l={...(0,tg.useContext)(e6._),...t,layoutId:function({layoutId:t}){let e=(0,tg.useContext)(ty.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if((0,it.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,p.$)(e)?e:void 0,animate:(0,p.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tg.useContext)(e7));return(0,tg.useMemo)(()=>({initial:e,animate:i}),[ie(e),ie(i)])}
98(t),c=n(t,u);if(!u&&ii.j){(0,tg.useContext)(e8).strict;let t=function(t){let{drag:e,layout:i}=is.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);a=t.MeasureLayout,h.visualElement=function(t,e,i,n,s){let{visualElement:r}=(0,tg.useContext)(e7),o=(0,tg.useContext)(e8),a=(0,tg.useContext)(ia.O),l=(0,tg.useContext)(e6._).reducedMotion,u=(0,tg.useRef)(null);n=n||o.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:r,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let h=u.current,c=(0,tg.useContext)(tx);h&&!h.projection&&s&&("html"===h.type||"svg"===h.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&H(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,s,c);let d=(0,tg.useRef)(!1);(0,tg.useInsertionEffect)(()=>{h&&d.current&&h.update(i,a)});let p=i[io.M],m=(0,tg.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,il.L)(()=>{h&&(d.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),tw.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,tg.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),h}(s,c,l,e,t.ProjectionNode)}return(0,tf.jsxs)(e7.Provider,{value:h,children:[a&&h.visualElement?(0,tf.jsx)(a,{visualElement:h.visualElement,...l}):null,i(s,t,(o=h.visualElement,(0,tg.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),r&&("function"==typeof r?r(t):H(r)&&(r.current=t))},[o])),c,u,h.visualElement)]})}t&&function(t){for(let e in t)is.featureDefinitions[e]={...is.featureDefinitions[e],...t[e]}}(t),r.displayName=`motion.${"string"==typeof s?s:`create(${s.displayName??s.name??""})`}`;let o=(0,tg.forwardRef)(r);return o[ir]=s,o}({...iE(t)?iA:iw,preloadedFeatures:s,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(iE(e)?function(t,e,i,n){let s=(0,tg.useMemo)(()=>{let i=im();return(0,ip.i)(i,e,(0,ig.a)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};id(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return id(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tg.useMemo)(()=>{let i=ic();return(0,ih.r)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,e),a=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(ix(s)||!0===i&&iy(s)||!e&&!iy(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==tg.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,tg.useMemo)(()=>(0,tB.i)(u)?u.get():u,[u]);return(0,tg.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t})}))},47281:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(67294);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},14822:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(67294);let s=i(28269).j?n.useLayoutEffect:n.useEffect}}]);

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.