@ukpc-lib/react 0.2.9 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Colors-4ad88021.js +29 -0
- package/dist/Colors-51ce6654.cjs +1 -0
- package/dist/components/Notification/NotificationList/components/CustomOpenListContext.d.ts +3 -0
- package/dist/components/Notification/NotificationList/components/query.d.ts +2 -0
- package/dist/components/Notification/models/NotiticationDto.d.ts +6 -0
- package/dist/components/Topbar/icons/country-flags/GermanyIcon.d.ts +4 -0
- package/dist/components/Topbar/icons/country-flags/UnitedKingdomIcon.d.ts +4 -0
- package/dist/components/index.cjs +26 -26
- package/dist/components/index.js +2748 -2527
- package/dist/index.css +1 -1
- package/dist/index.module-91685508.js +24670 -0
- package/dist/index.module-dcaddd18.cjs +1086 -0
- package/dist/share/TranslationProvider/index.d.ts +11 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.d.ts +1 -0
- package/dist/share/index.js +44 -42
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +577 -0
- package/package.json +12 -2
- package/web-components-bundle/global-menu/index.cjs +2 -2
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/index-0c76b789.cjs +884 -0
- package/web-components-bundle/{index-75324537.js → index-200424a6.js} +18 -28
- package/web-components-bundle/{index-374bf205.cjs → index-661a7bdb.cjs} +1 -1
- package/web-components-bundle/index-fb164b1a.js +19854 -0
- package/dist/index.module-7d653d97.js +0 -22703
- package/dist/index.module-ff8a71df.cjs +0 -1086
- package/web-components-bundle/index-11fd22c1.cjs +0 -884
- package/web-components-bundle/index-51fef28a.js +0 -17668
|
@@ -71,7 +71,7 @@ Error generating stack: `+o.message+`
|
|
|
71
71
|
`?e.push(uu,B(n)):e.push(B(""+n)))}return typeof o=="string"&&o[0]===`
|
|
72
72
|
`&&e.push(uu),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(zt(t));for(var m in n)if(He.call(n,m)&&(o=n[m],o!=null))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(z(399,t));default:Je(e,r,m,o)}return e.push(Qh),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return au(e,n,t,r);case"html":return i.insertionMode===0&&e.push(GP),au(e,n,t,r);default:if(t.indexOf("-")===-1&&typeof n.is!="string")return au(e,n,t,r);e.push(zt(t)),s=o=null;for(u in n)if(He.call(n,u)&&(l=n[u],l!=null))switch(u){case"children":o=l;break;case"dangerouslySetInnerHTML":s=l;break;case"style":t1(e,r,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:e1(u)&&typeof l!="function"&&typeof l!="symbol"&&e.push(Sn,B(u),_r,B(Ce(l)),sr)}return e.push(kn),Is(e,s,o),o}}var qP=_("</"),XP=_(">"),QP=_('<template id="'),YP=_('"></template>'),ZP=_("<!--$-->"),JP=_('<!--$?--><template id="'),eT=_('"></template>'),tT=_("<!--$!-->"),nT=_("<!--/$-->"),rT=_("<template"),iT=_('"'),oT=_(' data-dgst="');_(' data-msg="');_(' data-stck="');var sT=_("></template>");function Zh(e,t,n){if(L(e,JP),n===null)throw Error(z(395));return L(e,n),J(e,eT)}var lT=_('<div hidden id="'),aT=_('">'),uT=_("</div>"),cT=_('<svg aria-hidden="true" style="display:none" id="'),fT=_('">'),dT=_("</svg>"),pT=_('<math aria-hidden="true" style="display:none" id="'),hT=_('">'),mT=_("</math>"),gT=_('<table hidden id="'),yT=_('">'),vT=_("</table>"),wT=_('<table hidden><tbody id="'),xT=_('">'),ST=_("</tbody></table>"),kT=_('<table hidden><tr id="'),ET=_('">'),CT=_("</tr></table>"),PT=_('<table hidden><colgroup id="'),TT=_('">'),RT=_("</colgroup></table>");function bT(e,t,n,r){switch(n.insertionMode){case 0:case 1:return L(e,lT),L(e,t.segmentPrefix),L(e,B(r.toString(16))),J(e,aT);case 2:return L(e,cT),L(e,t.segmentPrefix),L(e,B(r.toString(16))),J(e,fT);case 3:return L(e,pT),L(e,t.segmentPrefix),L(e,B(r.toString(16))),J(e,hT);case 4:return L(e,gT),L(e,t.segmentPrefix),L(e,B(r.toString(16))),J(e,yT);case 5:return L(e,wT),L(e,t.segmentPrefix),L(e,B(r.toString(16))),J(e,xT);case 6:return L(e,kT),L(e,t.segmentPrefix),L(e,B(r.toString(16))),J(e,ET);case 7:return L(e,PT),L(e,t.segmentPrefix),L(e,B(r.toString(16))),J(e,TT);default:throw Error(z(397))}}function _T(e,t){switch(t.insertionMode){case 0:case 1:return J(e,uT);case 2:return J(e,dT);case 3:return J(e,mT);case 4:return J(e,vT);case 5:return J(e,ST);case 6:return J(e,CT);case 7:return J(e,RT);default:throw Error(z(397))}}var AT=_('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),OT=_('$RS("'),LT=_('","'),MT=_('")<\/script>'),$T=_('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),NT=_('$RC("'),FT=_('","'),DT=_('")<\/script>'),jT=_('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),VT=_('$RX("'),IT=_('"'),zT=_(")<\/script>"),cu=_(","),BT=/[<\u2028\u2029]/g;function fu(e){return JSON.stringify(e).replace(BT,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Qi=Object.assign,UT=Symbol.for("react.element"),n1=Symbol.for("react.portal"),r1=Symbol.for("react.fragment"),i1=Symbol.for("react.strict_mode"),o1=Symbol.for("react.profiler"),s1=Symbol.for("react.provider"),l1=Symbol.for("react.context"),a1=Symbol.for("react.forward_ref"),u1=Symbol.for("react.suspense"),c1=Symbol.for("react.suspense_list"),f1=Symbol.for("react.memo"),vd=Symbol.for("react.lazy"),WT=Symbol.for("react.scope"),HT=Symbol.for("react.debug_trace_mode"),GT=Symbol.for("react.legacy_hidden"),KT=Symbol.for("react.default_value"),Jh=Symbol.iterator;function $c(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case r1:return"Fragment";case n1:return"Portal";case o1:return"Profiler";case i1:return"StrictMode";case u1:return"Suspense";case c1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l1:return(e.displayName||"Context")+".Consumer";case s1:return(e._context.displayName||"Context")+".Provider";case a1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case f1:return t=e.displayName||null,t!==null?t:$c(e.type)||"Memo";case vd:t=e._payload,e=e._init;try{return $c(e(t))}catch{}}return null}var d1={};function em(e,t){if(e=e.contextTypes,!e)return d1;var n={},r;for(r in e)n[r]=t[r];return n}var dr=null;function fa(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(z(401))}else{if(n===null)throw Error(z(401));fa(e,n)}t.context._currentValue=t.value}}function p1(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&p1(e)}function h1(e){var t=e.parent;t!==null&&h1(t),e.context._currentValue=e.value}function m1(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(z(402));e.depth===t.depth?fa(e,t):m1(e,t)}function g1(e,t){var n=t.parent;if(n===null)throw Error(z(402));e.depth===n.depth?fa(e,n):g1(e,n),t.context._currentValue=t.value}function Cl(e){var t=dr;t!==e&&(t===null?h1(e):e===null?p1(t):t.depth===e.depth?fa(t,e):t.depth>e.depth?m1(t,e):g1(t,e),dr=e)}var tm={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function nm(e,t,n,r){var i=e.state!==void 0?e.state:null;e.updater=tm,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue:r,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(n,i),i=s==null?i:Qi({},i,s),e.state=i),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&tm.enqueueReplaceState(e,e.state,null),o.queue!==null&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&t.length===1)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var l=t[s];l=typeof l=="function"?l.call(e,o,n,r):l,l!=null&&(i?(i=!1,o=Qi({},o,l)):Qi(o,l))}e.state=o}else o.queue=null}var qT={id:1,overflow:""};function Nc(e,t,n){var r=e.id;e=e.overflow;var i=32-zs(r)-1;r&=~(1<<i),n+=1;var o=32-zs(t)+i;if(30<o){var s=i-i%5;return o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,{id:1<<32-zs(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var zs=Math.clz32?Math.clz32:YT,XT=Math.log,QT=Math.LN2;function YT(e){return e>>>=0,e===0?32:31-(XT(e)/QT|0)|0}function ZT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var JT=typeof Object.is=="function"?Object.is:ZT,dn=null,wd=null,Bs=null,X=null,Di=!1,Pl=!1,Co=0,Mn=null,da=0;function lr(){if(dn===null)throw Error(z(321));return dn}function rm(){if(0<da)throw Error(z(312));return{memoizedState:null,queue:null,next:null}}function xd(){return X===null?Bs===null?(Di=!1,Bs=X=rm()):(Di=!0,X=Bs):X.next===null?(Di=!1,X=X.next=rm()):(Di=!0,X=X.next),X}function Sd(){wd=dn=null,Pl=!1,Bs=null,da=0,X=Mn=null}function y1(e,t){return typeof t=="function"?t(e):t}function im(e,t,n){if(dn=lr(),X=xd(),Di){var r=X.queue;if(t=r.dispatch,Mn!==null&&(n=Mn.get(r),n!==void 0)){Mn.delete(r),r=X.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return X.memoizedState=r,[r,t]}return[X.memoizedState,t]}return e=e===y1?typeof t=="function"?t():t:n!==void 0?n(t):t,X.memoizedState=e,e=X.queue={last:null,dispatch:null},e=e.dispatch=e2.bind(null,dn,e),[X.memoizedState,e]}function om(e,t){if(dn=lr(),X=xd(),t=t===void 0?null:t,X!==null){var n=X.memoizedState;if(n!==null&&t!==null){var r=n[1];e:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!JT(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),X.memoizedState=[e,t],e}function e2(e,t,n){if(25<=da)throw Error(z(301));if(e===dn)if(Pl=!0,e={action:n,next:null},Mn===null&&(Mn=new Map),n=Mn.get(t),n===void 0)Mn.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}function t2(){throw Error(z(394))}function as(){}var sm={readContext:function(e){return e._currentValue},useContext:function(e){return lr(),e._currentValue},useMemo:om,useReducer:im,useRef:function(e){dn=lr(),X=xd();var t=X.memoizedState;return t===null?(e={current:e},X.memoizedState=e):t},useState:function(e){return im(y1,e)},useInsertionEffect:as,useLayoutEffect:function(){},useCallback:function(e,t){return om(function(){return e},t)},useImperativeHandle:as,useEffect:as,useDebugValue:as,useDeferredValue:function(e){return lr(),e},useTransition:function(){return lr(),[!1,t2]},useId:function(){var e=wd.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-zs(e)-1)).toString(32)+t;var n=Us;if(n===null)throw Error(z(404));return t=Co++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return lr(),t(e._source)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(z(407));return n()}},Us=null,du=Yv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function n2(e){return console.error(e),null}function ji(){}function r2(e,t,n,r,i,o,s,l,a){var u=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?n2:i,onAllReady:o===void 0?ji:o,onShellReady:s===void 0?ji:s,onShellError:l===void 0?ji:l,onFatalError:a===void 0?ji:a},n=Tl(t,0,null,n,!1,!1),n.parentFlushed=!0,e=kd(t,e,null,n,f,d1,null,qT),u.push(e),t}function kd(e,t,n,r,i,o,s,l){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var a={node:t,ping:function(){var u=e.pingedTasks;u.push(a),u.length===1&&x1(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:s,treeContext:l};return i.add(a),a}function Tl(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function Po(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Rl(e,t){var n=e.onShellError;n(t),n=e.onFatalError,n(t),e.destination!==null?(e.status=2,Jv(e.destination,t)):(e.status=1,e.fatalError=t)}function lm(e,t,n,r,i){for(dn={},wd=t,Co=0,e=n(r,i);Pl;)Pl=!1,Co=0,da+=1,X=null,e=n(r,i);return Sd(),e}function am(e,t,n,r){var i=n.render(),o=r.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof n.getChildContext!="function")r=s;else{n=n.getChildContext();for(var l in n)if(!(l in o))throw Error(z(108,$c(r)||"Unknown",l));r=Qi({},s,n)}t.legacyContext=r,ot(e,t,i),t.legacyContext=s}else ot(e,t,i)}function um(e,t){if(e&&e.defaultProps){t=Qi({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fc(e,t,n,r,i){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){i=em(n,t.legacyContext);var o=n.contextType;o=new n(r,typeof o=="object"&&o!==null?o._currentValue:i),nm(o,n,r,i),am(e,t,o,n)}else{o=em(n,t.legacyContext),i=lm(e,t,n,r,o);var s=Co!==0;if(typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0)nm(i,n,r,o),am(e,t,i,n);else if(s){r=t.treeContext,t.treeContext=Nc(r,1,0);try{ot(e,t,i)}finally{t.treeContext=r}}else ot(e,t,i)}else if(typeof n=="string"){switch(i=t.blockedSegment,o=KP(i.chunks,n,r,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=zP(s,n,r),Dc(e,t,o),i.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(qP,B(n),XP)}i.lastPushedText=!1}else{switch(n){case GT:case HT:case i1:case o1:case r1:ot(e,t,r.children);return;case c1:ot(e,t,r.children);return;case WT:throw Error(z(343));case u1:e:{n=t.blockedBoundary,i=t.blockedSegment,o=r.fallback,r=r.children,s=new Set;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},a=Tl(e,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(a),i.lastPushedText=!1;var u=Tl(e,0,null,i.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Dc(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(yd),u.status=1,bl(l,u),l.pendingTasks===0)break e}catch(f){u.status=4,l.forceClientRender=!0,l.errorDigest=Po(e,f)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=kd(e,o,n,a,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case a1:if(r=lm(e,t,n.render,r,i),Co!==0){n=t.treeContext,t.treeContext=Nc(n,1,0);try{ot(e,t,r)}finally{t.treeContext=n}}else ot(e,t,r);return;case f1:n=n.type,r=um(n,r),Fc(e,t,n,r,i);return;case s1:if(i=r.children,n=n._context,r=r.value,o=n._currentValue,n._currentValue=r,s=dr,dr=r={parent:s,depth:s===null?0:s.depth+1,context:n,parentValue:o,value:r},t.context=r,ot(e,t,i),e=dr,e===null)throw Error(z(403));r=e.parentValue,e.context._currentValue=r===KT?e.context._defaultValue:r,e=dr=e.parent,t.context=e;return;case l1:r=r.children,r=r(n._currentValue),ot(e,t,r);return;case vd:i=n._init,n=i(n._payload),r=um(n,r),Fc(e,t,n,r,void 0);return}throw Error(z(130,n==null?n:typeof n,""))}}function ot(e,t,n){if(t.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case UT:Fc(e,t,n.type,n.props,n.ref);return;case n1:throw Error(z(257));case vd:var r=n._init;n=r(n._payload),ot(e,t,n);return}if(Mc(n)){cm(e,t,n);return}if(n===null||typeof n!="object"?r=null:(r=Jh&&n[Jh]||n["@@iterator"],r=typeof r=="function"?r:null),r&&(r=r.call(n))){if(n=r.next(),!n.done){var i=[];do i.push(n.value),n=r.next();while(!n.done);cm(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}typeof n=="string"?(r=t.blockedSegment,r.lastPushedText=Gh(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText)):typeof n=="number"&&(r=t.blockedSegment,r.lastPushedText=Gh(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function cm(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Nc(o,r,i);try{Dc(e,t,n[i])}finally{t.treeContext=o}}}function Dc(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return ot(e,t,n)}catch(a){if(Sd(),typeof a=="object"&&a!==null&&typeof a.then=="function"){n=a;var s=t.blockedSegment,l=Tl(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(l),s.lastPushedText=!1,e=kd(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,Cl(o)}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,Cl(o),a}}function i2(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,w1(this,t,e)}function v1(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,r===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=n===void 0?Error(z(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(i){return v1(i,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(r=t.onAllReady,r()))}function bl(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===1&&bl(e,n)}else e.completedSegments.push(t)}function w1(e,t,n){if(t===null){if(n.parentFlushed){if(e.completedRootSegment!==null)throw Error(z(389));e.completedRootSegment=n}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=ji,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(n.parentFlushed&&n.status===1&&bl(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(i2,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(bl(t,n),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function x1(e){if(e.status!==2){var t=dr,n=du.current;du.current=sm;var r=Us;Us=e.responseState;try{var i=e.pingedTasks,o;for(o=0;o<i.length;o++){var s=i[o],l=e,a=s.blockedSegment;if(a.status===0){Cl(s.context);try{ot(l,s,s.node),a.lastPushedText&&a.textEmbedded&&a.chunks.push(yd),s.abortSet.delete(s),a.status=1,w1(l,s.blockedBoundary,a)}catch(y){if(Sd(),typeof y=="object"&&y!==null&&typeof y.then=="function"){var u=s.ping;y.then(u,u)}else{s.abortSet.delete(s),a.status=4;var f=s.blockedBoundary,c=y,d=Po(l,c);if(f===null?Rl(l,c):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=d,f.parentFlushed&&l.clientRenderedBoundaries.push(f))),l.allPendingTasks--,l.allPendingTasks===0){var m=l.onAllReady;m()}}}finally{}}}i.splice(0,o),e.destination!==null&&Ed(e,e.destination)}catch(y){Po(e,y),Rl(e,y)}finally{Us=r,du.current=n,n===sm&&Cl(t)}}}function us(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,L(t,QP),L(t,e.placeholderPrefix),e=B(r.toString(16)),L(t,e),J(t,YP);case 1:n.status=2;var i=!0;r=n.chunks;var o=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];o<i.index;o++)L(t,r[o]);i=pa(e,t,i)}for(;o<r.length-1;o++)L(t,r[o]);return o<r.length&&(i=J(t,r[o])),i;default:throw Error(z(390))}}function pa(e,t,n){var r=n.boundary;if(r===null)return us(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,J(t,tT),L(t,rT),r&&(L(t,oT),L(t,B(Ce(r))),L(t,iT)),J(t,sT),us(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,o=i.nextSuspenseID++;i=_(i.boundaryPrefix+o.toString(16)),r=r.id=i,Zh(t,e.responseState,r),us(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),Zh(t,e.responseState,r.id),us(e,t,n);else{if(J(t,ZP),n=r.completedSegments,n.length!==1)throw Error(z(391));pa(e,t,n[0])}return J(t,nT)}function fm(e,t,n){return bT(t,e.responseState,n.formatContext,n.id),pa(e,t,n),_T(t,n.formatContext)}function dm(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)S1(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,L(t,e.startInlineScript),e.sentCompleteBoundaryFunction?L(t,NT):(e.sentCompleteBoundaryFunction=!0,L(t,$T)),r===null)throw Error(z(395));return n=B(n.toString(16)),L(t,r),L(t,FT),L(t,e.segmentPrefix),L(t,n),J(t,DT)}function S1(e,t,n,r){if(r.status===2)return!0;var i=r.id;if(i===-1){if((r.id=n.rootSegmentID)===-1)throw Error(z(392));return fm(e,t,r)}return fm(e,t,r),e=e.responseState,L(t,e.startInlineScript),e.sentCompleteSegmentFunction?L(t,OT):(e.sentCompleteSegmentFunction=!0,L(t,AT)),L(t,e.segmentPrefix),i=B(i.toString(16)),L(t,i),L(t,LT),L(t,e.placeholderPrefix),L(t,i),J(t,MT)}function Ed(e,t){rt=new Uint8Array(512),it=0;try{var n=e.completedRootSegment;if(n!==null&&e.pendingRootTasks===0){pa(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)L(t,r[n]);n<r.length&&J(t,r[n])}var i=e.clientRenderedBoundaries,o;for(o=0;o<i.length;o++){var s=i[o];r=t;var l=e.responseState,a=s.id,u=s.errorDigest,f=s.errorMessage,c=s.errorComponentStack;if(L(r,l.startInlineScript),l.sentClientRenderFunction?L(r,VT):(l.sentClientRenderFunction=!0,L(r,jT)),a===null)throw Error(z(395));L(r,a),L(r,IT),(u||f||c)&&(L(r,cu),L(r,B(fu(u||"")))),(f||c)&&(L(r,cu),L(r,B(fu(f||"")))),c&&(L(r,cu),L(r,B(fu(c)))),J(r,zT)}i.splice(0,o);var d=e.completedBoundaries;for(o=0;o<d.length;o++)dm(e,t,d[o]);d.splice(0,o),Bh(t),rt=new Uint8Array(512),it=0;var m=e.partialBoundaries;for(o=0;o<m.length;o++){var y=m[o];e:{i=e,s=t;var v=y.completedSegments;for(l=0;l<v.length;l++)if(!S1(i,s,y,v[l])){l++,v.splice(0,l);var w=!1;break e}v.splice(0,l),w=!0}if(!w){e.destination=null,o++,m.splice(0,o);return}}m.splice(0,o);var p=e.completedBoundaries;for(o=0;o<p.length;o++)dm(e,t,p[o]);p.splice(0,o)}finally{Bh(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function pm(e,t){try{var n=e.abortableTasks;n.forEach(function(r){return v1(r,e,t)}),n.clear(),e.destination!==null&&Ed(e,e.destination)}catch(r){Po(e,r),Rl(e,r)}}hd.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,o,s=new Promise(function(f,c){o=f,i=c}),l=r2(e,VP(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),IP(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var f=new ReadableStream({type:"bytes",pull:function(c){if(l.status===1)l.status=2,Jv(c,l.fatalError);else if(l.status!==2&&l.destination===null){l.destination=c;try{Ed(l,c)}catch(d){Po(l,d),Rl(l,d)}}},cancel:function(){pm(l)}},{highWaterMark:0});f.allReady=s,n(f)},function(f){s.catch(function(){}),r(f)},i);if(t&&t.signal){var a=t.signal,u=function(){pm(l,a.reason),a.removeEventListener("abort",u)};a.addEventListener("abort",u)}x1(l)})};hd.version="18.2.0";var gi,k1;gi=mi,k1=hd;gi.version;var o2=gi.renderToString;gi.renderToStaticMarkup;gi.renderToNodeStream;gi.renderToStaticNodeStream;k1.renderToReadableStream;var E1={exports:{}},s2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",l2=s2,a2=l2;function C1(){}function P1(){}P1.resetWarningCache=C1;var u2=function(){function e(r,i,o,s,l,a){if(a!==a2){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:P1,resetWarningCache:C1};return n.PropTypes=n,n};E1.exports=u2();var he=E1.exports;const Lt=Il(he);var c2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T1(e,t){return e(t={exports:{}},t.exports),t.exports}var f2=T1(function(e){(function(t){var n=function(w,p,h){if(!a(p)||f(p)||c(p)||d(p)||l(p))return p;var g,x=0,S=0;if(u(p))for(g=[],S=p.length;x<S;x++)g.push(n(w,p[x],h));else for(var k in g={},p)Object.prototype.hasOwnProperty.call(p,k)&&(g[w(k,h)]=n(w,p[k],h));return g},r=function(w){return m(w)?w:(w=w.replace(/[\-_\s]+(.)?/g,function(p,h){return h?h.toUpperCase():""})).substr(0,1).toLowerCase()+w.substr(1)},i=function(w){var p=r(w);return p.substr(0,1).toUpperCase()+p.substr(1)},o=function(w,p){return function(h,g){var x=(g=g||{}).separator||"_",S=g.split||/(?=[A-Z])/;return h.split(S).join(x)}(w,p).toLowerCase()},s=Object.prototype.toString,l=function(w){return typeof w=="function"},a=function(w){return w===Object(w)},u=function(w){return s.call(w)=="[object Array]"},f=function(w){return s.call(w)=="[object Date]"},c=function(w){return s.call(w)=="[object RegExp]"},d=function(w){return s.call(w)=="[object Boolean]"},m=function(w){return(w-=0)==w},y=function(w,p){var h=p&&"process"in p?p.process:p;return typeof h!="function"?w:function(g,x){return h(g,w,x)}},v={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(w,p){return n(y(r,p),w)},decamelizeKeys:function(w,p){return n(y(o,p),w,p)},pascalizeKeys:function(w,p){return n(y(i,p),w)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(c2)}).decamelize,d2=function(e){if(Array.isArray(e))return e},p2=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(a){i=!0,o=a}finally{try{r||l.return==null||l.return()}finally{if(i)throw o}}return n}},hm=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},h2=function(e,t){if(e){if(typeof e=="string")return hm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hm(e,t):void 0}},m2=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
73
73
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},g2=function(e,t){return d2(e)||p2(e,t)||h2(e,t)||m2()},R1=T1(function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},t.apply(this,arguments)}e.exports=t}),y2=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},b1=function(e,t){if(e==null)return{};var n,r,i=y2(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},v2=C.createContext(null);function jc(e){var t=e.children,n=b1(e,["children"]);return typeof t!="string"&&(t=o2(t)),st.createElement("template",R1({},n,{dangerouslySetInnerHTML:{__html:t}}))}function Vc(e){var t=e.root,n=e.children;return od.createPortal(n,t)}function w2(e){var t=C.forwardRef(function(n,r){var i,o,s=n.mode,l=n.delegatesFocus,a=n.styleSheets,u=n.ssr,f=n.children,c=b1(n,["mode","delegatesFocus","styleSheets","ssr","children"]),d=(o=C.useRef((i=r)&&i.current),C.useEffect(function(){i&&(i.current=o.current)},[i]),o),m=C.useState(null),y=g2(m,2),v=y[0],w=y[1],p="node_".concat(s).concat(l);return C.useLayoutEffect(function(){if(d.current)try{if(typeof r=="function"&&r(d.current),u){var h=d.current.shadowRoot;return void w(h)}var g=d.current.attachShadow({mode:s,delegatesFocus:l});a.length>0&&(g.adoptedStyleSheets=a),w(g)}catch(x){(function(S){var k=S.error,E=S.styleSheets,P=S.root;switch(k.name){case"NotSupportedError":E.length>0&&(P.adoptedStyleSheets=E);break;default:throw k}})({error:x,styleSheets:a,root:v})}},[r,d,a]),st.createElement(st.Fragment,null,st.createElement(e.tag,R1({key:p,ref:d},c),(v||u)&&st.createElement(v2.Provider,{value:v},u?st.createElement(jc,{shadowroot:s,shadowrootmode:s},e.render({root:v,ssr:u,children:f})):st.createElement(Vc,{root:v},e.render({root:v,ssr:u,children:f})))))});return t.propTypes={mode:Lt.oneOf(["open","closed"]),delegatesFocus:Lt.bool,styleSheets:Lt.arrayOf(Lt.instanceOf(globalThis.CSSStyleSheet)),ssr:Lt.bool,children:Lt.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}jc.propTypes={children:Lt.oneOfType([Lt.string,Lt.node])},jc.defaultProps={children:""},Vc.propTypes={root:Lt.object.isRequired,children:Lt.node},Vc.defaultProps={children:null};var pu=new Map;function x2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,i){var o=f2(i,{separator:"-"}),s="".concat(t,"-").concat(o);return pu.has(s)||pu.set(s,w2({tag:o,render:n})),pu.get(s)}})}var S2=x2();const k2=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
74
|
-
`;function _1({children:e,styles:t=[],...n}){return $.jsxs(S2.div,{...n,children:[[k2,...t].map((r,i)=>$.jsx("style",{type:"text/css",children:r},i)),e]})}const Cd=e=>typeof e=="number"&&!isNaN(e),Yi=e=>typeof e=="string",A1=e=>typeof e=="function",E2=e=>C.isValidElement(e)||Yi(e)||A1(e)||Cd(e),Wt=new Map;let Ic=[];const mm=new Set,O1=()=>Wt.size>0;function C2(e,t){var n;if(t)return!((n=Wt.get(t))==null||!n.isToastActive(e));let r=!1;return Wt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function P2(e,t){E2(e)&&(O1()||Ic.push({content:e,options:t}),Wt.forEach(n=>{n.buildToast(e,t)}))}function gm(e,t){Wt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}let T2=1;const L1=()=>""+T2++;function R2(e){return e&&(Yi(e.toastId)||Cd(e.toastId))?e.toastId:L1()}function Zi(e,t){return P2(e,t),t.toastId}function _l(e,t){return{...t,type:t&&t.type||e,toastId:R2(t)}}function cs(e){return(t,n)=>Zi(t,_l(e,n))}function re(e,t){return Zi(e,_l("default",t))}re.loading=(e,t)=>Zi(e,_l("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),re.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Yi(i)?re.loading(i,n):re.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(f,c,d)=>{if(c==null)return void re.dismiss(r);const m={type:f,...l,...n,data:d},y=Yi(c)?{render:c}:c;return r?re.update(r,{...m,...y}):re(y.render,{...m,...y}),d},u=A1(e)?e():e;return u.then(f=>a("success",s,f)).catch(f=>a("error",o,f)),u},re.success=cs("success"),re.info=cs("info"),re.error=cs("error"),re.warning=cs("warning"),re.warn=re.warning,re.dark=(e,t)=>Zi(e,_l("default",{theme:"dark",...t})),re.dismiss=function(e){(function(t){var n;if(O1()){if(t==null||Yi(n=t)||Cd(n))Wt.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=Wt.get(t.containerId))!=null&&r.removeToast(t.id)||Wt.forEach(i=>{i.removeToast(t.id)})}}else Ic=Ic.filter(i=>t!=null&&i.options.toastId!==t)})(e)},re.clearWaitingQueue=function(e){e===void 0&&(e={}),Wt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},re.isActive=C2,re.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=Wt.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:L1()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Zi(s,o)}},re.done=e=>{re.update(e,{progress:1})},re.onChange=function(e){return mm.add(e),()=>{mm.delete(e)}},re.play=e=>gm(!0,e),re.pause=e=>gm(!1,e);const zc={primary:"#93D500",secondary:"#007BFF",textPrimary:"#000000",textSecondary:"#101010",priText:"#009D4F",lightPrimary:"#E8F5E9",darkPrimary:"#2E7D32",lightSecondary:"#E8F5E9",darkSecondary:"#339790",danger:"#E01B00",darkDanger:"#BE1700",warning:"#FFB600",success:"#009D4F",error:"#E9645B",successChip:"#F4FBE5",errorChip:"#E01B001A",warningChip:"#FFB8001A",secondaryChip:"#E5F2FF",appBarColor:"#000000",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey600:"#85858A",gold100:"#FFFBE6",gold200:"#FFF1B8",gold300:"#FFE58F",gold600:"#FAAD14",gold700:"#D48806",outlinedButton:"#009D4F",containedButtonString:"#000000",pink:"#E81F76"};function b2(){return $.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),$.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),$.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const _2={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},M1=e=>{re.error(e,{icon:$.jsx(b2,{}),position:"bottom-right",style:{..._2,background:"#F7E4E1",borderColor:zc.danger,color:zc.danger}})},$1=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ha=C.createContext({}),Pd=C.createContext(null),ma=typeof document<"u",A2=ma?C.useLayoutEffect:C.useEffect,N1=C.createContext({strict:!1}),Td=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),O2="framerAppearId",F1="data-"+Td(O2);function L2(e,t,n,r){const{visualElement:i}=C.useContext(ha),o=C.useContext(N1),s=C.useContext(Pd),l=C.useContext($1).reducedMotion,a=C.useRef();r=r||o.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;C.useInsertionEffect(()=>{u&&u.update(n,s)});const f=C.useRef(!!(n[F1]&&!window.HandoffComplete));return A2(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),C.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function Wr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function M2(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Wr(n)&&(n.current=r))},[t])}function To(e){return typeof e=="string"||Array.isArray(e)}function ga(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Rd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bd=["initial",...Rd];function ya(e){return ga(e.animate)||bd.some(t=>To(e[t]))}function D1(e){return!!(ya(e)||e.variants)}function $2(e,t){if(ya(e)){const{initial:n,animate:r}=e;return{initial:n===!1||To(n)?n:void 0,animate:To(r)?r:void 0}}return e.inherit!==!1?t:{}}function N2(e){const{initial:t,animate:n}=$2(e,C.useContext(ha));return C.useMemo(()=>({initial:t,animate:n}),[ym(t),ym(n)])}function ym(e){return Array.isArray(e)?e.join(" "):e}const vm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ro={};for(const e in vm)Ro[e]={isEnabled:t=>vm[e].some(n=>!!t[n])};function F2(e){for(const t in e)Ro[t]={...Ro[t],...e[t]}}const j1=C.createContext({}),V1=C.createContext({}),D2=Symbol.for("motionComponentSymbol");function j2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&F2(e);function o(l,a){let u;const f={...C.useContext($1),...l,layoutId:V2(l)},{isStatic:c}=f,d=N2(l),m=r(l,c);if(!c&&ma){d.visualElement=L2(i,m,f,t);const y=C.useContext(V1),v=C.useContext(N1).strict;d.visualElement&&(u=d.visualElement.loadFeatures(f,v,e,y))}return C.createElement(ha.Provider,{value:d},u&&d.visualElement?C.createElement(u,{visualElement:d.visualElement,...f}):null,n(i,l,M2(m,d.visualElement,a),m,c,d.visualElement))}const s=C.forwardRef(o);return s[D2]=i,s}function V2({layoutId:e}){const t=C.useContext(j1).id;return t&&e!==void 0?t+"-"+e:e}function I2(e){function t(r,i={}){return j2(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const z2=["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 _d(e){return typeof e!="string"||e.includes("-")?!1:!!(z2.indexOf(e)>-1||/[A-Z]/.test(e))}const Al={};function B2(e){Object.assign(Al,e)}const Do=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cr=new Set(Do);function I1(e,{layout:t,layoutId:n}){return Cr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Al[e]||e==="opacity")}const Ye=e=>!!(e&&e.getVelocity),U2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W2=Do.length;function H2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<W2;s++){const l=Do[s];if(e[l]!==void 0){const a=U2[l]||l;o+=`${a}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const z1=e=>t=>typeof t=="string"&&t.startsWith(e),B1=z1("--"),Bc=z1("var(--"),G2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,K2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gn=(e,t,n)=>Math.min(Math.max(n,e),t),Pr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ji={...Pr,transform:e=>Gn(0,1,e)},fs={...Pr,default:1},eo=e=>Math.round(e*1e5)/1e5,va=/(-)?([\d]*\.?[\d])+/g,U1=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,q2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function jo(e){return typeof e=="string"}const Vo=e=>({test:t=>jo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),En=Vo("deg"),qt=Vo("%"),F=Vo("px"),X2=Vo("vh"),Q2=Vo("vw"),wm={...qt,parse:e=>qt.parse(e)/100,transform:e=>qt.transform(e*100)},xm={...Pr,transform:Math.round},W1={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,radius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,size:F,top:F,right:F,bottom:F,left:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,rotate:En,rotateX:En,rotateY:En,rotateZ:En,scale:fs,scaleX:fs,scaleY:fs,scaleZ:fs,skew:En,skewX:En,skewY:En,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Ji,originX:wm,originY:wm,originZ:F,zIndex:xm,fillOpacity:Ji,strokeOpacity:Ji,numOctaves:xm};function Ad(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let a=!1,u=!1,f=!0;for(const c in t){const d=t[c];if(B1(c)){o[c]=d;continue}const m=W1[c],y=K2(d,m);if(Cr.has(c)){if(a=!0,s[c]=y,!f)continue;d!==(m.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,l[c]=y):i[c]=y}if(t.transform||(a||r?i.transform=H2(e.transform,n,f,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:m=0}=l;i.transformOrigin=`${c} ${d} ${m}`}}const Od=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function H1(e,t,n){for(const r in t)!Ye(t[r])&&!I1(r,n)&&(e[r]=t[r])}function Y2({transformTemplate:e},t,n){return C.useMemo(()=>{const r=Od();return Ad(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Z2(e,t,n){const r=e.style||{},i={};return H1(i,r,e),Object.assign(i,Y2(e,t,n)),e.transformValues?e.transformValues(i):i}function J2(e,t,n){const r={},i=Z2(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const eR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ol(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eR.has(e)}let G1=e=>!Ol(e);function tR(e){e&&(G1=t=>t.startsWith("on")?!Ol(t):e(t))}try{tR(require("@emotion/is-prop-valid").default)}catch{}function nR(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(G1(i)||n===!0&&Ol(i)||!t&&!Ol(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Sm(e,t,n){return typeof e=="string"?e:F.transform(t+n*e)}function rR(e,t,n){const r=Sm(t,e.x,e.width),i=Sm(n,e.y,e.height);return`${r} ${i}`}const iR={offset:"stroke-dashoffset",array:"stroke-dasharray"},oR={offset:"strokeDashoffset",array:"strokeDasharray"};function sR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?iR:oR;e[o.offset]=F.transform(-r);const s=F.transform(t),l=F.transform(n);e[o.array]=`${s} ${l}`}function Ld(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},f,c,d){if(Ad(e,u,f,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:v}=e;m.transform&&(v&&(y.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=rR(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&sR(m,s,l,a,!1)}const K1=()=>({...Od(),attrs:{}}),Md=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lR(e,t,n,r){const i=C.useMemo(()=>{const o=K1();return Ld(o,t,{enableHardwareAcceleration:!1},Md(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};H1(o,e.style,e),i.style={...o,...i.style}}return i}function aR(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(_d(n)?lR:J2)(r,o,s,n),f={...nR(r,typeof n=="string",e),...a,ref:i},{children:c}=r,d=C.useMemo(()=>Ye(c)?c.get():c,[c]);return C.createElement(n,{...f,children:d})}}function q1(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const X1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Q1(e,t,n,r){q1(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X1.has(i)?i:Td(i),t.attrs[i])}function $d(e,t){const{style:n}=e,r={};for(const i in n)(Ye(n[i])||t.style&&Ye(t.style[i])||I1(i,e))&&(r[i]=n[i]);return r}function Y1(e,t){const n=$d(e,t);for(const r in e)if(Ye(e[r])||Ye(t[r])){const i=Do.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Nd(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function uR(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ll=e=>Array.isArray(e),cR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fR=e=>Ll(e)?e[e.length-1]||0:e;function Ws(e){const t=Ye(e)?e.get():e;return cR(t)?t.toValue():t}function dR({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:pR(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const Z1=e=>(t,n)=>{const r=C.useContext(ha),i=C.useContext(Pd),o=()=>dR(e,t,r,i);return n?o():uR(o)};function pR(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ws(o[d]);let{initial:s,animate:l}=e;const a=ya(e),u=D1(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const c=f?l:s;return c&&typeof c!="boolean"&&!ga(c)&&(Array.isArray(c)?c:[c]).forEach(m=>{const y=Nd(e,m);if(!y)return;const{transitionEnd:v,transition:w,...p}=y;for(const h in p){let g=p[h];if(Array.isArray(g)){const x=f?g.length-1:0;g=g[x]}g!==null&&(i[h]=g)}for(const h in v)i[h]=v[h]}),i}const fe=e=>e;class km{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function hR(e){let t=new km,n=new km,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(a,u=!1,f=!1)=>{const c=f&&i,d=c?t:n;return u&&s.add(a),d.add(a)&&c&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),s.delete(a)},process:a=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const f=t.order[u];f(a),s.has(f)&&(l.schedule(f),e())}i=!1,o&&(o=!1,l.process(a))}};return l}const ds=["prepare","read","update","preRender","render","postRender"],mR=40;function gR(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=ds.reduce((c,d)=>(c[d]=hR(()=>n=!0),c),{}),s=c=>o[c].process(i),l=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,mR),1),i.timestamp=c,i.isProcessing=!0,ds.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:ds.reduce((c,d)=>{const m=o[d];return c[d]=(y,v=!1,w=!1)=>(n||a(),m.schedule(y,v,w)),c},{}),cancel:c=>ds.forEach(d=>o[d].cancel(c)),state:i,steps:o}}const{schedule:te,cancel:pn,state:Oe,steps:hu}=gR(typeof requestAnimationFrame<"u"?requestAnimationFrame:fe,!0),yR={useVisualState:Z1({scrapeMotionValuesFromProps:Y1,createRenderState:K1,onMount:(e,t,{renderState:n,latestValues:r})=>{te.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),te.render(()=>{Ld(n,r,{enableHardwareAcceleration:!1},Md(t.tagName),e.transformTemplate),Q1(t,n)})}})},vR={useVisualState:Z1({scrapeMotionValuesFromProps:$d,createRenderState:Od})};function wR(e,{forwardMotionProps:t=!1},n,r){return{..._d(e)?yR:vR,preloadedFeatures:n,useRender:aR(t),createVisualElement:r,Component:e}}function tn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const J1=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function wa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const xR=e=>t=>J1(t)&&e(t,wa(t));function on(e,t,n,r){return tn(e,t,xR(n),r)}const SR=(e,t)=>n=>t(e(n)),Bn=(...e)=>e.reduce(SR);function ew(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Em=ew("dragHorizontal"),Cm=ew("dragVertical");function tw(e){let t=!1;if(e==="y")t=Cm();else if(e==="x")t=Em();else{const n=Em(),r=Cm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function nw(){const e=tw(!0);return e?(e(),!1):!0}class Yn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Pm(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||nw())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&te.update(()=>l[r](o,s))};return on(e.current,n,i,{passive:!e.getProps()[r]})}class kR extends Yn{mount(){this.unmount=Bn(Pm(this.node,!0),Pm(this.node,!1))}unmount(){}}class ER extends Yn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=Bn(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const rw=(e,t)=>t?e===t?!0:rw(e,t.parentElement):!1;function mu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,wa(n))}class CR extends Yn{constructor(){super(...arguments),this.removeStartListeners=fe,this.removeEndListeners=fe,this.removeAccessibleListeners=fe,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=on(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();te.update(()=>{!c&&!rw(this.node.current,l.target)?f&&f(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=on(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Bn(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||mu("up",(a,u)=>{const{onTap:f}=this.node.getProps();f&&te.update(()=>f(a,u))})};this.removeEndListeners(),this.removeEndListeners=tn(this.node.current,"keyup",s),mu("down",(l,a)=>{this.startPress(l,a)})},n=tn(this.node.current,"keydown",t),r=()=>{this.isPressing&&mu("cancel",(o,s)=>this.cancelPress(o,s))},i=tn(this.node.current,"blur",r);this.removeAccessibleListeners=Bn(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&te.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&te.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=on(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=tn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Bn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Uc=new WeakMap,gu=new WeakMap,PR=e=>{const t=Uc.get(e.target);t&&t(e)},TR=e=>{e.forEach(PR)};function RR({root:e,...t}){const n=e||document;gu.has(n)||gu.set(n,{});const r=gu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TR,{root:e,...t})),r[i]}function bR(e,t,n){const r=RR(t);return Uc.set(e,n),r.observe(e),()=>{Uc.delete(e),r.unobserve(e)}}const _R={some:0,all:1};class AR extends Yn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:_R[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),d=u?f:c;d&&d(a)};return bR(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OR(t,n))&&this.startObserver()}unmount(){}}function OR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LR={inView:{Feature:AR},tap:{Feature:CR},focus:{Feature:ER},hover:{Feature:kR}};function iw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function MR(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function $R(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function xa(e,t,n){const r=e.getProps();return Nd(r,t,n!==void 0?n:r.custom,MR(e),$R(e))}let NR=fe,Fd=fe;const Un=e=>e*1e3,sn=e=>e/1e3,FR={current:!1},ow=e=>Array.isArray(e)&&typeof e[0]=="number";function sw(e){return!!(!e||typeof e=="string"&&lw[e]||ow(e)||Array.isArray(e)&&e.every(sw))}const Vi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vi([0,.65,.55,1]),circOut:Vi([.55,0,1,.45]),backIn:Vi([.31,.01,.66,-.59]),backOut:Vi([.33,1.53,.69,.99])};function aw(e){if(e)return ow(e)?Vi(e):Array.isArray(e)?e.map(aw):lw[e]}function DR(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const f=aw(l);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function jR(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const uw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VR=1e-7,IR=12;function zR(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=uw(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>VR&&++l<IR);return s}function Io(e,t,n,r){if(e===t&&n===r)return fe;const i=o=>zR(o,0,1,e,n);return o=>o===0||o===1?o:uw(i(o),t,r)}const BR=Io(.42,0,1,1),UR=Io(0,0,.58,1),cw=Io(.42,0,.58,1),WR=e=>Array.isArray(e)&&typeof e[0]!="number",fw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dw=e=>t=>1-e(1-t),Dd=e=>1-Math.sin(Math.acos(e)),pw=dw(Dd),HR=fw(Dd),hw=Io(.33,1.53,.69,.99),jd=dw(hw),GR=fw(jd),KR=e=>(e*=2)<1?.5*jd(e):.5*(2-Math.pow(2,-10*(e-1))),qR={linear:fe,easeIn:BR,easeInOut:cw,easeOut:UR,circIn:Dd,circInOut:HR,circOut:pw,backIn:jd,backInOut:GR,backOut:hw,anticipate:KR},Tm=e=>{if(Array.isArray(e)){Fd(e.length===4);const[t,n,r,i]=e;return Io(t,n,r,i)}else if(typeof e=="string")return qR[e];return e},Vd=(e,t)=>n=>!!(jo(n)&&q2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mw=(e,t,n)=>r=>{if(!jo(r))return r;const[i,o,s,l]=r.match(va);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},XR=e=>Gn(0,255,e),yu={...Pr,transform:e=>Math.round(XR(e))},pr={test:Vd("rgb","red"),parse:mw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yu.transform(e)+", "+yu.transform(t)+", "+yu.transform(n)+", "+eo(Ji.transform(r))+")"};function QR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Wc={test:Vd("#"),parse:QR,transform:pr.transform},Hr={test:Vd("hsl","hue"),parse:mw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qt.transform(eo(t))+", "+qt.transform(eo(n))+", "+eo(Ji.transform(r))+")"},$e={test:e=>pr.test(e)||Wc.test(e)||Hr.test(e),parse:e=>pr.test(e)?pr.parse(e):Hr.test(e)?Hr.parse(e):Wc.parse(e),transform:e=>jo(e)?e:e.hasOwnProperty("red")?pr.transform(e):Hr.transform(e)},le=(e,t,n)=>-n*e+n*t+e;function vu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=vu(a,l,e+1/3),o=vu(a,l,e),s=vu(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const wu=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ZR=[Wc,pr,Hr],JR=e=>ZR.find(t=>t.test(e));function Rm(e){const t=JR(e);let n=t.parse(e);return t===Hr&&(n=YR(n)),n}const gw=(e,t)=>{const n=Rm(e),r=Rm(t),i={...n};return o=>(i.red=wu(n.red,r.red,o),i.green=wu(n.green,r.green,o),i.blue=wu(n.blue,r.blue,o),i.alpha=le(n.alpha,r.alpha,o),pr.transform(i))};function eb(e){var t,n;return isNaN(e)&&jo(e)&&(((t=e.match(va))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(U1))===null||n===void 0?void 0:n.length)||0)>0}const yw={regex:G2,countKey:"Vars",token:"${v}",parse:fe},vw={regex:U1,countKey:"Colors",token:"${c}",parse:$e.parse},ww={regex:va,countKey:"Numbers",token:"${n}",parse:Pr.parse};function xu(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Ml(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xu(n,yw),xu(n,vw),xu(n,ww),n}function xw(e){return Ml(e).values}function Sw(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Ml(e),o=t.length;return s=>{let l=i;for(let a=0;a<o;a++)a<r?l=l.replace(yw.token,s[a]):a<r+n?l=l.replace(vw.token,$e.transform(s[a])):l=l.replace(ww.token,eo(s[a]));return l}}const tb=e=>typeof e=="number"?0:e;function nb(e){const t=xw(e);return Sw(e)(t.map(tb))}const Kn={test:eb,parse:xw,createTransformer:Sw,getAnimatableNone:nb},kw=(e,t)=>n=>`${n>0?t:e}`;function Ew(e,t){return typeof e=="number"?n=>le(e,t,n):$e.test(e)?gw(e,t):e.startsWith("var(")?kw(e,t):Pw(e,t)}const Cw=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Ew(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},rb=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ew(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Pw=(e,t)=>{const n=Kn.createTransformer(t),r=Ml(e),i=Ml(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Bn(Cw(r.values,i.values),n):kw(e,t)},bo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},bm=(e,t)=>n=>le(e,t,n);function ib(e){return typeof e=="number"?bm:typeof e=="string"?$e.test(e)?gw:Pw:Array.isArray(e)?Cw:typeof e=="object"?rb:bm}function ob(e,t,n){const r=[],i=n||ib(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||fe:t;l=Bn(a,l)}r.push(l)}return r}function Tw(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Fd(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ob(t,r,i),l=s.length,a=u=>{let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const c=bo(e[f],e[f+1],u);return s[f](c)};return n?u=>a(Gn(e[0],e[o-1],u)):a}function sb(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=bo(0,t,r);e.push(le(n,1,i))}}function lb(e){const t=[0];return sb(t,e.length-1),t}function ab(e,t){return e.map(n=>n*t)}function ub(e,t){return e.map(()=>t||cw).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=WR(r)?r.map(Tm):Tm(r),o={done:!1,value:t[0]},s=ab(n&&n.length===t.length?n:lb(t),e),l=Tw(s,t,{ease:Array.isArray(i)?i:ub(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function Rw(e,t){return t?e*(1e3/t):0}const cb=5;function bw(e,t,n){const r=Math.max(t-cb,0);return Rw(n-e(r),t-r)}const Su=.001,fb=.01,_m=10,db=.05,pb=1;function hb({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;NR(e<=Un(_m));let s=1-t;s=Gn(db,pb,s),e=Gn(fb,_m,sn(e)),s<1?(i=u=>{const f=u*s,c=f*e,d=f-n,m=Hc(u,s),y=Math.exp(-c);return Su-d/m*y},o=u=>{const c=u*s*e,d=c*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-c),v=Hc(Math.pow(u,2),s);return(-i(u)+Su>0?-1:1)*((d-m)*y)/v}):(i=u=>{const f=Math.exp(-u*e),c=(u-n)*e+1;return-Su+f*c},o=u=>{const f=Math.exp(-u*e),c=(n-u)*(e*e);return f*c});const l=5/e,a=gb(i,o,l);if(e=Un(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const mb=12;function gb(e,t,n){let r=n;for(let i=1;i<mb;i++)r=r-e(r)/t(r);return r}function Hc(e,t){return e*Math.sqrt(1-t*t)}const yb=["duration","bounce"],vb=["stiffness","damping","mass"];function Am(e,t){return t.some(n=>e[n]!==void 0)}function wb(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Am(e,vb)&&Am(e,yb)){const n=hb(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function _w({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:a,mass:u,duration:f,velocity:c,isResolvedFromDuration:d}=wb({...r,velocity:-sn(r.velocity||0)}),m=c||0,y=a/(2*Math.sqrt(l*u)),v=o-i,w=sn(Math.sqrt(l/u)),p=Math.abs(v)<5;n||(n=p?.01:2),t||(t=p?.005:.5);let h;if(y<1){const g=Hc(w,y);h=x=>{const S=Math.exp(-y*w*x);return o-S*((m+y*w*v)/g*Math.sin(g*x)+v*Math.cos(g*x))}}else if(y===1)h=g=>o-Math.exp(-w*g)*(v+(m+w*v)*g);else{const g=w*Math.sqrt(y*y-1);h=x=>{const S=Math.exp(-y*w*x),k=Math.min(g*x,300);return o-S*((m+y*w*v)*Math.sinh(k)+g*v*Math.cosh(k))/g}}return{calculatedDuration:d&&f||null,next:g=>{const x=h(g);if(d)s.done=g>=f;else{let S=m;g!==0&&(y<1?S=bw(h,g,x):S=0);const k=Math.abs(S)<=n,E=Math.abs(o-x)<=t;s.done=k&&E}return s.value=s.done?o:x,s}}}function Om({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:f}){const c=e[0],d={done:!1,value:c},m=P=>l!==void 0&&P<l||a!==void 0&&P>a,y=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let v=n*t;const w=c+v,p=s===void 0?w:s(w);p!==w&&(v=p-c);const h=P=>-v*Math.exp(-P/r),g=P=>p+h(P),x=P=>{const O=h(P),M=g(P);d.done=Math.abs(O)<=u,d.value=d.done?p:M};let S,k;const E=P=>{m(d.value)&&(S=P,k=_w({keyframes:[d.value,y(d.value)],velocity:bw(g,P,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:f}))};return E(0),{calculatedDuration:null,next:P=>{let O=!1;return!k&&S===void 0&&(O=!0,x(P),E(P)),S!==void 0&&P>S?k.next(P-S):(!O&&x(P),d)}}}const xb=e=>{const t=({timestamp:n})=>e(n);return{start:()=>te.update(t,!0),stop:()=>pn(t),now:()=>Oe.isProcessing?Oe.timestamp:performance.now()}},Lm=2e4;function Mm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Lm;)t+=n,r=e.next(t);return t>=Lm?1/0:t}const Sb={decay:Om,inertia:Om,tween:$l,keyframes:$l,spring:_w};function Nl({autoplay:e=!0,delay:t=0,driver:n=xb,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:f,onUpdate:c,...d}){let m=1,y=!1,v,w;const p=()=>{w=new Promise(D=>{v=D})};p();let h;const g=Sb[i]||$l;let x;g!==$l&&typeof r[0]!="number"&&(x=Tw([0,100],r,{clamp:!1}),r=[0,100]);const S=g({...d,keyframes:r});let k;l==="mirror"&&(k=g({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let E="idle",P=null,O=null,M=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=Mm(S));const{calculatedDuration:I}=S;let G=1/0,ne=1/0;I!==null&&(G=I+s,ne=G*(o+1)-s);let pe=0;const pt=D=>{if(O===null)return;m>0&&(O=Math.min(O,D)),m<0&&(O=Math.min(D-ne/m,O)),P!==null?pe=P:pe=Math.round(D-O)*m;const Y=pe-t*(m>=0?1:-1),Et=m>=0?Y<0:Y>ne;pe=Math.max(Y,0),E==="finished"&&P===null&&(pe=ne);let Ct=pe,Pt=S;if(o){const vi=Math.min(pe,ne)/G;let Zn=Math.floor(vi),Rt=vi%1;!Rt&&vi>=1&&(Rt=1),Rt===1&&Zn--,Zn=Math.min(Zn,o+1),!!(Zn%2)&&(l==="reverse"?(Rt=1-Rt,s&&(Rt-=s/G)):l==="mirror"&&(Pt=k)),Ct=Gn(0,1,Rt)*G}const ke=Et?{done:!1,value:r[0]}:Pt.next(Ct);x&&(ke.value=x(ke.value));let{done:Tt}=ke;!Et&&I!==null&&(Tt=m>=0?pe>=ne:pe<=0);const Tr=P===null&&(E==="finished"||E==="running"&&Tt);return c&&c(ke.value),Tr&&b(),ke},oe=()=>{h&&h.stop(),h=void 0},Be=()=>{E="idle",oe(),v(),p(),O=M=null},b=()=>{E="finished",f&&f(),oe(),v()},N=()=>{if(y)return;h||(h=n(pt));const D=h.now();a&&a(),P!==null?O=D-P:(!O||E==="finished")&&(O=D),E==="finished"&&p(),M=O,P=null,E="running",h.start()};e&&N();const j={then(D,Y){return w.then(D,Y)},get time(){return sn(pe)},set time(D){D=Un(D),pe=D,P!==null||!h||m===0?P=D:O=h.now()-D/m},get duration(){const D=S.calculatedDuration===null?Mm(S):S.calculatedDuration;return sn(D)},get speed(){return m},set speed(D){D===m||!h||(m=D,j.time=sn(pe))},get state(){return E},play:N,pause:()=>{E="paused",P=pe},stop:()=>{y=!0,E!=="idle"&&(E="idle",u&&u(),Be())},cancel:()=>{M!==null&&pt(M),Be()},complete:()=>{E="finished"},sample:D=>(O=0,pt(D))};return j}function kb(e){let t;return()=>(t===void 0&&(t=e()),t)}const Eb=kb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Cb=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ps=10,Pb=2e4,Tb=(e,t)=>t.type==="spring"||e==="backgroundColor"||!sw(t.ease);function Rb(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Eb()&&Cb.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,a,u=!1;const f=()=>{a=new Promise(g=>{l=g})};f();let{keyframes:c,duration:d=300,ease:m,times:y}=i;if(Tb(t,i)){const g=Nl({...i,repeat:0,delay:0});let x={done:!1,value:c[0]};const S=[];let k=0;for(;!x.done&&k<Pb;)x=g.sample(k),S.push(x.value),k+=ps;y=void 0,c=S,d=k-ps,m="linear"}const v=DR(e.owner.current,t,c,{...i,duration:d,ease:m,times:y}),w=()=>{u=!1,v.cancel()},p=()=>{u=!0,te.update(w),l(),f()};return v.onfinish=()=>{u||(e.set(jR(c,i)),r&&r(),p())},{then(g,x){return a.then(g,x)},attachTimeline(g){return v.timeline=g,v.onfinish=null,fe},get time(){return sn(v.currentTime||0)},set time(g){v.currentTime=Un(g)},get speed(){return v.playbackRate},set speed(g){v.playbackRate=g},get duration(){return sn(d)},play:()=>{s||(v.play(),pn(w))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:g}=v;if(g){const x=Nl({...i,autoplay:!1});e.setWithVelocity(x.sample(g-ps).value,x.sample(g).value,ps)}p()},complete:()=>{u||v.finish()},cancel:p}}function bb({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:fe,pause:fe,stop:fe,then:o=>(o(),Promise.resolve()),cancel:fe,complete:fe});return t?Nl({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const _b={type:"spring",stiffness:500,damping:25,restSpeed:10},Ab=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ob={type:"keyframes",duration:.8},Lb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mb=(e,{keyframes:t})=>t.length>2?Ob:Cr.has(e)?e.startsWith("scale")?Ab(t[1]):_b:Lb,Gc=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Kn.test(t)||t==="0")&&!t.startsWith("url(")),$b=new Set(["brightness","contrast","saturate","opacity"]);function Nb(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(va)||[];if(!r)return e;const i=n.replace(r,"");let o=$b.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Fb=/([a-z-]*)\(.*?\)/g,Kc={...Kn,getAnimatableNone:e=>{const t=e.match(Fb);return t?t.map(Nb).join(" "):e}},Db={...W1,color:$e,backgroundColor:$e,outlineColor:$e,fill:$e,stroke:$e,borderColor:$e,borderTopColor:$e,borderRightColor:$e,borderBottomColor:$e,borderLeftColor:$e,filter:Kc,WebkitFilter:Kc},Id=e=>Db[e];function Aw(e,t){let n=Id(e);return n!==Kc&&(n=Kn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ow=e=>/^0[^.\s]+$/.test(e);function jb(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ow(e)}function Vb(e,t,n,r){const i=Gc(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),jb(o[u])&&a.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(l=o[u]);if(i&&a.length&&l)for(let u=0;u<a.length;u++){const f=a[u];o[f]=Aw(t,l)}return o}function Ib({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...f}){return!!Object.keys(f).length}function zd(e,t){return e[t]||e.default||e}const zb={skipAnimations:!1},Bd=(e,t,n,r={})=>i=>{const o=zd(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Un(s);const a=Vb(t,e,n,o),u=a[0],f=a[a.length-1],c=Gc(e,u),d=Gc(e,f);let m={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:y=>{t.set(y),o.onUpdate&&o.onUpdate(y)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Ib(o)||(m={...m,...Mb(e,m)}),m.duration&&(m.duration=Un(m.duration)),m.repeatDelay&&(m.repeatDelay=Un(m.repeatDelay)),!c||!d||FR.current||o.type===!1||zb.skipAnimations)return bb(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=Rb(t,e,m);if(y)return y}return Nl(m)};function Fl(e){return!!(Ye(e)&&e.add)}const Lw=e=>/^\-?\d*\.?\d+$/.test(e);function Ud(e,t){e.indexOf(t)===-1&&e.push(t)}function Wd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hd{constructor(){this.subscriptions=[]}add(t){return Ud(this.subscriptions,t),()=>Wd(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Bb=e=>!isNaN(parseFloat(e));class Ub{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Oe;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,te.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>te.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Bb(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Hd);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Rw(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new Ub(e,t)}const Mw=e=>t=>t.test(e),Wb={test:e=>e==="auto",parse:e=>e},$w=[Pr,F,qt,En,Q2,X2,Wb],_i=e=>$w.find(Mw(e)),Hb=[...$w,$e,Kn],Gb=e=>Hb.find(Mw(e));function Kb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function qb(e,t){const n=xa(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=fR(o[s]);Kb(e,s,l)}}function Xb(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const a=o[l],u=t[a];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(i=(r=n[a])!==null&&r!==void 0?r:e.readValue(a))!==null&&i!==void 0?i:t[a]),f!=null&&(typeof f=="string"&&(Lw(f)||Ow(f))?f=parseFloat(f):!Gb(f)&&Kn.test(u)&&(f=Aw(a,u)),e.addValue(a,ai(f,{owner:e})),n[a]===void 0&&(n[a]=f),f!==null&&e.setBaseTarget(a,f))}}function Qb(e,t){return t?(t[e]||t.default||t).from:void 0}function Yb(e,t,n){const r={};for(const i in e){const o=Qb(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function Zb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jb(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Nw(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const a=e.getValue("willChange");r&&(o=r);const u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const c in l){const d=e.getValue(c),m=l[c];if(!d||m===void 0||f&&Zb(f,c))continue;const y={delay:n,elapsed:0,...zd(o||{},c)};if(window.HandoffAppearAnimations){const p=e.getProps()[F1];if(p){const h=window.HandoffAppearAnimations(p,c,d,te);h!==null&&(y.elapsed=h,y.isHandoff=!0)}}let v=!y.isHandoff&&!Jb(d,m);if(y.type==="spring"&&(d.getVelocity()||y.velocity)&&(v=!1),d.animation&&(v=!1),v)continue;d.start(Bd(c,d,m,e.shouldReduceMotion&&Cr.has(c)?{type:!1}:y));const w=d.animation;Fl(a)&&(a.add(c),w.then(()=>a.remove(c))),u.push(w)}return s&&Promise.all(u).then(()=>{s&&qb(e,s)}),u}function qc(e,t,n={}){const r=xa(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Nw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=i;return e_(e,t,u+a,f,c,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[o,s]:[s,o];return a().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function e_(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(t_).forEach((u,f)=>{u.notify("AnimationStart",t),s.push(qc(u,t,{...o,delay:n+a(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function t_(e,t){return e.sortNodePosition(t)}function n_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>qc(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=qc(e,t,n);else{const i=typeof t=="function"?xa(e,t,n.custom):t;r=Promise.all(Nw(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const r_=[...Rd].reverse(),i_=Rd.length;function o_(e){return t=>Promise.all(t.map(({animation:n,options:r})=>n_(e,n,r)))}function s_(e){let t=o_(e);const n=a_();let r=!0;const i=(a,u)=>{const f=xa(e,u);if(f){const{transition:c,transitionEnd:d,...m}=f;a={...a,...m,...d}}return a};function o(a){t=a(e)}function s(a,u){const f=e.getProps(),c=e.getVariantContext(!0)||{},d=[],m=new Set;let y={},v=1/0;for(let p=0;p<i_;p++){const h=r_[p],g=n[h],x=f[h]!==void 0?f[h]:c[h],S=To(x),k=h===u?g.isActive:null;k===!1&&(v=p);let E=x===c[h]&&x!==f[h]&&S;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),g.protectedKeys={...y},!g.isActive&&k===null||!x&&!g.prevProp||ga(x)||typeof x=="boolean")continue;let O=l_(g.prevProp,x)||h===u&&g.isActive&&!E&&S||p>v&&S,M=!1;const I=Array.isArray(x)?x:[x];let G=I.reduce(i,{});k===!1&&(G={});const{prevResolvedValues:ne={}}=g,pe={...ne,...G},pt=oe=>{O=!0,m.has(oe)&&(M=!0,m.delete(oe)),g.needsAnimating[oe]=!0};for(const oe in pe){const Be=G[oe],b=ne[oe];if(y.hasOwnProperty(oe))continue;let N=!1;Ll(Be)&&Ll(b)?N=!iw(Be,b):N=Be!==b,N?Be!==void 0?pt(oe):m.add(oe):Be!==void 0&&m.has(oe)?pt(oe):g.protectedKeys[oe]=!0}g.prevProp=x,g.prevResolvedValues=G,g.isActive&&(y={...y,...G}),r&&e.blockInitialAnimation&&(O=!1),O&&(!E||M)&&d.push(...I.map(oe=>({animation:oe,options:{type:h,...a}})))}if(m.size){const p={};m.forEach(h=>{const g=e.getBaseTarget(h);g!==void 0&&(p[h]=g)}),d.push({animation:p})}let w=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(d):Promise.resolve()}function l(a,u,f){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(a,u)}),n[a].isActive=u;const d=s(f,a);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function l_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!iw(t,e):!1}function Jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a_(){return{animate:Jn(!0),whileInView:Jn(),whileHover:Jn(),whileTap:Jn(),whileDrag:Jn(),whileFocus:Jn(),exit:Jn()}}class u_ extends Yn{constructor(t){super(t),t.animationState||(t.animationState=s_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ga(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let c_=0;class f_ extends Yn{constructor(){super(...arguments),this.id=c_++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const d_={animation:{Feature:u_},exit:{Feature:f_}},$m=(e,t)=>Math.abs(e-t);function p_(e,t){const n=$m(e.x,t.x),r=$m(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fw{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Eu(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=p_(c.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:y}=c,{timestamp:v}=Oe;this.history.push({...y,timestamp:v});const{onStart:w,onMove:p}=this.handlers;d||(w&&w(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=ku(d,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Eu(c.type==="pointercancel"?this.lastMoveEventInfo:ku(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(c,w),y&&y(c,w)},!J1(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=wa(t),l=ku(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=Oe;this.history=[{...a,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,Eu(l,this.history)),this.removeListeners=Bn(on(this.contextWindow,"pointermove",this.handlePointerMove),on(this.contextWindow,"pointerup",this.handlePointerUp),on(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),pn(this.updatePoint)}}function ku(e,t){return t?{point:t(e.point)}:e}function Nm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Eu({point:e},t){return{point:e,delta:Nm(e,Dw(t)),offset:Nm(e,h_(t)),velocity:m_(t,.1)}}function h_(e){return e[0]}function Dw(e){return e[e.length-1]}function m_(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Dw(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Un(t)));)n--;if(!r)return{x:0,y:0};const o=sn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ct(e){return e.max-e.min}function Xc(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fm(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=ct(n)/ct(t),(Xc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(Xc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function to(e,t,n,r){Fm(e.x,t.x,n.x,r?r.originX:void 0),Fm(e.y,t.y,n.y,r?r.originY:void 0)}function Dm(e,t,n){e.min=n.min+t.min,e.max=e.min+ct(t)}function g_(e,t,n){Dm(e.x,t.x,n.x),Dm(e.y,t.y,n.y)}function jm(e,t,n){e.min=t.min-n.min,e.max=e.min+ct(t)}function no(e,t,n){jm(e.x,t.x,n.x),jm(e.y,t.y,n.y)}function y_(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?le(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function Vm(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function v_(e,{top:t,left:n,bottom:r,right:i}){return{x:Vm(e.x,n,i),y:Vm(e.y,t,r)}}function Im(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function w_(e,t){return{x:Im(e.x,t.x),y:Im(e.y,t.y)}}function x_(e,t){let n=.5;const r=ct(e),i=ct(t);return i>r?n=bo(t.min,t.max-r,e.min):r>i&&(n=bo(e.min,e.max-i,t.min)),Gn(0,1,n)}function S_(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qc=.35;function k_(e=Qc){return e===!1?e=0:e===!0&&(e=Qc),{x:zm(e,"left","right"),y:zm(e,"top","bottom")}}function zm(e,t,n){return{min:Bm(e,t),max:Bm(e,n)}}function Bm(e,t){return typeof e=="number"?e:e[t]||0}const Um=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gr=()=>({x:Um(),y:Um()}),Wm=()=>({min:0,max:0}),me=()=>({x:Wm(),y:Wm()});function mt(e){return[e("x"),e("y")]}function jw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function E_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C_(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Cu(e){return e===void 0||e===1}function Yc({scale:e,scaleX:t,scaleY:n}){return!Cu(e)||!Cu(t)||!Cu(n)}function rr(e){return Yc(e)||Vw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Vw(e){return Hm(e.x)||Hm(e.y)}function Hm(e){return e&&e!=="0%"}function Dl(e,t,n){const r=e-n,i=t*r;return n+i}function Gm(e,t,n,r,i){return i!==void 0&&(e=Dl(e,i,r)),Dl(e,n,r)+t}function Zc(e,t=0,n=1,r,i){e.min=Gm(e.min,t,n,r,i),e.max=Gm(e.max,t,n,r,i)}function Iw(e,{x:t,y:n}){Zc(e.x,t.translate,t.scale,t.originPoint),Zc(e.y,n.translate,n.scale,n.originPoint)}function P_(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const a=o.instance;a&&a.style&&a.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Kr(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Iw(e,s)),r&&rr(o.latestValues)&&Kr(e,o.latestValues))}t.x=Km(t.x),t.y=Km(t.y)}function Km(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Tn(e,t){e.min=e.min+t,e.max=e.max+t}function qm(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=le(e.min,e.max,o);Zc(e,t[n],t[r],s,t.scale)}const T_=["x","scaleX","originX"],R_=["y","scaleY","originY"];function Kr(e,t){qm(e.x,t,T_),qm(e.y,t,R_)}function zw(e,t){return jw(C_(e.getBoundingClientRect(),t))}function b_(e,t,n){const r=zw(e,n),{scroll:i}=t;return i&&(Tn(r.x,i.offset.x),Tn(r.y,i.offset.y)),r}const Bw=({current:e})=>e?e.ownerDocument.defaultView:null,__=new WeakMap;class A_{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=me(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wa(f,"page").point)},o=(f,c)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tw(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mt(w=>{let p=this.getAxisMotionValue(w).get()||0;if(qt.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const g=h.layout.layoutBox[w];g&&(p=ct(g)*(parseFloat(p)/100))}}this.originPoint[w]=p}),y&&te.update(()=>y(f,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(f,c)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:w}=c;if(m&&this.currentDirection===null){this.currentDirection=O_(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",c.point,w),this.updateAxis("y",c.point,w),this.visualElement.render(),v&&v(f,c)},l=(f,c)=>this.stop(f,c),a=()=>mt(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Fw(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Bw(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&te.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!hs(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=y_(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Wr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v_(i.layoutBox,n):this.constraints=!1,this.elastic=k_(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&mt(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=S_(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Wr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=b_(r,i.root,this.visualElement.getTransformPagePoint());let s=w_(i.layout.layoutBox,o);if(n){const l=n(E_(s));this.hasMutatedConstraints=!!l,l&&(s=jw(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=mt(f=>{if(!hs(f,n,this.currentDirection))return;let c=a&&a[f]||{};s&&(c={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[f]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Bd(t,r,0,n))}stopAnimation(){mt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){mt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){mt(n=>{const{drag:r}=this.getProps();if(!hs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-le(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Wr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};mt(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=x_({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),mt(s=>{if(!hs(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(le(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;__.set(this.visualElement,this);const t=this.visualElement.current,n=on(t,"pointerdown",a=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Wr(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=tn(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(mt(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=a[f].translate,c.set(c.get()+a[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Qc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function hs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function O_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class L_ extends Yn{constructor(t){super(t),this.removeGroupControls=fe,this.removeListeners=fe,this.controls=new A_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xm=e=>(t,n)=>{e&&te.update(()=>e(t,n))};class M_ extends Yn{constructor(){super(...arguments),this.removePointerDownListener=fe}onPointerDown(t){this.session=new Fw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xm(t),onStart:Xm(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&te.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=on(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function $_(){const e=C.useContext(Pd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=C.useId();return C.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ai={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=Qm(e,t.target.x),r=Qm(e,t.target.y);return`${n}% ${r}%`}},N_={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Kn.parse(e);if(i.length>5)return r;const o=Kn.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=le(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class F_ extends st.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;B2(D_),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||te.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Uw(e){const[t,n]=$_(),r=C.useContext(j1);return st.createElement(F_,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(V1),isPresent:t,safeToRemove:n})}const D_={borderRadius:{...Ai,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ai,borderTopRightRadius:Ai,borderBottomLeftRadius:Ai,borderBottomRightRadius:Ai,boxShadow:N_},Ww=["TopLeft","TopRight","BottomLeft","BottomRight"],j_=Ww.length,Ym=e=>typeof e=="string"?parseFloat(e):e,Zm=e=>typeof e=="number"||F.test(e);function V_(e,t,n,r,i,o){i?(e.opacity=le(0,n.opacity!==void 0?n.opacity:1,I_(r)),e.opacityExit=le(t.opacity!==void 0?t.opacity:1,0,z_(r))):o&&(e.opacity=le(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<j_;s++){const l=`border${Ww[s]}Radius`;let a=Jm(t,l),u=Jm(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Zm(a)===Zm(u)?(e[l]=Math.max(le(Ym(a),Ym(u),r),0),(qt.test(u)||qt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=le(t.rotate||0,n.rotate||0,r))}function Jm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const I_=Hw(0,.5,pw),z_=Hw(.5,.95,fe);function Hw(e,t,n){return r=>r<e?0:r>t?1:n(bo(e,t,r))}function eg(e,t){e.min=t.min,e.max=t.max}function ht(e,t){eg(e.x,t.x),eg(e.y,t.y)}function tg(e,t,n,r,i){return e-=t,e=Dl(e,1/n,r),i!==void 0&&(e=Dl(e,1/i,r)),e}function B_(e,t=0,n=1,r=.5,i,o=e,s=e){if(qt.test(t)&&(t=parseFloat(t),t=le(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=le(o.min,o.max,r);e===o&&(l-=t),e.min=tg(e.min,t,n,l,i),e.max=tg(e.max,t,n,l,i)}function ng(e,t,[n,r,i],o,s){B_(e,t[n],t[r],t[i],t.scale,o,s)}const U_=["x","scaleX","originX"],W_=["y","scaleY","originY"];function rg(e,t,n,r){ng(e.x,t,U_,n?n.x:void 0,r?r.x:void 0),ng(e.y,t,W_,n?n.y:void 0,r?r.y:void 0)}function ig(e){return e.translate===0&&e.scale===1}function Gw(e){return ig(e.x)&&ig(e.y)}function H_(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Kw(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function og(e){return ct(e.x)/ct(e.y)}class G_{constructor(){this.members=[]}add(t){Ud(this.members,t),t.scheduleRender()}remove(t){if(Wd(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sg(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:f}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const K_=(e,t)=>e.depth-t.depth;class q_{constructor(){this.children=[],this.isDirty=!1}add(t){Ud(this.children,t),this.isDirty=!0}remove(t){Wd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(K_),this.isDirty=!1,this.children.forEach(t)}}function X_(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(pn(r),e(o-t))};return te.read(r,!0),()=>pn(r)}function Q_(e){window.MotionDebug&&window.MotionDebug.record(e)}function Y_(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Z_(e,t,n){const r=Ye(e)?e:ai(e);return r.start(Bd("",r,t,n)),r.animation}const lg=["","X","Y","Z"],J_={visibility:"hidden"},ag=1e3;let eA=0;const ir={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qw({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=eA++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ir.totalNodes=ir.resolvedTargetDeltas=ir.recalculatedProjection=0,this.nodes.forEach(rA),this.nodes.forEach(aA),this.nodes.forEach(uA),this.nodes.forEach(iA),Q_(ir)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new q_)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Hd),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const a=this.eventHandlers.get(s);a&&a.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Y_(s),this.instance=s;const{layoutId:a,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=X_(d,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(cg))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&f&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||f.getDefaultTransition()||hA,{onLayoutAnimationStart:w,onLayoutAnimationComplete:p}=f.getProps(),h=!this.targetLayout||!Kw(this.targetLayout,y)||m,g=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,g);const x={...zd(v,"layout"),onPlay:w,onComplete:p};(f.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||cg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,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.forEach(cA),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ug);return}this.isUpdating||this.nodes.forEach(sA),this.isUpdating=!1,this.nodes.forEach(lA),this.nodes.forEach(tA),this.nodes.forEach(nA),this.clearAllSnapshots();const l=performance.now();Oe.delta=Gn(0,1e3/60,l-Oe.timestamp),Oe.timestamp=l,Oe.isProcessing=!0,hu.update.process(Oe),hu.preRender.process(Oe),hu.render.process(Oe),Oe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(oA),this.sharedNodes.forEach(fA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=me(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Gw(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;s&&(l||rr(this.latestValues)||f)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return s&&(a=this.removeTransform(a)),mA(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return me();const l=s.measureViewportBox(),{scroll:a}=this.root;return a&&(Tn(l.x,a.offset.x),Tn(l.y,a.offset.y)),l}removeElementScroll(s){const l=me();ht(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){ht(l,s);const{scroll:d}=this.root;d&&(Tn(l.x,-d.offset.x),Tn(l.y,-d.offset.y))}Tn(l.x,f.offset.x),Tn(l.y,f.offset.y)}}return l}applyTransform(s,l=!1){const a=me();ht(a,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Kr(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),rr(f.latestValues)&&Kr(a,f.latestValues)}return rr(this.latestValues)&&Kr(a,this.latestValues),a}removeTransform(s){const l=me();ht(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!rr(u.latestValues))continue;Yc(u.latestValues)&&u.updateSnapshot();const f=me(),c=u.measurePageBox();ht(f,c),rg(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return rr(this.latestValues)&&rg(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==Oe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=Oe.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=me(),this.relativeTargetOrigin=me(),no(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=me(),this.targetWithTransforms=me()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g_(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ht(this.target,this.layout.layoutBox),Iw(this.target,this.targetDelta)):ht(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=me(),this.relativeTargetOrigin=me(),no(this.relativeTargetOrigin,this.target,m.target),ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ir.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Yc(this.parent.latestValues)||Vw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Oe.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;ht(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,m=this.treeScale.y;P_(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:y}=l;if(!y){this.projectionTransform&&(this.projectionDelta=Gr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Gr(),this.projectionDeltaWithTransform=Gr());const v=this.projectionTransform;to(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=sg(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==d||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),ir.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const a=this.snapshot,u=a?a.latestValues:{},f={...this.latestValues},c=Gr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=me(),m=a?a.source:void 0,y=this.layout?this.layout.source:void 0,v=m!==y,w=this.getStack(),p=!w||w.members.length<=1,h=!!(v&&!p&&this.options.crossfade===!0&&!this.path.some(pA));this.animationProgress=0;let g;this.mixTargetDelta=x=>{const S=x/1e3;fg(c.x,s.x,S),fg(c.y,s.y,S),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dA(this.relativeTarget,this.relativeTargetOrigin,d,S),g&&H_(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=me()),ht(g,this.relativeTarget)),v&&(this.animationValues=f,V_(f,u,this.latestValues,S,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{Hs.hasAnimatedSinceResize=!0,this.currentAnimation=Z_(0,ag,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ag),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:f}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&Xw(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||me();const c=ct(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+c;const d=ct(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}ht(l,a),Kr(l,f),to(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new G_),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let f=0;f<lg.length;f++){const c="rotate"+lg[f];a[c]&&(u[c]=a[c],s.setStaticValue(c,0))}s.render();for(const f in u)s.setStaticValue(f,u[f]);s.scheduleRender()}getProjectionStyles(s){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return J_;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ws(s==null?void 0:s.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ws(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!rr(this.latestValues)&&(v.transform=f?f({},""):"none",this.hasProjected=!1),v}const d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=sg(this.projectionDeltaWithTransform,this.treeScale,d),f&&(u.transform=f(d,u.transform));const{x:m,y}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,c.animationValues?u.opacity=c===this?(a=(l=d.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Al){if(d[v]===void 0)continue;const{correct:w,applyTo:p}=Al[v],h=u.transform==="none"?d[v]:w(d[v],c);if(p){const g=p.length;for(let x=0;x<g;x++)u[p[x]]=h}else u[v]=h}return this.options.layoutId&&(u.pointerEvents=c===this?Ws(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(ug),this.root.sharedNodes.clear()}}}function tA(e){e.updateLayout()}function nA(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?mt(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],m=ct(d);d.min=r[c].min,d.max=d.min+m}):Xw(o,n.layoutBox,r)&&mt(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],m=ct(r[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const l=Gr();to(l,r,n.layoutBox);const a=Gr();s?to(a,e.applyTransform(i,!0),n.measuredBox):to(a,r,n.layoutBox);const u=!Gw(l);let f=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:m}=c;if(d&&m){const y=me();no(y,n.layoutBox,d.layoutBox);const v=me();no(v,r,m.layoutBox),Kw(y,v)||(f=!0),c.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rA(e){ir.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oA(e){e.clearSnapshot()}function ug(e){e.clearMeasurements()}function sA(e){e.isLayoutDirty=!1}function lA(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aA(e){e.resolveTargetDelta()}function uA(e){e.calcProjection()}function cA(e){e.resetRotation()}function fA(e){e.removeLeadSnapshot()}function fg(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dg(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function dA(e,t,n,r){dg(e.x,t.x,n.x,r),dg(e.y,t.y,n.y,r)}function pA(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hA={duration:.45,ease:[.4,0,.1,1]},pg=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),hg=pg("applewebkit/")&&!pg("chrome/")?Math.round:fe;function mg(e){e.min=hg(e.min),e.max=hg(e.max)}function mA(e){mg(e.x),mg(e.y)}function Xw(e,t,n){return e==="position"||e==="preserve-aspect"&&!Xc(og(t),og(n),.2)}const gA=qw({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pu={current:void 0},Qw=qw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pu.current){const e=new gA({});e.mount(window),e.setOptions({layoutScroll:!0}),Pu.current=e}return Pu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yA={pan:{Feature:M_},drag:{Feature:L_,ProjectionNode:Qw,MeasureLayout:Uw}},vA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function wA(e){const t=vA.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Jc(e,t,n=1){const[r,i]=wA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Lw(s)?parseFloat(s):s}else return Bc(i)?Jc(i,t,n+1):i}function xA(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Bc(o))return;const s=Jc(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Bc(o))continue;const s=Jc(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const SA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Yw=e=>SA.has(e),kA=e=>Object.keys(e).some(Yw),gg=e=>e===Pr||e===F,yg=(e,t)=>parseFloat(e.split(", ")[t]),vg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return yg(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?yg(o[1],e):0}},EA=new Set(["x","y","z"]),CA=Do.filter(e=>!EA.has(e));function PA(e){const t=[];return CA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ui={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:vg(4,13),y:vg(5,14)};ui.translateX=ui.x;ui.translateY=ui.y;const TA=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=ui[u](r,o)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const f=t.getValue(u);f&&f.jump(l[u]),e[u]=ui[u](a,o)}),e},RA=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Yw);let o=[],s=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let f=n[a],c=_i(f);const d=t[a];let m;if(Ll(d)){const y=d.length,v=d[0]===null?1:0;f=d[v],c=_i(f);for(let w=v;w<y&&d[w]!==null;w++)m?Fd(_i(d[w])===m):m=_i(d[w])}else m=_i(d);if(c!==m)if(gg(c)&&gg(m)){const y=u.get();typeof y=="string"&&u.set(parseFloat(y)),typeof d=="string"?t[a]=parseFloat(d):Array.isArray(d)&&m===F&&(t[a]=d.map(parseFloat))}else c!=null&&c.transform&&(m!=null&&m.transform)&&(f===0||d===0)?f===0?u.set(m.transform(f)):t[a]=c.transform(d):(s||(o=PA(e),s=!0),l.push(a),r[a]=r[a]!==void 0?r[a]:t[a],u.jump(d))}),l.length){const a=l.indexOf("height")>=0?window.pageYOffset:null,u=TA(t,e,l);return o.length&&o.forEach(([f,c])=>{e.getValue(f).set(c)}),e.render(),ma&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function bA(e,t,n,r){return kA(t)?RA(e,t,n,r):{target:t,transitionEnd:r}}const _A=(e,t,n,r)=>{const i=xA(e,t,r);return t=i.target,r=i.transitionEnd,bA(e,t,n,r)},ef={current:null},Zw={current:!1};function AA(){if(Zw.current=!0,!!ma)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ef.current=e.matches;e.addListener(t),t()}else ef.current=!1}function OA(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ye(o))e.addValue(i,o),Fl(r)&&r.add(i);else if(Ye(s))e.addValue(i,ai(o,{owner:e})),Fl(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,ai(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const wg=new WeakMap,Jw=Object.keys(Ro),LA=Jw.length,xg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],MA=bd.length;class $A{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>te.render(this.render,!1,!0);const{latestValues:l,renderState:a}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=ya(n),this.isVariantNode=D1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const d=f[c];l[c]!==void 0&&Ye(d)&&(d.set(l[c],!1),Fl(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,wg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Zw.current||AA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ef.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wg.delete(this.current),this.projection&&this.projection.unmount(),pn(this.notifyUpdate),pn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Cr.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&te.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;for(let a=0;a<LA;a++){const u=Jw[a],{isEnabled:f,Feature:c,ProjectionNode:d,MeasureLayout:m}=Ro[u];d&&(s=d),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),m&&(l=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:a,layout:u,drag:f,dragConstraints:c,layoutScroll:d,layoutRoot:m}=n;this.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!f||c&&Wr(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:m})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<xg.length;r++){const i=xg[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=OA(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<MA;r++){const i=bd[r],o=this.props[i];(To(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Nd(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ye(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ex extends $A{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=Yb(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){Xb(this,r,s);const l=_A(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function NA(e){return window.getComputedStyle(e)}class FA extends ex{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Cr.has(n)){const r=Id(n);return r&&r.default||0}else{const r=NA(t),i=(B1(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zw(t,n)}build(t,n,r,i){Ad(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return $d(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){q1(t,n,r,i)}}class DA extends ex{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cr.has(n)){const r=Id(n);return r&&r.default||0}return n=X1.has(n)?n:Td(n),t.getAttribute(n)}measureInstanceViewportBox(){return me()}scrapeMotionValuesFromProps(t,n){return Y1(t,n)}build(t,n,r,i){Ld(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Q1(t,n,r,i)}mount(t){this.isSVGTag=Md(t.tagName),super.mount(t)}}const jA=(e,t)=>_d(e)?new DA(t,{enableHardwareAcceleration:!1}):new FA(t,{enableHardwareAcceleration:!0}),VA={layout:{ProjectionNode:Qw,MeasureLayout:Uw}},IA={...d_,...LR,...yA,...VA},zA=I2((e,t)=>wR(e,t,IA,jA));/**
|
|
74
|
+
`;function _1({children:e,styles:t=[],...n}){return $.jsxs(S2.div,{...n,children:[[k2,...t].map((r,i)=>$.jsx("style",{type:"text/css",children:r},i)),e]})}const Cd=e=>typeof e=="number"&&!isNaN(e),Yi=e=>typeof e=="string",A1=e=>typeof e=="function",E2=e=>C.isValidElement(e)||Yi(e)||A1(e)||Cd(e),Wt=new Map;let Ic=[];const mm=new Set,O1=()=>Wt.size>0;function C2(e,t){var n;if(t)return!((n=Wt.get(t))==null||!n.isToastActive(e));let r=!1;return Wt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function P2(e,t){E2(e)&&(O1()||Ic.push({content:e,options:t}),Wt.forEach(n=>{n.buildToast(e,t)}))}function gm(e,t){Wt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}let T2=1;const L1=()=>""+T2++;function R2(e){return e&&(Yi(e.toastId)||Cd(e.toastId))?e.toastId:L1()}function Zi(e,t){return P2(e,t),t.toastId}function _l(e,t){return{...t,type:t&&t.type||e,toastId:R2(t)}}function cs(e){return(t,n)=>Zi(t,_l(e,n))}function re(e,t){return Zi(e,_l("default",t))}re.loading=(e,t)=>Zi(e,_l("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),re.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Yi(i)?re.loading(i,n):re.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(f,c,d)=>{if(c==null)return void re.dismiss(r);const m={type:f,...l,...n,data:d},y=Yi(c)?{render:c}:c;return r?re.update(r,{...m,...y}):re(y.render,{...m,...y}),d},u=A1(e)?e():e;return u.then(f=>a("success",s,f)).catch(f=>a("error",o,f)),u},re.success=cs("success"),re.info=cs("info"),re.error=cs("error"),re.warning=cs("warning"),re.warn=re.warning,re.dark=(e,t)=>Zi(e,_l("default",{theme:"dark",...t})),re.dismiss=function(e){(function(t){var n;if(O1()){if(t==null||Yi(n=t)||Cd(n))Wt.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=Wt.get(t.containerId))!=null&&r.removeToast(t.id)||Wt.forEach(i=>{i.removeToast(t.id)})}}else Ic=Ic.filter(i=>t!=null&&i.options.toastId!==t)})(e)},re.clearWaitingQueue=function(e){e===void 0&&(e={}),Wt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},re.isActive=C2,re.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=Wt.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:L1()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Zi(s,o)}},re.done=e=>{re.update(e,{progress:1})},re.onChange=function(e){return mm.add(e),()=>{mm.delete(e)}},re.play=e=>gm(!0,e),re.pause=e=>gm(!1,e);const zc={primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#009D4F10",warning:"#FFB600",warningLight:"#FFB60010",danger:"#E01B00",dangerLight:"#E01B0010",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10"};function b2(){return $.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),$.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),$.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const _2={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},M1=e=>{re.error(e,{icon:$.jsx(b2,{}),position:"bottom-right",style:{..._2,background:"#F7E4E1",borderColor:zc.danger,color:zc.danger}})},$1=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ha=C.createContext({}),Pd=C.createContext(null),ma=typeof document<"u",A2=ma?C.useLayoutEffect:C.useEffect,N1=C.createContext({strict:!1}),Td=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),O2="framerAppearId",F1="data-"+Td(O2);function L2(e,t,n,r){const{visualElement:i}=C.useContext(ha),o=C.useContext(N1),s=C.useContext(Pd),l=C.useContext($1).reducedMotion,a=C.useRef();r=r||o.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;C.useInsertionEffect(()=>{u&&u.update(n,s)});const f=C.useRef(!!(n[F1]&&!window.HandoffComplete));return A2(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),C.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function Wr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function M2(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Wr(n)&&(n.current=r))},[t])}function To(e){return typeof e=="string"||Array.isArray(e)}function ga(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Rd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bd=["initial",...Rd];function ya(e){return ga(e.animate)||bd.some(t=>To(e[t]))}function D1(e){return!!(ya(e)||e.variants)}function $2(e,t){if(ya(e)){const{initial:n,animate:r}=e;return{initial:n===!1||To(n)?n:void 0,animate:To(r)?r:void 0}}return e.inherit!==!1?t:{}}function N2(e){const{initial:t,animate:n}=$2(e,C.useContext(ha));return C.useMemo(()=>({initial:t,animate:n}),[ym(t),ym(n)])}function ym(e){return Array.isArray(e)?e.join(" "):e}const vm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ro={};for(const e in vm)Ro[e]={isEnabled:t=>vm[e].some(n=>!!t[n])};function F2(e){for(const t in e)Ro[t]={...Ro[t],...e[t]}}const j1=C.createContext({}),V1=C.createContext({}),D2=Symbol.for("motionComponentSymbol");function j2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&F2(e);function o(l,a){let u;const f={...C.useContext($1),...l,layoutId:V2(l)},{isStatic:c}=f,d=N2(l),m=r(l,c);if(!c&&ma){d.visualElement=L2(i,m,f,t);const y=C.useContext(V1),v=C.useContext(N1).strict;d.visualElement&&(u=d.visualElement.loadFeatures(f,v,e,y))}return C.createElement(ha.Provider,{value:d},u&&d.visualElement?C.createElement(u,{visualElement:d.visualElement,...f}):null,n(i,l,M2(m,d.visualElement,a),m,c,d.visualElement))}const s=C.forwardRef(o);return s[D2]=i,s}function V2({layoutId:e}){const t=C.useContext(j1).id;return t&&e!==void 0?t+"-"+e:e}function I2(e){function t(r,i={}){return j2(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const z2=["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 _d(e){return typeof e!="string"||e.includes("-")?!1:!!(z2.indexOf(e)>-1||/[A-Z]/.test(e))}const Al={};function B2(e){Object.assign(Al,e)}const Do=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cr=new Set(Do);function I1(e,{layout:t,layoutId:n}){return Cr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Al[e]||e==="opacity")}const Ye=e=>!!(e&&e.getVelocity),U2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W2=Do.length;function H2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<W2;s++){const l=Do[s];if(e[l]!==void 0){const a=U2[l]||l;o+=`${a}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const z1=e=>t=>typeof t=="string"&&t.startsWith(e),B1=z1("--"),Bc=z1("var(--"),G2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,K2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gn=(e,t,n)=>Math.min(Math.max(n,e),t),Pr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ji={...Pr,transform:e=>Gn(0,1,e)},fs={...Pr,default:1},eo=e=>Math.round(e*1e5)/1e5,va=/(-)?([\d]*\.?[\d])+/g,U1=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,q2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function jo(e){return typeof e=="string"}const Vo=e=>({test:t=>jo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),En=Vo("deg"),qt=Vo("%"),F=Vo("px"),X2=Vo("vh"),Q2=Vo("vw"),wm={...qt,parse:e=>qt.parse(e)/100,transform:e=>qt.transform(e*100)},xm={...Pr,transform:Math.round},W1={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,radius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,size:F,top:F,right:F,bottom:F,left:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,rotate:En,rotateX:En,rotateY:En,rotateZ:En,scale:fs,scaleX:fs,scaleY:fs,scaleZ:fs,skew:En,skewX:En,skewY:En,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Ji,originX:wm,originY:wm,originZ:F,zIndex:xm,fillOpacity:Ji,strokeOpacity:Ji,numOctaves:xm};function Ad(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let a=!1,u=!1,f=!0;for(const c in t){const d=t[c];if(B1(c)){o[c]=d;continue}const m=W1[c],y=K2(d,m);if(Cr.has(c)){if(a=!0,s[c]=y,!f)continue;d!==(m.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,l[c]=y):i[c]=y}if(t.transform||(a||r?i.transform=H2(e.transform,n,f,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:m=0}=l;i.transformOrigin=`${c} ${d} ${m}`}}const Od=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function H1(e,t,n){for(const r in t)!Ye(t[r])&&!I1(r,n)&&(e[r]=t[r])}function Y2({transformTemplate:e},t,n){return C.useMemo(()=>{const r=Od();return Ad(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Z2(e,t,n){const r=e.style||{},i={};return H1(i,r,e),Object.assign(i,Y2(e,t,n)),e.transformValues?e.transformValues(i):i}function J2(e,t,n){const r={},i=Z2(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const eR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ol(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eR.has(e)}let G1=e=>!Ol(e);function tR(e){e&&(G1=t=>t.startsWith("on")?!Ol(t):e(t))}try{tR(require("@emotion/is-prop-valid").default)}catch{}function nR(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(G1(i)||n===!0&&Ol(i)||!t&&!Ol(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Sm(e,t,n){return typeof e=="string"?e:F.transform(t+n*e)}function rR(e,t,n){const r=Sm(t,e.x,e.width),i=Sm(n,e.y,e.height);return`${r} ${i}`}const iR={offset:"stroke-dashoffset",array:"stroke-dasharray"},oR={offset:"strokeDashoffset",array:"strokeDasharray"};function sR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?iR:oR;e[o.offset]=F.transform(-r);const s=F.transform(t),l=F.transform(n);e[o.array]=`${s} ${l}`}function Ld(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},f,c,d){if(Ad(e,u,f,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:v}=e;m.transform&&(v&&(y.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=rR(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&sR(m,s,l,a,!1)}const K1=()=>({...Od(),attrs:{}}),Md=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lR(e,t,n,r){const i=C.useMemo(()=>{const o=K1();return Ld(o,t,{enableHardwareAcceleration:!1},Md(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};H1(o,e.style,e),i.style={...o,...i.style}}return i}function aR(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(_d(n)?lR:J2)(r,o,s,n),f={...nR(r,typeof n=="string",e),...a,ref:i},{children:c}=r,d=C.useMemo(()=>Ye(c)?c.get():c,[c]);return C.createElement(n,{...f,children:d})}}function q1(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const X1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Q1(e,t,n,r){q1(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X1.has(i)?i:Td(i),t.attrs[i])}function $d(e,t){const{style:n}=e,r={};for(const i in n)(Ye(n[i])||t.style&&Ye(t.style[i])||I1(i,e))&&(r[i]=n[i]);return r}function Y1(e,t){const n=$d(e,t);for(const r in e)if(Ye(e[r])||Ye(t[r])){const i=Do.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Nd(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function uR(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ll=e=>Array.isArray(e),cR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fR=e=>Ll(e)?e[e.length-1]||0:e;function Ws(e){const t=Ye(e)?e.get():e;return cR(t)?t.toValue():t}function dR({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:pR(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const Z1=e=>(t,n)=>{const r=C.useContext(ha),i=C.useContext(Pd),o=()=>dR(e,t,r,i);return n?o():uR(o)};function pR(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ws(o[d]);let{initial:s,animate:l}=e;const a=ya(e),u=D1(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const c=f?l:s;return c&&typeof c!="boolean"&&!ga(c)&&(Array.isArray(c)?c:[c]).forEach(m=>{const y=Nd(e,m);if(!y)return;const{transitionEnd:v,transition:w,...p}=y;for(const h in p){let g=p[h];if(Array.isArray(g)){const x=f?g.length-1:0;g=g[x]}g!==null&&(i[h]=g)}for(const h in v)i[h]=v[h]}),i}const fe=e=>e;class km{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function hR(e){let t=new km,n=new km,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(a,u=!1,f=!1)=>{const c=f&&i,d=c?t:n;return u&&s.add(a),d.add(a)&&c&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),s.delete(a)},process:a=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const f=t.order[u];f(a),s.has(f)&&(l.schedule(f),e())}i=!1,o&&(o=!1,l.process(a))}};return l}const ds=["prepare","read","update","preRender","render","postRender"],mR=40;function gR(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=ds.reduce((c,d)=>(c[d]=hR(()=>n=!0),c),{}),s=c=>o[c].process(i),l=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,mR),1),i.timestamp=c,i.isProcessing=!0,ds.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:ds.reduce((c,d)=>{const m=o[d];return c[d]=(y,v=!1,w=!1)=>(n||a(),m.schedule(y,v,w)),c},{}),cancel:c=>ds.forEach(d=>o[d].cancel(c)),state:i,steps:o}}const{schedule:te,cancel:pn,state:Oe,steps:hu}=gR(typeof requestAnimationFrame<"u"?requestAnimationFrame:fe,!0),yR={useVisualState:Z1({scrapeMotionValuesFromProps:Y1,createRenderState:K1,onMount:(e,t,{renderState:n,latestValues:r})=>{te.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),te.render(()=>{Ld(n,r,{enableHardwareAcceleration:!1},Md(t.tagName),e.transformTemplate),Q1(t,n)})}})},vR={useVisualState:Z1({scrapeMotionValuesFromProps:$d,createRenderState:Od})};function wR(e,{forwardMotionProps:t=!1},n,r){return{..._d(e)?yR:vR,preloadedFeatures:n,useRender:aR(t),createVisualElement:r,Component:e}}function tn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const J1=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function wa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const xR=e=>t=>J1(t)&&e(t,wa(t));function on(e,t,n,r){return tn(e,t,xR(n),r)}const SR=(e,t)=>n=>t(e(n)),Bn=(...e)=>e.reduce(SR);function ew(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Em=ew("dragHorizontal"),Cm=ew("dragVertical");function tw(e){let t=!1;if(e==="y")t=Cm();else if(e==="x")t=Em();else{const n=Em(),r=Cm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function nw(){const e=tw(!0);return e?(e(),!1):!0}class Yn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Pm(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||nw())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&te.update(()=>l[r](o,s))};return on(e.current,n,i,{passive:!e.getProps()[r]})}class kR extends Yn{mount(){this.unmount=Bn(Pm(this.node,!0),Pm(this.node,!1))}unmount(){}}class ER extends Yn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=Bn(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const rw=(e,t)=>t?e===t?!0:rw(e,t.parentElement):!1;function mu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,wa(n))}class CR extends Yn{constructor(){super(...arguments),this.removeStartListeners=fe,this.removeEndListeners=fe,this.removeAccessibleListeners=fe,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=on(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();te.update(()=>{!c&&!rw(this.node.current,l.target)?f&&f(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=on(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Bn(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||mu("up",(a,u)=>{const{onTap:f}=this.node.getProps();f&&te.update(()=>f(a,u))})};this.removeEndListeners(),this.removeEndListeners=tn(this.node.current,"keyup",s),mu("down",(l,a)=>{this.startPress(l,a)})},n=tn(this.node.current,"keydown",t),r=()=>{this.isPressing&&mu("cancel",(o,s)=>this.cancelPress(o,s))},i=tn(this.node.current,"blur",r);this.removeAccessibleListeners=Bn(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&te.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&te.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=on(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=tn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Bn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Uc=new WeakMap,gu=new WeakMap,PR=e=>{const t=Uc.get(e.target);t&&t(e)},TR=e=>{e.forEach(PR)};function RR({root:e,...t}){const n=e||document;gu.has(n)||gu.set(n,{});const r=gu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TR,{root:e,...t})),r[i]}function bR(e,t,n){const r=RR(t);return Uc.set(e,n),r.observe(e),()=>{Uc.delete(e),r.unobserve(e)}}const _R={some:0,all:1};class AR extends Yn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:_R[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),d=u?f:c;d&&d(a)};return bR(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OR(t,n))&&this.startObserver()}unmount(){}}function OR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LR={inView:{Feature:AR},tap:{Feature:CR},focus:{Feature:ER},hover:{Feature:kR}};function iw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function MR(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function $R(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function xa(e,t,n){const r=e.getProps();return Nd(r,t,n!==void 0?n:r.custom,MR(e),$R(e))}let NR=fe,Fd=fe;const Un=e=>e*1e3,sn=e=>e/1e3,FR={current:!1},ow=e=>Array.isArray(e)&&typeof e[0]=="number";function sw(e){return!!(!e||typeof e=="string"&&lw[e]||ow(e)||Array.isArray(e)&&e.every(sw))}const Vi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vi([0,.65,.55,1]),circOut:Vi([.55,0,1,.45]),backIn:Vi([.31,.01,.66,-.59]),backOut:Vi([.33,1.53,.69,.99])};function aw(e){if(e)return ow(e)?Vi(e):Array.isArray(e)?e.map(aw):lw[e]}function DR(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const f=aw(l);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function jR(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const uw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VR=1e-7,IR=12;function zR(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=uw(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>VR&&++l<IR);return s}function Io(e,t,n,r){if(e===t&&n===r)return fe;const i=o=>zR(o,0,1,e,n);return o=>o===0||o===1?o:uw(i(o),t,r)}const BR=Io(.42,0,1,1),UR=Io(0,0,.58,1),cw=Io(.42,0,.58,1),WR=e=>Array.isArray(e)&&typeof e[0]!="number",fw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dw=e=>t=>1-e(1-t),Dd=e=>1-Math.sin(Math.acos(e)),pw=dw(Dd),HR=fw(Dd),hw=Io(.33,1.53,.69,.99),jd=dw(hw),GR=fw(jd),KR=e=>(e*=2)<1?.5*jd(e):.5*(2-Math.pow(2,-10*(e-1))),qR={linear:fe,easeIn:BR,easeInOut:cw,easeOut:UR,circIn:Dd,circInOut:HR,circOut:pw,backIn:jd,backInOut:GR,backOut:hw,anticipate:KR},Tm=e=>{if(Array.isArray(e)){Fd(e.length===4);const[t,n,r,i]=e;return Io(t,n,r,i)}else if(typeof e=="string")return qR[e];return e},Vd=(e,t)=>n=>!!(jo(n)&&q2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mw=(e,t,n)=>r=>{if(!jo(r))return r;const[i,o,s,l]=r.match(va);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},XR=e=>Gn(0,255,e),yu={...Pr,transform:e=>Math.round(XR(e))},pr={test:Vd("rgb","red"),parse:mw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yu.transform(e)+", "+yu.transform(t)+", "+yu.transform(n)+", "+eo(Ji.transform(r))+")"};function QR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Wc={test:Vd("#"),parse:QR,transform:pr.transform},Hr={test:Vd("hsl","hue"),parse:mw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qt.transform(eo(t))+", "+qt.transform(eo(n))+", "+eo(Ji.transform(r))+")"},$e={test:e=>pr.test(e)||Wc.test(e)||Hr.test(e),parse:e=>pr.test(e)?pr.parse(e):Hr.test(e)?Hr.parse(e):Wc.parse(e),transform:e=>jo(e)?e:e.hasOwnProperty("red")?pr.transform(e):Hr.transform(e)},le=(e,t,n)=>-n*e+n*t+e;function vu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=vu(a,l,e+1/3),o=vu(a,l,e),s=vu(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const wu=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ZR=[Wc,pr,Hr],JR=e=>ZR.find(t=>t.test(e));function Rm(e){const t=JR(e);let n=t.parse(e);return t===Hr&&(n=YR(n)),n}const gw=(e,t)=>{const n=Rm(e),r=Rm(t),i={...n};return o=>(i.red=wu(n.red,r.red,o),i.green=wu(n.green,r.green,o),i.blue=wu(n.blue,r.blue,o),i.alpha=le(n.alpha,r.alpha,o),pr.transform(i))};function eb(e){var t,n;return isNaN(e)&&jo(e)&&(((t=e.match(va))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(U1))===null||n===void 0?void 0:n.length)||0)>0}const yw={regex:G2,countKey:"Vars",token:"${v}",parse:fe},vw={regex:U1,countKey:"Colors",token:"${c}",parse:$e.parse},ww={regex:va,countKey:"Numbers",token:"${n}",parse:Pr.parse};function xu(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Ml(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xu(n,yw),xu(n,vw),xu(n,ww),n}function xw(e){return Ml(e).values}function Sw(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Ml(e),o=t.length;return s=>{let l=i;for(let a=0;a<o;a++)a<r?l=l.replace(yw.token,s[a]):a<r+n?l=l.replace(vw.token,$e.transform(s[a])):l=l.replace(ww.token,eo(s[a]));return l}}const tb=e=>typeof e=="number"?0:e;function nb(e){const t=xw(e);return Sw(e)(t.map(tb))}const Kn={test:eb,parse:xw,createTransformer:Sw,getAnimatableNone:nb},kw=(e,t)=>n=>`${n>0?t:e}`;function Ew(e,t){return typeof e=="number"?n=>le(e,t,n):$e.test(e)?gw(e,t):e.startsWith("var(")?kw(e,t):Pw(e,t)}const Cw=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Ew(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},rb=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ew(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Pw=(e,t)=>{const n=Kn.createTransformer(t),r=Ml(e),i=Ml(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Bn(Cw(r.values,i.values),n):kw(e,t)},bo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},bm=(e,t)=>n=>le(e,t,n);function ib(e){return typeof e=="number"?bm:typeof e=="string"?$e.test(e)?gw:Pw:Array.isArray(e)?Cw:typeof e=="object"?rb:bm}function ob(e,t,n){const r=[],i=n||ib(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||fe:t;l=Bn(a,l)}r.push(l)}return r}function Tw(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Fd(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ob(t,r,i),l=s.length,a=u=>{let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const c=bo(e[f],e[f+1],u);return s[f](c)};return n?u=>a(Gn(e[0],e[o-1],u)):a}function sb(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=bo(0,t,r);e.push(le(n,1,i))}}function lb(e){const t=[0];return sb(t,e.length-1),t}function ab(e,t){return e.map(n=>n*t)}function ub(e,t){return e.map(()=>t||cw).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=WR(r)?r.map(Tm):Tm(r),o={done:!1,value:t[0]},s=ab(n&&n.length===t.length?n:lb(t),e),l=Tw(s,t,{ease:Array.isArray(i)?i:ub(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function Rw(e,t){return t?e*(1e3/t):0}const cb=5;function bw(e,t,n){const r=Math.max(t-cb,0);return Rw(n-e(r),t-r)}const Su=.001,fb=.01,_m=10,db=.05,pb=1;function hb({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;NR(e<=Un(_m));let s=1-t;s=Gn(db,pb,s),e=Gn(fb,_m,sn(e)),s<1?(i=u=>{const f=u*s,c=f*e,d=f-n,m=Hc(u,s),y=Math.exp(-c);return Su-d/m*y},o=u=>{const c=u*s*e,d=c*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-c),v=Hc(Math.pow(u,2),s);return(-i(u)+Su>0?-1:1)*((d-m)*y)/v}):(i=u=>{const f=Math.exp(-u*e),c=(u-n)*e+1;return-Su+f*c},o=u=>{const f=Math.exp(-u*e),c=(n-u)*(e*e);return f*c});const l=5/e,a=gb(i,o,l);if(e=Un(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const mb=12;function gb(e,t,n){let r=n;for(let i=1;i<mb;i++)r=r-e(r)/t(r);return r}function Hc(e,t){return e*Math.sqrt(1-t*t)}const yb=["duration","bounce"],vb=["stiffness","damping","mass"];function Am(e,t){return t.some(n=>e[n]!==void 0)}function wb(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Am(e,vb)&&Am(e,yb)){const n=hb(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function _w({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:a,mass:u,duration:f,velocity:c,isResolvedFromDuration:d}=wb({...r,velocity:-sn(r.velocity||0)}),m=c||0,y=a/(2*Math.sqrt(l*u)),v=o-i,w=sn(Math.sqrt(l/u)),p=Math.abs(v)<5;n||(n=p?.01:2),t||(t=p?.005:.5);let h;if(y<1){const g=Hc(w,y);h=x=>{const S=Math.exp(-y*w*x);return o-S*((m+y*w*v)/g*Math.sin(g*x)+v*Math.cos(g*x))}}else if(y===1)h=g=>o-Math.exp(-w*g)*(v+(m+w*v)*g);else{const g=w*Math.sqrt(y*y-1);h=x=>{const S=Math.exp(-y*w*x),k=Math.min(g*x,300);return o-S*((m+y*w*v)*Math.sinh(k)+g*v*Math.cosh(k))/g}}return{calculatedDuration:d&&f||null,next:g=>{const x=h(g);if(d)s.done=g>=f;else{let S=m;g!==0&&(y<1?S=bw(h,g,x):S=0);const k=Math.abs(S)<=n,E=Math.abs(o-x)<=t;s.done=k&&E}return s.value=s.done?o:x,s}}}function Om({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:f}){const c=e[0],d={done:!1,value:c},m=P=>l!==void 0&&P<l||a!==void 0&&P>a,y=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let v=n*t;const w=c+v,p=s===void 0?w:s(w);p!==w&&(v=p-c);const h=P=>-v*Math.exp(-P/r),g=P=>p+h(P),x=P=>{const O=h(P),M=g(P);d.done=Math.abs(O)<=u,d.value=d.done?p:M};let S,k;const E=P=>{m(d.value)&&(S=P,k=_w({keyframes:[d.value,y(d.value)],velocity:bw(g,P,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:f}))};return E(0),{calculatedDuration:null,next:P=>{let O=!1;return!k&&S===void 0&&(O=!0,x(P),E(P)),S!==void 0&&P>S?k.next(P-S):(!O&&x(P),d)}}}const xb=e=>{const t=({timestamp:n})=>e(n);return{start:()=>te.update(t,!0),stop:()=>pn(t),now:()=>Oe.isProcessing?Oe.timestamp:performance.now()}},Lm=2e4;function Mm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Lm;)t+=n,r=e.next(t);return t>=Lm?1/0:t}const Sb={decay:Om,inertia:Om,tween:$l,keyframes:$l,spring:_w};function Nl({autoplay:e=!0,delay:t=0,driver:n=xb,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:f,onUpdate:c,...d}){let m=1,y=!1,v,w;const p=()=>{w=new Promise(D=>{v=D})};p();let h;const g=Sb[i]||$l;let x;g!==$l&&typeof r[0]!="number"&&(x=Tw([0,100],r,{clamp:!1}),r=[0,100]);const S=g({...d,keyframes:r});let k;l==="mirror"&&(k=g({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let E="idle",P=null,O=null,M=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=Mm(S));const{calculatedDuration:I}=S;let G=1/0,ne=1/0;I!==null&&(G=I+s,ne=G*(o+1)-s);let pe=0;const pt=D=>{if(O===null)return;m>0&&(O=Math.min(O,D)),m<0&&(O=Math.min(D-ne/m,O)),P!==null?pe=P:pe=Math.round(D-O)*m;const Y=pe-t*(m>=0?1:-1),Et=m>=0?Y<0:Y>ne;pe=Math.max(Y,0),E==="finished"&&P===null&&(pe=ne);let Ct=pe,Pt=S;if(o){const vi=Math.min(pe,ne)/G;let Zn=Math.floor(vi),Rt=vi%1;!Rt&&vi>=1&&(Rt=1),Rt===1&&Zn--,Zn=Math.min(Zn,o+1),!!(Zn%2)&&(l==="reverse"?(Rt=1-Rt,s&&(Rt-=s/G)):l==="mirror"&&(Pt=k)),Ct=Gn(0,1,Rt)*G}const ke=Et?{done:!1,value:r[0]}:Pt.next(Ct);x&&(ke.value=x(ke.value));let{done:Tt}=ke;!Et&&I!==null&&(Tt=m>=0?pe>=ne:pe<=0);const Tr=P===null&&(E==="finished"||E==="running"&&Tt);return c&&c(ke.value),Tr&&b(),ke},oe=()=>{h&&h.stop(),h=void 0},Be=()=>{E="idle",oe(),v(),p(),O=M=null},b=()=>{E="finished",f&&f(),oe(),v()},N=()=>{if(y)return;h||(h=n(pt));const D=h.now();a&&a(),P!==null?O=D-P:(!O||E==="finished")&&(O=D),E==="finished"&&p(),M=O,P=null,E="running",h.start()};e&&N();const j={then(D,Y){return w.then(D,Y)},get time(){return sn(pe)},set time(D){D=Un(D),pe=D,P!==null||!h||m===0?P=D:O=h.now()-D/m},get duration(){const D=S.calculatedDuration===null?Mm(S):S.calculatedDuration;return sn(D)},get speed(){return m},set speed(D){D===m||!h||(m=D,j.time=sn(pe))},get state(){return E},play:N,pause:()=>{E="paused",P=pe},stop:()=>{y=!0,E!=="idle"&&(E="idle",u&&u(),Be())},cancel:()=>{M!==null&&pt(M),Be()},complete:()=>{E="finished"},sample:D=>(O=0,pt(D))};return j}function kb(e){let t;return()=>(t===void 0&&(t=e()),t)}const Eb=kb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Cb=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ps=10,Pb=2e4,Tb=(e,t)=>t.type==="spring"||e==="backgroundColor"||!sw(t.ease);function Rb(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Eb()&&Cb.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,a,u=!1;const f=()=>{a=new Promise(g=>{l=g})};f();let{keyframes:c,duration:d=300,ease:m,times:y}=i;if(Tb(t,i)){const g=Nl({...i,repeat:0,delay:0});let x={done:!1,value:c[0]};const S=[];let k=0;for(;!x.done&&k<Pb;)x=g.sample(k),S.push(x.value),k+=ps;y=void 0,c=S,d=k-ps,m="linear"}const v=DR(e.owner.current,t,c,{...i,duration:d,ease:m,times:y}),w=()=>{u=!1,v.cancel()},p=()=>{u=!0,te.update(w),l(),f()};return v.onfinish=()=>{u||(e.set(jR(c,i)),r&&r(),p())},{then(g,x){return a.then(g,x)},attachTimeline(g){return v.timeline=g,v.onfinish=null,fe},get time(){return sn(v.currentTime||0)},set time(g){v.currentTime=Un(g)},get speed(){return v.playbackRate},set speed(g){v.playbackRate=g},get duration(){return sn(d)},play:()=>{s||(v.play(),pn(w))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:g}=v;if(g){const x=Nl({...i,autoplay:!1});e.setWithVelocity(x.sample(g-ps).value,x.sample(g).value,ps)}p()},complete:()=>{u||v.finish()},cancel:p}}function bb({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:fe,pause:fe,stop:fe,then:o=>(o(),Promise.resolve()),cancel:fe,complete:fe});return t?Nl({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const _b={type:"spring",stiffness:500,damping:25,restSpeed:10},Ab=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ob={type:"keyframes",duration:.8},Lb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mb=(e,{keyframes:t})=>t.length>2?Ob:Cr.has(e)?e.startsWith("scale")?Ab(t[1]):_b:Lb,Gc=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Kn.test(t)||t==="0")&&!t.startsWith("url(")),$b=new Set(["brightness","contrast","saturate","opacity"]);function Nb(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(va)||[];if(!r)return e;const i=n.replace(r,"");let o=$b.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Fb=/([a-z-]*)\(.*?\)/g,Kc={...Kn,getAnimatableNone:e=>{const t=e.match(Fb);return t?t.map(Nb).join(" "):e}},Db={...W1,color:$e,backgroundColor:$e,outlineColor:$e,fill:$e,stroke:$e,borderColor:$e,borderTopColor:$e,borderRightColor:$e,borderBottomColor:$e,borderLeftColor:$e,filter:Kc,WebkitFilter:Kc},Id=e=>Db[e];function Aw(e,t){let n=Id(e);return n!==Kc&&(n=Kn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ow=e=>/^0[^.\s]+$/.test(e);function jb(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ow(e)}function Vb(e,t,n,r){const i=Gc(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),jb(o[u])&&a.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(l=o[u]);if(i&&a.length&&l)for(let u=0;u<a.length;u++){const f=a[u];o[f]=Aw(t,l)}return o}function Ib({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...f}){return!!Object.keys(f).length}function zd(e,t){return e[t]||e.default||e}const zb={skipAnimations:!1},Bd=(e,t,n,r={})=>i=>{const o=zd(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Un(s);const a=Vb(t,e,n,o),u=a[0],f=a[a.length-1],c=Gc(e,u),d=Gc(e,f);let m={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:y=>{t.set(y),o.onUpdate&&o.onUpdate(y)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Ib(o)||(m={...m,...Mb(e,m)}),m.duration&&(m.duration=Un(m.duration)),m.repeatDelay&&(m.repeatDelay=Un(m.repeatDelay)),!c||!d||FR.current||o.type===!1||zb.skipAnimations)return bb(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=Rb(t,e,m);if(y)return y}return Nl(m)};function Fl(e){return!!(Ye(e)&&e.add)}const Lw=e=>/^\-?\d*\.?\d+$/.test(e);function Ud(e,t){e.indexOf(t)===-1&&e.push(t)}function Wd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hd{constructor(){this.subscriptions=[]}add(t){return Ud(this.subscriptions,t),()=>Wd(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Bb=e=>!isNaN(parseFloat(e));class Ub{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Oe;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,te.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>te.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Bb(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Hd);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Rw(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new Ub(e,t)}const Mw=e=>t=>t.test(e),Wb={test:e=>e==="auto",parse:e=>e},$w=[Pr,F,qt,En,Q2,X2,Wb],_i=e=>$w.find(Mw(e)),Hb=[...$w,$e,Kn],Gb=e=>Hb.find(Mw(e));function Kb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function qb(e,t){const n=xa(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=fR(o[s]);Kb(e,s,l)}}function Xb(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const a=o[l],u=t[a];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(i=(r=n[a])!==null&&r!==void 0?r:e.readValue(a))!==null&&i!==void 0?i:t[a]),f!=null&&(typeof f=="string"&&(Lw(f)||Ow(f))?f=parseFloat(f):!Gb(f)&&Kn.test(u)&&(f=Aw(a,u)),e.addValue(a,ai(f,{owner:e})),n[a]===void 0&&(n[a]=f),f!==null&&e.setBaseTarget(a,f))}}function Qb(e,t){return t?(t[e]||t.default||t).from:void 0}function Yb(e,t,n){const r={};for(const i in e){const o=Qb(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function Zb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jb(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Nw(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const a=e.getValue("willChange");r&&(o=r);const u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const c in l){const d=e.getValue(c),m=l[c];if(!d||m===void 0||f&&Zb(f,c))continue;const y={delay:n,elapsed:0,...zd(o||{},c)};if(window.HandoffAppearAnimations){const p=e.getProps()[F1];if(p){const h=window.HandoffAppearAnimations(p,c,d,te);h!==null&&(y.elapsed=h,y.isHandoff=!0)}}let v=!y.isHandoff&&!Jb(d,m);if(y.type==="spring"&&(d.getVelocity()||y.velocity)&&(v=!1),d.animation&&(v=!1),v)continue;d.start(Bd(c,d,m,e.shouldReduceMotion&&Cr.has(c)?{type:!1}:y));const w=d.animation;Fl(a)&&(a.add(c),w.then(()=>a.remove(c))),u.push(w)}return s&&Promise.all(u).then(()=>{s&&qb(e,s)}),u}function qc(e,t,n={}){const r=xa(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Nw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=i;return e_(e,t,u+a,f,c,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[o,s]:[s,o];return a().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function e_(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(t_).forEach((u,f)=>{u.notify("AnimationStart",t),s.push(qc(u,t,{...o,delay:n+a(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function t_(e,t){return e.sortNodePosition(t)}function n_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>qc(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=qc(e,t,n);else{const i=typeof t=="function"?xa(e,t,n.custom):t;r=Promise.all(Nw(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const r_=[...Rd].reverse(),i_=Rd.length;function o_(e){return t=>Promise.all(t.map(({animation:n,options:r})=>n_(e,n,r)))}function s_(e){let t=o_(e);const n=a_();let r=!0;const i=(a,u)=>{const f=xa(e,u);if(f){const{transition:c,transitionEnd:d,...m}=f;a={...a,...m,...d}}return a};function o(a){t=a(e)}function s(a,u){const f=e.getProps(),c=e.getVariantContext(!0)||{},d=[],m=new Set;let y={},v=1/0;for(let p=0;p<i_;p++){const h=r_[p],g=n[h],x=f[h]!==void 0?f[h]:c[h],S=To(x),k=h===u?g.isActive:null;k===!1&&(v=p);let E=x===c[h]&&x!==f[h]&&S;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),g.protectedKeys={...y},!g.isActive&&k===null||!x&&!g.prevProp||ga(x)||typeof x=="boolean")continue;let O=l_(g.prevProp,x)||h===u&&g.isActive&&!E&&S||p>v&&S,M=!1;const I=Array.isArray(x)?x:[x];let G=I.reduce(i,{});k===!1&&(G={});const{prevResolvedValues:ne={}}=g,pe={...ne,...G},pt=oe=>{O=!0,m.has(oe)&&(M=!0,m.delete(oe)),g.needsAnimating[oe]=!0};for(const oe in pe){const Be=G[oe],b=ne[oe];if(y.hasOwnProperty(oe))continue;let N=!1;Ll(Be)&&Ll(b)?N=!iw(Be,b):N=Be!==b,N?Be!==void 0?pt(oe):m.add(oe):Be!==void 0&&m.has(oe)?pt(oe):g.protectedKeys[oe]=!0}g.prevProp=x,g.prevResolvedValues=G,g.isActive&&(y={...y,...G}),r&&e.blockInitialAnimation&&(O=!1),O&&(!E||M)&&d.push(...I.map(oe=>({animation:oe,options:{type:h,...a}})))}if(m.size){const p={};m.forEach(h=>{const g=e.getBaseTarget(h);g!==void 0&&(p[h]=g)}),d.push({animation:p})}let w=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(d):Promise.resolve()}function l(a,u,f){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(a,u)}),n[a].isActive=u;const d=s(f,a);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function l_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!iw(t,e):!1}function Jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a_(){return{animate:Jn(!0),whileInView:Jn(),whileHover:Jn(),whileTap:Jn(),whileDrag:Jn(),whileFocus:Jn(),exit:Jn()}}class u_ extends Yn{constructor(t){super(t),t.animationState||(t.animationState=s_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ga(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let c_=0;class f_ extends Yn{constructor(){super(...arguments),this.id=c_++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const d_={animation:{Feature:u_},exit:{Feature:f_}},$m=(e,t)=>Math.abs(e-t);function p_(e,t){const n=$m(e.x,t.x),r=$m(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fw{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Eu(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=p_(c.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:y}=c,{timestamp:v}=Oe;this.history.push({...y,timestamp:v});const{onStart:w,onMove:p}=this.handlers;d||(w&&w(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=ku(d,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Eu(c.type==="pointercancel"?this.lastMoveEventInfo:ku(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(c,w),y&&y(c,w)},!J1(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=wa(t),l=ku(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=Oe;this.history=[{...a,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,Eu(l,this.history)),this.removeListeners=Bn(on(this.contextWindow,"pointermove",this.handlePointerMove),on(this.contextWindow,"pointerup",this.handlePointerUp),on(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),pn(this.updatePoint)}}function ku(e,t){return t?{point:t(e.point)}:e}function Nm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Eu({point:e},t){return{point:e,delta:Nm(e,Dw(t)),offset:Nm(e,h_(t)),velocity:m_(t,.1)}}function h_(e){return e[0]}function Dw(e){return e[e.length-1]}function m_(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Dw(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Un(t)));)n--;if(!r)return{x:0,y:0};const o=sn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ct(e){return e.max-e.min}function Xc(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fm(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=ct(n)/ct(t),(Xc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(Xc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function to(e,t,n,r){Fm(e.x,t.x,n.x,r?r.originX:void 0),Fm(e.y,t.y,n.y,r?r.originY:void 0)}function Dm(e,t,n){e.min=n.min+t.min,e.max=e.min+ct(t)}function g_(e,t,n){Dm(e.x,t.x,n.x),Dm(e.y,t.y,n.y)}function jm(e,t,n){e.min=t.min-n.min,e.max=e.min+ct(t)}function no(e,t,n){jm(e.x,t.x,n.x),jm(e.y,t.y,n.y)}function y_(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?le(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function Vm(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function v_(e,{top:t,left:n,bottom:r,right:i}){return{x:Vm(e.x,n,i),y:Vm(e.y,t,r)}}function Im(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function w_(e,t){return{x:Im(e.x,t.x),y:Im(e.y,t.y)}}function x_(e,t){let n=.5;const r=ct(e),i=ct(t);return i>r?n=bo(t.min,t.max-r,e.min):r>i&&(n=bo(e.min,e.max-i,t.min)),Gn(0,1,n)}function S_(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qc=.35;function k_(e=Qc){return e===!1?e=0:e===!0&&(e=Qc),{x:zm(e,"left","right"),y:zm(e,"top","bottom")}}function zm(e,t,n){return{min:Bm(e,t),max:Bm(e,n)}}function Bm(e,t){return typeof e=="number"?e:e[t]||0}const Um=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gr=()=>({x:Um(),y:Um()}),Wm=()=>({min:0,max:0}),me=()=>({x:Wm(),y:Wm()});function mt(e){return[e("x"),e("y")]}function jw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function E_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C_(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Cu(e){return e===void 0||e===1}function Yc({scale:e,scaleX:t,scaleY:n}){return!Cu(e)||!Cu(t)||!Cu(n)}function rr(e){return Yc(e)||Vw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Vw(e){return Hm(e.x)||Hm(e.y)}function Hm(e){return e&&e!=="0%"}function Dl(e,t,n){const r=e-n,i=t*r;return n+i}function Gm(e,t,n,r,i){return i!==void 0&&(e=Dl(e,i,r)),Dl(e,n,r)+t}function Zc(e,t=0,n=1,r,i){e.min=Gm(e.min,t,n,r,i),e.max=Gm(e.max,t,n,r,i)}function Iw(e,{x:t,y:n}){Zc(e.x,t.translate,t.scale,t.originPoint),Zc(e.y,n.translate,n.scale,n.originPoint)}function P_(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const a=o.instance;a&&a.style&&a.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Kr(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Iw(e,s)),r&&rr(o.latestValues)&&Kr(e,o.latestValues))}t.x=Km(t.x),t.y=Km(t.y)}function Km(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Tn(e,t){e.min=e.min+t,e.max=e.max+t}function qm(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=le(e.min,e.max,o);Zc(e,t[n],t[r],s,t.scale)}const T_=["x","scaleX","originX"],R_=["y","scaleY","originY"];function Kr(e,t){qm(e.x,t,T_),qm(e.y,t,R_)}function zw(e,t){return jw(C_(e.getBoundingClientRect(),t))}function b_(e,t,n){const r=zw(e,n),{scroll:i}=t;return i&&(Tn(r.x,i.offset.x),Tn(r.y,i.offset.y)),r}const Bw=({current:e})=>e?e.ownerDocument.defaultView:null,__=new WeakMap;class A_{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=me(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wa(f,"page").point)},o=(f,c)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tw(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mt(w=>{let p=this.getAxisMotionValue(w).get()||0;if(qt.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const g=h.layout.layoutBox[w];g&&(p=ct(g)*(parseFloat(p)/100))}}this.originPoint[w]=p}),y&&te.update(()=>y(f,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(f,c)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:w}=c;if(m&&this.currentDirection===null){this.currentDirection=O_(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",c.point,w),this.updateAxis("y",c.point,w),this.visualElement.render(),v&&v(f,c)},l=(f,c)=>this.stop(f,c),a=()=>mt(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Fw(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Bw(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&te.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!hs(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=y_(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Wr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v_(i.layoutBox,n):this.constraints=!1,this.elastic=k_(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&mt(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=S_(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Wr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=b_(r,i.root,this.visualElement.getTransformPagePoint());let s=w_(i.layout.layoutBox,o);if(n){const l=n(E_(s));this.hasMutatedConstraints=!!l,l&&(s=jw(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=mt(f=>{if(!hs(f,n,this.currentDirection))return;let c=a&&a[f]||{};s&&(c={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[f]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Bd(t,r,0,n))}stopAnimation(){mt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){mt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){mt(n=>{const{drag:r}=this.getProps();if(!hs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-le(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Wr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};mt(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=x_({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),mt(s=>{if(!hs(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(le(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;__.set(this.visualElement,this);const t=this.visualElement.current,n=on(t,"pointerdown",a=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Wr(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=tn(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(mt(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=a[f].translate,c.set(c.get()+a[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Qc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function hs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function O_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class L_ extends Yn{constructor(t){super(t),this.removeGroupControls=fe,this.removeListeners=fe,this.controls=new A_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xm=e=>(t,n)=>{e&&te.update(()=>e(t,n))};class M_ extends Yn{constructor(){super(...arguments),this.removePointerDownListener=fe}onPointerDown(t){this.session=new Fw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xm(t),onStart:Xm(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&te.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=on(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function $_(){const e=C.useContext(Pd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=C.useId();return C.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ai={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=Qm(e,t.target.x),r=Qm(e,t.target.y);return`${n}% ${r}%`}},N_={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Kn.parse(e);if(i.length>5)return r;const o=Kn.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=le(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class F_ extends st.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;B2(D_),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||te.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Uw(e){const[t,n]=$_(),r=C.useContext(j1);return st.createElement(F_,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(V1),isPresent:t,safeToRemove:n})}const D_={borderRadius:{...Ai,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ai,borderTopRightRadius:Ai,borderBottomLeftRadius:Ai,borderBottomRightRadius:Ai,boxShadow:N_},Ww=["TopLeft","TopRight","BottomLeft","BottomRight"],j_=Ww.length,Ym=e=>typeof e=="string"?parseFloat(e):e,Zm=e=>typeof e=="number"||F.test(e);function V_(e,t,n,r,i,o){i?(e.opacity=le(0,n.opacity!==void 0?n.opacity:1,I_(r)),e.opacityExit=le(t.opacity!==void 0?t.opacity:1,0,z_(r))):o&&(e.opacity=le(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<j_;s++){const l=`border${Ww[s]}Radius`;let a=Jm(t,l),u=Jm(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Zm(a)===Zm(u)?(e[l]=Math.max(le(Ym(a),Ym(u),r),0),(qt.test(u)||qt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=le(t.rotate||0,n.rotate||0,r))}function Jm(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const I_=Hw(0,.5,pw),z_=Hw(.5,.95,fe);function Hw(e,t,n){return r=>r<e?0:r>t?1:n(bo(e,t,r))}function eg(e,t){e.min=t.min,e.max=t.max}function ht(e,t){eg(e.x,t.x),eg(e.y,t.y)}function tg(e,t,n,r,i){return e-=t,e=Dl(e,1/n,r),i!==void 0&&(e=Dl(e,1/i,r)),e}function B_(e,t=0,n=1,r=.5,i,o=e,s=e){if(qt.test(t)&&(t=parseFloat(t),t=le(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=le(o.min,o.max,r);e===o&&(l-=t),e.min=tg(e.min,t,n,l,i),e.max=tg(e.max,t,n,l,i)}function ng(e,t,[n,r,i],o,s){B_(e,t[n],t[r],t[i],t.scale,o,s)}const U_=["x","scaleX","originX"],W_=["y","scaleY","originY"];function rg(e,t,n,r){ng(e.x,t,U_,n?n.x:void 0,r?r.x:void 0),ng(e.y,t,W_,n?n.y:void 0,r?r.y:void 0)}function ig(e){return e.translate===0&&e.scale===1}function Gw(e){return ig(e.x)&&ig(e.y)}function H_(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Kw(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function og(e){return ct(e.x)/ct(e.y)}class G_{constructor(){this.members=[]}add(t){Ud(this.members,t),t.scheduleRender()}remove(t){if(Wd(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sg(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:f}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const K_=(e,t)=>e.depth-t.depth;class q_{constructor(){this.children=[],this.isDirty=!1}add(t){Ud(this.children,t),this.isDirty=!0}remove(t){Wd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(K_),this.isDirty=!1,this.children.forEach(t)}}function X_(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(pn(r),e(o-t))};return te.read(r,!0),()=>pn(r)}function Q_(e){window.MotionDebug&&window.MotionDebug.record(e)}function Y_(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Z_(e,t,n){const r=Ye(e)?e:ai(e);return r.start(Bd("",r,t,n)),r.animation}const lg=["","X","Y","Z"],J_={visibility:"hidden"},ag=1e3;let eA=0;const ir={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qw({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=eA++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ir.totalNodes=ir.resolvedTargetDeltas=ir.recalculatedProjection=0,this.nodes.forEach(rA),this.nodes.forEach(aA),this.nodes.forEach(uA),this.nodes.forEach(iA),Q_(ir)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new q_)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Hd),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const a=this.eventHandlers.get(s);a&&a.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Y_(s),this.instance=s;const{layoutId:a,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=X_(d,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(cg))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&f&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||f.getDefaultTransition()||hA,{onLayoutAnimationStart:w,onLayoutAnimationComplete:p}=f.getProps(),h=!this.targetLayout||!Kw(this.targetLayout,y)||m,g=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,g);const x={...zd(v,"layout"),onPlay:w,onComplete:p};(f.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||cg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,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.forEach(cA),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ug);return}this.isUpdating||this.nodes.forEach(sA),this.isUpdating=!1,this.nodes.forEach(lA),this.nodes.forEach(tA),this.nodes.forEach(nA),this.clearAllSnapshots();const l=performance.now();Oe.delta=Gn(0,1e3/60,l-Oe.timestamp),Oe.timestamp=l,Oe.isProcessing=!0,hu.update.process(Oe),hu.preRender.process(Oe),hu.render.process(Oe),Oe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(oA),this.sharedNodes.forEach(fA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=me(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Gw(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;s&&(l||rr(this.latestValues)||f)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return s&&(a=this.removeTransform(a)),mA(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return me();const l=s.measureViewportBox(),{scroll:a}=this.root;return a&&(Tn(l.x,a.offset.x),Tn(l.y,a.offset.y)),l}removeElementScroll(s){const l=me();ht(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){ht(l,s);const{scroll:d}=this.root;d&&(Tn(l.x,-d.offset.x),Tn(l.y,-d.offset.y))}Tn(l.x,f.offset.x),Tn(l.y,f.offset.y)}}return l}applyTransform(s,l=!1){const a=me();ht(a,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Kr(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),rr(f.latestValues)&&Kr(a,f.latestValues)}return rr(this.latestValues)&&Kr(a,this.latestValues),a}removeTransform(s){const l=me();ht(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!rr(u.latestValues))continue;Yc(u.latestValues)&&u.updateSnapshot();const f=me(),c=u.measurePageBox();ht(f,c),rg(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return rr(this.latestValues)&&rg(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==Oe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=Oe.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=me(),this.relativeTargetOrigin=me(),no(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=me(),this.targetWithTransforms=me()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g_(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ht(this.target,this.layout.layoutBox),Iw(this.target,this.targetDelta)):ht(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=me(),this.relativeTargetOrigin=me(),no(this.relativeTargetOrigin,this.target,m.target),ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ir.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Yc(this.parent.latestValues)||Vw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Oe.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;ht(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,m=this.treeScale.y;P_(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:y}=l;if(!y){this.projectionTransform&&(this.projectionDelta=Gr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Gr(),this.projectionDeltaWithTransform=Gr());const v=this.projectionTransform;to(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=sg(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==d||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),ir.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const a=this.snapshot,u=a?a.latestValues:{},f={...this.latestValues},c=Gr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=me(),m=a?a.source:void 0,y=this.layout?this.layout.source:void 0,v=m!==y,w=this.getStack(),p=!w||w.members.length<=1,h=!!(v&&!p&&this.options.crossfade===!0&&!this.path.some(pA));this.animationProgress=0;let g;this.mixTargetDelta=x=>{const S=x/1e3;fg(c.x,s.x,S),fg(c.y,s.y,S),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dA(this.relativeTarget,this.relativeTargetOrigin,d,S),g&&H_(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=me()),ht(g,this.relativeTarget)),v&&(this.animationValues=f,V_(f,u,this.latestValues,S,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{Hs.hasAnimatedSinceResize=!0,this.currentAnimation=Z_(0,ag,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ag),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:f}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&Xw(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||me();const c=ct(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+c;const d=ct(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}ht(l,a),Kr(l,f),to(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new G_),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let f=0;f<lg.length;f++){const c="rotate"+lg[f];a[c]&&(u[c]=a[c],s.setStaticValue(c,0))}s.render();for(const f in u)s.setStaticValue(f,u[f]);s.scheduleRender()}getProjectionStyles(s){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return J_;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ws(s==null?void 0:s.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ws(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!rr(this.latestValues)&&(v.transform=f?f({},""):"none",this.hasProjected=!1),v}const d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=sg(this.projectionDeltaWithTransform,this.treeScale,d),f&&(u.transform=f(d,u.transform));const{x:m,y}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,c.animationValues?u.opacity=c===this?(a=(l=d.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Al){if(d[v]===void 0)continue;const{correct:w,applyTo:p}=Al[v],h=u.transform==="none"?d[v]:w(d[v],c);if(p){const g=p.length;for(let x=0;x<g;x++)u[p[x]]=h}else u[v]=h}return this.options.layoutId&&(u.pointerEvents=c===this?Ws(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(ug),this.root.sharedNodes.clear()}}}function tA(e){e.updateLayout()}function nA(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?mt(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],m=ct(d);d.min=r[c].min,d.max=d.min+m}):Xw(o,n.layoutBox,r)&&mt(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],m=ct(r[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const l=Gr();to(l,r,n.layoutBox);const a=Gr();s?to(a,e.applyTransform(i,!0),n.measuredBox):to(a,r,n.layoutBox);const u=!Gw(l);let f=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:m}=c;if(d&&m){const y=me();no(y,n.layoutBox,d.layoutBox);const v=me();no(v,r,m.layoutBox),Kw(y,v)||(f=!0),c.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rA(e){ir.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oA(e){e.clearSnapshot()}function ug(e){e.clearMeasurements()}function sA(e){e.isLayoutDirty=!1}function lA(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aA(e){e.resolveTargetDelta()}function uA(e){e.calcProjection()}function cA(e){e.resetRotation()}function fA(e){e.removeLeadSnapshot()}function fg(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dg(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function dA(e,t,n,r){dg(e.x,t.x,n.x,r),dg(e.y,t.y,n.y,r)}function pA(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hA={duration:.45,ease:[.4,0,.1,1]},pg=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),hg=pg("applewebkit/")&&!pg("chrome/")?Math.round:fe;function mg(e){e.min=hg(e.min),e.max=hg(e.max)}function mA(e){mg(e.x),mg(e.y)}function Xw(e,t,n){return e==="position"||e==="preserve-aspect"&&!Xc(og(t),og(n),.2)}const gA=qw({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pu={current:void 0},Qw=qw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pu.current){const e=new gA({});e.mount(window),e.setOptions({layoutScroll:!0}),Pu.current=e}return Pu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yA={pan:{Feature:M_},drag:{Feature:L_,ProjectionNode:Qw,MeasureLayout:Uw}},vA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function wA(e){const t=vA.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Jc(e,t,n=1){const[r,i]=wA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Lw(s)?parseFloat(s):s}else return Bc(i)?Jc(i,t,n+1):i}function xA(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Bc(o))return;const s=Jc(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Bc(o))continue;const s=Jc(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const SA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Yw=e=>SA.has(e),kA=e=>Object.keys(e).some(Yw),gg=e=>e===Pr||e===F,yg=(e,t)=>parseFloat(e.split(", ")[t]),vg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return yg(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?yg(o[1],e):0}},EA=new Set(["x","y","z"]),CA=Do.filter(e=>!EA.has(e));function PA(e){const t=[];return CA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ui={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:vg(4,13),y:vg(5,14)};ui.translateX=ui.x;ui.translateY=ui.y;const TA=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=ui[u](r,o)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const f=t.getValue(u);f&&f.jump(l[u]),e[u]=ui[u](a,o)}),e},RA=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Yw);let o=[],s=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let f=n[a],c=_i(f);const d=t[a];let m;if(Ll(d)){const y=d.length,v=d[0]===null?1:0;f=d[v],c=_i(f);for(let w=v;w<y&&d[w]!==null;w++)m?Fd(_i(d[w])===m):m=_i(d[w])}else m=_i(d);if(c!==m)if(gg(c)&&gg(m)){const y=u.get();typeof y=="string"&&u.set(parseFloat(y)),typeof d=="string"?t[a]=parseFloat(d):Array.isArray(d)&&m===F&&(t[a]=d.map(parseFloat))}else c!=null&&c.transform&&(m!=null&&m.transform)&&(f===0||d===0)?f===0?u.set(m.transform(f)):t[a]=c.transform(d):(s||(o=PA(e),s=!0),l.push(a),r[a]=r[a]!==void 0?r[a]:t[a],u.jump(d))}),l.length){const a=l.indexOf("height")>=0?window.pageYOffset:null,u=TA(t,e,l);return o.length&&o.forEach(([f,c])=>{e.getValue(f).set(c)}),e.render(),ma&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function bA(e,t,n,r){return kA(t)?RA(e,t,n,r):{target:t,transitionEnd:r}}const _A=(e,t,n,r)=>{const i=xA(e,t,r);return t=i.target,r=i.transitionEnd,bA(e,t,n,r)},ef={current:null},Zw={current:!1};function AA(){if(Zw.current=!0,!!ma)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ef.current=e.matches;e.addListener(t),t()}else ef.current=!1}function OA(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ye(o))e.addValue(i,o),Fl(r)&&r.add(i);else if(Ye(s))e.addValue(i,ai(o,{owner:e})),Fl(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,ai(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const wg=new WeakMap,Jw=Object.keys(Ro),LA=Jw.length,xg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],MA=bd.length;class $A{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>te.render(this.render,!1,!0);const{latestValues:l,renderState:a}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=ya(n),this.isVariantNode=D1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const d=f[c];l[c]!==void 0&&Ye(d)&&(d.set(l[c],!1),Fl(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,wg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Zw.current||AA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ef.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wg.delete(this.current),this.projection&&this.projection.unmount(),pn(this.notifyUpdate),pn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Cr.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&te.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;for(let a=0;a<LA;a++){const u=Jw[a],{isEnabled:f,Feature:c,ProjectionNode:d,MeasureLayout:m}=Ro[u];d&&(s=d),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),m&&(l=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:a,layout:u,drag:f,dragConstraints:c,layoutScroll:d,layoutRoot:m}=n;this.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!f||c&&Wr(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:m})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<xg.length;r++){const i=xg[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=OA(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<MA;r++){const i=bd[r],o=this.props[i];(To(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Nd(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ye(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ex extends $A{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=Yb(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){Xb(this,r,s);const l=_A(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function NA(e){return window.getComputedStyle(e)}class FA extends ex{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Cr.has(n)){const r=Id(n);return r&&r.default||0}else{const r=NA(t),i=(B1(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zw(t,n)}build(t,n,r,i){Ad(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return $d(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){q1(t,n,r,i)}}class DA extends ex{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cr.has(n)){const r=Id(n);return r&&r.default||0}return n=X1.has(n)?n:Td(n),t.getAttribute(n)}measureInstanceViewportBox(){return me()}scrapeMotionValuesFromProps(t,n){return Y1(t,n)}build(t,n,r,i){Ld(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Q1(t,n,r,i)}mount(t){this.isSVGTag=Md(t.tagName),super.mount(t)}}const jA=(e,t)=>_d(e)?new DA(t,{enableHardwareAcceleration:!1}):new FA(t,{enableHardwareAcceleration:!0}),VA={layout:{ProjectionNode:Qw,MeasureLayout:Uw}},IA={...d_,...LR,...yA,...VA},zA=I2((e,t)=>wR(e,t,IA,jA));/**
|
|
75
75
|
* @remix-run/router v1.15.3
|
|
76
76
|
*
|
|
77
77
|
* Copyright (c) Remix Software Inc.
|