diff --git a/docs/LANDING_COPY_V0_6_1.md b/docs/LANDING_COPY_V0_6_1.md index 95a693ab..1f8c9aa0 100644 --- a/docs/LANDING_COPY_V0_6_1.md +++ b/docs/LANDING_COPY_V0_6_1.md @@ -2,30 +2,29 @@ ## Positioning -`m1nd` should no longer be presented as a futuristic grep replacement. +`m1nd` should no longer lead as a code graph engine. The product truth in `v0.6.1` is: -- a local code graph engine for MCP agents -- grounded retrieval plus proof-aware state -- guided next-step handoff -- actionable continuity -- safer edit preparation +- less token burn on structural work +- faster orientation before the model drifts into repo reading +- authority discovery and blast-radius preflight +- narrower connected edits - observable multi-file execution -- recovery loops that teach the agent how to continue +- continuity and recovery that keep the agent moving ## Hero ### Headline -`A local code graph engine for MCP agents.` +`Before the model finishes reading, m1nd has already found the cut.` ### Subhead -`m1nd helps agents trace failures, inspect impact, resume investigations, prepare safer edits, and recover from mistakes with less context churn.` +`Less token burn. Less wasted spend. Faster orientation. More precise cuts.` ### Proof line -`It does not just return results. It exposes proof state, next-step guidance, and execution progress.` +`m1nd finds authority, blast radius, and connected edit context before an agent disappears into read-search-drift loops.` ### CTA @@ -37,11 +36,11 @@ The product truth in `v0.6.1` is: ### Title -`Without structure, agents keep rediscovering the repo.` +`Stop paying tokens to rediscover repo structure.` ### Copy -`Raw text search can find strings, but it does not tell an agent whether it is still triaging, actively proving, or already safe to move into edit prep.` +`Models read. m1nd locates. That difference shows up as lower spend, faster orientation, less wandering, and narrower edits.` Three points: @@ -117,14 +116,15 @@ Labels: ### Title -`Use m1nd when the task is structural, connected, stateful, or risky` +`Real v0.6.1 use cases` Bullets: -- when an agent needs ranked structure instead of raw text hits -- when continuity matters across multiple steps -- when edit prep or blast radius matters -- when long-running writes need to stay observable +- stacktrace triage with `trace` when the top frame is not the real cause +- blast-radius checks with `impact` before a risky edit +- change preflight with `validate_plan` before a coupled multi-file patch +- connected edit prep with `surgical_context_v2` in one shot +- continuity restore with `trail_resume` when an investigation gets interrupted ## Section: When Plain Tools Are Better diff --git a/m1nd-demo/dist/assets/index-jp3YemhT.js b/m1nd-demo/dist/assets/index-BpEFRPzx.js similarity index 62% rename from m1nd-demo/dist/assets/index-jp3YemhT.js rename to m1nd-demo/dist/assets/index-BpEFRPzx.js index 80f663cc..ba13e597 100644 --- a/m1nd-demo/dist/assets/index-jp3YemhT.js +++ b/m1nd-demo/dist/assets/index-BpEFRPzx.js @@ -1,4 +1,4 @@ -(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();var Yl={exports:{}},si={},Xl={exports:{}},oe={};/** +(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();var Ql={exports:{}},si={},Yl={exports:{}},se={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sd;function bg(){if(sd)return oe;sd=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.iterator;function k(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function N(T,_,ie){this.props=T,this.context=_,this.refs=A,this.updater=ie||D}N.prototype.isReactComponent={},N.prototype.setState=function(T,_){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,_,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function O(){}O.prototype=N.prototype;function W(T,_,ie){this.props=T,this.context=_,this.refs=A,this.updater=ie||D}var K=W.prototype=new O;K.constructor=W,j(K,N.prototype),K.isPureReactComponent=!0;var te=Array.isArray,Q=Object.prototype.hasOwnProperty,ne={current:null},ue={key:!0,ref:!0,__self:!0,__source:!0};function J(T,_,ie){var le,ce={},fe=null,me=null;if(_!=null)for(le in _.ref!==void 0&&(me=_.ref),_.key!==void 0&&(fe=""+_.key),_)Q.call(_,le)&&!ue.hasOwnProperty(le)&&(ce[le]=_[le]);var he=arguments.length-2;if(he===1)ce.children=ie;else if(1>>1,_=I[T];if(0>>1;Tc(ce,B))fe<_&&0>c(me,ce)?(I[T]=me,I[fe]=B,T=fe):(I[T]=ce,I[le]=B,T=le);else if(fe<_&&0>c(me,B))I[T]=me,I[fe]=B,T=fe;else break e}}return Y}function c(I,Y){var B=I.sortIndex-Y.sortIndex;return B!==0?B:I.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,w=null,k=3,D=!1,j=!1,A=!1,N=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(I){for(var Y=o(g);Y!==null;){if(Y.callback===null)a(g);else if(Y.startTime<=I)a(g),Y.sortIndex=Y.expirationTime,i(m,Y);else break;Y=o(g)}}function te(I){if(A=!1,K(I),!j)if(o(m)!==null)j=!0,Ye(Q);else{var Y=o(g);Y!==null&&se(te,Y.startTime-I)}}function Q(I,Y){j=!1,A&&(A=!1,O(J),J=-1),D=!0;var B=k;try{for(K(Y),w=o(m);w!==null&&(!(w.expirationTime>Y)||I&&!qe());){var T=w.callback;if(typeof T=="function"){w.callback=null,k=w.priorityLevel;var _=T(w.expirationTime<=Y);Y=r.unstable_now(),typeof _=="function"?w.callback=_:w===o(m)&&a(m),K(Y)}else a(m);w=o(m)}if(w!==null)var ie=!0;else{var le=o(g);le!==null&&se(te,le.startTime-Y),ie=!1}return ie}finally{w=null,k=B,D=!1}}var ne=!1,ue=null,J=-1,ke=5,Ee=-1;function qe(){return!(r.unstable_now()-EeI||125T?(I.sortIndex=B,i(g,I),o(m)===null&&I===o(g)&&(A?(O(J),J=-1):A=!0,se(te,B-T))):(I.sortIndex=_,i(m,I),j||D||(j=!0,Ye(Q))),I},r.unstable_shouldYield=qe,r.unstable_wrapCallback=function(I){var Y=k;return function(){var B=k;k=Y;try{return I.apply(this,arguments)}finally{k=B}}}})(Jl)),Jl}var cd;function ry(){return cd||(cd=1,ql.exports=ny()),ql.exports}/** + */var ud;function ny(){return ud||(ud=1,(function(r){function i(O,Y){var B=O.length;O.push(Y);e:for(;0>>1,_=O[T];if(0>>1;Tc(ce,B))fe<_&&0>c(me,ce)?(O[T]=me,O[fe]=B,T=fe):(O[T]=ce,O[le]=B,T=le);else if(fe<_&&0>c(me,B))O[T]=me,O[fe]=B,T=fe;else break e}}return Y}function c(O,Y){var B=O.sortIndex-Y.sortIndex;return B!==0?B:O.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,w=null,k=3,D=!1,j=!1,M=!1,N=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(O){for(var Y=o(g);Y!==null;){if(Y.callback===null)a(g);else if(Y.startTime<=O)a(g),Y.sortIndex=Y.expirationTime,i(m,Y);else break;Y=o(g)}}function ee(O){if(M=!1,K(O),!j)if(o(m)!==null)j=!0,Ye(Q);else{var Y=o(g);Y!==null&&ie(ee,Y.startTime-O)}}function Q(O,Y){j=!1,M&&(M=!1,I(q),q=-1),D=!0;var B=k;try{for(K(Y),w=o(m);w!==null&&(!(w.expirationTime>Y)||O&&!qe());){var T=w.callback;if(typeof T=="function"){w.callback=null,k=w.priorityLevel;var _=T(w.expirationTime<=Y);Y=r.unstable_now(),typeof _=="function"?w.callback=_:w===o(m)&&a(m),K(Y)}else a(m);w=o(m)}if(w!==null)var re=!0;else{var le=o(g);le!==null&&ie(ee,le.startTime-Y),re=!1}return re}finally{w=null,k=B,D=!1}}var te=!1,ue=null,q=-1,ke=5,Ee=-1;function qe(){return!(r.unstable_now()-EeO||125T?(O.sortIndex=B,i(g,O),o(m)===null&&O===o(g)&&(M?(I(q),q=-1):M=!0,ie(ee,B-T))):(O.sortIndex=_,i(m,O),j||D||(j=!0,Ye(Q))),O},r.unstable_shouldYield=qe,r.unstable_wrapCallback=function(O){var Y=k;return function(){var B=k;k=Y;try{return O.apply(this,arguments)}finally{k=B}}}})(ql)),ql}var cd;function ry(){return cd||(cd=1,Zl.exports=ny()),Zl.exports}/** * @license React * react-dom.production.min.js * @@ -30,19 +30,19 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fd;function iy(){if(fd)return it;fd=1;var r=_a(),i=ry();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},w={};function k(e){return m.call(w,e)?!0:m.call(v,e)?!1:g.test(e)?w[e]=!0:(v[e]=!0,!1)}function D(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j(e,t,n,s){if(t===null||typeof t>"u"||D(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function A(e,t,n,s,l,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new A(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new A(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new A(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new A(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new A(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new A(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new A(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function W(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(O,W);N[t]=new A(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(O,W);N[t]=new A(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(O,W);N[t]=new A(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new A(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new A(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,s){var l=N.hasOwnProperty(t)?N[t]:null;(l!==null?l.type!==0:s||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},w={};function k(e){return m.call(w,e)?!0:m.call(v,e)?!1:g.test(e)?w[e]=!0:(v[e]=!0,!1)}function D(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j(e,t,n,s){if(t===null||typeof t>"u"||D(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function M(e,t,n,s,l,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new M(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function W(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I,W);N[t]=new M(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I,W);N[t]=new M(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I,W);N[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,s){var l=N.hasOwnProperty(t)?N[t]:null;(l!==null?l.type!==0:s||!(2y||l[h]!==u[y]){var x=` -`+l[h].replace(" at new "," at ");return e.displayName&&x.includes("")&&(x=x.replace("",e.displayName)),x}while(1<=h&&0<=y);break}}}finally{ie=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function ce(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function fe(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 ue:return"Fragment";case ne:return"Portal";case ke:return"Profiler";case J:return"StrictMode";case Qe:return"Suspense";case Je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qe:return(e.displayName||"Context")+".Consumer";case Ee:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case St:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case Ye:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function me(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(t);case 8:return t===J?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ot(e){var t=we(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(h){s=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(h){s=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ti(e){e._valueTracker||(e._valueTracker=ot(e))}function cu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=we(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Pi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function eo(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function du(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function to(e,t){du(e,t);var n=he(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?no(e,t.type,n):t.hasOwnProperty("defaultValue")&&no(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function no(e,t,n){(t!=="number"||Pi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wr=Array.isArray;function On(e,t,n,s){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rm=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){rm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function xu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function wu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,l=xu(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,l):e[n]=l}}var im=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function so(e,t){if(t){if(im[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function oo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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!1;default:return!0}}var lo=null;function ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uo=null,zn=null,Bn=null;function Su(e){if(e=$r(e)){if(typeof uo!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Yi(t),uo(e.stateNode,e.type,t))}}function ku(e){zn?Bn?Bn.push(e):Bn=[e]:zn=e}function Tu(){if(zn){var e=zn,t=Bn;if(Bn=zn=null,Su(e),t)for(e=0;e>>=0,e===0?32:31-(mm(e)/gm|0)|0}var Ai=64,_i=4194304;function Er(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,l=e.suspendedLanes,u=e.pingedLanes,h=n&268435455;if(h!==0){var y=h&~l;y!==0?s=Er(y):(u&=h,u!==0&&(s=Er(u)))}else h=n&~l,h!==0?s=Er(h):u!==0&&(s=Er(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&l)===0&&(l=s&-s,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0n;n++)t.push(e);return t}function Rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function wm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0=Nr),qu=" ",Ju=!1;function bu(e,t){switch(e){case"keyup":return Ym.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ec(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Zm(e,t){switch(e){case"compositionend":return ec(t);case"keypress":return t.which!==32?null:(Ju=!0,qu);case"textInput":return e=t.data,e===qu&&Ju?null:e;default:return null}}function qm(e,t){if(Hn)return e==="compositionend"||!Do&&bu(e,t)?(e=Ku(),Ii=ko=Jt=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lc(n)}}function uc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cc(){for(var e=window,t=Pi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pi(e.document)}return t}function _o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function og(e){var t=cc(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uc(n.ownerDocument.documentElement,n)){if(s!==null&&_o(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,u=Math.min(s.start,l);s=s.end===void 0?u:Math.min(s.end,l),!e.extend&&u>s&&(l=s,s=u,u=l),l=ac(n,u);var h=ac(n,s);l&&h&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,Vo=null,zr=null,Lo=!1;function fc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lo||$n==null||$n!==Pi(s)||(s=$n,"selectionStart"in s&&_o(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),zr&&Or(zr,s)||(zr=s,s=Ki(Vo,"onSelect"),0Xn||(e.current=Ko[Xn],Ko[Xn]=null,Xn--)}function ge(e,t){Xn++,Ko[Xn]=e.current,e.current=t}var nn={},Ue=tn(nn),be=tn(!1),Sn=nn;function Zn(e,t){var n=e.type.contextTypes;if(!n)return nn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function et(e){return e=e.childContextTypes,e!=null}function Xi(){ve(be),ve(Ue)}function Ec(e,t,n){if(Ue.current!==nn)throw Error(o(168));ge(Ue,t),ge(be,n)}function Rc(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var l in s)if(!(l in t))throw Error(o(108,me(e)||"Unknown",l));return B({},n,s)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,Sn=Ue.current,ge(Ue,e),ge(be,be.current),!0}function Dc(e,t,n){var s=e.stateNode;if(!s)throw Error(o(169));n?(e=Rc(e,t,Sn),s.__reactInternalMemoizedMergedChildContext=e,ve(be),ve(Ue),ge(Ue,e)):ve(be),ge(be,n)}var Ot=null,qi=!1,Go=!1;function Mc(e){Ot===null?Ot=[e]:Ot.push(e)}function vg(e){qi=!0,Mc(e)}function rn(){if(!Go&&Ot!==null){Go=!0;var e=0,t=pe;try{var n=Ot;for(pe=1;e>=h,l-=h,zt=1<<32-kt(t)+l|n<ee?(Ie=Z,Z=null):Ie=Z.sibling;var de=M(P,Z,C[ee],F);if(de===null){Z===null&&(Z=Ie);break}e&&Z&&de.alternate===null&&t(P,Z),S=u(de,S,ee),X===null?G=de:X.sibling=de,X=de,Z=Ie}if(ee===C.length)return n(P,Z),Se&&Tn(P,ee),G;if(Z===null){for(;eeee?(Ie=Z,Z=null):Ie=Z.sibling;var hn=M(P,Z,de.value,F);if(hn===null){Z===null&&(Z=Ie);break}e&&Z&&hn.alternate===null&&t(P,Z),S=u(hn,S,ee),X===null?G=hn:X.sibling=hn,X=hn,Z=Ie}if(de.done)return n(P,Z),Se&&Tn(P,ee),G;if(Z===null){for(;!de.done;ee++,de=C.next())de=L(P,de.value,F),de!==null&&(S=u(de,S,ee),X===null?G=de:X.sibling=de,X=de);return Se&&Tn(P,ee),G}for(Z=s(P,Z);!de.done;ee++,de=C.next())de=z(Z,P,ee,de.value,F),de!==null&&(e&&de.alternate!==null&&Z.delete(de.key===null?ee:de.key),S=u(de,S,ee),X===null?G=de:X.sibling=de,X=de);return e&&Z.forEach(function(Jg){return t(P,Jg)}),Se&&Tn(P,ee),G}function Ae(P,S,C,F){if(typeof C=="object"&&C!==null&&C.type===ue&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Q:e:{for(var G=C.key,X=S;X!==null;){if(X.key===G){if(G=C.type,G===ue){if(X.tag===7){n(P,X.sibling),S=l(X,C.props.children),S.return=P,P=S;break e}}else if(X.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Ye&&Nc(G)===X.type){n(P,X.sibling),S=l(X,C.props),S.ref=Kr(P,X,C),S.return=P,P=S;break e}n(P,X);break}else t(P,X);X=X.sibling}C.type===ue?(S=_n(C.props.children,P.mode,F,C.key),S.return=P,P=S):(F=Cs(C.type,C.key,C.props,null,P.mode,F),F.ref=Kr(P,S,C),F.return=P,P=F)}return h(P);case ne:e:{for(X=C.key;S!==null;){if(S.key===X)if(S.tag===4&&S.stateNode.containerInfo===C.containerInfo&&S.stateNode.implementation===C.implementation){n(P,S.sibling),S=l(S,C.children||[]),S.return=P,P=S;break e}else{n(P,S);break}else t(P,S);S=S.sibling}S=Hl(C,P.mode,F),S.return=P,P=S}return h(P);case Ye:return X=C._init,Ae(P,S,X(C._payload),F)}if(wr(C))return H(P,S,C,F);if(Y(C))return $(P,S,C,F);ts(P,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,S!==null&&S.tag===6?(n(P,S.sibling),S=l(S,C),S.return=P,P=S):(n(P,S),S=Wl(C,P.mode,F),S.return=P,P=S),h(P)):n(P,S)}return Ae}var er=Fc(!0),Ic=Fc(!1),ns=tn(null),rs=null,tr=null,Jo=null;function bo(){Jo=tr=rs=null}function el(e){var t=ns.current;ve(ns),e._currentValue=t}function tl(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function nr(e,t){rs=e,Jo=tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Jo!==e)if(e={context:e,memoizedValue:t,next:null},tr===null){if(rs===null)throw Error(o(308));tr=e,rs.dependencies={lanes:0,firstContext:e}}else tr=tr.next=e;return t}var Pn=null;function nl(e){Pn===null?Pn=[e]:Pn.push(e)}function Oc(e,t,n,s){var l=t.interleaved;return l===null?(n.next=n,nl(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ut(e,s)}function Ut(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sn=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ae&2)!==0){var l=s.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),s.pending=t,Ut(e,n)}return l=s.interleaved,l===null?(t.next=t,nl(s)):(t.next=l.next,l.next=t),s.interleaved=t,Ut(e,n)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,yo(e,n)}}function Bc(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ss(e,t,n,s){var l=e.updateQueue;sn=!1;var u=l.firstBaseUpdate,h=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var x=y,E=x.next;x.next=null,h===null?u=E:h.next=E,h=x;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==h&&(y===null?V.firstBaseUpdate=E:y.next=E,V.lastBaseUpdate=x))}if(u!==null){var L=l.baseState;h=0,V=E=x=null,y=u;do{var M=y.lane,z=y.eventTime;if((s&M)===M){V!==null&&(V=V.next={eventTime:z,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var H=e,$=y;switch(M=t,z=n,$.tag){case 1:if(H=$.payload,typeof H=="function"){L=H.call(z,L,M);break e}L=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=$.payload,M=typeof H=="function"?H.call(z,L,M):H,M==null)break e;L=B({},L,M);break e;case 2:sn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,M=l.effects,M===null?l.effects=[y]:M.push(y))}else z={eventTime:z,lane:M,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(E=V=z,x=L):V=V.next=z,h|=M;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;M=y,y=M.next,M.next=null,l.lastBaseUpdate=M,l.shared.pending=null}}while(!0);if(V===null&&(x=L),l.baseState=x,l.firstBaseUpdate=E,l.lastBaseUpdate=V,t=l.shared.interleaved,t!==null){l=t;do h|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);Rn|=h,e.lanes=h,e.memoizedState=L}}function Uc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var s=al.transition;al.transition={};try{e(!1),t()}finally{pe=n,al.transition=s}}function lf(){return gt().memoizedState}function kg(e,t,n){var s=cn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},af(e))uf(t,n);else if(n=Oc(e,t,n,s),n!==null){var l=Ze();Dt(n,e,s,l),cf(n,t,s)}}function Tg(e,t,n){var s=cn(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(af(e))uf(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,y=u(h,n);if(l.hasEagerState=!0,l.eagerState=y,Tt(y,h)){var x=t.interleaved;x===null?(l.next=l,nl(t)):(l.next=x.next,x.next=l),t.interleaved=l;return}}catch{}finally{}n=Oc(e,t,l,s),n!==null&&(l=Ze(),Dt(n,e,s,l),cf(n,t,s))}}function af(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function uf(e,t){Xr=as=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cf(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,yo(e,n)}}var fs={readContext:mt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Pg={readContext:mt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Jc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,us(4194308,4,tf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){return us(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Lt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=kg.bind(null,Pe,e),[s.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Zc,useDebugValue:ml,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Zc(!1),t=e[0];return e=Sg.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Pe,l=Lt();if(Se){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Fe===null)throw Error(o(349));(En&30)!==0||Kc(s,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Jc(Qc.bind(null,s,u,e),[e]),s.flags|=2048,Jr(9,Gc.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Fe.identifierPrefix;if(Se){var n=Bt,s=zt;n=(s&~(1<<32-kt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,0")&&(x=x.replace("",e.displayName)),x}while(1<=h&&0<=y);break}}}finally{re=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function ce(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function fe(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 ue:return"Fragment";case te:return"Portal";case ke:return"Profiler";case q:return"StrictMode";case Qe:return"Suspense";case Je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qe:return(e.displayName||"Context")+".Consumer";case Ee:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case St:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case Ye:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function me(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(t);case 8:return t===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ot(e){var t=we(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(h){s=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(h){s=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ti(e){e._valueTracker||(e._valueTracker=ot(e))}function cu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=we(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Pi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bs(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function du(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function eo(e,t){du(e,t);var n=he(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?to(e,t.type,n):t.hasOwnProperty("defaultValue")&&to(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function to(e,t,n){(t!=="number"||Pi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wr=Array.isArray;function In(e,t,n,s){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rm=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){rm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function xu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function wu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,l=xu(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,l):e[n]=l}}var im=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function io(e,t){if(t){if(im[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function so(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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!1;default:return!0}}var oo=null;function lo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ao=null,zn=null,Bn=null;function Su(e){if(e=$r(e)){if(typeof ao!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Yi(t),ao(e.stateNode,e.type,t))}}function ku(e){zn?Bn?Bn.push(e):Bn=[e]:zn=e}function Tu(){if(zn){var e=zn,t=Bn;if(Bn=zn=null,Su(e),t)for(e=0;e>>=0,e===0?32:31-(mm(e)/gm|0)|0}var Mi=64,_i=4194304;function Er(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,l=e.suspendedLanes,u=e.pingedLanes,h=n&268435455;if(h!==0){var y=h&~l;y!==0?s=Er(y):(u&=h,u!==0&&(s=Er(u)))}else h=n&~l,h!==0?s=Er(h):u!==0&&(s=Er(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&l)===0&&(l=s&-s,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0n;n++)t.push(e);return t}function Dr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function wm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0=Nr),qu=" ",Ju=!1;function bu(e,t){switch(e){case"keyup":return Ym.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ec(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Zm(e,t){switch(e){case"compositionend":return ec(t);case"keypress":return t.which!==32?null:(Ju=!0,qu);case"textInput":return e=t.data,e===qu&&Ju?null:e;default:return null}}function qm(e,t){if(Hn)return e==="compositionend"||!Do&&bu(e,t)?(e=Ku(),Oi=So=Jt=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lc(n)}}function uc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cc(){for(var e=window,t=Pi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pi(e.document)}return t}function Mo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function og(e){var t=cc(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uc(n.ownerDocument.documentElement,n)){if(s!==null&&Mo(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,u=Math.min(s.start,l);s=s.end===void 0?u:Math.min(s.end,l),!e.extend&&u>s&&(l=s,s=u,u=l),l=ac(n,u);var h=ac(n,s);l&&h&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,_o=null,zr=null,Vo=!1;function fc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||$n==null||$n!==Pi(s)||(s=$n,"selectionStart"in s&&Mo(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),zr&&Ir(zr,s)||(zr=s,s=Ki(_o,"onSelect"),0Xn||(e.current=$o[Xn],$o[Xn]=null,Xn--)}function ge(e,t){Xn++,$o[Xn]=e.current,e.current=t}var nn={},Ue=tn(nn),be=tn(!1),wn=nn;function Zn(e,t){var n=e.type.contextTypes;if(!n)return nn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function et(e){return e=e.childContextTypes,e!=null}function Xi(){ve(be),ve(Ue)}function Ec(e,t,n){if(Ue.current!==nn)throw Error(o(168));ge(Ue,t),ge(be,n)}function Dc(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var l in s)if(!(l in t))throw Error(o(108,me(e)||"Unknown",l));return B({},n,s)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,wn=Ue.current,ge(Ue,e),ge(be,be.current),!0}function Ac(e,t,n){var s=e.stateNode;if(!s)throw Error(o(169));n?(e=Dc(e,t,wn),s.__reactInternalMemoizedMergedChildContext=e,ve(be),ve(Ue),ge(Ue,e)):ve(be),ge(be,n)}var It=null,qi=!1,Ko=!1;function Rc(e){It===null?It=[e]:It.push(e)}function vg(e){qi=!0,Rc(e)}function rn(){if(!Ko&&It!==null){Ko=!0;var e=0,t=pe;try{var n=It;for(pe=1;e>=h,l-=h,zt=1<<32-kt(t)+l|n<b?(Oe=Z,Z=null):Oe=Z.sibling;var de=R(P,Z,C[b],F);if(de===null){Z===null&&(Z=Oe);break}e&&Z&&de.alternate===null&&t(P,Z),S=u(de,S,b),X===null?G=de:X.sibling=de,X=de,Z=Oe}if(b===C.length)return n(P,Z),Se&&kn(P,b),G;if(Z===null){for(;bb?(Oe=Z,Z=null):Oe=Z.sibling;var hn=R(P,Z,de.value,F);if(hn===null){Z===null&&(Z=Oe);break}e&&Z&&hn.alternate===null&&t(P,Z),S=u(hn,S,b),X===null?G=hn:X.sibling=hn,X=hn,Z=Oe}if(de.done)return n(P,Z),Se&&kn(P,b),G;if(Z===null){for(;!de.done;b++,de=C.next())de=L(P,de.value,F),de!==null&&(S=u(de,S,b),X===null?G=de:X.sibling=de,X=de);return Se&&kn(P,b),G}for(Z=s(P,Z);!de.done;b++,de=C.next())de=z(Z,P,b,de.value,F),de!==null&&(e&&de.alternate!==null&&Z.delete(de.key===null?b:de.key),S=u(de,S,b),X===null?G=de:X.sibling=de,X=de);return e&&Z.forEach(function(Jg){return t(P,Jg)}),Se&&kn(P,b),G}function Me(P,S,C,F){if(typeof C=="object"&&C!==null&&C.type===ue&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Q:e:{for(var G=C.key,X=S;X!==null;){if(X.key===G){if(G=C.type,G===ue){if(X.tag===7){n(P,X.sibling),S=l(X,C.props.children),S.return=P,P=S;break e}}else if(X.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Ye&&Nc(G)===X.type){n(P,X.sibling),S=l(X,C.props),S.ref=Kr(P,X,C),S.return=P,P=S;break e}n(P,X);break}else t(P,X);X=X.sibling}C.type===ue?(S=Mn(C.props.children,P.mode,F,C.key),S.return=P,P=S):(F=Cs(C.type,C.key,C.props,null,P.mode,F),F.ref=Kr(P,S,C),F.return=P,P=F)}return h(P);case te:e:{for(X=C.key;S!==null;){if(S.key===X)if(S.tag===4&&S.stateNode.containerInfo===C.containerInfo&&S.stateNode.implementation===C.implementation){n(P,S.sibling),S=l(S,C.children||[]),S.return=P,P=S;break e}else{n(P,S);break}else t(P,S);S=S.sibling}S=Wl(C,P.mode,F),S.return=P,P=S}return h(P);case Ye:return X=C._init,Me(P,S,X(C._payload),F)}if(wr(C))return H(P,S,C,F);if(Y(C))return $(P,S,C,F);ts(P,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,S!==null&&S.tag===6?(n(P,S.sibling),S=l(S,C),S.return=P,P=S):(n(P,S),S=Ul(C,P.mode,F),S.return=P,P=S),h(P)):n(P,S)}return Me}var er=Fc(!0),Oc=Fc(!1),ns=tn(null),rs=null,tr=null,qo=null;function Jo(){qo=tr=rs=null}function bo(e){var t=ns.current;ve(ns),e._currentValue=t}function el(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function nr(e,t){rs=e,qo=tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(qo!==e)if(e={context:e,memoizedValue:t,next:null},tr===null){if(rs===null)throw Error(o(308));tr=e,rs.dependencies={lanes:0,firstContext:e}}else tr=tr.next=e;return t}var Tn=null;function tl(e){Tn===null?Tn=[e]:Tn.push(e)}function Ic(e,t,n,s){var l=t.interleaved;return l===null?(n.next=n,tl(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ut(e,s)}function Ut(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sn=!1;function nl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ae&2)!==0){var l=s.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),s.pending=t,Ut(e,n)}return l=s.interleaved,l===null?(t.next=t,tl(s)):(t.next=l.next,l.next=t),s.interleaved=t,Ut(e,n)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,go(e,n)}}function Bc(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ss(e,t,n,s){var l=e.updateQueue;sn=!1;var u=l.firstBaseUpdate,h=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var x=y,E=x.next;x.next=null,h===null?u=E:h.next=E,h=x;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==h&&(y===null?V.firstBaseUpdate=E:y.next=E,V.lastBaseUpdate=x))}if(u!==null){var L=l.baseState;h=0,V=E=x=null,y=u;do{var R=y.lane,z=y.eventTime;if((s&R)===R){V!==null&&(V=V.next={eventTime:z,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var H=e,$=y;switch(R=t,z=n,$.tag){case 1:if(H=$.payload,typeof H=="function"){L=H.call(z,L,R);break e}L=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=$.payload,R=typeof H=="function"?H.call(z,L,R):H,R==null)break e;L=B({},L,R);break e;case 2:sn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,R=l.effects,R===null?l.effects=[y]:R.push(y))}else z={eventTime:z,lane:R,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(E=V=z,x=L):V=V.next=z,h|=R;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;R=y,y=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);if(V===null&&(x=L),l.baseState=x,l.firstBaseUpdate=E,l.lastBaseUpdate=V,t=l.shared.interleaved,t!==null){l=t;do h|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);En|=h,e.lanes=h,e.memoizedState=L}}function Uc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var s=ll.transition;ll.transition={};try{e(!1),t()}finally{pe=n,ll.transition=s}}function lf(){return gt().memoizedState}function kg(e,t,n){var s=cn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},af(e))uf(t,n);else if(n=Ic(e,t,n,s),n!==null){var l=Ze();At(n,e,s,l),cf(n,t,s)}}function Tg(e,t,n){var s=cn(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(af(e))uf(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,y=u(h,n);if(l.hasEagerState=!0,l.eagerState=y,Tt(y,h)){var x=t.interleaved;x===null?(l.next=l,tl(t)):(l.next=x.next,x.next=l),t.interleaved=l;return}}catch{}finally{}n=Ic(e,t,l,s),n!==null&&(l=Ze(),At(n,e,s,l),cf(n,t,s))}}function af(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function uf(e,t){Xr=as=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cf(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,go(e,n)}}var fs={readContext:mt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Pg={readContext:mt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Jc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,us(4194308,4,tf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){return us(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Lt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=kg.bind(null,Pe,e),[s.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Zc,useDebugValue:pl,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Zc(!1),t=e[0];return e=Sg.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Pe,l=Lt();if(Se){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Fe===null)throw Error(o(349));(Cn&30)!==0||Kc(s,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Jc(Qc.bind(null,s,u,e),[e]),s.flags|=2048,Jr(9,Gc.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Fe.identifierPrefix;if(Se){var n=Bt,s=zt;n=(s&~(1<<32-kt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=h.createElement(n,{is:s.is}):(e=h.createElement(n),n==="select"&&(h=e,s.multiple?h.multiple=!0:s.size&&(h.size=s.size))):e=h.createElementNS(e,n),e[_t]=t,e[Hr]=s,Af(e,t,!1,!1),t.stateNode=e;e:{switch(h=oo(n,s),n){case"dialog":ye("cancel",e),ye("close",e),l=s;break;case"iframe":case"object":case"embed":ye("load",e),l=s;break;case"video":case"audio":for(l=0;llr&&(t.flags|=128,s=!0,br(u,!1),t.lanes=4194304)}else{if(!s)if(e=os(h),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),br(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Se)return He(t),null}else 2*Me()-u.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,s=!0,br(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(n=u.last,n!==null?n.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Me(),t.sibling=null,n=Te.current,ge(Te,s?n&1|2:n&1),t):(He(t),null);case 22:case 23:return zl(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(ct&1073741824)!==0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Vg(e,t){switch(Yo(t),t.tag){case 1:return et(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),ve(be),ve(Ue),ll(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return sl(t),null;case 13:if(ve(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Te),null;case 4:return rr(),null;case 10:return el(t.type._context),null;case 22:case 23:return zl(),null;case 24:return null;default:return null}}var ms=!1,$e=!1,Lg=typeof WeakSet=="function"?WeakSet:Set,U=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Re(e,t,s)}else n.current=null}function Rl(e,t,n){try{n()}catch(s){Re(e,t,s)}}var Lf=!1;function jg(e,t){if(zo=Ni,e=cc(),_o(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,y=-1,x=-1,E=0,V=0,L=e,M=null;t:for(;;){for(var z;L!==n||l!==0&&L.nodeType!==3||(y=h+l),L!==u||s!==0&&L.nodeType!==3||(x=h+s),L.nodeType===3&&(h+=L.nodeValue.length),(z=L.firstChild)!==null;)M=L,L=z;for(;;){if(L===e)break t;if(M===n&&++E===l&&(y=h),M===u&&++V===s&&(x=h),(z=L.nextSibling)!==null)break;L=M,M=L.parentNode}L=z}n=y===-1||x===-1?null:{start:y,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bo={focusedElem:e,selectionRange:n},Ni=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var H=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(H!==null){var $=H.memoizedProps,Ae=H.memoizedState,P=t.stateNode,S=P.getSnapshotBeforeUpdate(t.elementType===t.type?$:Ct(t.type,$),Ae);P.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(F){Re(t,t.return,F)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return H=Lf,Lf=!1,H}function ei(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Rl(t,n,u)}l=l.next}while(l!==s)}}function gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Dl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Hr],delete t[$o],delete t[gg],delete t[yg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nf(e){return e.tag===5||e.tag===3||e.tag===4}function Ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ml(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qi));else if(s!==4&&(e=e.child,e!==null))for(Ml(e,t,n),e=e.sibling;e!==null;)Ml(e,t,n),e=e.sibling}function Al(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Al(e,t,n),e=e.sibling;e!==null;)Al(e,t,n),e=e.sibling}var Oe=null,Et=!1;function ln(e,t,n){for(n=n.child;n!==null;)If(e,t,n),n=n.sibling}function If(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Mi,n)}catch{}switch(n.tag){case 5:$e||sr(n,t);case 6:var s=Oe,l=Et;Oe=null,ln(e,t,n),Oe=s,Et=l,Oe!==null&&(Et?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Et?(e=Oe,n=n.stateNode,e.nodeType===8?Ho(e.parentNode,n):e.nodeType===1&&Ho(e,n),Vr(e)):Ho(Oe,n.stateNode));break;case 4:s=Oe,l=Et,Oe=n.stateNode.containerInfo,Et=!0,ln(e,t,n),Oe=s,Et=l;break;case 0:case 11:case 14:case 15:if(!$e&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var u=l,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&Rl(n,t,h),l=l.next}while(l!==s)}ln(e,t,n);break;case 1:if(!$e&&(sr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(y){Re(n,t,y)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?($e=(s=$e)||n.memoizedState!==null,ln(e,t,n),$e=s):ln(e,t,n);break;default:ln(e,t,n)}}function Of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lg),t.forEach(function(s){var l=Hg.bind(null,e,s);n.has(s)||(n.add(s),s.then(l,l))})}}function Rt(e,t){var n=t.deletions;if(n!==null)for(var s=0;sl&&(l=h),s&=~u}if(s=l,s=Me()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Fg(s/1960))-s,10e?16:e,un===null)var s=!1;else{if(e=un,un=null,Ss=0,(ae&6)!==0)throw Error(o(331));var l=ae;for(ae|=4,U=e.current;U!==null;){var u=U,h=u.child;if((U.flags&16)!==0){var y=u.deletions;if(y!==null){for(var x=0;xMe()-Ll?Mn(e,0):Vl|=n),rt(e,t)}function qf(e,t){t===0&&((e.mode&1)===0?t=1:(t=_i,_i<<=1,(_i&130023424)===0&&(_i=4194304)));var n=Ze();e=Ut(e,t),e!==null&&(Rr(e,t,n),rt(e,n))}function Wg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qf(e,n)}function Hg(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(o(314))}s!==null&&s.delete(t),qf(e,n)}var Jf;Jf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)tt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return tt=!1,Ag(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,Se&&(t.flags&1048576)!==0&&Ac(t,bi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ps(e,t),e=t.pendingProps;var l=Zn(t,Ue.current);nr(t,n),l=cl(null,t,s,e,l,n);var u=fl();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(s)?(u=!0,Zi(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,rl(t),l.updater=ds,t.stateNode=l,l._reactInternals=t,yl(t,s,e,n),t=Sl(null,t,s,!0,u,n)):(t.tag=0,Se&&u&&Qo(t),Xe(null,t,l,n),t=t.child),t;case 16:s=t.elementType;e:{switch(ps(e,t),e=t.pendingProps,l=s._init,s=l(s._payload),t.type=s,l=t.tag=Kg(s),e=Ct(s,e),l){case 0:t=wl(null,t,s,e,n);break e;case 1:t=Pf(null,t,s,e,n);break e;case 11:t=xf(null,t,s,e,n);break e;case 14:t=wf(null,t,s,Ct(s.type,e),n);break e}throw Error(o(306,s,""))}return t;case 0:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),wl(e,t,s,l,n);case 1:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),Pf(e,t,s,l,n);case 3:e:{if(Cf(t),e===null)throw Error(o(387));s=t.pendingProps,u=t.memoizedState,l=u.element,zc(e,t),ss(t,s,null,n);var h=t.memoizedState;if(s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=ir(Error(o(423)),t),t=Ef(e,t,s,n,l);break e}else if(s!==l){l=ir(Error(o(424)),t),t=Ef(e,t,s,n,l);break e}else for(ut=en(t.stateNode.containerInfo.firstChild),at=t,Se=!0,Pt=null,n=Ic(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),s===l){t=Ht(e,t,n);break e}Xe(e,t,s,n)}t=t.child}return t;case 5:return Wc(t),e===null&&Zo(t),s=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,h=l.children,Uo(s,l)?h=null:u!==null&&Uo(s,u)&&(t.flags|=32),Tf(e,t),Xe(e,t,h,n),t.child;case 6:return e===null&&Zo(t),null;case 13:return Rf(e,t,n);case 4:return il(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=er(t,null,s,n):Xe(e,t,s,n),t.child;case 11:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),xf(e,t,s,l,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,l=t.pendingProps,u=t.memoizedProps,h=l.value,ge(ns,s._currentValue),s._currentValue=h,u!==null)if(Tt(u.value,h)){if(u.children===l.children&&!be.current){t=Ht(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){h=u.child;for(var x=y.firstContext;x!==null;){if(x.context===s){if(u.tag===1){x=Wt(-1,n&-n),x.tag=2;var E=u.updateQueue;if(E!==null){E=E.shared;var V=E.pending;V===null?x.next=x:(x.next=V.next,V.next=x),E.pending=x}}u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),tl(u.return,n,t),y.lanes|=n;break}x=x.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(o(341));h.lanes|=n,y=h.alternate,y!==null&&(y.lanes|=n),tl(h,n,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}Xe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,s=t.pendingProps.children,nr(t,n),l=mt(l),s=s(l),t.flags|=1,Xe(e,t,s,n),t.child;case 14:return s=t.type,l=Ct(s,t.pendingProps),l=Ct(s.type,l),wf(e,t,s,l,n);case 15:return Sf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),ps(e,t),t.tag=1,et(s)?(e=!0,Zi(t)):e=!1,nr(t,n),df(t,s,l),yl(t,s,l,n),Sl(null,t,s,!0,e,n);case 19:return Mf(e,t,n);case 22:return kf(e,t,n)}throw Error(o(156,t.tag))};function bf(e,t){return _u(e,t)}function $g(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,s){return new $g(e,t,n,s)}function Ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kg(e){if(typeof e=="function")return Ul(e)?1:0;if(e!=null){if(e=e.$$typeof,e===st)return 11;if(e===St)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cs(e,t,n,s,l,u){var h=2;if(s=e,typeof e=="function")Ul(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case ue:return _n(n.children,l,u,t);case J:h=8,l|=8;break;case ke:return e=vt(12,n,t,l|2),e.elementType=ke,e.lanes=u,e;case Qe:return e=vt(13,n,t,l),e.elementType=Qe,e.lanes=u,e;case Je:return e=vt(19,n,t,l),e.elementType=Je,e.lanes=u,e;case se:return Es(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ee:h=10;break e;case qe:h=9;break e;case st:h=11;break e;case St:h=14;break e;case Ye:h=16,s=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=vt(h,n,t,l),t.elementType=e,t.type=s,t.lanes=u,t}function _n(e,t,n,s){return e=vt(7,e,s,t),e.lanes=n,e}function Es(e,t,n,s){return e=vt(22,e,s,t),e.elementType=se,e.lanes=n,e.stateNode={isHidden:!1},e}function Wl(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function Hl(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gg(e,t,n,s,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=go(0),this.expirationTimes=go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $l(e,t,n,s,l,u,h,y,x){return e=new Gg(e,t,n,y,x),t===1?(t=1,u===!0&&(t|=8)):t=0,u=vt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rl(u),e}function Qg(e,t,n){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Zl.exports=iy(),Zl.exports}var hd;function oy(){if(hd)return Ls;hd=1;var r=sy();return Ls.createRoot=r.createRoot,Ls.hydrateRoot=r.hydrateRoot,Ls}var ly=oy();const Dh=re.createContext({});function ay(r){const i=re.useRef(null);return i.current===null&&(i.current=r()),i.current}const Va=re.createContext(null),Mh=re.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"});function uy(r=!0){const i=re.useContext(Va);if(i===null)return[!0,null];const{isPresent:o,onExitComplete:a,register:c}=i,d=re.useId();re.useEffect(()=>{r&&c(d)},[r]);const f=re.useCallback(()=>r&&a&&a(d),[d,a,r]);return!o&&a?[!1,f]:[!0]}const La=typeof window<"u",cy=La?re.useLayoutEffect:re.useEffect,ft=r=>r;let Ah=ft;function ja(r){let i;return()=>(i===void 0&&(i=r()),i)}const mr=(r,i,o)=>{const a=i-r;return a===0?1:(o-r)/a},Kt=r=>r*1e3,Gt=r=>r/1e3,fy={useManualTiming:!1};function dy(r){let i=new Set,o=new Set,a=!1,c=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){d.has(g)&&(m.schedule(g),r()),g(f)}const m={schedule:(g,v=!1,w=!1)=>{const D=w&&a?i:o;return v&&d.add(g),D.has(g)||D.add(g),g},cancel:g=>{o.delete(g),d.delete(g)},process:g=>{if(f=g,a){c=!0;return}a=!0,[i,o]=[o,i],i.forEach(p),i.clear(),a=!1,c&&(c=!1,m.process(g))}};return m}const js=["read","resolveKeyframes","update","preRender","render","postRender"],hy=40;function _h(r,i){let o=!1,a=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>o=!0,f=js.reduce((O,W)=>(O[W]=dy(d),O),{}),{read:p,resolveKeyframes:m,update:g,preRender:v,render:w,postRender:k}=f,D=()=>{const O=performance.now();o=!1,c.delta=a?1e3/60:Math.max(Math.min(O-c.timestamp,hy),1),c.timestamp=O,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),v.process(c),w.process(c),k.process(c),c.isProcessing=!1,o&&i&&(a=!1,r(D))},j=()=>{o=!0,a=!0,c.isProcessing||r(D)};return{schedule:js.reduce((O,W)=>{const K=f[W];return O[W]=(te,Q=!1,ne=!1)=>(o||j(),K.schedule(te,Q,ne)),O},{}),cancel:O=>{for(let W=0;Wpd[r].some(o=>!!i[o])};function py(r){for(const i in r)gr[i]={...gr[i],...r[i]}}const my=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Us(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||my.has(r)}let Lh=r=>!Us(r);function gy(r){r&&(Lh=i=>i.startsWith("on")?!Us(i):r(i))}try{gy(require("@emotion/is-prop-valid").default)}catch{}function yy(r,i,o){const a={};for(const c in r)c==="values"&&typeof r.values=="object"||(Lh(c)||o===!0&&Us(c)||!i&&!Us(c)||r.draggable&&c.startsWith("onDrag"))&&(a[c]=r[c]);return a}function vy(r){if(typeof Proxy>"u")return r;const i=new Map,o=(...a)=>r(...a);return new Proxy(o,{get:(a,c)=>c==="create"?r:(i.has(c)||i.set(c,r(c)),i.get(c))})}const Xs=re.createContext({});function pi(r){return typeof r=="string"||Array.isArray(r)}function Zs(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}const Na=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fa=["initial",...Na];function qs(r){return Zs(r.animate)||Fa.some(i=>pi(r[i]))}function jh(r){return!!(qs(r)||r.variants)}function xy(r,i){if(qs(r)){const{initial:o,animate:a}=r;return{initial:o===!1||pi(o)?o:void 0,animate:pi(a)?a:void 0}}return r.inherit!==!1?i:{}}function wy(r){const{initial:i,animate:o}=xy(r,re.useContext(Xs));return re.useMemo(()=>({initial:i,animate:o}),[md(i),md(o)])}function md(r){return Array.isArray(r)?r.join(" "):r}const Sy=Symbol.for("motionComponentSymbol");function cr(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function ky(r,i,o){return re.useCallback(a=>{a&&r.onMount&&r.onMount(a),i&&(a?i.mount(a):i.unmount()),o&&(typeof o=="function"?o(a):cr(o)&&(o.current=a))},[i])}const Ia=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ty="framerAppearId",Nh="data-"+Ia(Ty),{schedule:Oa}=_h(queueMicrotask,!1),Fh=re.createContext({});function Py(r,i,o,a,c){var d,f;const{visualElement:p}=re.useContext(Xs),m=re.useContext(Vh),g=re.useContext(Va),v=re.useContext(Mh).reducedMotion,w=re.useRef(null);a=a||m.renderer,!w.current&&a&&(w.current=a(r,{visualState:i,parent:p,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const k=w.current,D=re.useContext(Fh);k&&!k.projection&&c&&(k.type==="html"||k.type==="svg")&&Cy(w.current,o,c,D);const j=re.useRef(!1);re.useInsertionEffect(()=>{k&&j.current&&k.update(o,g)});const A=o[Nh],N=re.useRef(!!A&&!(!((d=window.MotionHandoffIsComplete)===null||d===void 0)&&d.call(window,A))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,A)));return cy(()=>{k&&(j.current=!0,window.MotionIsMounted=!0,k.updateFeatures(),Oa.render(k.render),N.current&&k.animationState&&k.animationState.animateChanges())}),re.useEffect(()=>{k&&(!N.current&&k.animationState&&k.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)===null||O===void 0||O.call(window,A)}),N.current=!1))}),k}function Cy(r,i,o,a){const{layoutId:c,layout:d,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g}=i;r.projection=new o(r.latestValues,i["data-framer-portal-id"]?void 0:Ih(r.parent)),r.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||p&&cr(p),visualElement:r,animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:g})}function Ih(r){if(r)return r.options.allowProjection!==!1?r.projection:Ih(r.parent)}function Ey({preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:a,Component:c}){var d,f;r&&py(r);function p(g,v){let w;const k={...re.useContext(Mh),...g,layoutId:Ry(g)},{isStatic:D}=k,j=wy(g),A=a(g,D);if(!D&&La){Dy();const N=My(k);w=N.MeasureLayout,j.visualElement=Py(c,A,k,i,N.ProjectionNode)}return R.jsxs(Xs.Provider,{value:j,children:[w&&j.visualElement?R.jsx(w,{visualElement:j.visualElement,...k}):null,o(c,g,ky(A,j.visualElement,v),A,D,j.visualElement)]})}p.displayName=`motion.${typeof c=="string"?c:`create(${(f=(d=c.displayName)!==null&&d!==void 0?d:c.name)!==null&&f!==void 0?f:""})`}`;const m=re.forwardRef(p);return m[Sy]=c,m}function Ry({layoutId:r}){const i=re.useContext(Dh).id;return i&&r!==void 0?i+"-"+r:r}function Dy(r,i){re.useContext(Vh).strict}function My(r){const{drag:i,layout:o}=gr;if(!i&&!o)return{};const a={...i,...o};return{MeasureLayout:i!=null&&i.isEnabled(r)||o!=null&&o.isEnabled(r)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const Ay=["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 za(r){return typeof r!="string"||r.includes("-")?!1:!!(Ay.indexOf(r)>-1||/[A-Z]/u.test(r))}function gd(r){const i=[{},{}];return r==null||r.values.forEach((o,a)=>{i[0][a]=o.get(),i[1][a]=o.getVelocity()}),i}function Ba(r,i,o,a){if(typeof i=="function"){const[c,d]=gd(a);i=i(o!==void 0?o:r.custom,c,d)}if(typeof i=="string"&&(i=r.variants&&r.variants[i]),typeof i=="function"){const[c,d]=gd(a);i=i(o!==void 0?o:r.custom,c,d)}return i}const ma=r=>Array.isArray(r),_y=r=>!!(r&&typeof r=="object"&&r.mix&&r.toValue),Vy=r=>ma(r)?r[r.length-1]||0:r,Ge=r=>!!(r&&r.getVelocity);function Is(r){const i=Ge(r)?r.get():r;return _y(i)?i.toValue():i}function Ly({scrapeMotionValuesFromProps:r,createRenderState:i,onUpdate:o},a,c,d){const f={latestValues:jy(a,c,d,r),renderState:i()};return o&&(f.onMount=p=>o({props:a,current:p,...f}),f.onUpdate=p=>o(p)),f}const Oh=r=>(i,o)=>{const a=re.useContext(Xs),c=re.useContext(Va),d=()=>Ly(r,i,a,c);return o?d():ay(d)};function jy(r,i,o,a){const c={},d=a(r,{});for(const k in d)c[k]=Is(d[k]);let{initial:f,animate:p}=r;const m=qs(r),g=jh(r);i&&g&&!m&&r.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=o?o.initial===!1:!1;v=v||f===!1;const w=v?p:f;if(w&&typeof w!="boolean"&&!Zs(w)){const k=Array.isArray(w)?w:[w];for(let D=0;Di=>typeof i=="string"&&i.startsWith(r),Bh=zh("--"),Ny=zh("var(--"),Ua=r=>Ny(r)?Fy.test(r.split("/*")[0].trim()):!1,Fy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Uh=(r,i)=>i&&typeof r=="number"?i.transform(r):r,Qt=(r,i,o)=>o>i?i:otypeof r=="number",parse:parseFloat,transform:r=>r},mi={...xr,transform:r=>Qt(0,1,r)},Ns={...xr,default:1},xi=r=>({test:i=>typeof i=="string"&&i.endsWith(r)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${r}`}),mn=xi("deg"),Nt=xi("%"),b=xi("px"),Iy=xi("vh"),Oy=xi("vw"),yd={...Nt,parse:r=>Nt.parse(r)/100,transform:r=>Nt.transform(r*100)},zy={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,radius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,backgroundPositionX:b,backgroundPositionY:b},By={rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:Ns,scaleX:Ns,scaleY:Ns,scaleZ:Ns,skew:mn,skewX:mn,skewY:mn,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:mi,originX:yd,originY:yd,originZ:b},vd={...xr,transform:Math.round},Wa={...zy,...By,zIndex:vd,size:b,fillOpacity:mi,strokeOpacity:mi,numOctaves:vd},Uy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wy=vr.length;function Hy(r,i,o){let a="",c=!0;for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),Wh=()=>({...Ka(),attrs:{}}),Ga=r=>typeof r=="string"&&r.toLowerCase()==="svg";function Hh(r,{style:i,vars:o},a,c){Object.assign(r.style,i,c&&c.getProjectionStyles(a));for(const d in o)r.style.setProperty(d,o[d])}const $h=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 Kh(r,i,o,a){Hh(r,i,void 0,a);for(const c in i.attrs)r.setAttribute($h.has(c)?c:Ia(c),i.attrs[c])}const Ws={};function Yy(r){Object.assign(Ws,r)}function Gh(r,{layout:i,layoutId:o}){return In.has(r)||r.startsWith("origin")||(i||o!==void 0)&&(!!Ws[r]||r==="opacity")}function Qa(r,i,o){var a;const{style:c}=r,d={};for(const f in c)(Ge(c[f])||i.style&&Ge(i.style[f])||Gh(f,r)||((a=o==null?void 0:o.getValue(f))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(d[f]=c[f]);return d}function Qh(r,i,o){const a=Qa(r,i,o);for(const c in r)if(Ge(r[c])||Ge(i[c])){const d=vr.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;a[d]=r[c]}return a}function Xy(r,i){try{i.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}}const wd=["x","y","width","height","cx","cy","r"],Zy={useVisualState:Oh({scrapeMotionValuesFromProps:Qh,createRenderState:Wh,onUpdate:({props:r,prevProps:i,current:o,renderState:a,latestValues:c})=>{if(!o)return;let d=!!r.drag;if(!d){for(const p in c)if(In.has(p)){d=!0;break}}if(!d)return;let f=!i;if(i)for(let p=0;p{Xy(o,a),xe.render(()=>{$a(a,c,Ga(o.tagName),r.transformTemplate),Kh(o,a)})})}})},qy={useVisualState:Oh({scrapeMotionValuesFromProps:Qa,createRenderState:Ka})};function Yh(r,i,o){for(const a in i)!Ge(i[a])&&!Gh(a,o)&&(r[a]=i[a])}function Jy({transformTemplate:r},i){return re.useMemo(()=>{const o=Ka();return Ha(o,i,r),Object.assign({},o.vars,o.style)},[i])}function by(r,i){const o=r.style||{},a={};return Yh(a,o,r),Object.assign(a,Jy(r,i)),a}function ev(r,i){const o={},a=by(r,i);return r.drag&&r.dragListener!==!1&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`),r.tabIndex===void 0&&(r.onTap||r.onTapStart||r.whileTap)&&(o.tabIndex=0),o.style=a,o}function tv(r,i,o,a){const c=re.useMemo(()=>{const d=Wh();return $a(d,i,Ga(a),r.transformTemplate),{...d.attrs,style:{...d.style}}},[i]);if(r.style){const d={};Yh(d,r.style,r),c.style={...d,...c.style}}return c}function nv(r=!1){return(o,a,c,{latestValues:d},f)=>{const m=(za(o)?tv:ev)(a,d,f,o),g=yy(a,typeof o=="string",r),v=o!==re.Fragment?{...g,...m,ref:c}:{},{children:w}=a,k=re.useMemo(()=>Ge(w)?w.get():w,[w]);return re.createElement(o,{...v,children:k})}}function rv(r,i){return function(a,{forwardMotionProps:c}={forwardMotionProps:!1}){const f={...za(a)?Zy:qy,preloadedFeatures:r,useRender:nv(c),createVisualElement:i,Component:a};return Ey(f)}}function Xh(r,i){if(!Array.isArray(i))return!1;const o=i.length;if(o!==r.length)return!1;for(let a=0;awindow.ScrollTimeline!==void 0);class sv{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}get finished(){return Promise.all(this.animations.map(i=>"finished"in i?i.finished:i))}getAll(i){return this.animations[0][i]}setAll(i,o){for(let a=0;a{if(iv()&&c.attachTimeline)return c.attachTimeline(i);if(typeof o=="function")return o(c)});return()=>{a.forEach((c,d)=>{c&&c(),this.animations[d].stop()})}}get time(){return this.getAll("time")}set time(i){this.setAll("time",i)}get speed(){return this.getAll("speed")}set speed(i){this.setAll("speed",i)}get startTime(){return this.getAll("startTime")}get duration(){let i=0;for(let o=0;oo[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ov extends sv{then(i,o){return Promise.all(this.animations).then(i).catch(o)}}function Ya(r,i){return r?r[i]||r.default||r:void 0}const ga=2e4;function Zh(r){let i=0;const o=50;let a=r.next(i);for(;!a.done&&i=ga?1/0:i}function Xa(r){return typeof r=="function"}function Sd(r,i){r.timeline=i,r.onfinish=null}const Za=r=>Array.isArray(r)&&typeof r[0]=="number",lv={linearEasing:void 0};function av(r,i){const o=ja(r);return()=>{var a;return(a=lv[i])!==null&&a!==void 0?a:o()}}const Hs=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qh=(r,i,o=10)=>{let a="";const c=Math.max(Math.round(i/o),2);for(let d=0;d`cubic-bezier(${r}, ${i}, ${o}, ${a})`,ya={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:li([0,.65,.55,1]),circOut:li([.55,0,1,.45]),backIn:li([.31,.01,.66,-.59]),backOut:li([.33,1.53,.69,.99])};function bh(r,i){if(r)return typeof r=="function"&&Hs()?qh(r,i):Za(r)?li(r):Array.isArray(r)?r.map(o=>bh(o,i)||ya.easeOut):ya[r]}const Mt={x:!1,y:!1};function ep(){return Mt.x||Mt.y}function uv(r,i,o){var a;if(r instanceof Element)return[r];if(typeof r=="string"){let c=document;const d=(a=void 0)!==null&&a!==void 0?a:c.querySelectorAll(r);return d?Array.from(d):[]}return Array.from(r)}function tp(r,i){const o=uv(r),a=new AbortController,c={passive:!0,...i,signal:a.signal};return[o,c,()=>a.abort()]}function kd(r){return i=>{i.pointerType==="touch"||ep()||r(i)}}function cv(r,i,o={}){const[a,c,d]=tp(r,o),f=kd(p=>{const{target:m}=p,g=i(p);if(typeof g!="function"||!m)return;const v=kd(w=>{g(w),m.removeEventListener("pointerleave",v)});m.addEventListener("pointerleave",v,c)});return a.forEach(p=>{p.addEventListener("pointerenter",f,c)}),d}const np=(r,i)=>i?r===i?!0:np(r,i.parentElement):!1,qa=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1,fv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dv(r){return fv.has(r.tagName)||r.tabIndex!==-1}const ai=new WeakSet;function Td(r){return i=>{i.key==="Enter"&&r(i)}}function ea(r,i){r.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const hv=(r,i)=>{const o=r.currentTarget;if(!o)return;const a=Td(()=>{if(ai.has(o))return;ea(o,"down");const c=Td(()=>{ea(o,"up")}),d=()=>ea(o,"cancel");o.addEventListener("keyup",c,i),o.addEventListener("blur",d,i)});o.addEventListener("keydown",a,i),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),i)};function Pd(r){return qa(r)&&!ep()}function pv(r,i,o={}){const[a,c,d]=tp(r,o),f=p=>{const m=p.currentTarget;if(!Pd(p)||ai.has(m))return;ai.add(m);const g=i(p),v=(D,j)=>{window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",k),!(!Pd(D)||!ai.has(m))&&(ai.delete(m),typeof g=="function"&&g(D,{success:j}))},w=D=>{v(D,o.useGlobalTarget||np(m,D.target))},k=D=>{v(D,!1)};window.addEventListener("pointerup",w,c),window.addEventListener("pointercancel",k,c)};return a.forEach(p=>{!dv(p)&&p.getAttribute("tabindex")===null&&(p.tabIndex=0),(o.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),p.addEventListener("focus",g=>hv(g,c),c)}),d}function mv(r){return r==="x"||r==="y"?Mt[r]?null:(Mt[r]=!0,()=>{Mt[r]=!1}):Mt.x||Mt.y?null:(Mt.x=Mt.y=!0,()=>{Mt.x=Mt.y=!1})}const rp=new Set(["width","height","top","left","right","bottom",...vr]);let Os;function gv(){Os=void 0}const Ft={now:()=>(Os===void 0&&Ft.set(Be.isProcessing||fy.useManualTiming?Be.timestamp:performance.now()),Os),set:r=>{Os=r,queueMicrotask(gv)}};function Ja(r,i){r.indexOf(i)===-1&&r.push(i)}function ba(r,i){const o=r.indexOf(i);o>-1&&r.splice(o,1)}class eu{constructor(){this.subscriptions=[]}add(i){return Ja(this.subscriptions,i),()=>ba(this.subscriptions,i)}notify(i,o,a){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,o,a);else for(let d=0;d!isNaN(parseFloat(r));class vv{constructor(i,o={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,c=!0)=>{const d=Ft.now();this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),c&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.owner=o.owner}setCurrent(i){this.current=i,this.updatedAt=Ft.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=yv(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,o){this.events[i]||(this.events[i]=new eu);const a=this.events[i].add(o);return i==="change"?()=>{a(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,o){this.passiveEffect=i,this.stopPassiveEffect=o}set(i,o=!0){!o||!this.passiveEffect?this.updateAndNotify(i,o):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-a}jump(i,o=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Cd)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,Cd);return ip(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(i){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=i(o),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 gi(r,i){return new vv(r,i)}function xv(r,i,o){r.hasValue(i)?r.getValue(i).set(o):r.addValue(i,gi(o))}function wv(r,i){const o=Js(r,i);let{transitionEnd:a={},transition:c={},...d}=o||{};d={...d,...a};for(const f in d){const p=Vy(d[f]);xv(r,f,p)}}function Sv(r){return!!(Ge(r)&&r.add)}function va(r,i){const o=r.getValue("willChange");if(Sv(o))return o.add(i)}function sp(r){return r.props[Nh]}const op=(r,i,o)=>(((1-3*o+3*i)*r+(3*o-6*i))*r+3*i)*r,kv=1e-7,Tv=12;function Pv(r,i,o,a,c){let d,f,p=0;do f=i+(o-i)/2,d=op(f,a,c)-r,d>0?o=f:i=f;while(Math.abs(d)>kv&&++pPv(d,0,1,r,o);return d=>d===0||d===1?d:op(c(d),i,a)}const lp=r=>i=>i<=.5?r(2*i)/2:(2-r(2*(1-i)))/2,ap=r=>i=>1-r(1-i),up=wi(.33,1.53,.69,.99),tu=ap(up),cp=lp(tu),fp=r=>(r*=2)<1?.5*tu(r):.5*(2-Math.pow(2,-10*(r-1))),nu=r=>1-Math.sin(Math.acos(r)),dp=ap(nu),hp=lp(nu),pp=r=>/^0[^.\s]+$/u.test(r);function Cv(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||pp(r):!0}const ci=r=>Math.round(r*1e5)/1e5,ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ev(r){return r==null}const Rv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iu=(r,i)=>o=>!!(typeof o=="string"&&Rv.test(o)&&o.startsWith(r)||i&&!Ev(o)&&Object.prototype.hasOwnProperty.call(o,i)),mp=(r,i,o)=>a=>{if(typeof a!="string")return a;const[c,d,f,p]=a.match(ru);return{[r]:parseFloat(c),[i]:parseFloat(d),[o]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Dv=r=>Qt(0,255,r),ta={...xr,transform:r=>Math.round(Dv(r))},Nn={test:iu("rgb","red"),parse:mp("red","green","blue"),transform:({red:r,green:i,blue:o,alpha:a=1})=>"rgba("+ta.transform(r)+", "+ta.transform(i)+", "+ta.transform(o)+", "+ci(mi.transform(a))+")"};function Mv(r){let i="",o="",a="",c="";return r.length>5?(i=r.substring(1,3),o=r.substring(3,5),a=r.substring(5,7),c=r.substring(7,9)):(i=r.substring(1,2),o=r.substring(2,3),a=r.substring(3,4),c=r.substring(4,5),i+=i,o+=o,a+=a,c+=c),{red:parseInt(i,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:c?parseInt(c,16)/255:1}}const xa={test:iu("#"),parse:Mv,transform:Nn.transform},fr={test:iu("hsl","hue"),parse:mp("hue","saturation","lightness"),transform:({hue:r,saturation:i,lightness:o,alpha:a=1})=>"hsla("+Math.round(r)+", "+Nt.transform(ci(i))+", "+Nt.transform(ci(o))+", "+ci(mi.transform(a))+")"},Ke={test:r=>Nn.test(r)||xa.test(r)||fr.test(r),parse:r=>Nn.test(r)?Nn.parse(r):fr.test(r)?fr.parse(r):xa.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Nn.transform(r):fr.transform(r)},Av=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _v(r){var i,o;return isNaN(r)&&typeof r=="string"&&(((i=r.match(ru))===null||i===void 0?void 0:i.length)||0)+(((o=r.match(Av))===null||o===void 0?void 0:o.length)||0)>0}const gp="number",yp="color",Vv="var",Lv="var(",Ed="${}",jv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yi(r){const i=r.toString(),o=[],a={color:[],number:[],var:[]},c=[];let d=0;const p=i.replace(jv,m=>(Ke.test(m)?(a.color.push(d),c.push(yp),o.push(Ke.parse(m))):m.startsWith(Lv)?(a.var.push(d),c.push(Vv),o.push(m)):(a.number.push(d),c.push(gp),o.push(parseFloat(m))),++d,Ed)).split(Ed);return{values:o,split:p,indexes:a,types:c}}function vp(r){return yi(r).values}function xp(r){const{split:i,types:o}=yi(r),a=i.length;return c=>{let d="";for(let f=0;ftypeof r=="number"?0:r;function Fv(r){const i=vp(r);return xp(r)(i.map(Nv))}const yn={test:_v,parse:vp,createTransformer:xp,getAnimatableNone:Fv},Iv=new Set(["brightness","contrast","saturate","opacity"]);function Ov(r){const[i,o]=r.slice(0,-1).split("(");if(i==="drop-shadow")return r;const[a]=o.match(ru)||[];if(!a)return r;const c=o.replace(a,"");let d=Iv.has(i)?1:0;return a!==o&&(d*=100),i+"("+d+c+")"}const zv=/\b([a-z-]*)\(.*?\)/gu,wa={...yn,getAnimatableNone:r=>{const i=r.match(zv);return i?i.map(Ov).join(" "):r}},Bv={...Wa,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:wa,WebkitFilter:wa},su=r=>Bv[r];function wp(r,i){let o=su(r);return o!==wa&&(o=yn),o.getAnimatableNone?o.getAnimatableNone(i):void 0}const Uv=new Set(["auto","none","0"]);function Wv(r,i,o){let a=0,c;for(;ar===xr||r===b,Dd=(r,i)=>parseFloat(r.split(", ")[i]),Md=(r,i)=>(o,{transform:a})=>{if(a==="none"||!a)return 0;const c=a.match(/^matrix3d\((.+)\)$/u);if(c)return Dd(c[1],i);{const d=a.match(/^matrix\((.+)\)$/u);return d?Dd(d[1],r):0}},Hv=new Set(["x","y","z"]),$v=vr.filter(r=>!Hv.has(r));function Kv(r){const i=[];return $v.forEach(o=>{const a=r.getValue(o);a!==void 0&&(i.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),i}const yr={width:({x:r},{paddingLeft:i="0",paddingRight:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),height:({y:r},{paddingTop:i="0",paddingBottom:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),top:(r,{top:i})=>parseFloat(i),left:(r,{left:i})=>parseFloat(i),bottom:({y:r},{top:i})=>parseFloat(i)+(r.max-r.min),right:({x:r},{left:i})=>parseFloat(i)+(r.max-r.min),x:Md(4,13),y:Md(5,14)};yr.translateX=yr.x;yr.translateY=yr.y;const Fn=new Set;let Sa=!1,ka=!1;function Sp(){if(ka){const r=Array.from(Fn).filter(a=>a.needsMeasurement),i=new Set(r.map(a=>a.element)),o=new Map;i.forEach(a=>{const c=Kv(a);c.length&&(o.set(a,c),a.render())}),r.forEach(a=>a.measureInitialState()),i.forEach(a=>{a.render();const c=o.get(a);c&&c.forEach(([d,f])=>{var p;(p=a.getValue(d))===null||p===void 0||p.set(f)})}),r.forEach(a=>a.measureEndState()),r.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}ka=!1,Sa=!1,Fn.forEach(r=>r.complete()),Fn.clear()}function kp(){Fn.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(ka=!0)})}function Gv(){kp(),Sp()}class ou{constructor(i,o,a,c,d,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=o,this.name=a,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fn.add(this),Sa||(Sa=!0,xe.read(kp),xe.resolveKeyframes(Sp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:o,element:a,motionValue:c}=this;for(let d=0;d/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),Qv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yv(r){const i=Qv.exec(r);if(!i)return[,];const[,o,a,c]=i;return[`--${o??a}`,c]}function Pp(r,i,o=1){const[a,c]=Yv(r);if(!a)return;const d=window.getComputedStyle(i).getPropertyValue(a);if(d){const f=d.trim();return Tp(f)?parseFloat(f):f}return Ua(c)?Pp(c,i,o+1):c}const Cp=r=>i=>i.test(r),Xv={test:r=>r==="auto",parse:r=>r},Ep=[xr,b,Nt,mn,Oy,Iy,Xv],Ad=r=>Ep.find(Cp(r));class Rp extends ou{constructor(i,o,a,c,d){super(i,o,a,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let m=0;m{o.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const _d=(r,i)=>i==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(yn.test(r)||r==="0")&&!r.startsWith("url("));function Zv(r){const i=r[0];if(r.length===1)return!0;for(let o=0;or!==null;function bs(r,{repeat:i,repeatType:o="loop"},a){const c=r.filter(Jv),d=i&&o!=="loop"&&i%2===1?0:c.length-1;return!d||a===void 0?c[d]:a}const bv=40;class Dp{constructor({autoplay:i=!0,delay:o=0,type:a="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ft.now(),this.options={autoplay:i,delay:o,type:a,repeat:c,repeatDelay:d,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>bv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Gv(),this._resolved}onKeyframesResolved(i,o){this.resolvedAt=Ft.now(),this.hasAttemptedResolve=!0;const{name:a,type:c,velocity:d,delay:f,onComplete:p,onUpdate:m,isGenerator:g}=this.options;if(!g&&!qv(i,a,c,d))if(f)this.options.duration=0;else{m&&m(bs(i,this.options,o)),p&&p(),this.resolveFinishedPromise();return}const v=this.initPlayback(i,o);v!==!1&&(this._resolved={keyframes:i,finalKeyframe:o,...v},this.onPostResolved())}onPostResolved(){}then(i,o){return this.currentFinishedPromise.then(i,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const Ce=(r,i,o)=>r+(i-r)*o;function na(r,i,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(i-r)*6*o:o<1/2?i:o<2/3?r+(i-r)*(2/3-o)*6:r}function e0({hue:r,saturation:i,lightness:o,alpha:a}){r/=360,i/=100,o/=100;let c=0,d=0,f=0;if(!i)c=d=f=o;else{const p=o<.5?o*(1+i):o+i-o*i,m=2*o-p;c=na(m,p,r+1/3),d=na(m,p,r),f=na(m,p,r-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:a}}function $s(r,i){return o=>o>0?i:r}const ra=(r,i,o)=>{const a=r*r,c=o*(i*i-a)+a;return c<0?0:Math.sqrt(c)},t0=[xa,Nn,fr],n0=r=>t0.find(i=>i.test(r));function Vd(r){const i=n0(r);if(!i)return!1;let o=i.parse(r);return i===fr&&(o=e0(o)),o}const Ld=(r,i)=>{const o=Vd(r),a=Vd(i);if(!o||!a)return $s(r,i);const c={...o};return d=>(c.red=ra(o.red,a.red,d),c.green=ra(o.green,a.green,d),c.blue=ra(o.blue,a.blue,d),c.alpha=Ce(o.alpha,a.alpha,d),Nn.transform(c))},r0=(r,i)=>o=>i(r(o)),Si=(...r)=>r.reduce(r0),Ta=new Set(["none","hidden"]);function i0(r,i){return Ta.has(r)?o=>o<=0?r:i:o=>o>=1?i:r}function s0(r,i){return o=>Ce(r,i,o)}function lu(r){return typeof r=="number"?s0:typeof r=="string"?Ua(r)?$s:Ke.test(r)?Ld:a0:Array.isArray(r)?Mp:typeof r=="object"?Ke.test(r)?Ld:o0:$s}function Mp(r,i){const o=[...r],a=o.length,c=r.map((d,f)=>lu(d)(d,i[f]));return d=>{for(let f=0;f{for(const d in a)o[d]=a[d](c);return o}}function l0(r,i){var o;const a=[],c={color:0,var:0,number:0};for(let d=0;d{const o=yn.createTransformer(i),a=yi(r),c=yi(i);return a.indexes.var.length===c.indexes.var.length&&a.indexes.color.length===c.indexes.color.length&&a.indexes.number.length>=c.indexes.number.length?Ta.has(r)&&!c.values.length||Ta.has(i)&&!a.values.length?i0(r,i):Si(Mp(l0(a,c),c.values),o):$s(r,i)};function Ap(r,i,o){return typeof r=="number"&&typeof i=="number"&&typeof o=="number"?Ce(r,i,o):lu(r)(r,i)}const u0=5;function _p(r,i,o){const a=Math.max(i-u0,0);return ip(o-r(a),i-a)}const De={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ia=.001;function c0({duration:r=De.duration,bounce:i=De.bounce,velocity:o=De.velocity,mass:a=De.mass}){let c,d,f=1-i;f=Qt(De.minDamping,De.maxDamping,f),r=Qt(De.minDuration,De.maxDuration,Gt(r)),f<1?(c=g=>{const v=g*f,w=v*r,k=v-o,D=Pa(g,f),j=Math.exp(-w);return ia-k/D*j},d=g=>{const w=g*f*r,k=w*o+o,D=Math.pow(f,2)*Math.pow(g,2)*r,j=Math.exp(-w),A=Pa(Math.pow(g,2),f);return(-c(g)+ia>0?-1:1)*((k-D)*j)/A}):(c=g=>{const v=Math.exp(-g*r),w=(g-o)*r+1;return-ia+v*w},d=g=>{const v=Math.exp(-g*r),w=(o-g)*(r*r);return v*w});const p=5/r,m=d0(c,d,p);if(r=Kt(r),isNaN(m))return{stiffness:De.stiffness,damping:De.damping,duration:r};{const g=Math.pow(m,2)*a;return{stiffness:g,damping:f*2*Math.sqrt(a*g),duration:r}}}const f0=12;function d0(r,i,o){let a=o;for(let c=1;cr[o]!==void 0)}function m0(r){let i={velocity:De.velocity,stiffness:De.stiffness,damping:De.damping,mass:De.mass,isResolvedFromDuration:!1,...r};if(!jd(r,p0)&&jd(r,h0))if(r.visualDuration){const o=r.visualDuration,a=2*Math.PI/(o*1.2),c=a*a,d=2*Qt(.05,1,1-(r.bounce||0))*Math.sqrt(c);i={...i,mass:De.mass,stiffness:c,damping:d}}else{const o=c0(r);i={...i,...o,mass:De.mass},i.isResolvedFromDuration=!0}return i}function Vp(r=De.visualDuration,i=De.bounce){const o=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:i}:r;let{restSpeed:a,restDelta:c}=o;const d=o.keyframes[0],f=o.keyframes[o.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:g,mass:v,duration:w,velocity:k,isResolvedFromDuration:D}=m0({...o,velocity:-Gt(o.velocity||0)}),j=k||0,A=g/(2*Math.sqrt(m*v)),N=f-d,O=Gt(Math.sqrt(m/v)),W=Math.abs(N)<5;a||(a=W?De.restSpeed.granular:De.restSpeed.default),c||(c=W?De.restDelta.granular:De.restDelta.default);let K;if(A<1){const Q=Pa(O,A);K=ne=>{const ue=Math.exp(-A*O*ne);return f-ue*((j+A*O*N)/Q*Math.sin(Q*ne)+N*Math.cos(Q*ne))}}else if(A===1)K=Q=>f-Math.exp(-O*Q)*(N+(j+O*N)*Q);else{const Q=O*Math.sqrt(A*A-1);K=ne=>{const ue=Math.exp(-A*O*ne),J=Math.min(Q*ne,300);return f-ue*((j+A*O*N)*Math.sinh(J)+Q*N*Math.cosh(J))/Q}}const te={calculatedDuration:D&&w||null,next:Q=>{const ne=K(Q);if(D)p.done=Q>=w;else{let ue=0;A<1&&(ue=Q===0?Kt(j):_p(K,Q,ne));const J=Math.abs(ue)<=a,ke=Math.abs(f-ne)<=c;p.done=J&&ke}return p.value=p.done?f:ne,p},toString:()=>{const Q=Math.min(Zh(te),ga),ne=qh(ue=>te.next(Q*ue).value,Q,30);return Q+"ms "+ne}};return te}function Nd({keyframes:r,velocity:i=0,power:o=.8,timeConstant:a=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:v}){const w=r[0],k={done:!1,value:w},D=J=>p!==void 0&&Jm,j=J=>p===void 0?m:m===void 0||Math.abs(p-J)-A*Math.exp(-J/a),K=J=>O+W(J),te=J=>{const ke=W(J),Ee=K(J);k.done=Math.abs(ke)<=g,k.value=k.done?O:Ee};let Q,ne;const ue=J=>{D(k.value)&&(Q=J,ne=Vp({keyframes:[k.value,j(k.value)],velocity:_p(K,J,k.value),damping:c,stiffness:d,restDelta:g,restSpeed:v}))};return ue(0),{calculatedDuration:null,next:J=>{let ke=!1;return!ne&&Q===void 0&&(ke=!0,te(J),ue(J)),Q!==void 0&&J>=Q?ne.next(J-Q):(!ke&&te(J),k)}}}const g0=wi(.42,0,1,1),y0=wi(0,0,.58,1),Lp=wi(.42,0,.58,1),v0=r=>Array.isArray(r)&&typeof r[0]!="number",x0={linear:ft,easeIn:g0,easeInOut:Lp,easeOut:y0,circIn:nu,circInOut:hp,circOut:dp,backIn:tu,backInOut:cp,backOut:up,anticipate:fp},Fd=r=>{if(Za(r)){Ah(r.length===4);const[i,o,a,c]=r;return wi(i,o,a,c)}else if(typeof r=="string")return x0[r];return r};function w0(r,i,o){const a=[],c=o||Ap,d=r.length-1;for(let f=0;fi[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=r[0]===r[1];r[0]>r[d-1]&&(r=[...r].reverse(),i=[...i].reverse());const p=w0(i,a,c),m=p.length,g=v=>{if(f&&v1)for(;wg(Qt(r[0],r[d-1],v)):g}function k0(r,i){const o=r[r.length-1];for(let a=1;a<=i;a++){const c=mr(0,i,a);r.push(Ce(o,1,c))}}function T0(r){const i=[0];return k0(i,r.length-1),i}function P0(r,i){return r.map(o=>o*i)}function C0(r,i){return r.map(()=>i||Lp).splice(0,r.length-1)}function Ks({duration:r=300,keyframes:i,times:o,ease:a="easeInOut"}){const c=v0(a)?a.map(Fd):Fd(a),d={done:!1,value:i[0]},f=P0(o&&o.length===i.length?o:T0(i),r),p=S0(f,i,{ease:Array.isArray(c)?c:C0(i,c)});return{calculatedDuration:r,next:m=>(d.value=p(m),d.done=m>=r,d)}}const E0=r=>{const i=({timestamp:o})=>r(o);return{start:()=>xe.update(i,!0),stop:()=>gn(i),now:()=>Be.isProcessing?Be.timestamp:Ft.now()}},R0={decay:Nd,inertia:Nd,tween:Ks,keyframes:Ks,spring:Vp},D0=r=>r/100;class au extends Dp{constructor(i){super(i),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:o,motionValue:a,element:c,keyframes:d}=this.options,f=(c==null?void 0:c.KeyframeResolver)||ou,p=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new f(d,p,o,a,c),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:o="keyframes",repeat:a=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=this.options,p=Xa(o)?o:R0[o]||Ks;let m,g;p!==Ks&&typeof i[0]!="number"&&(m=Si(D0,Ap(i[0],i[1])),i=[0,100]);const v=p({...this.options,keyframes:i});d==="mirror"&&(g=p({...this.options,keyframes:[...i].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=Zh(v));const{calculatedDuration:w}=v,k=w+c,D=k*(a+1)-c;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:w,resolvedDuration:k,totalDuration:D}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,o=!1){const{resolved:a}=this;if(!a){const{keyframes:J}=this.options;return{done:!0,value:J[J.length-1]}}const{finalKeyframe:c,generator:d,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:w}=a;if(this.startTime===null)return d.next(0);const{delay:k,repeat:D,repeatType:j,repeatDelay:A,onUpdate:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-v/this.speed,this.startTime)),o?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const O=this.currentTime-k*(this.speed>=0?1:-1),W=this.speed>=0?O<0:O>v;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let K=this.currentTime,te=d;if(D){const J=Math.min(this.currentTime,v)/w;let ke=Math.floor(J),Ee=J%1;!Ee&&J>=1&&(Ee=1),Ee===1&&ke--,ke=Math.min(ke,D+1),!!(ke%2)&&(j==="reverse"?(Ee=1-Ee,A&&(Ee-=A/w)):j==="mirror"&&(te=f)),K=Qt(0,1,Ee)*w}const Q=W?{done:!1,value:m[0]}:te.next(K);p&&(Q.value=p(Q.value));let{done:ne}=Q;!W&&g!==null&&(ne=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const ue=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ne);return ue&&c!==void 0&&(Q.value=bs(m,this.options,c)),N&&N(Q.value),ue&&this.finish(),Q}get duration(){const{resolved:i}=this;return i?Gt(i.calculatedDuration):0}get time(){return Gt(this.currentTime)}set time(i){i=Kt(i),this.currentTime=i,this.holdTime!==null||this.speed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.speed)}get speed(){return this.playbackSpeed}set speed(i){const o=this.playbackSpeed!==i;this.playbackSpeed=i,o&&(this.time=Gt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:i=E0,onPlay:o,startTime:a}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),o&&o();const c=this.driver.now();this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=c):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var i;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(i=this.currentTime)!==null&&i!==void 0?i:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:i}=this.options;i&&i()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}}const M0=new Set(["opacity","clipPath","filter","transform"]);function A0(r,i,o,{delay:a=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:p="easeInOut",times:m}={}){const g={[i]:o};m&&(g.offset=m);const v=bh(p,c);return Array.isArray(v)&&(g.easing=v),r.animate(g,{delay:a,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"})}const _0=ja(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gs=10,V0=2e4;function L0(r){return Xa(r.type)||r.type==="spring"||!Jh(r.ease)}function j0(r,i){const o=new au({...i,keyframes:r,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:r[0]};const c=[];let d=0;for(;!a.done&&dthis.onKeyframesResolved(f,p),o,a,c),this.resolver.scheduleResolve()}initPlayback(i,o){let{duration:a=300,times:c,ease:d,type:f,motionValue:p,name:m,startTime:g}=this.options;if(!p.owner||!p.owner.current)return!1;if(typeof d=="string"&&Hs()&&N0(d)&&(d=jp[d]),L0(this.options)){const{onComplete:w,onUpdate:k,motionValue:D,element:j,...A}=this.options,N=j0(i,A);i=N.keyframes,i.length===1&&(i[1]=i[0]),a=N.duration,c=N.times,d=N.ease,f="keyframes"}const v=A0(p.owner.current,m,i,{...this.options,duration:a,times:c,ease:d});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(Sd(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:w}=this.options;p.set(bs(i,this.options,o)),w&&w(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:a,times:c,type:f,ease:d,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:o}=i;return Gt(o)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:o}=i;return Gt(o.currentTime||0)}set time(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.currentTime=Kt(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:o}=i;return o.playbackRate}set speed(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:o}=i;return o.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:o}=i;return o.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:o}=this;if(!o)return ft;const{animation:a}=o;Sd(a,i)}return ft}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:i}=this;if(!i)return;const{animation:o,keyframes:a,duration:c,type:d,ease:f,times:p}=i;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:w,element:k,...D}=this.options,j=new au({...D,keyframes:a,duration:c,type:d,ease:f,times:p,isGenerator:!0}),A=Kt(this.time);g.setWithVelocity(j.sample(A-Gs).value,j.sample(A).value,Gs)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:i}=this;i&&i.animation.finish()}cancel(){const{resolved:i}=this;i&&i.animation.cancel()}static supports(i){const{motionValue:o,name:a,repeatDelay:c,repeatType:d,damping:f,type:p}=i;if(!o||!o.owner||!(o.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=o.owner.getProps();return _0()&&a&&M0.has(a)&&!m&&!g&&!c&&d!=="mirror"&&f!==0&&p!=="inertia"}}const F0={type:"spring",stiffness:500,damping:25,restSpeed:10},I0=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),O0={type:"keyframes",duration:.8},z0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B0=(r,{keyframes:i})=>i.length>2?O0:In.has(r)?r.startsWith("scale")?I0(i[1]):F0:z0;function U0({when:r,delay:i,delayChildren:o,staggerChildren:a,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:p,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const uu=(r,i,o,a={},c,d)=>f=>{const p=Ya(a,r)||{},m=p.delay||a.delay||0;let{elapsed:g=0}=a;g=g-Kt(m);let v={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:k=>{i.set(k),p.onUpdate&&p.onUpdate(k)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:r,motionValue:i,element:d?void 0:c};U0(p)||(v={...v,...B0(r,v)}),v.duration&&(v.duration=Kt(v.duration)),v.repeatDelay&&(v.repeatDelay=Kt(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let w=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(w=!0)),w&&!d&&i.get()!==void 0){const k=bs(v.keyframes,p);if(k!==void 0)return xe.update(()=>{v.onUpdate(k),v.onComplete()}),new ov([])}return!d&&Id.supports(v)?new Id(v):new au(v)};function W0({protectedKeys:r,needsAnimating:i},o){const a=r.hasOwnProperty(o)&&i[o]!==!0;return i[o]=!1,a}function Np(r,i,{delay:o=0,transitionOverride:a,type:c}={}){var d;let{transition:f=r.getDefaultTransition(),transitionEnd:p,...m}=i;a&&(f=a);const g=[],v=c&&r.animationState&&r.animationState.getState()[c];for(const w in m){const k=r.getValue(w,(d=r.latestValues[w])!==null&&d!==void 0?d:null),D=m[w];if(D===void 0||v&&W0(v,w))continue;const j={delay:o,...Ya(f||{},w)};let A=!1;if(window.MotionHandoffAnimation){const O=sp(r);if(O){const W=window.MotionHandoffAnimation(O,w,xe);W!==null&&(j.startTime=W,A=!0)}}va(r,w),k.start(uu(w,k,D,r.shouldReduceMotion&&rp.has(w)?{type:!1}:j,r,A));const N=k.animation;N&&g.push(N)}return p&&Promise.all(g).then(()=>{xe.update(()=>{p&&wv(r,p)})}),g}function Ca(r,i,o={}){var a;const c=Js(r,i,o.type==="exit"?(a=r.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:d=r.getDefaultTransition()||{}}=c||{};o.transitionOverride&&(d=o.transitionOverride);const f=c?()=>Promise.all(Np(r,c,o)):()=>Promise.resolve(),p=r.variantChildren&&r.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:w,staggerDirection:k}=d;return H0(r,i,v+g,w,k,o)}:()=>Promise.resolve(),{when:m}=d;if(m){const[g,v]=m==="beforeChildren"?[f,p]:[p,f];return g().then(()=>v())}else return Promise.all([f(),p(o.delay)])}function H0(r,i,o=0,a=0,c=1,d){const f=[],p=(r.variantChildren.size-1)*a,m=c===1?(g=0)=>g*a:(g=0)=>p-g*a;return Array.from(r.variantChildren).sort($0).forEach((g,v)=>{g.notify("AnimationStart",i),f.push(Ca(g,i,{...d,delay:o+m(v)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(f)}function $0(r,i){return r.sortNodePosition(i)}function K0(r,i,o={}){r.notify("AnimationStart",i);let a;if(Array.isArray(i)){const c=i.map(d=>Ca(r,d,o));a=Promise.all(c)}else if(typeof i=="string")a=Ca(r,i,o);else{const c=typeof i=="function"?Js(r,i,o.custom):i;a=Promise.all(Np(r,c,o))}return a.then(()=>{r.notify("AnimationComplete",i)})}const G0=Fa.length;function Fp(r){if(!r)return;if(!r.isControllingVariants){const o=r.parent?Fp(r.parent)||{}:{};return r.props.initial!==void 0&&(o.initial=r.props.initial),o}const i={};for(let o=0;oPromise.all(i.map(({animation:o,options:a})=>K0(r,o,a)))}function Z0(r){let i=X0(r),o=Od(),a=!0;const c=m=>(g,v)=>{var w;const k=Js(r,v,m==="exit"?(w=r.presenceContext)===null||w===void 0?void 0:w.custom:void 0);if(k){const{transition:D,transitionEnd:j,...A}=k;g={...g,...A,...j}}return g};function d(m){i=m(r)}function f(m){const{props:g}=r,v=Fp(r.parent)||{},w=[],k=new Set;let D={},j=1/0;for(let N=0;Nj&&te,ke=!1;const Ee=Array.isArray(K)?K:[K];let qe=Ee.reduce(c(O),{});Q===!1&&(qe={});const{prevResolvedValues:st={}}=W,Qe={...st,...qe},Je=se=>{J=!0,k.has(se)&&(ke=!0,k.delete(se)),W.needsAnimating[se]=!0;const I=r.getValue(se);I&&(I.liveStyle=!1)};for(const se in Qe){const I=qe[se],Y=st[se];if(D.hasOwnProperty(se))continue;let B=!1;ma(I)&&ma(Y)?B=!Xh(I,Y):B=I!==Y,B?I!=null?Je(se):k.add(se):I!==void 0&&k.has(se)?Je(se):W.protectedKeys[se]=!0}W.prevProp=K,W.prevResolvedValues=qe,W.isActive&&(D={...D,...qe}),a&&r.blockInitialAnimation&&(J=!1),J&&(!(ne&&ue)||ke)&&w.push(...Ee.map(se=>({animation:se,options:{type:O}})))}if(k.size){const N={};k.forEach(O=>{const W=r.getBaseTarget(O),K=r.getValue(O);K&&(K.liveStyle=!0),N[O]=W??null}),w.push({animation:N})}let A=!!w.length;return a&&(g.initial===!1||g.initial===g.animate)&&!r.manuallyAnimateOnMount&&(A=!1),a=!1,A?i(w):Promise.resolve()}function p(m,g){var v;if(o[m].isActive===g)return Promise.resolve();(v=r.variantChildren)===null||v===void 0||v.forEach(k=>{var D;return(D=k.animationState)===null||D===void 0?void 0:D.setActive(m,g)}),o[m].isActive=g;const w=f(m);for(const k in o)o[k].protectedKeys={};return w}return{animateChanges:f,setActive:p,setAnimateFunction:d,getState:()=>o,reset:()=>{o=Od(),a=!0}}}function q0(r,i){return typeof i=="string"?i!==r:Array.isArray(i)?!Xh(i,r):!1}function Vn(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Od(){return{animate:Vn(!0),whileInView:Vn(),whileHover:Vn(),whileTap:Vn(),whileDrag:Vn(),whileFocus:Vn(),exit:Vn()}}class vn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class J0 extends vn{constructor(i){super(i),i.animationState||(i.animationState=Z0(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Zs(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:o}=this.node.prevProps||{};i!==o&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let b0=0;class e1 extends vn{constructor(){super(...arguments),this.id=b0++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:o}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===a)return;const c=this.node.animationState.setActive("exit",!i);o&&!i&&c.then(()=>o(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const t1={animation:{Feature:J0},exit:{Feature:e1}};function vi(r,i,o,a={passive:!0}){return r.addEventListener(i,o,a),()=>r.removeEventListener(i,o)}function ki(r){return{point:{x:r.pageX,y:r.pageY}}}const n1=r=>i=>qa(i)&&r(i,ki(i));function fi(r,i,o,a){return vi(r,i,n1(o),a)}const zd=(r,i)=>Math.abs(r-i);function r1(r,i){const o=zd(r.x,i.x),a=zd(r.y,i.y);return Math.sqrt(o**2+a**2)}class Ip{constructor(i,o,{transformPagePoint:a,contextWindow:c,dragSnapToOrigin:d=!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 w=oa(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,D=r1(w.offset,{x:0,y:0})>=3;if(!k&&!D)return;const{point:j}=w,{timestamp:A}=Be;this.history.push({...j,timestamp:A});const{onStart:N,onMove:O}=this.handlers;k||(N&&N(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,w)},this.handlePointerMove=(w,k)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=sa(k,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(w,k)=>{this.end();const{onEnd:D,onSessionEnd:j,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=oa(w.type==="pointercancel"?this.lastMoveEventInfo:sa(k,this.transformPagePoint),this.history);this.startEvent&&D&&D(w,N),j&&j(w,N)},!qa(i))return;this.dragSnapToOrigin=d,this.handlers=o,this.transformPagePoint=a,this.contextWindow=c||window;const f=ki(i),p=sa(f,this.transformPagePoint),{point:m}=p,{timestamp:g}=Be;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=o;v&&v(i,oa(p,this.history)),this.removeListeners=Si(fi(this.contextWindow,"pointermove",this.handlePointerMove),fi(this.contextWindow,"pointerup",this.handlePointerUp),fi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),gn(this.updatePoint)}}function sa(r,i){return i?{point:i(r.point)}:r}function Bd(r,i){return{x:r.x-i.x,y:r.y-i.y}}function oa({point:r},i){return{point:r,delta:Bd(r,Op(i)),offset:Bd(r,i1(i)),velocity:s1(i,.1)}}function i1(r){return r[0]}function Op(r){return r[r.length-1]}function s1(r,i){if(r.length<2)return{x:0,y:0};let o=r.length-1,a=null;const c=Op(r);for(;o>=0&&(a=r[o],!(c.timestamp-a.timestamp>Kt(i)));)o--;if(!a)return{x:0,y:0};const d=Gt(c.timestamp-a.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-a.x)/d,y:(c.y-a.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}const zp=1e-4,o1=1-zp,l1=1+zp,Bp=.01,a1=0-Bp,u1=0+Bp;function dt(r){return r.max-r.min}function c1(r,i,o){return Math.abs(r-i)<=o}function Ud(r,i,o,a=.5){r.origin=a,r.originPoint=Ce(i.min,i.max,r.origin),r.scale=dt(o)/dt(i),r.translate=Ce(o.min,o.max,r.origin)-r.originPoint,(r.scale>=o1&&r.scale<=l1||isNaN(r.scale))&&(r.scale=1),(r.translate>=a1&&r.translate<=u1||isNaN(r.translate))&&(r.translate=0)}function di(r,i,o,a){Ud(r.x,i.x,o.x,a?a.originX:void 0),Ud(r.y,i.y,o.y,a?a.originY:void 0)}function Wd(r,i,o){r.min=o.min+i.min,r.max=r.min+dt(i)}function f1(r,i,o){Wd(r.x,i.x,o.x),Wd(r.y,i.y,o.y)}function Hd(r,i,o){r.min=i.min-o.min,r.max=r.min+dt(i)}function hi(r,i,o){Hd(r.x,i.x,o.x),Hd(r.y,i.y,o.y)}function d1(r,{min:i,max:o},a){return i!==void 0&&ro&&(r=a?Ce(o,r,a.max):Math.min(r,o)),r}function $d(r,i,o){return{min:i!==void 0?r.min+i:void 0,max:o!==void 0?r.max+o-(r.max-r.min):void 0}}function h1(r,{top:i,left:o,bottom:a,right:c}){return{x:$d(r.x,o,c),y:$d(r.y,i,a)}}function Kd(r,i){let o=i.min-r.min,a=i.max-r.max;return i.max-i.mina?o=mr(i.min,i.max-a,r.min):a>c&&(o=mr(r.min,r.max-c,i.min)),Qt(0,1,o)}function g1(r,i){const o={};return i.min!==void 0&&(o.min=i.min-r.min),i.max!==void 0&&(o.max=i.max-r.min),o}const Ea=.35;function y1(r=Ea){return r===!1?r=0:r===!0&&(r=Ea),{x:Gd(r,"left","right"),y:Gd(r,"top","bottom")}}function Gd(r,i,o){return{min:Qd(r,i),max:Qd(r,o)}}function Qd(r,i){return typeof r=="number"?r:r[i]||0}const Yd=()=>({translate:0,scale:1,origin:0,originPoint:0}),dr=()=>({x:Yd(),y:Yd()}),Xd=()=>({min:0,max:0}),_e=()=>({x:Xd(),y:Xd()});function wt(r){return[r("x"),r("y")]}function Up({top:r,left:i,right:o,bottom:a}){return{x:{min:i,max:o},y:{min:r,max:a}}}function v1({x:r,y:i}){return{top:i.min,right:r.max,bottom:i.max,left:r.min}}function x1(r,i){if(!i)return r;const o=i({x:r.left,y:r.top}),a=i({x:r.right,y:r.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}function la(r){return r===void 0||r===1}function Ra({scale:r,scaleX:i,scaleY:o}){return!la(r)||!la(i)||!la(o)}function Ln(r){return Ra(r)||Wp(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function Wp(r){return Zd(r.x)||Zd(r.y)}function Zd(r){return r&&r!=="0%"}function Qs(r,i,o){const a=r-o,c=i*a;return o+c}function qd(r,i,o,a,c){return c!==void 0&&(r=Qs(r,c,a)),Qs(r,o,a)+i}function Da(r,i=0,o=1,a,c){r.min=qd(r.min,i,o,a,c),r.max=qd(r.max,i,o,a,c)}function Hp(r,{x:i,y:o}){Da(r.x,i.translate,i.scale,i.originPoint),Da(r.y,o.translate,o.scale,o.originPoint)}const Jd=.999999999999,bd=1.0000000000001;function w1(r,i,o,a=!1){const c=o.length;if(!c)return;i.x=i.y=1;let d,f;for(let p=0;pJd&&(i.x=1),i.yJd&&(i.y=1)}function hr(r,i){r.min=r.min+i,r.max=r.max+i}function eh(r,i,o,a,c=.5){const d=Ce(r.min,r.max,c);Da(r,i,o,d,a)}function pr(r,i){eh(r.x,i.x,i.scaleX,i.scale,i.originX),eh(r.y,i.y,i.scaleY,i.scale,i.originY)}function $p(r,i){return Up(x1(r.getBoundingClientRect(),i))}function S1(r,i,o){const a=$p(r,o),{scroll:c}=i;return c&&(hr(a.x,c.offset.x),hr(a.y,c.offset.y)),a}const Kp=({current:r})=>r?r.ownerDocument.defaultView:null,k1=new WeakMap;class T1{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_e(),this.visualElement=i}start(i,{snapToCursor:o=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(ki(v).point)},d=(v,w)=>{const{drag:k,dragPropagation:D,onDragStart:j}=this.getProps();if(k&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mv(k),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(N=>{let O=this.getAxisMotionValue(N).get()||0;if(Nt.test(O)){const{projection:W}=this.visualElement;if(W&&W.layout){const K=W.layout.layoutBox[N];K&&(O=dt(K)*(parseFloat(O)/100))}}this.originPoint[N]=O}),j&&xe.postRender(()=>j(v,w)),va(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},f=(v,w)=>{const{dragPropagation:k,dragDirectionLock:D,onDirectionLock:j,onDrag:A}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:N}=w;if(D&&this.currentDirection===null){this.currentDirection=P1(N),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",w.point,N),this.updateAxis("y",w.point,N),this.visualElement.render(),A&&A(v,w)},p=(v,w)=>this.stop(v,w),m=()=>wt(v=>{var w;return this.getAnimationState(v)==="paused"&&((w=this.getAxisMotionValue(v).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Ip(i,{onSessionStart:c,onStart:d,onMove:f,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:Kp(this.visualElement)})}stop(i,o){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&xe.postRender(()=>d(i,o))}cancel(){this.isDragging=!1;const{projection:i,animationState:o}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(i,o,a){const{drag:c}=this.getProps();if(!a||!Fs(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+a[i];this.constraints&&this.constraints[i]&&(f=d1(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var i;const{dragConstraints:o,dragElastic:a}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,d=this.constraints;o&&cr(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&c?this.constraints=h1(c.layoutBox,o):this.constraints=!1,this.elastic=y1(a),d!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&wt(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=g1(c.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:o}=this.getProps();if(!i||!cr(i))return!1;const a=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=S1(a,c.root,this.visualElement.getTransformPagePoint());let f=p1(c.layout.layoutBox,d);if(o){const p=o(v1(f));this.hasMutatedConstraints=!!p,p&&(f=Up(p))}return f}startAnimation(i){const{drag:o,dragMomentum:a,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=wt(v=>{if(!Fs(v,o,this.currentDirection))return;let w=m&&m[v]||{};f&&(w={min:0,max:0});const k=c?200:1e6,D=c?40:1e7,j={type:"inertia",velocity:a?i[v]:0,bounceStiffness:k,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...d,...w};return this.startAxisValueAnimation(v,j)});return Promise.all(g).then(p)}startAxisValueAnimation(i,o){const a=this.getAxisMotionValue(i);return va(this.visualElement,i),a.start(uu(i,a,0,o,this.visualElement,!1))}stopAnimation(){wt(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){wt(i=>{var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(i){var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(i){const o=`_drag${i.toUpperCase()}`,a=this.visualElement.getProps(),c=a[o];return c||this.visualElement.getValue(i,(a.initial?a.initial[i]:void 0)||0)}snapToCursor(i){wt(o=>{const{drag:a}=this.getProps();if(!Fs(o,a,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(o);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[o];d.set(i[o]-Ce(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:o}=this.getProps(),{projection:a}=this.visualElement;if(!cr(o)||!a||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};wt(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();c[f]=m1({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),wt(f=>{if(!Fs(f,i,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(Ce(m,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;k1.set(this.visualElement,this);const i=this.visualElement.current,o=fi(i,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),a=()=>{const{dragConstraints:m}=this.getProps();cr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",a);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),xe.read(a);const f=vi(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(wt(v=>{const w=this.getAxisMotionValue(v);w&&(this.originPoint[v]+=m[v].translate,w.set(w.get()+m[v].translate))}),this.visualElement.render())}));return()=>{f(),o(),d(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:a=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=Ea,dragMomentum:p=!0}=i;return{...i,drag:o,dragDirectionLock:a,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function Fs(r,i,o){return(i===!0||i===r)&&(o===null||o===r)}function P1(r,i=10){let o=null;return Math.abs(r.y)>i?o="y":Math.abs(r.x)>i&&(o="x"),o}class C1 extends vn{constructor(i){super(i),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new T1(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}unmount(){this.removeGroupControls(),this.removeListeners()}}const th=r=>(i,o)=>{r&&xe.postRender(()=>r(i,o))};class E1 extends vn{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(i){this.session=new Ip(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kp(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:o,onPan:a,onPanEnd:c}=this.node.getProps();return{onSessionStart:th(i),onStart:th(o),onMove:a,onEnd:(d,f)=>{delete this.session,c&&xe.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=fi(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nh(r,i){return i.max===i.min?0:r/(i.max-i.min)*100}const oi={correct:(r,i)=>{if(!i.target)return r;if(typeof r=="string")if(b.test(r))r=parseFloat(r);else return r;const o=nh(r,i.target.x),a=nh(r,i.target.y);return`${o}% ${a}%`}},R1={correct:(r,{treeScale:i,projectionDelta:o})=>{const a=r,c=yn.parse(r);if(c.length>5)return a;const d=yn.createTransformer(r),f=typeof c[0]!="number"?1:0,p=o.x.scale*i.x,m=o.y.scale*i.y;c[0+f]/=p,c[1+f]/=m;const g=Ce(p,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),d(c)}};class D1 extends re.Component{componentDidMount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a,layoutId:c}=this.props,{projection:d}=i;Yy(M1),d&&(o.group&&o.group.add(d),a&&a.register&&c&&a.register(d),d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),zs.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:o,visualElement:a,drag:c,isPresent:d}=this.props,f=a.projection;return f&&(f.isPresent=d,c||i.layoutDependency!==o||o===void 0?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||xe.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Oa.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a}=this.props,{projection:c}=i;c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),a&&a.deregister&&a.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Gp(r){const[i,o]=uy(),a=re.useContext(Dh);return R.jsx(D1,{...r,layoutGroup:a,switchLayoutGroup:re.useContext(Fh),isPresent:i,safeToRemove:o})}const M1={borderRadius:{...oi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oi,borderTopRightRadius:oi,borderBottomLeftRadius:oi,borderBottomRightRadius:oi,boxShadow:R1};function A1(r,i,o){const a=Ge(r)?r:gi(r);return a.start(uu("",a,i,o)),a.animation}function _1(r){return r instanceof SVGElement&&r.tagName!=="svg"}const V1=(r,i)=>r.depth-i.depth;class L1{constructor(){this.children=[],this.isDirty=!1}add(i){Ja(this.children,i),this.isDirty=!0}remove(i){ba(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(V1),this.isDirty=!1,this.children.forEach(i)}}function j1(r,i){const o=Ft.now(),a=({timestamp:c})=>{const d=c-o;d>=i&&(gn(a),r(d-i))};return xe.read(a,!0),()=>gn(a)}const Qp=["TopLeft","TopRight","BottomLeft","BottomRight"],N1=Qp.length,rh=r=>typeof r=="string"?parseFloat(r):r,ih=r=>typeof r=="number"||b.test(r);function F1(r,i,o,a,c,d){c?(r.opacity=Ce(0,o.opacity!==void 0?o.opacity:1,I1(a)),r.opacityExit=Ce(i.opacity!==void 0?i.opacity:1,0,O1(a))):d&&(r.opacity=Ce(i.opacity!==void 0?i.opacity:1,o.opacity!==void 0?o.opacity:1,a));for(let f=0;fai?1:o(mr(r,i,a))}function oh(r,i){r.min=i.min,r.max=i.max}function xt(r,i){oh(r.x,i.x),oh(r.y,i.y)}function lh(r,i){r.translate=i.translate,r.scale=i.scale,r.originPoint=i.originPoint,r.origin=i.origin}function ah(r,i,o,a,c){return r-=i,r=Qs(r,1/o,a),c!==void 0&&(r=Qs(r,1/c,a)),r}function z1(r,i=0,o=1,a=.5,c,d=r,f=r){if(Nt.test(i)&&(i=parseFloat(i),i=Ce(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=Ce(d.min,d.max,a);r===d&&(p-=i),r.min=ah(r.min,i,o,p,c),r.max=ah(r.max,i,o,p,c)}function uh(r,i,[o,a,c],d,f){z1(r,i[o],i[a],i[c],i.scale,d,f)}const B1=["x","scaleX","originX"],U1=["y","scaleY","originY"];function ch(r,i,o,a){uh(r.x,i,B1,o?o.x:void 0,a?a.x:void 0),uh(r.y,i,U1,o?o.y:void 0,a?a.y:void 0)}function fh(r){return r.translate===0&&r.scale===1}function Xp(r){return fh(r.x)&&fh(r.y)}function dh(r,i){return r.min===i.min&&r.max===i.max}function W1(r,i){return dh(r.x,i.x)&&dh(r.y,i.y)}function hh(r,i){return Math.round(r.min)===Math.round(i.min)&&Math.round(r.max)===Math.round(i.max)}function Zp(r,i){return hh(r.x,i.x)&&hh(r.y,i.y)}function ph(r){return dt(r.x)/dt(r.y)}function mh(r,i){return r.translate===i.translate&&r.scale===i.scale&&r.originPoint===i.originPoint}class H1{constructor(){this.members=[]}add(i){Ja(this.members,i),i.scheduleRender()}remove(i){if(ba(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(i){const o=this.members.findIndex(c=>i===c);if(o===0)return!1;let a;for(let c=o;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){a=d;break}}return a?(this.promote(a),!0):!1}promote(i,o){const a=this.lead;if(i!==a&&(this.prevLead=a,this.lead=i,i.show(),a)){a.instance&&a.scheduleRender(),i.scheduleRender(),i.resumeFrom=a,o&&(i.resumeFrom.preserveOpacity=!0),a.snapshot&&(i.snapshot=a.snapshot,i.snapshot.latestValues=a.animationValues||a.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:o,resumingFrom:a}=i;o.onExitComplete&&o.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $1(r,i,o){let a="";const c=r.x.translate/i.x,d=r.y.translate/i.y,f=(o==null?void 0:o.z)||0;if((c||d||f)&&(a=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(a+=`scale(${1/i.x}, ${1/i.y}) `),o){const{transformPerspective:g,rotate:v,rotateX:w,rotateY:k,skewX:D,skewY:j}=o;g&&(a=`perspective(${g}px) ${a}`),v&&(a+=`rotate(${v}deg) `),w&&(a+=`rotateX(${w}deg) `),k&&(a+=`rotateY(${k}deg) `),D&&(a+=`skewX(${D}deg) `),j&&(a+=`skewY(${j}deg) `)}const p=r.x.scale*i.x,m=r.y.scale*i.y;return(p!==1||m!==1)&&(a+=`scale(${p}, ${m})`),a||"none"}const jn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ui=typeof window<"u"&&window.MotionDebug!==void 0,aa=["","X","Y","Z"],K1={visibility:"hidden"},gh=1e3;let G1=0;function ua(r,i,o,a){const{latestValues:c}=i;c[r]&&(o[r]=c[r],i.setStaticValue(r,0),a&&(a[r]=0))}function qp(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:i}=r.options;if(!i)return;const o=sp(i);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:d}=r.options;window.MotionCancelOptimisedAnimation(o,"transform",xe,!(c||d))}const{parent:a}=r;a&&!a.hasCheckedOptimisedAppear&&qp(a)}function Jp({attachResizeListener:r,defaultParent:i,measureScroll:o,checkIsScrollRoot:a,resetTransform:c}){return class{constructor(f={},p=i==null?void 0:i()){this.id=G1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ui&&(jn.totalNodes=jn.resolvedTargetDeltas=jn.recalculatedProjection=0),this.nodes.forEach(X1),this.nodes.forEach(ex),this.nodes.forEach(tx),this.nodes.forEach(Z1),ui&&window.MotionDebug.record(jn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;mthis.root.updateBlockedByResize=!1;r(f,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=j1(k,250),zs.hasAnimatedSinceResize&&(zs.hasAnimatedSinceResize=!1,this.nodes.forEach(vh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:k,hasRelativeTargetChanged:D,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||v.getDefaultTransition()||ox,{onLayoutAnimationStart:N,onLayoutAnimationComplete:O}=v.getProps(),W=!this.targetLayout||!Zp(this.targetLayout,j)||D,K=!k&&D;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||K||k&&(W||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,K);const te={...Ya(A,"layout"),onPlay:N,onComplete:O};(v.shouldReduceMotion||this.options.layoutRoot)&&(te.delay=0,te.type=!1),this.startAnimation(te)}else k||vh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gn(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(nx),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&qp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{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 m=0;m{const Q=te/1e3;xh(w.x,f.x,Q),xh(w.y,f.y,Q),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hi(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ix(this.relativeTarget,this.relativeTargetOrigin,k,Q),K&&W1(this.relativeTarget,K)&&(this.isProjectionDirty=!1),K||(K=_e()),xt(K,this.relativeTarget)),A&&(this.animationValues=v,F1(v,g,this.latestValues,Q,W,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{zs.hasAnimatedSinceResize=!0,this.currentAnimation=A1(0,gh,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:v}=f;if(!(!p||!m||!g)){if(this!==f&&this.layout&&g&&bp(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||_e();const w=dt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+w;const k=dt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+k}xt(p,m),pr(p,v),di(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new H1),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&ua("z",f,g,this.animationValues);for(let v=0;v{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(yh),this.root.sharedNodes.clear()}}}function Q1(r){r.updateLayout()}function Y1(r){var i;const o=((i=r.resumeFrom)===null||i===void 0?void 0:i.snapshot)||r.snapshot;if(r.isLead()&&r.layout&&o&&r.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:c}=r.layout,{animationType:d}=r.options,f=o.source!==r.layout.source;d==="size"?wt(w=>{const k=f?o.measuredBox[w]:o.layoutBox[w],D=dt(k);k.min=a[w].min,k.max=k.min+D}):bp(d,o.layoutBox,a)&&wt(w=>{const k=f?o.measuredBox[w]:o.layoutBox[w],D=dt(a[w]);k.max=k.min+D,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[w].max=r.relativeTarget[w].min+D)});const p=dr();di(p,a,o.layoutBox);const m=dr();f?di(m,r.applyTransform(c,!0),o.measuredBox):di(m,a,o.layoutBox);const g=!Xp(p);let v=!1;if(!r.resumeFrom){const w=r.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:k,layout:D}=w;if(k&&D){const j=_e();hi(j,o.layoutBox,k.layoutBox);const A=_e();hi(A,a,D.layoutBox),Zp(j,A)||(v=!0),w.options.layoutRoot&&(r.relativeTarget=A,r.relativeTargetOrigin=j,r.relativeParent=w)}}}r.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:m,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:v})}else if(r.isLead()){const{onExitComplete:a}=r.options;a&&a()}r.options.transition=void 0}function X1(r){ui&&jn.totalNodes++,r.parent&&(r.isProjecting()||(r.isProjectionDirty=r.parent.isProjectionDirty),r.isSharedProjectionDirty||(r.isSharedProjectionDirty=!!(r.isProjectionDirty||r.parent.isProjectionDirty||r.parent.isSharedProjectionDirty)),r.isTransformDirty||(r.isTransformDirty=r.parent.isTransformDirty))}function Z1(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function q1(r){r.clearSnapshot()}function yh(r){r.clearMeasurements()}function J1(r){r.isLayoutDirty=!1}function b1(r){const{visualElement:i}=r.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),r.resetTransform()}function vh(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function ex(r){r.resolveTargetDelta()}function tx(r){r.calcProjection()}function nx(r){r.resetSkewAndRotation()}function rx(r){r.removeLeadSnapshot()}function xh(r,i,o){r.translate=Ce(i.translate,0,o),r.scale=Ce(i.scale,1,o),r.origin=i.origin,r.originPoint=i.originPoint}function wh(r,i,o,a){r.min=Ce(i.min,o.min,a),r.max=Ce(i.max,o.max,a)}function ix(r,i,o,a){wh(r.x,i.x,o.x,a),wh(r.y,i.y,o.y,a)}function sx(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const ox={duration:.45,ease:[.4,0,.1,1]},Sh=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),kh=Sh("applewebkit/")&&!Sh("chrome/")?Math.round:ft;function Th(r){r.min=kh(r.min),r.max=kh(r.max)}function lx(r){Th(r.x),Th(r.y)}function bp(r,i,o){return r==="position"||r==="preserve-aspect"&&!c1(ph(i),ph(o),.2)}function ax(r){var i;return r!==r.root&&((i=r.scroll)===null||i===void 0?void 0:i.wasRoot)}const ux=Jp({attachResizeListener:(r,i)=>vi(r,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ca={current:void 0},em=Jp({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!ca.current){const r=new ux({});r.mount(window),r.setOptions({layoutScroll:!0}),ca.current=r}return ca.current},resetTransform:(r,i)=>{r.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),cx={pan:{Feature:E1},drag:{Feature:C1,ProjectionNode:em,MeasureLayout:Gp}};function Ph(r,i,o){const{props:a}=r;r.animationState&&a.whileHover&&r.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,d=a[c];d&&xe.postRender(()=>d(i,ki(i)))}class fx extends vn{mount(){const{current:i}=this.node;i&&(this.unmount=cv(i,o=>(Ph(this.node,o,"Start"),a=>Ph(this.node,a,"End"))))}unmount(){}}class dx extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Si(vi(this.node.current,"focus",()=>this.onFocus()),vi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ch(r,i,o){const{props:a}=r;r.animationState&&a.whileTap&&r.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),d=a[c];d&&xe.postRender(()=>d(i,ki(i)))}class hx extends vn{mount(){const{current:i}=this.node;i&&(this.unmount=pv(i,o=>(Ch(this.node,o,"Start"),(a,{success:c})=>Ch(this.node,a,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ma=new WeakMap,fa=new WeakMap,px=r=>{const i=Ma.get(r.target);i&&i(r)},mx=r=>{r.forEach(px)};function gx({root:r,...i}){const o=r||document;fa.has(o)||fa.set(o,{});const a=fa.get(o),c=JSON.stringify(i);return a[c]||(a[c]=new IntersectionObserver(mx,{root:r,...i})),a[c]}function yx(r,i,o){const a=gx(i);return Ma.set(r,o),a.observe(r),()=>{Ma.delete(r),a.unobserve(r)}}const vx={some:0,all:1};class xx extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:o,margin:a,amount:c="some",once:d}=i,f={root:o?o.current:void 0,rootMargin:a,threshold:typeof c=="number"?c:vx[c]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:w}=this.node.getProps(),k=g?v:w;k&&k(m)};return yx(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:o}=this.node;["amount","margin","root"].some(wx(i,o))&&this.startObserver()}unmount(){}}function wx({viewport:r={}},{viewport:i={}}={}){return o=>r[o]!==i[o]}const Sx={inView:{Feature:xx},tap:{Feature:hx},focus:{Feature:dx},hover:{Feature:fx}},kx={layout:{ProjectionNode:em,MeasureLayout:Gp}},Aa={current:null},tm={current:!1};function Tx(){if(tm.current=!0,!!La)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),i=()=>Aa.current=r.matches;r.addListener(i),i()}else Aa.current=!1}const Px=[...Ep,Ke,yn],Cx=r=>Px.find(Cp(r)),Eh=new WeakMap;function Ex(r,i,o){for(const a in i){const c=i[a],d=o[a];if(Ge(c))r.addValue(a,c);else if(Ge(d))r.addValue(a,gi(c,{owner:r}));else if(d!==c)if(r.hasValue(a)){const f=r.getValue(a);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=r.getStaticValue(a);r.addValue(a,gi(f!==void 0?f:c,{owner:r}))}}for(const a in o)i[a]===void 0&&r.removeValue(a);return i}const Rh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Rx{scrapeMotionValuesFromProps(i,o,a){return{}}constructor({parent:i,props:o,presenceContext:a,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ou,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.renderScheduledAt=0,this.scheduleRender=()=>{const D=Ft.now();this.renderScheduledAtthis.bindToMotionValue(a,o)),tm.current||Tx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Aa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Eh.delete(this.current),this.projection&&this.projection.unmount(),gn(this.notifyUpdate),gn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const o=this.features[i];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(i,o){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const a=In.has(i),c=o.on("change",p=>{this.latestValues[i]=p,this.props.onUpdate&&xe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),d=o.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,o)),this.valueSubscriptions.set(i,()=>{c(),d(),f&&f(),o.owner&&o.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in gr){const o=gr[i];if(!o)continue;const{isEnabled:a,Feature:c}=o;if(!this.features[i]&&c&&a(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_e()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,o){this.latestValues[i]=o}update(i,o){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;ao.variantChildren.delete(i)}addValue(i,o){const a=this.values.get(i);o!==a&&(a&&this.removeValue(i),this.bindToMotionValue(i,o),this.values.set(i,o),this.latestValues[i]=o.get())}removeValue(i){this.values.delete(i);const o=this.valueSubscriptions.get(i);o&&(o(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,o){if(this.props.values&&this.props.values[i])return this.props.values[i];let a=this.values.get(i);return a===void 0&&o!==void 0&&(a=gi(o===null?void 0:o,{owner:this}),this.addValue(i,a)),a}readValue(i,o){var a;let c=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(a=this.getBaseTargetFromProps(this.props,i))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,i,this.options);return c!=null&&(typeof c=="string"&&(Tp(c)||pp(c))?c=parseFloat(c):!Cx(c)&&yn.test(o)&&(c=wp(i,o)),this.setBaseTarget(i,Ge(c)?c.get():c)),Ge(c)?c.get():c}setBaseTarget(i,o){this.baseTarget[i]=o}getBaseTarget(i){var o;const{initial:a}=this.props;let c;if(typeof a=="string"||typeof a=="object"){const f=Ba(this.props,a,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);f&&(c=f[i])}if(a&&c!==void 0)return c;const d=this.getBaseTargetFromProps(this.props,i);return d!==void 0&&!Ge(d)?d:this.initialValues[i]!==void 0&&c===void 0?void 0:this.baseTarget[i]}on(i,o){return this.events[i]||(this.events[i]=new eu),this.events[i].add(o)}notify(i,...o){this.events[i]&&this.events[i].notify(...o)}}class nm extends Rx{constructor(){super(...arguments),this.KeyframeResolver=Rp}sortInstanceNodePosition(i,o){return i.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(i,o){return i.style?i.style[o]:void 0}removeValueFromRenderState(i,{vars:o,style:a}){delete o[i],delete a[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Ge(i)&&(this.childSubscription=i.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}function Dx(r){return window.getComputedStyle(r)}class Mx extends nm{constructor(){super(...arguments),this.type="html",this.renderInstance=Hh}readValueFromInstance(i,o){if(In.has(o)){const a=su(o);return a&&a.default||0}else{const a=Dx(i),c=(Bh(o)?a.getPropertyValue(o):a[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:o}){return $p(i,o)}build(i,o,a){Ha(i,o,a.transformTemplate)}scrapeMotionValuesFromProps(i,o,a){return Qa(i,o,a)}}class Ax extends nm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_e}getBaseTargetFromProps(i,o){return i[o]}readValueFromInstance(i,o){if(In.has(o)){const a=su(o);return a&&a.default||0}return o=$h.has(o)?o:Ia(o),i.getAttribute(o)}scrapeMotionValuesFromProps(i,o,a){return Qh(i,o,a)}build(i,o,a){$a(i,o,this.isSVGTag,a.transformTemplate)}renderInstance(i,o,a,c){Kh(i,o,a,c)}mount(i){this.isSVGTag=Ga(i.tagName),super.mount(i)}}const _x=(r,i)=>za(r)?new Ax(i):new Mx(i,{allowProjection:r!==re.Fragment}),Vx=rv({...t1,...Sx,...cx,...kx},_x),da=vy(Vx),q={M:"#00D4FF",one:"#FFD700",N:"#FF00AA",D:"#00FF88",text:"#E8EDF5",textMuted:"#6B7FA3",textDim:"#3A4A6B",border:"rgba(0, 212, 255, 0.2)"},Ys={structure:"⍂",convergence:"⟁",edge:"─",activate:"⚡"},Lx=[{label:"Warm-graph corpus",value:"47.05%",note:"less context churn"},{label:"False starts",value:"14 -> 0",note:"in the recorded corpus"},{label:"Guided follow-throughs",value:"39",note:"measured workflows"},{label:"Recovery loops",value:"12",note:"successful guided recoveries"}],jx=["47.05% less context churn","14 -> 0 false starts","39 guided follow-throughs"],Nx=[{title:"Trace failures into the next file",body:"trace does not stop at ranking suspects. It can expose proof_state and hand off the next file worth opening.",accent:q.M},{title:"Inspect blast radius with state",body:"impact shows affected nodes and whether the seam is still being triaged, actively proven, or ready for edit prep.",accent:q.one},{title:"Resume work without rediscovery",body:"trail_resume restores the investigation with resume_hints, next_focus_node_id, next_open_question, and the next likely tool.",accent:q.N},{title:"Prepare safer connected edits",body:"surgical_context_v2 and validate_plan turn connected changes into a guided workflow instead of a blind multi-file jump.",accent:q.D},{title:"Write with live progress",body:"apply_batch now surfaces phases, progress, SSE events, and follow-up guidance so long-running writes stay understandable.",accent:q.M},{title:"Recover when the agent gets it wrong",body:"Invalid regex, ambiguous scope, stale route, stale trail, and protected-write failures now teach the next valid move.",accent:q.one}],Fx=[{step:"01",title:"Ground the task",body:"Start with trace, seek, impact, or trail_resume to get structure instead of raw-text drift."},{step:"02",title:"Read proof state",body:"Use proof_state to tell whether the agent is still triaging, already proving, or ready to move into edit prep."},{step:"03",title:"Follow the handoff",body:"next_suggested_tool, next_suggested_target, and next_step_hint reduce hesitation and retry loops."},{step:"04",title:"Prepare the edit",body:"Use surgical_context_v2 and validate_plan to pull connected context and expose risky seams before writing."},{step:"05",title:"Write and verify",body:"apply_batch executes with phases, progress, verification verdicts, and runtime-visible completion signals."}],Ix=["m1nd is local-first. It does not need to ship your code to an API to ground navigation.","m1nd is MCP-native. It is built to help agents choose and sequence the next move.","m1nd is not just retrieval. It exposes proof state, continuity, recovery, and execution progress.","m1nd is not for every lookup. Plain tools still win for simple grep, logs, tests, and compiler truth."],Ox=["Less rediscovery across long-running agent tasks","Safer connected edits before anything gets written","More observable workflows when a batch write takes time","Better recovery when the agent picks the wrong tool or shape"],zx=[{title:"Use m1nd when the task is structural",items:["ranked retrieval beats raw text hits","blast radius matters","the edit crosses multiple files","you need continuity across steps"]},{title:"Use plain tools when the task is direct",items:["one-file lookups","simple text search","compiler truth and test output","logs and runtime inspection"]}];function Bx(){return R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2,fontWeight:900,letterSpacing:0},children:[R.jsx("span",{style:{color:q.M},children:"m"}),R.jsx("span",{style:{color:q.one},children:"1"}),R.jsx("span",{style:{color:q.N},children:"n"}),R.jsx("span",{style:{color:q.D},children:"d"})]})}function pn({children:r}){return R.jsx("div",{style:{fontSize:11,letterSpacing:3,textTransform:"uppercase",color:q.textMuted,marginBottom:14},children:r})}function Ux({label:r,value:i,note:o}){return R.jsxs("div",{style:{background:"linear-gradient(180deg, rgba(20,27,45,0.82), rgba(15,20,32,0.74))",border:`1px solid ${q.border}`,borderRadius:18,padding:"22px 20px",minHeight:148,boxShadow:"0 20px 60px rgba(0,0,0,0.22)"},children:[R.jsx("div",{style:{fontSize:12,color:q.textMuted,letterSpacing:2,textTransform:"uppercase",marginBottom:16},children:r}),R.jsx("div",{style:{fontSize:34,lineHeight:1.05,color:q.text,fontWeight:800,marginBottom:10},children:i}),R.jsx("div",{style:{fontSize:13,color:q.textMuted,lineHeight:1.6},children:o})]})}function Wx({title:r,body:i,accent:o}){return R.jsxs("div",{style:{position:"relative",background:"rgba(20,27,45,0.72)",border:`1px solid ${o}25`,borderRadius:20,padding:"24px 22px 22px",minHeight:220,overflow:"hidden"},children:[R.jsx("div",{style:{position:"absolute",inset:0,background:`radial-gradient(circle at top right, ${o}20, transparent 45%)`,pointerEvents:"none"}}),R.jsxs("div",{style:{position:"relative"},children:[R.jsxs("div",{style:{color:o,fontSize:12,letterSpacing:2,textTransform:"uppercase",marginBottom:14},children:[Ys.structure," Product truth"]}),R.jsx("div",{style:{color:q.text,fontSize:22,lineHeight:1.22,fontWeight:700,marginBottom:14},children:r}),R.jsx("div",{style:{color:q.textMuted,fontSize:14,lineHeight:1.75},children:i})]})]})}function Hx({step:r,title:i,body:o}){return R.jsxs("div",{style:{display:"grid",gridTemplateColumns:"88px 1fr",gap:18,alignItems:"start",padding:"22px 0",borderTop:"1px solid rgba(107,127,163,0.18)"},children:[R.jsx("div",{style:{color:q.M,fontSize:14,letterSpacing:2,textTransform:"uppercase"},children:r}),R.jsxs("div",{children:[R.jsx("div",{style:{color:q.text,fontSize:22,fontWeight:700,marginBottom:10},children:i}),R.jsx("div",{style:{color:q.textMuted,fontSize:15,lineHeight:1.8},children:o})]})]})}function $x(){return R.jsx("div",{style:{display:"grid",gap:14},children:Ix.map(r=>R.jsxs("div",{style:{display:"flex",gap:12,alignItems:"flex-start",padding:"16px 18px",background:"rgba(15,20,32,0.7)",border:"1px solid rgba(107,127,163,0.16)",borderRadius:16},children:[R.jsx("div",{style:{color:q.D,marginTop:2},children:Ys.convergence}),R.jsx("div",{style:{color:q.textMuted,fontSize:14,lineHeight:1.75},children:r})]},r))})}function Kx(){return R.jsx("div",{className:"landing-shell",style:{minHeight:"100vh",background:` +`+u.stack}return{value:e,source:t,stack:l,digest:null}}function yl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Dg=typeof WeakMap=="function"?WeakMap:Map;function pf(e,t,n){n=Wt(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){xs||(xs=!0,Ll=s),vl(e,t)},n}function mf(e,t,n){n=Wt(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var l=t.value;n.payload=function(){return s(l)},n.callback=function(){vl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){vl(e,t),typeof s!="function"&&(an===null?an=new Set([this]):an.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),n}function gf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Dg;var l=new Set;s.set(t,l)}else l=s.get(t),l===void 0&&(l=new Set,s.set(t,l));l.has(n)||(l.add(n),e=Ug.bind(null,e,t,n),t.then(e,e))}function yf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vf(e,t,n,s,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Wt(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Ag=ee.ReactCurrentOwner,tt=!1;function Xe(e,t,n,s){t.child=e===null?Oc(t,null,n,s):er(t,e.child,n,s)}function xf(e,t,n,s,l){n=n.render;var u=t.ref;return nr(t,l),s=ul(e,t,n,s,u,l),n=cl(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(Se&&n&&Go(t),t.flags|=1,Xe(e,t,s,l),t.child)}function wf(e,t,n,s,l){if(e===null){var u=n.type;return typeof u=="function"&&!Bl(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Sf(e,t,u,s,l)):(e=Cs(n.type,null,s,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ir,n(h,s)&&e.ref===t.ref)return Ht(e,t,l)}return t.flags|=1,e=dn(u,s),e.ref=t.ref,e.return=t,t.child=e}function Sf(e,t,n,s,l){if(e!==null){var u=e.memoizedProps;if(Ir(u,s)&&e.ref===t.ref)if(tt=!1,t.pendingProps=s=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,Ht(e,t,l)}return xl(e,t,n,s,l)}function kf(e,t,n){var s=t.pendingProps,l=s.children,u=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(or,ct),ct|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(or,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,ge(or,ct),ct|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,ge(or,ct),ct|=s;return Xe(e,t,l,n),t.child}function Tf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xl(e,t,n,s,l){var u=et(n)?wn:Ue.current;return u=Zn(t,u),nr(t,l),n=ul(e,t,n,s,u,l),s=cl(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(Se&&s&&Go(t),t.flags|=1,Xe(e,t,n,l),t.child)}function Pf(e,t,n,s,l){if(et(n)){var u=!0;Zi(t)}else u=!1;if(nr(t,l),t.stateNode===null)ps(e,t),df(t,n,s),gl(t,n,s,l),s=!0;else if(e===null){var h=t.stateNode,y=t.memoizedProps;h.props=y;var x=h.context,E=n.contextType;typeof E=="object"&&E!==null?E=mt(E):(E=et(n)?wn:Ue.current,E=Zn(t,E));var V=n.getDerivedStateFromProps,L=typeof V=="function"||typeof h.getSnapshotBeforeUpdate=="function";L||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==s||x!==E)&&hf(t,h,s,E),sn=!1;var R=t.memoizedState;h.state=R,ss(t,s,h,l),x=t.memoizedState,y!==s||R!==x||be.current||sn?(typeof V=="function"&&(ml(t,n,V,s),x=t.memoizedState),(y=sn||ff(t,n,y,s,R,x,E))?(L||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=x),h.props=s,h.state=x,h.context=E,s=y):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{h=t.stateNode,zc(e,t),y=t.memoizedProps,E=t.type===t.elementType?y:Ct(t.type,y),h.props=E,L=t.pendingProps,R=h.context,x=n.contextType,typeof x=="object"&&x!==null?x=mt(x):(x=et(n)?wn:Ue.current,x=Zn(t,x));var z=n.getDerivedStateFromProps;(V=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==L||R!==x)&&hf(t,h,s,x),sn=!1,R=t.memoizedState,h.state=R,ss(t,s,h,l);var H=t.memoizedState;y!==L||R!==H||be.current||sn?(typeof z=="function"&&(ml(t,n,z,s),H=t.memoizedState),(E=sn||ff(t,n,E,s,R,H,x)||!1)?(V||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(s,H,x),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(s,H,x)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=H),h.props=s,h.state=H,h.context=x,s=E):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),s=!1)}return wl(e,t,n,s,u,l)}function wl(e,t,n,s,l,u){Tf(e,t);var h=(t.flags&128)!==0;if(!s&&!h)return l&&Ac(t,n,!1),Ht(e,t,u);s=t.stateNode,Ag.current=t;var y=h&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&h?(t.child=er(t,e.child,null,u),t.child=er(t,null,y,u)):Xe(e,t,y,u),t.memoizedState=s.state,l&&Ac(t,n,!0),t.child}function Cf(e){var t=e.stateNode;t.pendingContext?Ec(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ec(e,t.context,!1),rl(e,t.containerInfo)}function Ef(e,t,n,s,l){return bn(),Zo(l),t.flags|=256,Xe(e,t,n,s),t.child}var Sl={dehydrated:null,treeContext:null,retryLane:0};function kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Df(e,t,n){var s=t.pendingProps,l=Te.current,u=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(l&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ge(Te,l&1),e===null)return Xo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(h=s.children,e=s.fallback,u?(s=t.mode,u=t.child,h={mode:"hidden",children:h},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=h):u=Es(h,s,0,null),e=Mn(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=kl(n),t.memoizedState=Sl,e):Tl(t,h));if(l=e.memoizedState,l!==null&&(y=l.dehydrated,y!==null))return Rg(e,t,h,s,y,l,n);if(u){u=s.fallback,h=t.mode,l=e.child,y=l.sibling;var x={mode:"hidden",children:s.children};return(h&1)===0&&t.child!==l?(s=t.child,s.childLanes=0,s.pendingProps=x,t.deletions=null):(s=dn(l,x),s.subtreeFlags=l.subtreeFlags&14680064),y!==null?u=dn(y,u):(u=Mn(u,h,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,h=e.child.memoizedState,h=h===null?kl(n):{baseLanes:h.baseLanes|n,cachePool:null,transitions:h.transitions},u.memoizedState=h,u.childLanes=e.childLanes&~n,t.memoizedState=Sl,s}return u=e.child,e=u.sibling,s=dn(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Tl(e,t){return t=Es({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hs(e,t,n,s){return s!==null&&Zo(s),er(t,e.child,null,n),e=Tl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rg(e,t,n,s,l,u,h){if(n)return t.flags&256?(t.flags&=-257,s=yl(Error(o(422))),hs(e,t,h,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,l=t.mode,s=Es({mode:"visible",children:s.children},l,0,null),u=Mn(u,l,h,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&er(t,e.child,null,h),t.child.memoizedState=kl(h),t.memoizedState=Sl,u);if((t.mode&1)===0)return hs(e,t,h,null);if(l.data==="$!"){if(s=l.nextSibling&&l.nextSibling.dataset,s)var y=s.dgst;return s=y,u=Error(o(419)),s=yl(u,s,void 0),hs(e,t,h,s)}if(y=(h&e.childLanes)!==0,tt||y){if(s=Fe,s!==null){switch(h&-h){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(s.suspendedLanes|h))!==0?0:l,l!==0&&l!==u.retryLane&&(u.retryLane=l,Ut(e,l),At(s,e,l,-1))}return zl(),s=yl(Error(o(421))),hs(e,t,h,s)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Wg.bind(null,e),l._reactRetry=t,null):(e=u.treeContext,ut=en(l.nextSibling),at=t,Se=!0,Pt=null,e!==null&&(ht[pt++]=zt,ht[pt++]=Bt,ht[pt++]=Sn,zt=e.id,Bt=e.overflow,Sn=t),t=Tl(t,s.children),t.flags|=4096,t)}function Af(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),el(e.return,t,n)}function Pl(e,t,n,s,l){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:l}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=l)}function Rf(e,t,n){var s=t.pendingProps,l=s.revealOrder,u=s.tail;if(Xe(e,t,s.children,n),s=Te.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Af(e,n,t);else if(e.tag===19)Af(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(ge(Te,s),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&os(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Pl(t,!1,l,n,u);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&os(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Pl(t,!0,n,null,u);break;case"together":Pl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ps(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),En|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mg(e,t,n){switch(t.tag){case 3:Cf(t),bn();break;case 5:Wc(t);break;case 1:et(t.type)&&Zi(t);break;case 4:rl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,l=t.memoizedProps.value;ge(ns,s._currentValue),s._currentValue=l;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ge(Te,Te.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Df(e,t,n):(ge(Te,Te.current&1),e=Ht(e,t,n),e!==null?e.sibling:null);ge(Te,Te.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return Rf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ge(Te,Te.current),s)break;return null;case 22:case 23:return t.lanes=0,kf(e,t,n)}return Ht(e,t,n)}var Mf,Cl,_f,Vf;Mf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Cl=function(){},_f=function(e,t,n,s){var l=e.memoizedProps;if(l!==s){e=t.stateNode,Pn(Vt.current);var u=null;switch(n){case"input":l=bs(e,l),s=bs(e,s),u=[];break;case"select":l=B({},l,{value:void 0}),s=B({},s,{value:void 0}),u=[];break;case"textarea":l=no(e,l),s=no(e,s),u=[];break;default:typeof l.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Qi)}io(n,s);var h;n=null;for(E in l)if(!s.hasOwnProperty(E)&&l.hasOwnProperty(E)&&l[E]!=null)if(E==="style"){var y=l[E];for(h in y)y.hasOwnProperty(h)&&(n||(n={}),n[h]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(c.hasOwnProperty(E)?u||(u=[]):(u=u||[]).push(E,null));for(E in s){var x=s[E];if(y=l!=null?l[E]:void 0,s.hasOwnProperty(E)&&x!==y&&(x!=null||y!=null))if(E==="style")if(y){for(h in y)!y.hasOwnProperty(h)||x&&x.hasOwnProperty(h)||(n||(n={}),n[h]="");for(h in x)x.hasOwnProperty(h)&&y[h]!==x[h]&&(n||(n={}),n[h]=x[h])}else n||(u||(u=[]),u.push(E,n)),n=x;else E==="dangerouslySetInnerHTML"?(x=x?x.__html:void 0,y=y?y.__html:void 0,x!=null&&y!==x&&(u=u||[]).push(E,x)):E==="children"?typeof x!="string"&&typeof x!="number"||(u=u||[]).push(E,""+x):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(c.hasOwnProperty(E)?(x!=null&&E==="onScroll"&&ye("scroll",e),u||y===x||(u=[])):(u=u||[]).push(E,x))}n&&(u=u||[]).push("style",n);var E=u;(t.updateQueue=E)&&(t.flags|=4)}},Vf=function(e,t,n,s){n!==s&&(t.flags|=4)};function br(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags&14680064,s|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function _g(e,t,n){var s=t.pendingProps;switch(Qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return et(t.type)&&Xi(),He(t),null;case 3:return s=t.stateNode,rr(),ve(be),ve(Ue),ol(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(es(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pt!==null&&(Fl(Pt),Pt=null))),Cl(e,t),He(t),null;case 5:il(t);var l=Pn(Yr.current);if(n=t.type,e!==null&&t.stateNode!=null)_f(e,t,n,s,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(e=Pn(Vt.current),es(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[_t]=t,s[Hr]=u,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",s),ye("close",s);break;case"iframe":case"object":case"embed":ye("load",s);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=h.createElement(n,{is:s.is}):(e=h.createElement(n),n==="select"&&(h=e,s.multiple?h.multiple=!0:s.size&&(h.size=s.size))):e=h.createElementNS(e,n),e[_t]=t,e[Hr]=s,Mf(e,t,!1,!1),t.stateNode=e;e:{switch(h=so(n,s),n){case"dialog":ye("cancel",e),ye("close",e),l=s;break;case"iframe":case"object":case"embed":ye("load",e),l=s;break;case"video":case"audio":for(l=0;llr&&(t.flags|=128,s=!0,br(u,!1),t.lanes=4194304)}else{if(!s)if(e=os(h),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),br(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Se)return He(t),null}else 2*Re()-u.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,s=!0,br(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(n=u.last,n!==null?n.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Re(),t.sibling=null,n=Te.current,ge(Te,s?n&1|2:n&1),t):(He(t),null);case 22:case 23:return Il(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(ct&1073741824)!==0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Vg(e,t){switch(Qo(t),t.tag){case 1:return et(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),ve(be),ve(Ue),ol(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return il(t),null;case 13:if(ve(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Te),null;case 4:return rr(),null;case 10:return bo(t.type._context),null;case 22:case 23:return Il(),null;case 24:return null;default:return null}}var ms=!1,$e=!1,Lg=typeof WeakSet=="function"?WeakSet:Set,U=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){De(e,t,s)}else n.current=null}function El(e,t,n){try{n()}catch(s){De(e,t,s)}}var Lf=!1;function jg(e,t){if(Io=Ni,e=cc(),Mo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,y=-1,x=-1,E=0,V=0,L=e,R=null;t:for(;;){for(var z;L!==n||l!==0&&L.nodeType!==3||(y=h+l),L!==u||s!==0&&L.nodeType!==3||(x=h+s),L.nodeType===3&&(h+=L.nodeValue.length),(z=L.firstChild)!==null;)R=L,L=z;for(;;){if(L===e)break t;if(R===n&&++E===l&&(y=h),R===u&&++V===s&&(x=h),(z=L.nextSibling)!==null)break;L=R,R=L.parentNode}L=z}n=y===-1||x===-1?null:{start:y,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(zo={focusedElem:e,selectionRange:n},Ni=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var H=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(H!==null){var $=H.memoizedProps,Me=H.memoizedState,P=t.stateNode,S=P.getSnapshotBeforeUpdate(t.elementType===t.type?$:Ct(t.type,$),Me);P.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(F){De(t,t.return,F)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return H=Lf,Lf=!1,H}function ei(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&El(t,n,u)}l=l.next}while(l!==s)}}function gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Dl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Hr],delete t[Ho],delete t[gg],delete t[yg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nf(e){return e.tag===5||e.tag===3||e.tag===4}function Ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Al(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qi));else if(s!==4&&(e=e.child,e!==null))for(Al(e,t,n),e=e.sibling;e!==null;)Al(e,t,n),e=e.sibling}function Rl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Rl(e,t,n),e=e.sibling;e!==null;)Rl(e,t,n),e=e.sibling}var Ie=null,Et=!1;function ln(e,t,n){for(n=n.child;n!==null;)Of(e,t,n),n=n.sibling}function Of(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Ri,n)}catch{}switch(n.tag){case 5:$e||sr(n,t);case 6:var s=Ie,l=Et;Ie=null,ln(e,t,n),Ie=s,Et=l,Ie!==null&&(Et?(e=Ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(Et?(e=Ie,n=n.stateNode,e.nodeType===8?Wo(e.parentNode,n):e.nodeType===1&&Wo(e,n),Vr(e)):Wo(Ie,n.stateNode));break;case 4:s=Ie,l=Et,Ie=n.stateNode.containerInfo,Et=!0,ln(e,t,n),Ie=s,Et=l;break;case 0:case 11:case 14:case 15:if(!$e&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var u=l,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&El(n,t,h),l=l.next}while(l!==s)}ln(e,t,n);break;case 1:if(!$e&&(sr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(y){De(n,t,y)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?($e=(s=$e)||n.memoizedState!==null,ln(e,t,n),$e=s):ln(e,t,n);break;default:ln(e,t,n)}}function If(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lg),t.forEach(function(s){var l=Hg.bind(null,e,s);n.has(s)||(n.add(s),s.then(l,l))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var s=0;sl&&(l=h),s&=~u}if(s=l,s=Re()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Fg(s/1960))-s,10e?16:e,un===null)var s=!1;else{if(e=un,un=null,Ss=0,(ae&6)!==0)throw Error(o(331));var l=ae;for(ae|=4,U=e.current;U!==null;){var u=U,h=u.child;if((U.flags&16)!==0){var y=u.deletions;if(y!==null){for(var x=0;xRe()-Vl?An(e,0):_l|=n),rt(e,t)}function qf(e,t){t===0&&((e.mode&1)===0?t=1:(t=_i,_i<<=1,(_i&130023424)===0&&(_i=4194304)));var n=Ze();e=Ut(e,t),e!==null&&(Dr(e,t,n),rt(e,n))}function Wg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qf(e,n)}function Hg(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(o(314))}s!==null&&s.delete(t),qf(e,n)}var Jf;Jf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)tt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return tt=!1,Mg(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,Se&&(t.flags&1048576)!==0&&Mc(t,bi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ps(e,t),e=t.pendingProps;var l=Zn(t,Ue.current);nr(t,n),l=ul(null,t,s,e,l,n);var u=cl();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(s)?(u=!0,Zi(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,nl(t),l.updater=ds,t.stateNode=l,l._reactInternals=t,gl(t,s,e,n),t=wl(null,t,s,!0,u,n)):(t.tag=0,Se&&u&&Go(t),Xe(null,t,l,n),t=t.child),t;case 16:s=t.elementType;e:{switch(ps(e,t),e=t.pendingProps,l=s._init,s=l(s._payload),t.type=s,l=t.tag=Kg(s),e=Ct(s,e),l){case 0:t=xl(null,t,s,e,n);break e;case 1:t=Pf(null,t,s,e,n);break e;case 11:t=xf(null,t,s,e,n);break e;case 14:t=wf(null,t,s,Ct(s.type,e),n);break e}throw Error(o(306,s,""))}return t;case 0:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),xl(e,t,s,l,n);case 1:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),Pf(e,t,s,l,n);case 3:e:{if(Cf(t),e===null)throw Error(o(387));s=t.pendingProps,u=t.memoizedState,l=u.element,zc(e,t),ss(t,s,null,n);var h=t.memoizedState;if(s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=ir(Error(o(423)),t),t=Ef(e,t,s,n,l);break e}else if(s!==l){l=ir(Error(o(424)),t),t=Ef(e,t,s,n,l);break e}else for(ut=en(t.stateNode.containerInfo.firstChild),at=t,Se=!0,Pt=null,n=Oc(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),s===l){t=Ht(e,t,n);break e}Xe(e,t,s,n)}t=t.child}return t;case 5:return Wc(t),e===null&&Xo(t),s=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,h=l.children,Bo(s,l)?h=null:u!==null&&Bo(s,u)&&(t.flags|=32),Tf(e,t),Xe(e,t,h,n),t.child;case 6:return e===null&&Xo(t),null;case 13:return Df(e,t,n);case 4:return rl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=er(t,null,s,n):Xe(e,t,s,n),t.child;case 11:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),xf(e,t,s,l,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,l=t.pendingProps,u=t.memoizedProps,h=l.value,ge(ns,s._currentValue),s._currentValue=h,u!==null)if(Tt(u.value,h)){if(u.children===l.children&&!be.current){t=Ht(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){h=u.child;for(var x=y.firstContext;x!==null;){if(x.context===s){if(u.tag===1){x=Wt(-1,n&-n),x.tag=2;var E=u.updateQueue;if(E!==null){E=E.shared;var V=E.pending;V===null?x.next=x:(x.next=V.next,V.next=x),E.pending=x}}u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),el(u.return,n,t),y.lanes|=n;break}x=x.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(o(341));h.lanes|=n,y=h.alternate,y!==null&&(y.lanes|=n),el(h,n,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}Xe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,s=t.pendingProps.children,nr(t,n),l=mt(l),s=s(l),t.flags|=1,Xe(e,t,s,n),t.child;case 14:return s=t.type,l=Ct(s,t.pendingProps),l=Ct(s.type,l),wf(e,t,s,l,n);case 15:return Sf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Ct(s,l),ps(e,t),t.tag=1,et(s)?(e=!0,Zi(t)):e=!1,nr(t,n),df(t,s,l),gl(t,s,l,n),wl(null,t,s,!0,e,n);case 19:return Rf(e,t,n);case 22:return kf(e,t,n)}throw Error(o(156,t.tag))};function bf(e,t){return _u(e,t)}function $g(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,s){return new $g(e,t,n,s)}function Bl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kg(e){if(typeof e=="function")return Bl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===st)return 11;if(e===St)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cs(e,t,n,s,l,u){var h=2;if(s=e,typeof e=="function")Bl(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case ue:return Mn(n.children,l,u,t);case q:h=8,l|=8;break;case ke:return e=vt(12,n,t,l|2),e.elementType=ke,e.lanes=u,e;case Qe:return e=vt(13,n,t,l),e.elementType=Qe,e.lanes=u,e;case Je:return e=vt(19,n,t,l),e.elementType=Je,e.lanes=u,e;case ie:return Es(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ee:h=10;break e;case qe:h=9;break e;case st:h=11;break e;case St:h=14;break e;case Ye:h=16,s=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=vt(h,n,t,l),t.elementType=e,t.type=s,t.lanes=u,t}function Mn(e,t,n,s){return e=vt(7,e,s,t),e.lanes=n,e}function Es(e,t,n,s){return e=vt(22,e,s,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function Wl(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gg(e,t,n,s,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mo(0),this.expirationTimes=mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mo(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Hl(e,t,n,s,l,u,h,y,x){return e=new Gg(e,t,n,y,x),t===1?(t=1,u===!0&&(t|=8)):t=0,u=vt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nl(u),e}function Qg(e,t,n){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Xl.exports=iy(),Xl.exports}var hd;function oy(){if(hd)return Ls;hd=1;var r=sy();return Ls.createRoot=r.createRoot,Ls.hydrateRoot=r.hydrateRoot,Ls}var ly=oy();const Ah=ne.createContext({});function ay(r){const i=ne.useRef(null);return i.current===null&&(i.current=r()),i.current}const Va=ne.createContext(null),Rh=ne.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"});function uy(r=!0){const i=ne.useContext(Va);if(i===null)return[!0,null];const{isPresent:o,onExitComplete:a,register:c}=i,d=ne.useId();ne.useEffect(()=>{r&&c(d)},[r]);const f=ne.useCallback(()=>r&&a&&a(d),[d,a,r]);return!o&&a?[!1,f]:[!0]}const La=typeof window<"u",cy=La?ne.useLayoutEffect:ne.useEffect,ft=r=>r;let Mh=ft;function ja(r){let i;return()=>(i===void 0&&(i=r()),i)}const mr=(r,i,o)=>{const a=i-r;return a===0?1:(o-r)/a},Kt=r=>r*1e3,Gt=r=>r/1e3,fy={useManualTiming:!1};function dy(r){let i=new Set,o=new Set,a=!1,c=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){d.has(g)&&(m.schedule(g),r()),g(f)}const m={schedule:(g,v=!1,w=!1)=>{const D=w&&a?i:o;return v&&d.add(g),D.has(g)||D.add(g),g},cancel:g=>{o.delete(g),d.delete(g)},process:g=>{if(f=g,a){c=!0;return}a=!0,[i,o]=[o,i],i.forEach(p),i.clear(),a=!1,c&&(c=!1,m.process(g))}};return m}const js=["read","resolveKeyframes","update","preRender","render","postRender"],hy=40;function _h(r,i){let o=!1,a=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>o=!0,f=js.reduce((I,W)=>(I[W]=dy(d),I),{}),{read:p,resolveKeyframes:m,update:g,preRender:v,render:w,postRender:k}=f,D=()=>{const I=performance.now();o=!1,c.delta=a?1e3/60:Math.max(Math.min(I-c.timestamp,hy),1),c.timestamp=I,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),v.process(c),w.process(c),k.process(c),c.isProcessing=!1,o&&i&&(a=!1,r(D))},j=()=>{o=!0,a=!0,c.isProcessing||r(D)};return{schedule:js.reduce((I,W)=>{const K=f[W];return I[W]=(ee,Q=!1,te=!1)=>(o||j(),K.schedule(ee,Q,te)),I},{}),cancel:I=>{for(let W=0;Wpd[r].some(o=>!!i[o])};function py(r){for(const i in r)gr[i]={...gr[i],...r[i]}}const my=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Us(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||my.has(r)}let Lh=r=>!Us(r);function gy(r){r&&(Lh=i=>i.startsWith("on")?!Us(i):r(i))}try{gy(require("@emotion/is-prop-valid").default)}catch{}function yy(r,i,o){const a={};for(const c in r)c==="values"&&typeof r.values=="object"||(Lh(c)||o===!0&&Us(c)||!i&&!Us(c)||r.draggable&&c.startsWith("onDrag"))&&(a[c]=r[c]);return a}function vy(r){if(typeof Proxy>"u")return r;const i=new Map,o=(...a)=>r(...a);return new Proxy(o,{get:(a,c)=>c==="create"?r:(i.has(c)||i.set(c,r(c)),i.get(c))})}const Ys=ne.createContext({});function pi(r){return typeof r=="string"||Array.isArray(r)}function Xs(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}const Na=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fa=["initial",...Na];function Zs(r){return Xs(r.animate)||Fa.some(i=>pi(r[i]))}function jh(r){return!!(Zs(r)||r.variants)}function xy(r,i){if(Zs(r)){const{initial:o,animate:a}=r;return{initial:o===!1||pi(o)?o:void 0,animate:pi(a)?a:void 0}}return r.inherit!==!1?i:{}}function wy(r){const{initial:i,animate:o}=xy(r,ne.useContext(Ys));return ne.useMemo(()=>({initial:i,animate:o}),[md(i),md(o)])}function md(r){return Array.isArray(r)?r.join(" "):r}const Sy=Symbol.for("motionComponentSymbol");function cr(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function ky(r,i,o){return ne.useCallback(a=>{a&&r.onMount&&r.onMount(a),i&&(a?i.mount(a):i.unmount()),o&&(typeof o=="function"?o(a):cr(o)&&(o.current=a))},[i])}const Oa=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ty="framerAppearId",Nh="data-"+Oa(Ty),{schedule:Ia}=_h(queueMicrotask,!1),Fh=ne.createContext({});function Py(r,i,o,a,c){var d,f;const{visualElement:p}=ne.useContext(Ys),m=ne.useContext(Vh),g=ne.useContext(Va),v=ne.useContext(Rh).reducedMotion,w=ne.useRef(null);a=a||m.renderer,!w.current&&a&&(w.current=a(r,{visualState:i,parent:p,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const k=w.current,D=ne.useContext(Fh);k&&!k.projection&&c&&(k.type==="html"||k.type==="svg")&&Cy(w.current,o,c,D);const j=ne.useRef(!1);ne.useInsertionEffect(()=>{k&&j.current&&k.update(o,g)});const M=o[Nh],N=ne.useRef(!!M&&!(!((d=window.MotionHandoffIsComplete)===null||d===void 0)&&d.call(window,M))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,M)));return cy(()=>{k&&(j.current=!0,window.MotionIsMounted=!0,k.updateFeatures(),Ia.render(k.render),N.current&&k.animationState&&k.animationState.animateChanges())}),ne.useEffect(()=>{k&&(!N.current&&k.animationState&&k.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var I;(I=window.MotionHandoffMarkAsComplete)===null||I===void 0||I.call(window,M)}),N.current=!1))}),k}function Cy(r,i,o,a){const{layoutId:c,layout:d,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g}=i;r.projection=new o(r.latestValues,i["data-framer-portal-id"]?void 0:Oh(r.parent)),r.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||p&&cr(p),visualElement:r,animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:g})}function Oh(r){if(r)return r.options.allowProjection!==!1?r.projection:Oh(r.parent)}function Ey({preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:a,Component:c}){var d,f;r&&py(r);function p(g,v){let w;const k={...ne.useContext(Rh),...g,layoutId:Dy(g)},{isStatic:D}=k,j=wy(g),M=a(g,D);if(!D&&La){Ay();const N=Ry(k);w=N.MeasureLayout,j.visualElement=Py(c,M,k,i,N.ProjectionNode)}return A.jsxs(Ys.Provider,{value:j,children:[w&&j.visualElement?A.jsx(w,{visualElement:j.visualElement,...k}):null,o(c,g,ky(M,j.visualElement,v),M,D,j.visualElement)]})}p.displayName=`motion.${typeof c=="string"?c:`create(${(f=(d=c.displayName)!==null&&d!==void 0?d:c.name)!==null&&f!==void 0?f:""})`}`;const m=ne.forwardRef(p);return m[Sy]=c,m}function Dy({layoutId:r}){const i=ne.useContext(Ah).id;return i&&r!==void 0?i+"-"+r:r}function Ay(r,i){ne.useContext(Vh).strict}function Ry(r){const{drag:i,layout:o}=gr;if(!i&&!o)return{};const a={...i,...o};return{MeasureLayout:i!=null&&i.isEnabled(r)||o!=null&&o.isEnabled(r)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const My=["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 za(r){return typeof r!="string"||r.includes("-")?!1:!!(My.indexOf(r)>-1||/[A-Z]/u.test(r))}function gd(r){const i=[{},{}];return r==null||r.values.forEach((o,a)=>{i[0][a]=o.get(),i[1][a]=o.getVelocity()}),i}function Ba(r,i,o,a){if(typeof i=="function"){const[c,d]=gd(a);i=i(o!==void 0?o:r.custom,c,d)}if(typeof i=="string"&&(i=r.variants&&r.variants[i]),typeof i=="function"){const[c,d]=gd(a);i=i(o!==void 0?o:r.custom,c,d)}return i}const pa=r=>Array.isArray(r),_y=r=>!!(r&&typeof r=="object"&&r.mix&&r.toValue),Vy=r=>pa(r)?r[r.length-1]||0:r,Ge=r=>!!(r&&r.getVelocity);function Os(r){const i=Ge(r)?r.get():r;return _y(i)?i.toValue():i}function Ly({scrapeMotionValuesFromProps:r,createRenderState:i,onUpdate:o},a,c,d){const f={latestValues:jy(a,c,d,r),renderState:i()};return o&&(f.onMount=p=>o({props:a,current:p,...f}),f.onUpdate=p=>o(p)),f}const Ih=r=>(i,o)=>{const a=ne.useContext(Ys),c=ne.useContext(Va),d=()=>Ly(r,i,a,c);return o?d():ay(d)};function jy(r,i,o,a){const c={},d=a(r,{});for(const k in d)c[k]=Os(d[k]);let{initial:f,animate:p}=r;const m=Zs(r),g=jh(r);i&&g&&!m&&r.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=o?o.initial===!1:!1;v=v||f===!1;const w=v?p:f;if(w&&typeof w!="boolean"&&!Xs(w)){const k=Array.isArray(w)?w:[w];for(let D=0;Di=>typeof i=="string"&&i.startsWith(r),Bh=zh("--"),Ny=zh("var(--"),Ua=r=>Ny(r)?Fy.test(r.split("/*")[0].trim()):!1,Fy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Uh=(r,i)=>i&&typeof r=="number"?i.transform(r):r,Qt=(r,i,o)=>o>i?i:otypeof r=="number",parse:parseFloat,transform:r=>r},mi={...xr,transform:r=>Qt(0,1,r)},Ns={...xr,default:1},xi=r=>({test:i=>typeof i=="string"&&i.endsWith(r)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${r}`}),pn=xi("deg"),Nt=xi("%"),J=xi("px"),Oy=xi("vh"),Iy=xi("vw"),yd={...Nt,parse:r=>Nt.parse(r)/100,transform:r=>Nt.transform(r*100)},zy={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,backgroundPositionX:J,backgroundPositionY:J},By={rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:Ns,scaleX:Ns,scaleY:Ns,scaleZ:Ns,skew:pn,skewX:pn,skewY:pn,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:mi,originX:yd,originY:yd,originZ:J},vd={...xr,transform:Math.round},Wa={...zy,...By,zIndex:vd,size:J,fillOpacity:mi,strokeOpacity:mi,numOctaves:vd},Uy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wy=vr.length;function Hy(r,i,o){let a="",c=!0;for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),Wh=()=>({...Ka(),attrs:{}}),Ga=r=>typeof r=="string"&&r.toLowerCase()==="svg";function Hh(r,{style:i,vars:o},a,c){Object.assign(r.style,i,c&&c.getProjectionStyles(a));for(const d in o)r.style.setProperty(d,o[d])}const $h=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 Kh(r,i,o,a){Hh(r,i,void 0,a);for(const c in i.attrs)r.setAttribute($h.has(c)?c:Oa(c),i.attrs[c])}const Ws={};function Yy(r){Object.assign(Ws,r)}function Gh(r,{layout:i,layoutId:o}){return On.has(r)||r.startsWith("origin")||(i||o!==void 0)&&(!!Ws[r]||r==="opacity")}function Qa(r,i,o){var a;const{style:c}=r,d={};for(const f in c)(Ge(c[f])||i.style&&Ge(i.style[f])||Gh(f,r)||((a=o==null?void 0:o.getValue(f))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(d[f]=c[f]);return d}function Qh(r,i,o){const a=Qa(r,i,o);for(const c in r)if(Ge(r[c])||Ge(i[c])){const d=vr.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;a[d]=r[c]}return a}function Xy(r,i){try{i.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}}const wd=["x","y","width","height","cx","cy","r"],Zy={useVisualState:Ih({scrapeMotionValuesFromProps:Qh,createRenderState:Wh,onUpdate:({props:r,prevProps:i,current:o,renderState:a,latestValues:c})=>{if(!o)return;let d=!!r.drag;if(!d){for(const p in c)if(On.has(p)){d=!0;break}}if(!d)return;let f=!i;if(i)for(let p=0;p{Xy(o,a),xe.render(()=>{$a(a,c,Ga(o.tagName),r.transformTemplate),Kh(o,a)})})}})},qy={useVisualState:Ih({scrapeMotionValuesFromProps:Qa,createRenderState:Ka})};function Yh(r,i,o){for(const a in i)!Ge(i[a])&&!Gh(a,o)&&(r[a]=i[a])}function Jy({transformTemplate:r},i){return ne.useMemo(()=>{const o=Ka();return Ha(o,i,r),Object.assign({},o.vars,o.style)},[i])}function by(r,i){const o=r.style||{},a={};return Yh(a,o,r),Object.assign(a,Jy(r,i)),a}function ev(r,i){const o={},a=by(r,i);return r.drag&&r.dragListener!==!1&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`),r.tabIndex===void 0&&(r.onTap||r.onTapStart||r.whileTap)&&(o.tabIndex=0),o.style=a,o}function tv(r,i,o,a){const c=ne.useMemo(()=>{const d=Wh();return $a(d,i,Ga(a),r.transformTemplate),{...d.attrs,style:{...d.style}}},[i]);if(r.style){const d={};Yh(d,r.style,r),c.style={...d,...c.style}}return c}function nv(r=!1){return(o,a,c,{latestValues:d},f)=>{const m=(za(o)?tv:ev)(a,d,f,o),g=yy(a,typeof o=="string",r),v=o!==ne.Fragment?{...g,...m,ref:c}:{},{children:w}=a,k=ne.useMemo(()=>Ge(w)?w.get():w,[w]);return ne.createElement(o,{...v,children:k})}}function rv(r,i){return function(a,{forwardMotionProps:c}={forwardMotionProps:!1}){const f={...za(a)?Zy:qy,preloadedFeatures:r,useRender:nv(c),createVisualElement:i,Component:a};return Ey(f)}}function Xh(r,i){if(!Array.isArray(i))return!1;const o=i.length;if(o!==r.length)return!1;for(let a=0;awindow.ScrollTimeline!==void 0);class sv{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}get finished(){return Promise.all(this.animations.map(i=>"finished"in i?i.finished:i))}getAll(i){return this.animations[0][i]}setAll(i,o){for(let a=0;a{if(iv()&&c.attachTimeline)return c.attachTimeline(i);if(typeof o=="function")return o(c)});return()=>{a.forEach((c,d)=>{c&&c(),this.animations[d].stop()})}}get time(){return this.getAll("time")}set time(i){this.setAll("time",i)}get speed(){return this.getAll("speed")}set speed(i){this.setAll("speed",i)}get startTime(){return this.getAll("startTime")}get duration(){let i=0;for(let o=0;oo[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ov extends sv{then(i,o){return Promise.all(this.animations).then(i).catch(o)}}function Ya(r,i){return r?r[i]||r.default||r:void 0}const ma=2e4;function Zh(r){let i=0;const o=50;let a=r.next(i);for(;!a.done&&i=ma?1/0:i}function Xa(r){return typeof r=="function"}function Sd(r,i){r.timeline=i,r.onfinish=null}const Za=r=>Array.isArray(r)&&typeof r[0]=="number",lv={linearEasing:void 0};function av(r,i){const o=ja(r);return()=>{var a;return(a=lv[i])!==null&&a!==void 0?a:o()}}const Hs=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qh=(r,i,o=10)=>{let a="";const c=Math.max(Math.round(i/o),2);for(let d=0;d`cubic-bezier(${r}, ${i}, ${o}, ${a})`,ga={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:li([0,.65,.55,1]),circOut:li([.55,0,1,.45]),backIn:li([.31,.01,.66,-.59]),backOut:li([.33,1.53,.69,.99])};function bh(r,i){if(r)return typeof r=="function"&&Hs()?qh(r,i):Za(r)?li(r):Array.isArray(r)?r.map(o=>bh(o,i)||ga.easeOut):ga[r]}const Rt={x:!1,y:!1};function ep(){return Rt.x||Rt.y}function uv(r,i,o){var a;if(r instanceof Element)return[r];if(typeof r=="string"){let c=document;const d=(a=void 0)!==null&&a!==void 0?a:c.querySelectorAll(r);return d?Array.from(d):[]}return Array.from(r)}function tp(r,i){const o=uv(r),a=new AbortController,c={passive:!0,...i,signal:a.signal};return[o,c,()=>a.abort()]}function kd(r){return i=>{i.pointerType==="touch"||ep()||r(i)}}function cv(r,i,o={}){const[a,c,d]=tp(r,o),f=kd(p=>{const{target:m}=p,g=i(p);if(typeof g!="function"||!m)return;const v=kd(w=>{g(w),m.removeEventListener("pointerleave",v)});m.addEventListener("pointerleave",v,c)});return a.forEach(p=>{p.addEventListener("pointerenter",f,c)}),d}const np=(r,i)=>i?r===i?!0:np(r,i.parentElement):!1,qa=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1,fv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dv(r){return fv.has(r.tagName)||r.tabIndex!==-1}const ai=new WeakSet;function Td(r){return i=>{i.key==="Enter"&&r(i)}}function bl(r,i){r.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const hv=(r,i)=>{const o=r.currentTarget;if(!o)return;const a=Td(()=>{if(ai.has(o))return;bl(o,"down");const c=Td(()=>{bl(o,"up")}),d=()=>bl(o,"cancel");o.addEventListener("keyup",c,i),o.addEventListener("blur",d,i)});o.addEventListener("keydown",a,i),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),i)};function Pd(r){return qa(r)&&!ep()}function pv(r,i,o={}){const[a,c,d]=tp(r,o),f=p=>{const m=p.currentTarget;if(!Pd(p)||ai.has(m))return;ai.add(m);const g=i(p),v=(D,j)=>{window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",k),!(!Pd(D)||!ai.has(m))&&(ai.delete(m),typeof g=="function"&&g(D,{success:j}))},w=D=>{v(D,o.useGlobalTarget||np(m,D.target))},k=D=>{v(D,!1)};window.addEventListener("pointerup",w,c),window.addEventListener("pointercancel",k,c)};return a.forEach(p=>{!dv(p)&&p.getAttribute("tabindex")===null&&(p.tabIndex=0),(o.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),p.addEventListener("focus",g=>hv(g,c),c)}),d}function mv(r){return r==="x"||r==="y"?Rt[r]?null:(Rt[r]=!0,()=>{Rt[r]=!1}):Rt.x||Rt.y?null:(Rt.x=Rt.y=!0,()=>{Rt.x=Rt.y=!1})}const rp=new Set(["width","height","top","left","right","bottom",...vr]);let Is;function gv(){Is=void 0}const Ft={now:()=>(Is===void 0&&Ft.set(Be.isProcessing||fy.useManualTiming?Be.timestamp:performance.now()),Is),set:r=>{Is=r,queueMicrotask(gv)}};function Ja(r,i){r.indexOf(i)===-1&&r.push(i)}function ba(r,i){const o=r.indexOf(i);o>-1&&r.splice(o,1)}class eu{constructor(){this.subscriptions=[]}add(i){return Ja(this.subscriptions,i),()=>ba(this.subscriptions,i)}notify(i,o,a){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,o,a);else for(let d=0;d!isNaN(parseFloat(r));class vv{constructor(i,o={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,c=!0)=>{const d=Ft.now();this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),c&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.owner=o.owner}setCurrent(i){this.current=i,this.updatedAt=Ft.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=yv(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,o){this.events[i]||(this.events[i]=new eu);const a=this.events[i].add(o);return i==="change"?()=>{a(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,o){this.passiveEffect=i,this.stopPassiveEffect=o}set(i,o=!0){!o||!this.passiveEffect?this.updateAndNotify(i,o):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-a}jump(i,o=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Cd)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,Cd);return ip(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(i){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=i(o),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 gi(r,i){return new vv(r,i)}function xv(r,i,o){r.hasValue(i)?r.getValue(i).set(o):r.addValue(i,gi(o))}function wv(r,i){const o=qs(r,i);let{transitionEnd:a={},transition:c={},...d}=o||{};d={...d,...a};for(const f in d){const p=Vy(d[f]);xv(r,f,p)}}function Sv(r){return!!(Ge(r)&&r.add)}function ya(r,i){const o=r.getValue("willChange");if(Sv(o))return o.add(i)}function sp(r){return r.props[Nh]}const op=(r,i,o)=>(((1-3*o+3*i)*r+(3*o-6*i))*r+3*i)*r,kv=1e-7,Tv=12;function Pv(r,i,o,a,c){let d,f,p=0;do f=i+(o-i)/2,d=op(f,a,c)-r,d>0?o=f:i=f;while(Math.abs(d)>kv&&++pPv(d,0,1,r,o);return d=>d===0||d===1?d:op(c(d),i,a)}const lp=r=>i=>i<=.5?r(2*i)/2:(2-r(2*(1-i)))/2,ap=r=>i=>1-r(1-i),up=wi(.33,1.53,.69,.99),tu=ap(up),cp=lp(tu),fp=r=>(r*=2)<1?.5*tu(r):.5*(2-Math.pow(2,-10*(r-1))),nu=r=>1-Math.sin(Math.acos(r)),dp=ap(nu),hp=lp(nu),pp=r=>/^0[^.\s]+$/u.test(r);function Cv(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||pp(r):!0}const ci=r=>Math.round(r*1e5)/1e5,ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ev(r){return r==null}const Dv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iu=(r,i)=>o=>!!(typeof o=="string"&&Dv.test(o)&&o.startsWith(r)||i&&!Ev(o)&&Object.prototype.hasOwnProperty.call(o,i)),mp=(r,i,o)=>a=>{if(typeof a!="string")return a;const[c,d,f,p]=a.match(ru);return{[r]:parseFloat(c),[i]:parseFloat(d),[o]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Av=r=>Qt(0,255,r),ea={...xr,transform:r=>Math.round(Av(r))},Nn={test:iu("rgb","red"),parse:mp("red","green","blue"),transform:({red:r,green:i,blue:o,alpha:a=1})=>"rgba("+ea.transform(r)+", "+ea.transform(i)+", "+ea.transform(o)+", "+ci(mi.transform(a))+")"};function Rv(r){let i="",o="",a="",c="";return r.length>5?(i=r.substring(1,3),o=r.substring(3,5),a=r.substring(5,7),c=r.substring(7,9)):(i=r.substring(1,2),o=r.substring(2,3),a=r.substring(3,4),c=r.substring(4,5),i+=i,o+=o,a+=a,c+=c),{red:parseInt(i,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:c?parseInt(c,16)/255:1}}const va={test:iu("#"),parse:Rv,transform:Nn.transform},fr={test:iu("hsl","hue"),parse:mp("hue","saturation","lightness"),transform:({hue:r,saturation:i,lightness:o,alpha:a=1})=>"hsla("+Math.round(r)+", "+Nt.transform(ci(i))+", "+Nt.transform(ci(o))+", "+ci(mi.transform(a))+")"},Ke={test:r=>Nn.test(r)||va.test(r)||fr.test(r),parse:r=>Nn.test(r)?Nn.parse(r):fr.test(r)?fr.parse(r):va.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Nn.transform(r):fr.transform(r)},Mv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _v(r){var i,o;return isNaN(r)&&typeof r=="string"&&(((i=r.match(ru))===null||i===void 0?void 0:i.length)||0)+(((o=r.match(Mv))===null||o===void 0?void 0:o.length)||0)>0}const gp="number",yp="color",Vv="var",Lv="var(",Ed="${}",jv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yi(r){const i=r.toString(),o=[],a={color:[],number:[],var:[]},c=[];let d=0;const p=i.replace(jv,m=>(Ke.test(m)?(a.color.push(d),c.push(yp),o.push(Ke.parse(m))):m.startsWith(Lv)?(a.var.push(d),c.push(Vv),o.push(m)):(a.number.push(d),c.push(gp),o.push(parseFloat(m))),++d,Ed)).split(Ed);return{values:o,split:p,indexes:a,types:c}}function vp(r){return yi(r).values}function xp(r){const{split:i,types:o}=yi(r),a=i.length;return c=>{let d="";for(let f=0;ftypeof r=="number"?0:r;function Fv(r){const i=vp(r);return xp(r)(i.map(Nv))}const gn={test:_v,parse:vp,createTransformer:xp,getAnimatableNone:Fv},Ov=new Set(["brightness","contrast","saturate","opacity"]);function Iv(r){const[i,o]=r.slice(0,-1).split("(");if(i==="drop-shadow")return r;const[a]=o.match(ru)||[];if(!a)return r;const c=o.replace(a,"");let d=Ov.has(i)?1:0;return a!==o&&(d*=100),i+"("+d+c+")"}const zv=/\b([a-z-]*)\(.*?\)/gu,xa={...gn,getAnimatableNone:r=>{const i=r.match(zv);return i?i.map(Iv).join(" "):r}},Bv={...Wa,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:xa,WebkitFilter:xa},su=r=>Bv[r];function wp(r,i){let o=su(r);return o!==xa&&(o=gn),o.getAnimatableNone?o.getAnimatableNone(i):void 0}const Uv=new Set(["auto","none","0"]);function Wv(r,i,o){let a=0,c;for(;ar===xr||r===J,Ad=(r,i)=>parseFloat(r.split(", ")[i]),Rd=(r,i)=>(o,{transform:a})=>{if(a==="none"||!a)return 0;const c=a.match(/^matrix3d\((.+)\)$/u);if(c)return Ad(c[1],i);{const d=a.match(/^matrix\((.+)\)$/u);return d?Ad(d[1],r):0}},Hv=new Set(["x","y","z"]),$v=vr.filter(r=>!Hv.has(r));function Kv(r){const i=[];return $v.forEach(o=>{const a=r.getValue(o);a!==void 0&&(i.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),i}const yr={width:({x:r},{paddingLeft:i="0",paddingRight:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),height:({y:r},{paddingTop:i="0",paddingBottom:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),top:(r,{top:i})=>parseFloat(i),left:(r,{left:i})=>parseFloat(i),bottom:({y:r},{top:i})=>parseFloat(i)+(r.max-r.min),right:({x:r},{left:i})=>parseFloat(i)+(r.max-r.min),x:Rd(4,13),y:Rd(5,14)};yr.translateX=yr.x;yr.translateY=yr.y;const Fn=new Set;let wa=!1,Sa=!1;function Sp(){if(Sa){const r=Array.from(Fn).filter(a=>a.needsMeasurement),i=new Set(r.map(a=>a.element)),o=new Map;i.forEach(a=>{const c=Kv(a);c.length&&(o.set(a,c),a.render())}),r.forEach(a=>a.measureInitialState()),i.forEach(a=>{a.render();const c=o.get(a);c&&c.forEach(([d,f])=>{var p;(p=a.getValue(d))===null||p===void 0||p.set(f)})}),r.forEach(a=>a.measureEndState()),r.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Sa=!1,wa=!1,Fn.forEach(r=>r.complete()),Fn.clear()}function kp(){Fn.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(Sa=!0)})}function Gv(){kp(),Sp()}class ou{constructor(i,o,a,c,d,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=o,this.name=a,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fn.add(this),wa||(wa=!0,xe.read(kp),xe.resolveKeyframes(Sp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:o,element:a,motionValue:c}=this;for(let d=0;d/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),Qv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yv(r){const i=Qv.exec(r);if(!i)return[,];const[,o,a,c]=i;return[`--${o??a}`,c]}function Pp(r,i,o=1){const[a,c]=Yv(r);if(!a)return;const d=window.getComputedStyle(i).getPropertyValue(a);if(d){const f=d.trim();return Tp(f)?parseFloat(f):f}return Ua(c)?Pp(c,i,o+1):c}const Cp=r=>i=>i.test(r),Xv={test:r=>r==="auto",parse:r=>r},Ep=[xr,J,Nt,pn,Iy,Oy,Xv],Md=r=>Ep.find(Cp(r));class Dp extends ou{constructor(i,o,a,c,d){super(i,o,a,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let m=0;m{o.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const _d=(r,i)=>i==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(gn.test(r)||r==="0")&&!r.startsWith("url("));function Zv(r){const i=r[0];if(r.length===1)return!0;for(let o=0;or!==null;function Js(r,{repeat:i,repeatType:o="loop"},a){const c=r.filter(Jv),d=i&&o!=="loop"&&i%2===1?0:c.length-1;return!d||a===void 0?c[d]:a}const bv=40;class Ap{constructor({autoplay:i=!0,delay:o=0,type:a="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ft.now(),this.options={autoplay:i,delay:o,type:a,repeat:c,repeatDelay:d,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>bv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Gv(),this._resolved}onKeyframesResolved(i,o){this.resolvedAt=Ft.now(),this.hasAttemptedResolve=!0;const{name:a,type:c,velocity:d,delay:f,onComplete:p,onUpdate:m,isGenerator:g}=this.options;if(!g&&!qv(i,a,c,d))if(f)this.options.duration=0;else{m&&m(Js(i,this.options,o)),p&&p(),this.resolveFinishedPromise();return}const v=this.initPlayback(i,o);v!==!1&&(this._resolved={keyframes:i,finalKeyframe:o,...v},this.onPostResolved())}onPostResolved(){}then(i,o){return this.currentFinishedPromise.then(i,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const Ce=(r,i,o)=>r+(i-r)*o;function ta(r,i,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(i-r)*6*o:o<1/2?i:o<2/3?r+(i-r)*(2/3-o)*6:r}function e0({hue:r,saturation:i,lightness:o,alpha:a}){r/=360,i/=100,o/=100;let c=0,d=0,f=0;if(!i)c=d=f=o;else{const p=o<.5?o*(1+i):o+i-o*i,m=2*o-p;c=ta(m,p,r+1/3),d=ta(m,p,r),f=ta(m,p,r-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:a}}function $s(r,i){return o=>o>0?i:r}const na=(r,i,o)=>{const a=r*r,c=o*(i*i-a)+a;return c<0?0:Math.sqrt(c)},t0=[va,Nn,fr],n0=r=>t0.find(i=>i.test(r));function Vd(r){const i=n0(r);if(!i)return!1;let o=i.parse(r);return i===fr&&(o=e0(o)),o}const Ld=(r,i)=>{const o=Vd(r),a=Vd(i);if(!o||!a)return $s(r,i);const c={...o};return d=>(c.red=na(o.red,a.red,d),c.green=na(o.green,a.green,d),c.blue=na(o.blue,a.blue,d),c.alpha=Ce(o.alpha,a.alpha,d),Nn.transform(c))},r0=(r,i)=>o=>i(r(o)),Si=(...r)=>r.reduce(r0),ka=new Set(["none","hidden"]);function i0(r,i){return ka.has(r)?o=>o<=0?r:i:o=>o>=1?i:r}function s0(r,i){return o=>Ce(r,i,o)}function lu(r){return typeof r=="number"?s0:typeof r=="string"?Ua(r)?$s:Ke.test(r)?Ld:a0:Array.isArray(r)?Rp:typeof r=="object"?Ke.test(r)?Ld:o0:$s}function Rp(r,i){const o=[...r],a=o.length,c=r.map((d,f)=>lu(d)(d,i[f]));return d=>{for(let f=0;f{for(const d in a)o[d]=a[d](c);return o}}function l0(r,i){var o;const a=[],c={color:0,var:0,number:0};for(let d=0;d{const o=gn.createTransformer(i),a=yi(r),c=yi(i);return a.indexes.var.length===c.indexes.var.length&&a.indexes.color.length===c.indexes.color.length&&a.indexes.number.length>=c.indexes.number.length?ka.has(r)&&!c.values.length||ka.has(i)&&!a.values.length?i0(r,i):Si(Rp(l0(a,c),c.values),o):$s(r,i)};function Mp(r,i,o){return typeof r=="number"&&typeof i=="number"&&typeof o=="number"?Ce(r,i,o):lu(r)(r,i)}const u0=5;function _p(r,i,o){const a=Math.max(i-u0,0);return ip(o-r(a),i-a)}const Ae={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ra=.001;function c0({duration:r=Ae.duration,bounce:i=Ae.bounce,velocity:o=Ae.velocity,mass:a=Ae.mass}){let c,d,f=1-i;f=Qt(Ae.minDamping,Ae.maxDamping,f),r=Qt(Ae.minDuration,Ae.maxDuration,Gt(r)),f<1?(c=g=>{const v=g*f,w=v*r,k=v-o,D=Ta(g,f),j=Math.exp(-w);return ra-k/D*j},d=g=>{const w=g*f*r,k=w*o+o,D=Math.pow(f,2)*Math.pow(g,2)*r,j=Math.exp(-w),M=Ta(Math.pow(g,2),f);return(-c(g)+ra>0?-1:1)*((k-D)*j)/M}):(c=g=>{const v=Math.exp(-g*r),w=(g-o)*r+1;return-ra+v*w},d=g=>{const v=Math.exp(-g*r),w=(o-g)*(r*r);return v*w});const p=5/r,m=d0(c,d,p);if(r=Kt(r),isNaN(m))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:r};{const g=Math.pow(m,2)*a;return{stiffness:g,damping:f*2*Math.sqrt(a*g),duration:r}}}const f0=12;function d0(r,i,o){let a=o;for(let c=1;cr[o]!==void 0)}function m0(r){let i={velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1,...r};if(!jd(r,p0)&&jd(r,h0))if(r.visualDuration){const o=r.visualDuration,a=2*Math.PI/(o*1.2),c=a*a,d=2*Qt(.05,1,1-(r.bounce||0))*Math.sqrt(c);i={...i,mass:Ae.mass,stiffness:c,damping:d}}else{const o=c0(r);i={...i,...o,mass:Ae.mass},i.isResolvedFromDuration=!0}return i}function Vp(r=Ae.visualDuration,i=Ae.bounce){const o=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:i}:r;let{restSpeed:a,restDelta:c}=o;const d=o.keyframes[0],f=o.keyframes[o.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:g,mass:v,duration:w,velocity:k,isResolvedFromDuration:D}=m0({...o,velocity:-Gt(o.velocity||0)}),j=k||0,M=g/(2*Math.sqrt(m*v)),N=f-d,I=Gt(Math.sqrt(m/v)),W=Math.abs(N)<5;a||(a=W?Ae.restSpeed.granular:Ae.restSpeed.default),c||(c=W?Ae.restDelta.granular:Ae.restDelta.default);let K;if(M<1){const Q=Ta(I,M);K=te=>{const ue=Math.exp(-M*I*te);return f-ue*((j+M*I*N)/Q*Math.sin(Q*te)+N*Math.cos(Q*te))}}else if(M===1)K=Q=>f-Math.exp(-I*Q)*(N+(j+I*N)*Q);else{const Q=I*Math.sqrt(M*M-1);K=te=>{const ue=Math.exp(-M*I*te),q=Math.min(Q*te,300);return f-ue*((j+M*I*N)*Math.sinh(q)+Q*N*Math.cosh(q))/Q}}const ee={calculatedDuration:D&&w||null,next:Q=>{const te=K(Q);if(D)p.done=Q>=w;else{let ue=0;M<1&&(ue=Q===0?Kt(j):_p(K,Q,te));const q=Math.abs(ue)<=a,ke=Math.abs(f-te)<=c;p.done=q&&ke}return p.value=p.done?f:te,p},toString:()=>{const Q=Math.min(Zh(ee),ma),te=qh(ue=>ee.next(Q*ue).value,Q,30);return Q+"ms "+te}};return ee}function Nd({keyframes:r,velocity:i=0,power:o=.8,timeConstant:a=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:v}){const w=r[0],k={done:!1,value:w},D=q=>p!==void 0&&qm,j=q=>p===void 0?m:m===void 0||Math.abs(p-q)-M*Math.exp(-q/a),K=q=>I+W(q),ee=q=>{const ke=W(q),Ee=K(q);k.done=Math.abs(ke)<=g,k.value=k.done?I:Ee};let Q,te;const ue=q=>{D(k.value)&&(Q=q,te=Vp({keyframes:[k.value,j(k.value)],velocity:_p(K,q,k.value),damping:c,stiffness:d,restDelta:g,restSpeed:v}))};return ue(0),{calculatedDuration:null,next:q=>{let ke=!1;return!te&&Q===void 0&&(ke=!0,ee(q),ue(q)),Q!==void 0&&q>=Q?te.next(q-Q):(!ke&&ee(q),k)}}}const g0=wi(.42,0,1,1),y0=wi(0,0,.58,1),Lp=wi(.42,0,.58,1),v0=r=>Array.isArray(r)&&typeof r[0]!="number",x0={linear:ft,easeIn:g0,easeInOut:Lp,easeOut:y0,circIn:nu,circInOut:hp,circOut:dp,backIn:tu,backInOut:cp,backOut:up,anticipate:fp},Fd=r=>{if(Za(r)){Mh(r.length===4);const[i,o,a,c]=r;return wi(i,o,a,c)}else if(typeof r=="string")return x0[r];return r};function w0(r,i,o){const a=[],c=o||Mp,d=r.length-1;for(let f=0;fi[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=r[0]===r[1];r[0]>r[d-1]&&(r=[...r].reverse(),i=[...i].reverse());const p=w0(i,a,c),m=p.length,g=v=>{if(f&&v1)for(;wg(Qt(r[0],r[d-1],v)):g}function k0(r,i){const o=r[r.length-1];for(let a=1;a<=i;a++){const c=mr(0,i,a);r.push(Ce(o,1,c))}}function T0(r){const i=[0];return k0(i,r.length-1),i}function P0(r,i){return r.map(o=>o*i)}function C0(r,i){return r.map(()=>i||Lp).splice(0,r.length-1)}function Ks({duration:r=300,keyframes:i,times:o,ease:a="easeInOut"}){const c=v0(a)?a.map(Fd):Fd(a),d={done:!1,value:i[0]},f=P0(o&&o.length===i.length?o:T0(i),r),p=S0(f,i,{ease:Array.isArray(c)?c:C0(i,c)});return{calculatedDuration:r,next:m=>(d.value=p(m),d.done=m>=r,d)}}const E0=r=>{const i=({timestamp:o})=>r(o);return{start:()=>xe.update(i,!0),stop:()=>mn(i),now:()=>Be.isProcessing?Be.timestamp:Ft.now()}},D0={decay:Nd,inertia:Nd,tween:Ks,keyframes:Ks,spring:Vp},A0=r=>r/100;class au extends Ap{constructor(i){super(i),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:o,motionValue:a,element:c,keyframes:d}=this.options,f=(c==null?void 0:c.KeyframeResolver)||ou,p=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new f(d,p,o,a,c),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:o="keyframes",repeat:a=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=this.options,p=Xa(o)?o:D0[o]||Ks;let m,g;p!==Ks&&typeof i[0]!="number"&&(m=Si(A0,Mp(i[0],i[1])),i=[0,100]);const v=p({...this.options,keyframes:i});d==="mirror"&&(g=p({...this.options,keyframes:[...i].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=Zh(v));const{calculatedDuration:w}=v,k=w+c,D=k*(a+1)-c;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:w,resolvedDuration:k,totalDuration:D}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,o=!1){const{resolved:a}=this;if(!a){const{keyframes:q}=this.options;return{done:!0,value:q[q.length-1]}}const{finalKeyframe:c,generator:d,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:w}=a;if(this.startTime===null)return d.next(0);const{delay:k,repeat:D,repeatType:j,repeatDelay:M,onUpdate:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-v/this.speed,this.startTime)),o?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const I=this.currentTime-k*(this.speed>=0?1:-1),W=this.speed>=0?I<0:I>v;this.currentTime=Math.max(I,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let K=this.currentTime,ee=d;if(D){const q=Math.min(this.currentTime,v)/w;let ke=Math.floor(q),Ee=q%1;!Ee&&q>=1&&(Ee=1),Ee===1&&ke--,ke=Math.min(ke,D+1),!!(ke%2)&&(j==="reverse"?(Ee=1-Ee,M&&(Ee-=M/w)):j==="mirror"&&(ee=f)),K=Qt(0,1,Ee)*w}const Q=W?{done:!1,value:m[0]}:ee.next(K);p&&(Q.value=p(Q.value));let{done:te}=Q;!W&&g!==null&&(te=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const ue=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&te);return ue&&c!==void 0&&(Q.value=Js(m,this.options,c)),N&&N(Q.value),ue&&this.finish(),Q}get duration(){const{resolved:i}=this;return i?Gt(i.calculatedDuration):0}get time(){return Gt(this.currentTime)}set time(i){i=Kt(i),this.currentTime=i,this.holdTime!==null||this.speed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.speed)}get speed(){return this.playbackSpeed}set speed(i){const o=this.playbackSpeed!==i;this.playbackSpeed=i,o&&(this.time=Gt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:i=E0,onPlay:o,startTime:a}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),o&&o();const c=this.driver.now();this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=c):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var i;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(i=this.currentTime)!==null&&i!==void 0?i:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:i}=this.options;i&&i()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}}const R0=new Set(["opacity","clipPath","filter","transform"]);function M0(r,i,o,{delay:a=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:p="easeInOut",times:m}={}){const g={[i]:o};m&&(g.offset=m);const v=bh(p,c);return Array.isArray(v)&&(g.easing=v),r.animate(g,{delay:a,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"})}const _0=ja(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gs=10,V0=2e4;function L0(r){return Xa(r.type)||r.type==="spring"||!Jh(r.ease)}function j0(r,i){const o=new au({...i,keyframes:r,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:r[0]};const c=[];let d=0;for(;!a.done&&dthis.onKeyframesResolved(f,p),o,a,c),this.resolver.scheduleResolve()}initPlayback(i,o){let{duration:a=300,times:c,ease:d,type:f,motionValue:p,name:m,startTime:g}=this.options;if(!p.owner||!p.owner.current)return!1;if(typeof d=="string"&&Hs()&&N0(d)&&(d=jp[d]),L0(this.options)){const{onComplete:w,onUpdate:k,motionValue:D,element:j,...M}=this.options,N=j0(i,M);i=N.keyframes,i.length===1&&(i[1]=i[0]),a=N.duration,c=N.times,d=N.ease,f="keyframes"}const v=M0(p.owner.current,m,i,{...this.options,duration:a,times:c,ease:d});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(Sd(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:w}=this.options;p.set(Js(i,this.options,o)),w&&w(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:a,times:c,type:f,ease:d,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:o}=i;return Gt(o)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:o}=i;return Gt(o.currentTime||0)}set time(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.currentTime=Kt(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:o}=i;return o.playbackRate}set speed(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:o}=i;return o.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:o}=i;return o.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:o}=this;if(!o)return ft;const{animation:a}=o;Sd(a,i)}return ft}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:i}=this;if(!i)return;const{animation:o,keyframes:a,duration:c,type:d,ease:f,times:p}=i;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:w,element:k,...D}=this.options,j=new au({...D,keyframes:a,duration:c,type:d,ease:f,times:p,isGenerator:!0}),M=Kt(this.time);g.setWithVelocity(j.sample(M-Gs).value,j.sample(M).value,Gs)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:i}=this;i&&i.animation.finish()}cancel(){const{resolved:i}=this;i&&i.animation.cancel()}static supports(i){const{motionValue:o,name:a,repeatDelay:c,repeatType:d,damping:f,type:p}=i;if(!o||!o.owner||!(o.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=o.owner.getProps();return _0()&&a&&R0.has(a)&&!m&&!g&&!c&&d!=="mirror"&&f!==0&&p!=="inertia"}}const F0={type:"spring",stiffness:500,damping:25,restSpeed:10},O0=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),I0={type:"keyframes",duration:.8},z0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B0=(r,{keyframes:i})=>i.length>2?I0:On.has(r)?r.startsWith("scale")?O0(i[1]):F0:z0;function U0({when:r,delay:i,delayChildren:o,staggerChildren:a,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:p,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const uu=(r,i,o,a={},c,d)=>f=>{const p=Ya(a,r)||{},m=p.delay||a.delay||0;let{elapsed:g=0}=a;g=g-Kt(m);let v={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:k=>{i.set(k),p.onUpdate&&p.onUpdate(k)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:r,motionValue:i,element:d?void 0:c};U0(p)||(v={...v,...B0(r,v)}),v.duration&&(v.duration=Kt(v.duration)),v.repeatDelay&&(v.repeatDelay=Kt(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let w=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(w=!0)),w&&!d&&i.get()!==void 0){const k=Js(v.keyframes,p);if(k!==void 0)return xe.update(()=>{v.onUpdate(k),v.onComplete()}),new ov([])}return!d&&Od.supports(v)?new Od(v):new au(v)};function W0({protectedKeys:r,needsAnimating:i},o){const a=r.hasOwnProperty(o)&&i[o]!==!0;return i[o]=!1,a}function Np(r,i,{delay:o=0,transitionOverride:a,type:c}={}){var d;let{transition:f=r.getDefaultTransition(),transitionEnd:p,...m}=i;a&&(f=a);const g=[],v=c&&r.animationState&&r.animationState.getState()[c];for(const w in m){const k=r.getValue(w,(d=r.latestValues[w])!==null&&d!==void 0?d:null),D=m[w];if(D===void 0||v&&W0(v,w))continue;const j={delay:o,...Ya(f||{},w)};let M=!1;if(window.MotionHandoffAnimation){const I=sp(r);if(I){const W=window.MotionHandoffAnimation(I,w,xe);W!==null&&(j.startTime=W,M=!0)}}ya(r,w),k.start(uu(w,k,D,r.shouldReduceMotion&&rp.has(w)?{type:!1}:j,r,M));const N=k.animation;N&&g.push(N)}return p&&Promise.all(g).then(()=>{xe.update(()=>{p&&wv(r,p)})}),g}function Pa(r,i,o={}){var a;const c=qs(r,i,o.type==="exit"?(a=r.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:d=r.getDefaultTransition()||{}}=c||{};o.transitionOverride&&(d=o.transitionOverride);const f=c?()=>Promise.all(Np(r,c,o)):()=>Promise.resolve(),p=r.variantChildren&&r.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:w,staggerDirection:k}=d;return H0(r,i,v+g,w,k,o)}:()=>Promise.resolve(),{when:m}=d;if(m){const[g,v]=m==="beforeChildren"?[f,p]:[p,f];return g().then(()=>v())}else return Promise.all([f(),p(o.delay)])}function H0(r,i,o=0,a=0,c=1,d){const f=[],p=(r.variantChildren.size-1)*a,m=c===1?(g=0)=>g*a:(g=0)=>p-g*a;return Array.from(r.variantChildren).sort($0).forEach((g,v)=>{g.notify("AnimationStart",i),f.push(Pa(g,i,{...d,delay:o+m(v)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(f)}function $0(r,i){return r.sortNodePosition(i)}function K0(r,i,o={}){r.notify("AnimationStart",i);let a;if(Array.isArray(i)){const c=i.map(d=>Pa(r,d,o));a=Promise.all(c)}else if(typeof i=="string")a=Pa(r,i,o);else{const c=typeof i=="function"?qs(r,i,o.custom):i;a=Promise.all(Np(r,c,o))}return a.then(()=>{r.notify("AnimationComplete",i)})}const G0=Fa.length;function Fp(r){if(!r)return;if(!r.isControllingVariants){const o=r.parent?Fp(r.parent)||{}:{};return r.props.initial!==void 0&&(o.initial=r.props.initial),o}const i={};for(let o=0;oPromise.all(i.map(({animation:o,options:a})=>K0(r,o,a)))}function Z0(r){let i=X0(r),o=Id(),a=!0;const c=m=>(g,v)=>{var w;const k=qs(r,v,m==="exit"?(w=r.presenceContext)===null||w===void 0?void 0:w.custom:void 0);if(k){const{transition:D,transitionEnd:j,...M}=k;g={...g,...M,...j}}return g};function d(m){i=m(r)}function f(m){const{props:g}=r,v=Fp(r.parent)||{},w=[],k=new Set;let D={},j=1/0;for(let N=0;Nj&&ee,ke=!1;const Ee=Array.isArray(K)?K:[K];let qe=Ee.reduce(c(I),{});Q===!1&&(qe={});const{prevResolvedValues:st={}}=W,Qe={...st,...qe},Je=ie=>{q=!0,k.has(ie)&&(ke=!0,k.delete(ie)),W.needsAnimating[ie]=!0;const O=r.getValue(ie);O&&(O.liveStyle=!1)};for(const ie in Qe){const O=qe[ie],Y=st[ie];if(D.hasOwnProperty(ie))continue;let B=!1;pa(O)&&pa(Y)?B=!Xh(O,Y):B=O!==Y,B?O!=null?Je(ie):k.add(ie):O!==void 0&&k.has(ie)?Je(ie):W.protectedKeys[ie]=!0}W.prevProp=K,W.prevResolvedValues=qe,W.isActive&&(D={...D,...qe}),a&&r.blockInitialAnimation&&(q=!1),q&&(!(te&&ue)||ke)&&w.push(...Ee.map(ie=>({animation:ie,options:{type:I}})))}if(k.size){const N={};k.forEach(I=>{const W=r.getBaseTarget(I),K=r.getValue(I);K&&(K.liveStyle=!0),N[I]=W??null}),w.push({animation:N})}let M=!!w.length;return a&&(g.initial===!1||g.initial===g.animate)&&!r.manuallyAnimateOnMount&&(M=!1),a=!1,M?i(w):Promise.resolve()}function p(m,g){var v;if(o[m].isActive===g)return Promise.resolve();(v=r.variantChildren)===null||v===void 0||v.forEach(k=>{var D;return(D=k.animationState)===null||D===void 0?void 0:D.setActive(m,g)}),o[m].isActive=g;const w=f(m);for(const k in o)o[k].protectedKeys={};return w}return{animateChanges:f,setActive:p,setAnimateFunction:d,getState:()=>o,reset:()=>{o=Id(),a=!0}}}function q0(r,i){return typeof i=="string"?i!==r:Array.isArray(i)?!Xh(i,r):!1}function _n(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Id(){return{animate:_n(!0),whileInView:_n(),whileHover:_n(),whileTap:_n(),whileDrag:_n(),whileFocus:_n(),exit:_n()}}class yn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class J0 extends yn{constructor(i){super(i),i.animationState||(i.animationState=Z0(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Xs(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:o}=this.node.prevProps||{};i!==o&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let b0=0;class e1 extends yn{constructor(){super(...arguments),this.id=b0++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:o}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===a)return;const c=this.node.animationState.setActive("exit",!i);o&&!i&&c.then(()=>o(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const t1={animation:{Feature:J0},exit:{Feature:e1}};function vi(r,i,o,a={passive:!0}){return r.addEventListener(i,o,a),()=>r.removeEventListener(i,o)}function ki(r){return{point:{x:r.pageX,y:r.pageY}}}const n1=r=>i=>qa(i)&&r(i,ki(i));function fi(r,i,o,a){return vi(r,i,n1(o),a)}const zd=(r,i)=>Math.abs(r-i);function r1(r,i){const o=zd(r.x,i.x),a=zd(r.y,i.y);return Math.sqrt(o**2+a**2)}class Op{constructor(i,o,{transformPagePoint:a,contextWindow:c,dragSnapToOrigin:d=!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 w=sa(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,D=r1(w.offset,{x:0,y:0})>=3;if(!k&&!D)return;const{point:j}=w,{timestamp:M}=Be;this.history.push({...j,timestamp:M});const{onStart:N,onMove:I}=this.handlers;k||(N&&N(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,w)},this.handlePointerMove=(w,k)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=ia(k,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(w,k)=>{this.end();const{onEnd:D,onSessionEnd:j,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=sa(w.type==="pointercancel"?this.lastMoveEventInfo:ia(k,this.transformPagePoint),this.history);this.startEvent&&D&&D(w,N),j&&j(w,N)},!qa(i))return;this.dragSnapToOrigin=d,this.handlers=o,this.transformPagePoint=a,this.contextWindow=c||window;const f=ki(i),p=ia(f,this.transformPagePoint),{point:m}=p,{timestamp:g}=Be;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=o;v&&v(i,sa(p,this.history)),this.removeListeners=Si(fi(this.contextWindow,"pointermove",this.handlePointerMove),fi(this.contextWindow,"pointerup",this.handlePointerUp),fi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),mn(this.updatePoint)}}function ia(r,i){return i?{point:i(r.point)}:r}function Bd(r,i){return{x:r.x-i.x,y:r.y-i.y}}function sa({point:r},i){return{point:r,delta:Bd(r,Ip(i)),offset:Bd(r,i1(i)),velocity:s1(i,.1)}}function i1(r){return r[0]}function Ip(r){return r[r.length-1]}function s1(r,i){if(r.length<2)return{x:0,y:0};let o=r.length-1,a=null;const c=Ip(r);for(;o>=0&&(a=r[o],!(c.timestamp-a.timestamp>Kt(i)));)o--;if(!a)return{x:0,y:0};const d=Gt(c.timestamp-a.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-a.x)/d,y:(c.y-a.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}const zp=1e-4,o1=1-zp,l1=1+zp,Bp=.01,a1=0-Bp,u1=0+Bp;function dt(r){return r.max-r.min}function c1(r,i,o){return Math.abs(r-i)<=o}function Ud(r,i,o,a=.5){r.origin=a,r.originPoint=Ce(i.min,i.max,r.origin),r.scale=dt(o)/dt(i),r.translate=Ce(o.min,o.max,r.origin)-r.originPoint,(r.scale>=o1&&r.scale<=l1||isNaN(r.scale))&&(r.scale=1),(r.translate>=a1&&r.translate<=u1||isNaN(r.translate))&&(r.translate=0)}function di(r,i,o,a){Ud(r.x,i.x,o.x,a?a.originX:void 0),Ud(r.y,i.y,o.y,a?a.originY:void 0)}function Wd(r,i,o){r.min=o.min+i.min,r.max=r.min+dt(i)}function f1(r,i,o){Wd(r.x,i.x,o.x),Wd(r.y,i.y,o.y)}function Hd(r,i,o){r.min=i.min-o.min,r.max=r.min+dt(i)}function hi(r,i,o){Hd(r.x,i.x,o.x),Hd(r.y,i.y,o.y)}function d1(r,{min:i,max:o},a){return i!==void 0&&ro&&(r=a?Ce(o,r,a.max):Math.min(r,o)),r}function $d(r,i,o){return{min:i!==void 0?r.min+i:void 0,max:o!==void 0?r.max+o-(r.max-r.min):void 0}}function h1(r,{top:i,left:o,bottom:a,right:c}){return{x:$d(r.x,o,c),y:$d(r.y,i,a)}}function Kd(r,i){let o=i.min-r.min,a=i.max-r.max;return i.max-i.mina?o=mr(i.min,i.max-a,r.min):a>c&&(o=mr(r.min,r.max-c,i.min)),Qt(0,1,o)}function g1(r,i){const o={};return i.min!==void 0&&(o.min=i.min-r.min),i.max!==void 0&&(o.max=i.max-r.min),o}const Ca=.35;function y1(r=Ca){return r===!1?r=0:r===!0&&(r=Ca),{x:Gd(r,"left","right"),y:Gd(r,"top","bottom")}}function Gd(r,i,o){return{min:Qd(r,i),max:Qd(r,o)}}function Qd(r,i){return typeof r=="number"?r:r[i]||0}const Yd=()=>({translate:0,scale:1,origin:0,originPoint:0}),dr=()=>({x:Yd(),y:Yd()}),Xd=()=>({min:0,max:0}),_e=()=>({x:Xd(),y:Xd()});function wt(r){return[r("x"),r("y")]}function Up({top:r,left:i,right:o,bottom:a}){return{x:{min:i,max:o},y:{min:r,max:a}}}function v1({x:r,y:i}){return{top:i.min,right:r.max,bottom:i.max,left:r.min}}function x1(r,i){if(!i)return r;const o=i({x:r.left,y:r.top}),a=i({x:r.right,y:r.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}function oa(r){return r===void 0||r===1}function Ea({scale:r,scaleX:i,scaleY:o}){return!oa(r)||!oa(i)||!oa(o)}function Ln(r){return Ea(r)||Wp(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function Wp(r){return Zd(r.x)||Zd(r.y)}function Zd(r){return r&&r!=="0%"}function Qs(r,i,o){const a=r-o,c=i*a;return o+c}function qd(r,i,o,a,c){return c!==void 0&&(r=Qs(r,c,a)),Qs(r,o,a)+i}function Da(r,i=0,o=1,a,c){r.min=qd(r.min,i,o,a,c),r.max=qd(r.max,i,o,a,c)}function Hp(r,{x:i,y:o}){Da(r.x,i.translate,i.scale,i.originPoint),Da(r.y,o.translate,o.scale,o.originPoint)}const Jd=.999999999999,bd=1.0000000000001;function w1(r,i,o,a=!1){const c=o.length;if(!c)return;i.x=i.y=1;let d,f;for(let p=0;pJd&&(i.x=1),i.yJd&&(i.y=1)}function hr(r,i){r.min=r.min+i,r.max=r.max+i}function eh(r,i,o,a,c=.5){const d=Ce(r.min,r.max,c);Da(r,i,o,d,a)}function pr(r,i){eh(r.x,i.x,i.scaleX,i.scale,i.originX),eh(r.y,i.y,i.scaleY,i.scale,i.originY)}function $p(r,i){return Up(x1(r.getBoundingClientRect(),i))}function S1(r,i,o){const a=$p(r,o),{scroll:c}=i;return c&&(hr(a.x,c.offset.x),hr(a.y,c.offset.y)),a}const Kp=({current:r})=>r?r.ownerDocument.defaultView:null,k1=new WeakMap;class T1{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_e(),this.visualElement=i}start(i,{snapToCursor:o=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(ki(v).point)},d=(v,w)=>{const{drag:k,dragPropagation:D,onDragStart:j}=this.getProps();if(k&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mv(k),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(N=>{let I=this.getAxisMotionValue(N).get()||0;if(Nt.test(I)){const{projection:W}=this.visualElement;if(W&&W.layout){const K=W.layout.layoutBox[N];K&&(I=dt(K)*(parseFloat(I)/100))}}this.originPoint[N]=I}),j&&xe.postRender(()=>j(v,w)),ya(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},f=(v,w)=>{const{dragPropagation:k,dragDirectionLock:D,onDirectionLock:j,onDrag:M}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:N}=w;if(D&&this.currentDirection===null){this.currentDirection=P1(N),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",w.point,N),this.updateAxis("y",w.point,N),this.visualElement.render(),M&&M(v,w)},p=(v,w)=>this.stop(v,w),m=()=>wt(v=>{var w;return this.getAnimationState(v)==="paused"&&((w=this.getAxisMotionValue(v).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Op(i,{onSessionStart:c,onStart:d,onMove:f,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:Kp(this.visualElement)})}stop(i,o){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&xe.postRender(()=>d(i,o))}cancel(){this.isDragging=!1;const{projection:i,animationState:o}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(i,o,a){const{drag:c}=this.getProps();if(!a||!Fs(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+a[i];this.constraints&&this.constraints[i]&&(f=d1(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var i;const{dragConstraints:o,dragElastic:a}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,d=this.constraints;o&&cr(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&c?this.constraints=h1(c.layoutBox,o):this.constraints=!1,this.elastic=y1(a),d!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&wt(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=g1(c.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:o}=this.getProps();if(!i||!cr(i))return!1;const a=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=S1(a,c.root,this.visualElement.getTransformPagePoint());let f=p1(c.layout.layoutBox,d);if(o){const p=o(v1(f));this.hasMutatedConstraints=!!p,p&&(f=Up(p))}return f}startAnimation(i){const{drag:o,dragMomentum:a,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=wt(v=>{if(!Fs(v,o,this.currentDirection))return;let w=m&&m[v]||{};f&&(w={min:0,max:0});const k=c?200:1e6,D=c?40:1e7,j={type:"inertia",velocity:a?i[v]:0,bounceStiffness:k,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...d,...w};return this.startAxisValueAnimation(v,j)});return Promise.all(g).then(p)}startAxisValueAnimation(i,o){const a=this.getAxisMotionValue(i);return ya(this.visualElement,i),a.start(uu(i,a,0,o,this.visualElement,!1))}stopAnimation(){wt(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){wt(i=>{var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(i){var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(i){const o=`_drag${i.toUpperCase()}`,a=this.visualElement.getProps(),c=a[o];return c||this.visualElement.getValue(i,(a.initial?a.initial[i]:void 0)||0)}snapToCursor(i){wt(o=>{const{drag:a}=this.getProps();if(!Fs(o,a,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(o);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[o];d.set(i[o]-Ce(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:o}=this.getProps(),{projection:a}=this.visualElement;if(!cr(o)||!a||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};wt(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();c[f]=m1({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),wt(f=>{if(!Fs(f,i,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(Ce(m,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;k1.set(this.visualElement,this);const i=this.visualElement.current,o=fi(i,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),a=()=>{const{dragConstraints:m}=this.getProps();cr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",a);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),xe.read(a);const f=vi(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(wt(v=>{const w=this.getAxisMotionValue(v);w&&(this.originPoint[v]+=m[v].translate,w.set(w.get()+m[v].translate))}),this.visualElement.render())}));return()=>{f(),o(),d(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:a=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=Ca,dragMomentum:p=!0}=i;return{...i,drag:o,dragDirectionLock:a,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function Fs(r,i,o){return(i===!0||i===r)&&(o===null||o===r)}function P1(r,i=10){let o=null;return Math.abs(r.y)>i?o="y":Math.abs(r.x)>i&&(o="x"),o}class C1 extends yn{constructor(i){super(i),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new T1(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}unmount(){this.removeGroupControls(),this.removeListeners()}}const th=r=>(i,o)=>{r&&xe.postRender(()=>r(i,o))};class E1 extends yn{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(i){this.session=new Op(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kp(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:o,onPan:a,onPanEnd:c}=this.node.getProps();return{onSessionStart:th(i),onStart:th(o),onMove:a,onEnd:(d,f)=>{delete this.session,c&&xe.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=fi(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nh(r,i){return i.max===i.min?0:r/(i.max-i.min)*100}const oi={correct:(r,i)=>{if(!i.target)return r;if(typeof r=="string")if(J.test(r))r=parseFloat(r);else return r;const o=nh(r,i.target.x),a=nh(r,i.target.y);return`${o}% ${a}%`}},D1={correct:(r,{treeScale:i,projectionDelta:o})=>{const a=r,c=gn.parse(r);if(c.length>5)return a;const d=gn.createTransformer(r),f=typeof c[0]!="number"?1:0,p=o.x.scale*i.x,m=o.y.scale*i.y;c[0+f]/=p,c[1+f]/=m;const g=Ce(p,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),d(c)}};class A1 extends ne.Component{componentDidMount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a,layoutId:c}=this.props,{projection:d}=i;Yy(R1),d&&(o.group&&o.group.add(d),a&&a.register&&c&&a.register(d),d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),zs.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:o,visualElement:a,drag:c,isPresent:d}=this.props,f=a.projection;return f&&(f.isPresent=d,c||i.layoutDependency!==o||o===void 0?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||xe.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Ia.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a}=this.props,{projection:c}=i;c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),a&&a.deregister&&a.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Gp(r){const[i,o]=uy(),a=ne.useContext(Ah);return A.jsx(A1,{...r,layoutGroup:a,switchLayoutGroup:ne.useContext(Fh),isPresent:i,safeToRemove:o})}const R1={borderRadius:{...oi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oi,borderTopRightRadius:oi,borderBottomLeftRadius:oi,borderBottomRightRadius:oi,boxShadow:D1};function M1(r,i,o){const a=Ge(r)?r:gi(r);return a.start(uu("",a,i,o)),a.animation}function _1(r){return r instanceof SVGElement&&r.tagName!=="svg"}const V1=(r,i)=>r.depth-i.depth;class L1{constructor(){this.children=[],this.isDirty=!1}add(i){Ja(this.children,i),this.isDirty=!0}remove(i){ba(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(V1),this.isDirty=!1,this.children.forEach(i)}}function j1(r,i){const o=Ft.now(),a=({timestamp:c})=>{const d=c-o;d>=i&&(mn(a),r(d-i))};return xe.read(a,!0),()=>mn(a)}const Qp=["TopLeft","TopRight","BottomLeft","BottomRight"],N1=Qp.length,rh=r=>typeof r=="string"?parseFloat(r):r,ih=r=>typeof r=="number"||J.test(r);function F1(r,i,o,a,c,d){c?(r.opacity=Ce(0,o.opacity!==void 0?o.opacity:1,O1(a)),r.opacityExit=Ce(i.opacity!==void 0?i.opacity:1,0,I1(a))):d&&(r.opacity=Ce(i.opacity!==void 0?i.opacity:1,o.opacity!==void 0?o.opacity:1,a));for(let f=0;fai?1:o(mr(r,i,a))}function oh(r,i){r.min=i.min,r.max=i.max}function xt(r,i){oh(r.x,i.x),oh(r.y,i.y)}function lh(r,i){r.translate=i.translate,r.scale=i.scale,r.originPoint=i.originPoint,r.origin=i.origin}function ah(r,i,o,a,c){return r-=i,r=Qs(r,1/o,a),c!==void 0&&(r=Qs(r,1/c,a)),r}function z1(r,i=0,o=1,a=.5,c,d=r,f=r){if(Nt.test(i)&&(i=parseFloat(i),i=Ce(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=Ce(d.min,d.max,a);r===d&&(p-=i),r.min=ah(r.min,i,o,p,c),r.max=ah(r.max,i,o,p,c)}function uh(r,i,[o,a,c],d,f){z1(r,i[o],i[a],i[c],i.scale,d,f)}const B1=["x","scaleX","originX"],U1=["y","scaleY","originY"];function ch(r,i,o,a){uh(r.x,i,B1,o?o.x:void 0,a?a.x:void 0),uh(r.y,i,U1,o?o.y:void 0,a?a.y:void 0)}function fh(r){return r.translate===0&&r.scale===1}function Xp(r){return fh(r.x)&&fh(r.y)}function dh(r,i){return r.min===i.min&&r.max===i.max}function W1(r,i){return dh(r.x,i.x)&&dh(r.y,i.y)}function hh(r,i){return Math.round(r.min)===Math.round(i.min)&&Math.round(r.max)===Math.round(i.max)}function Zp(r,i){return hh(r.x,i.x)&&hh(r.y,i.y)}function ph(r){return dt(r.x)/dt(r.y)}function mh(r,i){return r.translate===i.translate&&r.scale===i.scale&&r.originPoint===i.originPoint}class H1{constructor(){this.members=[]}add(i){Ja(this.members,i),i.scheduleRender()}remove(i){if(ba(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(i){const o=this.members.findIndex(c=>i===c);if(o===0)return!1;let a;for(let c=o;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){a=d;break}}return a?(this.promote(a),!0):!1}promote(i,o){const a=this.lead;if(i!==a&&(this.prevLead=a,this.lead=i,i.show(),a)){a.instance&&a.scheduleRender(),i.scheduleRender(),i.resumeFrom=a,o&&(i.resumeFrom.preserveOpacity=!0),a.snapshot&&(i.snapshot=a.snapshot,i.snapshot.latestValues=a.animationValues||a.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:o,resumingFrom:a}=i;o.onExitComplete&&o.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $1(r,i,o){let a="";const c=r.x.translate/i.x,d=r.y.translate/i.y,f=(o==null?void 0:o.z)||0;if((c||d||f)&&(a=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(a+=`scale(${1/i.x}, ${1/i.y}) `),o){const{transformPerspective:g,rotate:v,rotateX:w,rotateY:k,skewX:D,skewY:j}=o;g&&(a=`perspective(${g}px) ${a}`),v&&(a+=`rotate(${v}deg) `),w&&(a+=`rotateX(${w}deg) `),k&&(a+=`rotateY(${k}deg) `),D&&(a+=`skewX(${D}deg) `),j&&(a+=`skewY(${j}deg) `)}const p=r.x.scale*i.x,m=r.y.scale*i.y;return(p!==1||m!==1)&&(a+=`scale(${p}, ${m})`),a||"none"}const jn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ui=typeof window<"u"&&window.MotionDebug!==void 0,la=["","X","Y","Z"],K1={visibility:"hidden"},gh=1e3;let G1=0;function aa(r,i,o,a){const{latestValues:c}=i;c[r]&&(o[r]=c[r],i.setStaticValue(r,0),a&&(a[r]=0))}function qp(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:i}=r.options;if(!i)return;const o=sp(i);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:d}=r.options;window.MotionCancelOptimisedAnimation(o,"transform",xe,!(c||d))}const{parent:a}=r;a&&!a.hasCheckedOptimisedAppear&&qp(a)}function Jp({attachResizeListener:r,defaultParent:i,measureScroll:o,checkIsScrollRoot:a,resetTransform:c}){return class{constructor(f={},p=i==null?void 0:i()){this.id=G1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ui&&(jn.totalNodes=jn.resolvedTargetDeltas=jn.recalculatedProjection=0),this.nodes.forEach(X1),this.nodes.forEach(ex),this.nodes.forEach(tx),this.nodes.forEach(Z1),ui&&window.MotionDebug.record(jn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;mthis.root.updateBlockedByResize=!1;r(f,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=j1(k,250),zs.hasAnimatedSinceResize&&(zs.hasAnimatedSinceResize=!1,this.nodes.forEach(vh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:k,hasRelativeTargetChanged:D,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||v.getDefaultTransition()||ox,{onLayoutAnimationStart:N,onLayoutAnimationComplete:I}=v.getProps(),W=!this.targetLayout||!Zp(this.targetLayout,j)||D,K=!k&&D;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||K||k&&(W||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,K);const ee={...Ya(M,"layout"),onPlay:N,onComplete:I};(v.shouldReduceMotion||this.options.layoutRoot)&&(ee.delay=0,ee.type=!1),this.startAnimation(ee)}else k||vh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,mn(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(nx),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&qp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{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 m=0;m{const Q=ee/1e3;xh(w.x,f.x,Q),xh(w.y,f.y,Q),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hi(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ix(this.relativeTarget,this.relativeTargetOrigin,k,Q),K&&W1(this.relativeTarget,K)&&(this.isProjectionDirty=!1),K||(K=_e()),xt(K,this.relativeTarget)),M&&(this.animationValues=v,F1(v,g,this.latestValues,Q,W,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{zs.hasAnimatedSinceResize=!0,this.currentAnimation=M1(0,gh,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:v}=f;if(!(!p||!m||!g)){if(this!==f&&this.layout&&g&&bp(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||_e();const w=dt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+w;const k=dt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+k}xt(p,m),pr(p,v),di(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new H1),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&aa("z",f,g,this.animationValues);for(let v=0;v{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(yh),this.root.sharedNodes.clear()}}}function Q1(r){r.updateLayout()}function Y1(r){var i;const o=((i=r.resumeFrom)===null||i===void 0?void 0:i.snapshot)||r.snapshot;if(r.isLead()&&r.layout&&o&&r.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:c}=r.layout,{animationType:d}=r.options,f=o.source!==r.layout.source;d==="size"?wt(w=>{const k=f?o.measuredBox[w]:o.layoutBox[w],D=dt(k);k.min=a[w].min,k.max=k.min+D}):bp(d,o.layoutBox,a)&&wt(w=>{const k=f?o.measuredBox[w]:o.layoutBox[w],D=dt(a[w]);k.max=k.min+D,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[w].max=r.relativeTarget[w].min+D)});const p=dr();di(p,a,o.layoutBox);const m=dr();f?di(m,r.applyTransform(c,!0),o.measuredBox):di(m,a,o.layoutBox);const g=!Xp(p);let v=!1;if(!r.resumeFrom){const w=r.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:k,layout:D}=w;if(k&&D){const j=_e();hi(j,o.layoutBox,k.layoutBox);const M=_e();hi(M,a,D.layoutBox),Zp(j,M)||(v=!0),w.options.layoutRoot&&(r.relativeTarget=M,r.relativeTargetOrigin=j,r.relativeParent=w)}}}r.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:m,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:v})}else if(r.isLead()){const{onExitComplete:a}=r.options;a&&a()}r.options.transition=void 0}function X1(r){ui&&jn.totalNodes++,r.parent&&(r.isProjecting()||(r.isProjectionDirty=r.parent.isProjectionDirty),r.isSharedProjectionDirty||(r.isSharedProjectionDirty=!!(r.isProjectionDirty||r.parent.isProjectionDirty||r.parent.isSharedProjectionDirty)),r.isTransformDirty||(r.isTransformDirty=r.parent.isTransformDirty))}function Z1(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function q1(r){r.clearSnapshot()}function yh(r){r.clearMeasurements()}function J1(r){r.isLayoutDirty=!1}function b1(r){const{visualElement:i}=r.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),r.resetTransform()}function vh(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function ex(r){r.resolveTargetDelta()}function tx(r){r.calcProjection()}function nx(r){r.resetSkewAndRotation()}function rx(r){r.removeLeadSnapshot()}function xh(r,i,o){r.translate=Ce(i.translate,0,o),r.scale=Ce(i.scale,1,o),r.origin=i.origin,r.originPoint=i.originPoint}function wh(r,i,o,a){r.min=Ce(i.min,o.min,a),r.max=Ce(i.max,o.max,a)}function ix(r,i,o,a){wh(r.x,i.x,o.x,a),wh(r.y,i.y,o.y,a)}function sx(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const ox={duration:.45,ease:[.4,0,.1,1]},Sh=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),kh=Sh("applewebkit/")&&!Sh("chrome/")?Math.round:ft;function Th(r){r.min=kh(r.min),r.max=kh(r.max)}function lx(r){Th(r.x),Th(r.y)}function bp(r,i,o){return r==="position"||r==="preserve-aspect"&&!c1(ph(i),ph(o),.2)}function ax(r){var i;return r!==r.root&&((i=r.scroll)===null||i===void 0?void 0:i.wasRoot)}const ux=Jp({attachResizeListener:(r,i)=>vi(r,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ua={current:void 0},em=Jp({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!ua.current){const r=new ux({});r.mount(window),r.setOptions({layoutScroll:!0}),ua.current=r}return ua.current},resetTransform:(r,i)=>{r.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),cx={pan:{Feature:E1},drag:{Feature:C1,ProjectionNode:em,MeasureLayout:Gp}};function Ph(r,i,o){const{props:a}=r;r.animationState&&a.whileHover&&r.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,d=a[c];d&&xe.postRender(()=>d(i,ki(i)))}class fx extends yn{mount(){const{current:i}=this.node;i&&(this.unmount=cv(i,o=>(Ph(this.node,o,"Start"),a=>Ph(this.node,a,"End"))))}unmount(){}}class dx extends yn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Si(vi(this.node.current,"focus",()=>this.onFocus()),vi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ch(r,i,o){const{props:a}=r;r.animationState&&a.whileTap&&r.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),d=a[c];d&&xe.postRender(()=>d(i,ki(i)))}class hx extends yn{mount(){const{current:i}=this.node;i&&(this.unmount=pv(i,o=>(Ch(this.node,o,"Start"),(a,{success:c})=>Ch(this.node,a,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Aa=new WeakMap,ca=new WeakMap,px=r=>{const i=Aa.get(r.target);i&&i(r)},mx=r=>{r.forEach(px)};function gx({root:r,...i}){const o=r||document;ca.has(o)||ca.set(o,{});const a=ca.get(o),c=JSON.stringify(i);return a[c]||(a[c]=new IntersectionObserver(mx,{root:r,...i})),a[c]}function yx(r,i,o){const a=gx(i);return Aa.set(r,o),a.observe(r),()=>{Aa.delete(r),a.unobserve(r)}}const vx={some:0,all:1};class xx extends yn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:o,margin:a,amount:c="some",once:d}=i,f={root:o?o.current:void 0,rootMargin:a,threshold:typeof c=="number"?c:vx[c]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:w}=this.node.getProps(),k=g?v:w;k&&k(m)};return yx(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:o}=this.node;["amount","margin","root"].some(wx(i,o))&&this.startObserver()}unmount(){}}function wx({viewport:r={}},{viewport:i={}}={}){return o=>r[o]!==i[o]}const Sx={inView:{Feature:xx},tap:{Feature:hx},focus:{Feature:dx},hover:{Feature:fx}},kx={layout:{ProjectionNode:em,MeasureLayout:Gp}},Ra={current:null},tm={current:!1};function Tx(){if(tm.current=!0,!!La)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),i=()=>Ra.current=r.matches;r.addListener(i),i()}else Ra.current=!1}const Px=[...Ep,Ke,gn],Cx=r=>Px.find(Cp(r)),Eh=new WeakMap;function Ex(r,i,o){for(const a in i){const c=i[a],d=o[a];if(Ge(c))r.addValue(a,c);else if(Ge(d))r.addValue(a,gi(c,{owner:r}));else if(d!==c)if(r.hasValue(a)){const f=r.getValue(a);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=r.getStaticValue(a);r.addValue(a,gi(f!==void 0?f:c,{owner:r}))}}for(const a in o)i[a]===void 0&&r.removeValue(a);return i}const Dh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Dx{scrapeMotionValuesFromProps(i,o,a){return{}}constructor({parent:i,props:o,presenceContext:a,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ou,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.renderScheduledAt=0,this.scheduleRender=()=>{const D=Ft.now();this.renderScheduledAtthis.bindToMotionValue(a,o)),tm.current||Tx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ra.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Eh.delete(this.current),this.projection&&this.projection.unmount(),mn(this.notifyUpdate),mn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const o=this.features[i];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(i,o){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const a=On.has(i),c=o.on("change",p=>{this.latestValues[i]=p,this.props.onUpdate&&xe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),d=o.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,o)),this.valueSubscriptions.set(i,()=>{c(),d(),f&&f(),o.owner&&o.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in gr){const o=gr[i];if(!o)continue;const{isEnabled:a,Feature:c}=o;if(!this.features[i]&&c&&a(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_e()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,o){this.latestValues[i]=o}update(i,o){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;ao.variantChildren.delete(i)}addValue(i,o){const a=this.values.get(i);o!==a&&(a&&this.removeValue(i),this.bindToMotionValue(i,o),this.values.set(i,o),this.latestValues[i]=o.get())}removeValue(i){this.values.delete(i);const o=this.valueSubscriptions.get(i);o&&(o(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,o){if(this.props.values&&this.props.values[i])return this.props.values[i];let a=this.values.get(i);return a===void 0&&o!==void 0&&(a=gi(o===null?void 0:o,{owner:this}),this.addValue(i,a)),a}readValue(i,o){var a;let c=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(a=this.getBaseTargetFromProps(this.props,i))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,i,this.options);return c!=null&&(typeof c=="string"&&(Tp(c)||pp(c))?c=parseFloat(c):!Cx(c)&&gn.test(o)&&(c=wp(i,o)),this.setBaseTarget(i,Ge(c)?c.get():c)),Ge(c)?c.get():c}setBaseTarget(i,o){this.baseTarget[i]=o}getBaseTarget(i){var o;const{initial:a}=this.props;let c;if(typeof a=="string"||typeof a=="object"){const f=Ba(this.props,a,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);f&&(c=f[i])}if(a&&c!==void 0)return c;const d=this.getBaseTargetFromProps(this.props,i);return d!==void 0&&!Ge(d)?d:this.initialValues[i]!==void 0&&c===void 0?void 0:this.baseTarget[i]}on(i,o){return this.events[i]||(this.events[i]=new eu),this.events[i].add(o)}notify(i,...o){this.events[i]&&this.events[i].notify(...o)}}class nm extends Dx{constructor(){super(...arguments),this.KeyframeResolver=Dp}sortInstanceNodePosition(i,o){return i.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(i,o){return i.style?i.style[o]:void 0}removeValueFromRenderState(i,{vars:o,style:a}){delete o[i],delete a[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Ge(i)&&(this.childSubscription=i.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}function Ax(r){return window.getComputedStyle(r)}class Rx extends nm{constructor(){super(...arguments),this.type="html",this.renderInstance=Hh}readValueFromInstance(i,o){if(On.has(o)){const a=su(o);return a&&a.default||0}else{const a=Ax(i),c=(Bh(o)?a.getPropertyValue(o):a[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:o}){return $p(i,o)}build(i,o,a){Ha(i,o,a.transformTemplate)}scrapeMotionValuesFromProps(i,o,a){return Qa(i,o,a)}}class Mx extends nm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_e}getBaseTargetFromProps(i,o){return i[o]}readValueFromInstance(i,o){if(On.has(o)){const a=su(o);return a&&a.default||0}return o=$h.has(o)?o:Oa(o),i.getAttribute(o)}scrapeMotionValuesFromProps(i,o,a){return Qh(i,o,a)}build(i,o,a){$a(i,o,this.isSVGTag,a.transformTemplate)}renderInstance(i,o,a,c){Kh(i,o,a,c)}mount(i){this.isSVGTag=Ga(i.tagName),super.mount(i)}}const _x=(r,i)=>za(r)?new Mx(i):new Rx(i,{allowProjection:r!==ne.Fragment}),Vx=rv({...t1,...Sx,...cx,...kx},_x),fa=vy(Vx),oe={M:"#00D4FF",one:"#FFD700",N:"#FF00AA",D:"#00FF88",text:"#E8EDF5",textMuted:"#6B7FA3",textDim:"#3A4A6B",border:"rgba(0, 212, 255, 0.2)"},Ma={structure:"⍂",edge:"─",activate:"⚡"},Lx=[{label:"Context churn",value:"-47.05%",note:"in the recorded corpus"},{label:"False starts",value:"14 -> 0",note:"on measured workflows"},{label:"Guided handoffs",value:"39",note:"recorded follow-throughs"},{label:"Recovery loops",value:"12",note:"successful recoveries"}],jx=[{title:"Find the authority before the model drifts",body:"m1nd gets an agent to the file, symbol, or seam that actually matters before it burns time rediscovering structure through blind reads.",accent:oe.M},{title:"Preflight blast radius before the edit",body:"impact surfaces real consumers and connected seams early, so the agent can narrow scope before it patches the wrong place.",accent:oe.one},{title:"Prepare narrower, safer changes",body:"surgical_context_v2 and validate_plan turn connected edits into a scoped plan instead of a blind multi-file jump.",accent:oe.D},{title:"Work with connected context",body:"m1nd can connect code with docs, RFCs, papers, articles, and memory so the agent does not reason from code alone.",accent:oe.N}],Nx=[{step:"01",title:"Locate the cut",body:"Start with trace, seek, impact, or trail_resume to get structure before the model disappears into repo reading."},{step:"02",title:"Check impact",body:"Use impact and proof_state to confirm whether the seam still needs proof or is ready for edit prep."},{step:"03",title:"Plan the narrow change",body:"Use surgical_context_v2 and validate_plan to pull connected context and expose blast radius before writing."},{step:"04",title:"Write with visibility",body:"apply_batch executes with phases, progress, verification verdicts, and runtime-visible completion signals."}],Fx=[{title:"Real v0.6.1 use cases",items:["stacktrace triage with trace when the top frame is not the real cause","blast-radius checks with impact before a risky edit","change preflight with validate_plan before a coupled multi-file patch","connected edit prep with surgical_context_v2 in one shot","continuity restore with trail_resume when an investigation gets interrupted"]},{title:"Use plain tools when the task is direct",items:["one-file lookups","simple text search","compiler truth and test output","logs and runtime inspection"]}];function Ox(){return A.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2,fontWeight:900,letterSpacing:0},children:[A.jsx("span",{style:{color:oe.M},children:"m"}),A.jsx("span",{style:{color:oe.one},children:"1"}),A.jsx("span",{style:{color:oe.N},children:"n"}),A.jsx("span",{style:{color:oe.D},children:"d"})]})}function Vn({children:r}){return A.jsx("div",{style:{fontSize:11,letterSpacing:3,textTransform:"uppercase",color:oe.textMuted,marginBottom:14},children:r})}function Ix({label:r,value:i,note:o}){return A.jsxs("div",{style:{background:"linear-gradient(180deg, rgba(20,27,45,0.82), rgba(15,20,32,0.74))",border:`1px solid ${oe.border}`,borderRadius:18,padding:"22px 20px",minHeight:148,boxShadow:"0 20px 60px rgba(0,0,0,0.22)"},children:[A.jsx("div",{style:{fontSize:12,color:oe.textMuted,letterSpacing:2,textTransform:"uppercase",marginBottom:16},children:r}),A.jsx("div",{style:{fontSize:34,lineHeight:1.05,color:oe.text,fontWeight:800,marginBottom:10},children:i}),A.jsx("div",{style:{fontSize:13,color:oe.textMuted,lineHeight:1.6},children:o})]})}function zx({title:r,body:i,accent:o}){return A.jsxs("div",{style:{position:"relative",background:"rgba(20,27,45,0.72)",border:`1px solid ${o}25`,borderRadius:20,padding:"24px 22px 22px",minHeight:220,overflow:"hidden"},children:[A.jsx("div",{style:{position:"absolute",inset:0,background:`radial-gradient(circle at top right, ${o}20, transparent 45%)`,pointerEvents:"none"}}),A.jsxs("div",{style:{position:"relative"},children:[A.jsxs("div",{style:{color:o,fontSize:12,letterSpacing:2,textTransform:"uppercase",marginBottom:14},children:[Ma.structure," Product truth"]}),A.jsx("div",{style:{color:oe.text,fontSize:22,lineHeight:1.22,fontWeight:700,marginBottom:14},children:r}),A.jsx("div",{style:{color:oe.textMuted,fontSize:14,lineHeight:1.75},children:i})]})]})}function Bx({step:r,title:i,body:o}){return A.jsxs("div",{style:{display:"grid",gridTemplateColumns:"88px 1fr",gap:18,alignItems:"start",padding:"22px 0",borderTop:"1px solid rgba(107,127,163,0.18)"},children:[A.jsx("div",{style:{color:oe.M,fontSize:14,letterSpacing:2,textTransform:"uppercase"},children:r}),A.jsxs("div",{children:[A.jsx("div",{style:{color:oe.text,fontSize:22,fontWeight:700,marginBottom:10},children:i}),A.jsx("div",{style:{color:oe.textMuted,fontSize:15,lineHeight:1.8},children:o})]})]})}function Ux(){return A.jsx("div",{className:"landing-shell",style:{minHeight:"100vh",background:` radial-gradient(circle at top left, rgba(0,212,255,0.15), transparent 26%), radial-gradient(circle at top right, rgba(255,0,170,0.12), transparent 28%), linear-gradient(180deg, #070B12 0%, #090F19 38%, #0B1220 100%) - `,color:q.text},children:R.jsxs("div",{className:"landing-container",style:{maxWidth:1220,margin:"0 auto",padding:"28px 28px 80px"},children:[R.jsxs(da.header,{className:"landing-header",initial:{opacity:0,y:-18},animate:{opacity:1,y:0},transition:{duration:.5},style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0 34px"},children:[R.jsxs("div",{className:"landing-brand",style:{display:"flex",alignItems:"center",gap:14,fontSize:24},children:[R.jsx(Bx,{}),R.jsx("span",{style:{color:q.textMuted,fontSize:12,letterSpacing:2,textTransform:"uppercase"},children:"Guided runtime for MCP agents"})]}),R.jsxs("div",{className:"header-actions",style:{display:"flex",gap:12,flexWrap:"wrap"},children:[R.jsx("a",{href:"https://github.com/maxkle1nz/m1nd",target:"_blank",rel:"noreferrer",style:ur,children:"GitHub"}),R.jsx("a",{href:"https://crates.io/crates/m1nd-mcp",target:"_blank",rel:"noreferrer",style:Bs,children:"Install m1nd-mcp"})]})]}),R.jsxs("section",{className:"hero-grid",style:{display:"grid",gridTemplateColumns:"1.2fr 0.8fr",gap:28,alignItems:"stretch",marginBottom:68},children:[R.jsxs(da.div,{className:"hero-panel",initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.55,delay:.05},style:{background:"linear-gradient(180deg, rgba(20,27,45,0.76), rgba(15,20,32,0.64))",border:"1px solid rgba(0,212,255,0.22)",borderRadius:28,padding:"34px 32px 30px",boxShadow:"0 30px 80px rgba(0,0,0,0.34)",position:"relative",overflow:"hidden"},children:[R.jsx("div",{style:{position:"absolute",inset:0,background:` + `,color:oe.text},children:A.jsxs("div",{className:"landing-container",style:{maxWidth:1220,margin:"0 auto",padding:"28px 28px 80px"},children:[A.jsxs(fa.header,{className:"landing-header",initial:{opacity:0,y:-18},animate:{opacity:1,y:0},transition:{duration:.5},style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0 34px"},children:[A.jsxs("div",{className:"landing-brand",style:{display:"flex",alignItems:"center",gap:14,fontSize:24},children:[A.jsx(Ox,{}),A.jsx("span",{style:{color:oe.textMuted,fontSize:12,letterSpacing:2,textTransform:"uppercase"},children:"Guided runtime for MCP agents"})]}),A.jsxs("div",{className:"header-actions",style:{display:"flex",gap:12,flexWrap:"wrap"},children:[A.jsx("a",{href:"https://github.com/maxkle1nz/m1nd",target:"_blank",rel:"noreferrer",style:ur,children:"GitHub"}),A.jsx("a",{href:"https://crates.io/crates/m1nd-mcp",target:"_blank",rel:"noreferrer",style:Bs,children:"Install m1nd-mcp"})]})]}),A.jsxs("section",{className:"hero-grid",style:{display:"grid",gridTemplateColumns:"1.2fr 0.8fr",gap:28,alignItems:"stretch",marginBottom:68},children:[A.jsxs(fa.div,{className:"hero-panel",initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.55,delay:.05},style:{background:"linear-gradient(180deg, rgba(20,27,45,0.76), rgba(15,20,32,0.64))",border:"1px solid rgba(0,212,255,0.22)",borderRadius:28,padding:"34px 32px 30px",boxShadow:"0 30px 80px rgba(0,0,0,0.34)",position:"relative",overflow:"hidden"},children:[A.jsx("div",{style:{position:"absolute",inset:0,background:` radial-gradient(circle at 12% 18%, rgba(0,212,255,0.22), transparent 28%), radial-gradient(circle at 92% 16%, rgba(255,0,170,0.18), transparent 24%), radial-gradient(circle at 85% 82%, rgba(0,255,136,0.12), transparent 22%) - `,pointerEvents:"none"}}),R.jsxs("div",{style:{position:"relative"},children:[R.jsx(pn,{children:"Local-first agent infrastructure"}),R.jsx("h1",{style:{fontSize:"clamp(40px, 7vw, 78px)",lineHeight:.96,letterSpacing:-2.4,fontWeight:800,maxWidth:760,marginBottom:20},children:"A local code graph engine for MCP agents."}),R.jsx("p",{style:{fontSize:18,color:q.textMuted,lineHeight:1.85,maxWidth:760,marginBottom:28},children:"m1nd helps agents trace failures, inspect impact, resume investigations, prepare safer edits, and recover from mistakes with less context churn. It does not just return results. It exposes proof state, next-step guidance, and execution progress."}),R.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:10,marginBottom:24},children:jx.map(r=>R.jsx("div",{style:{padding:"8px 12px",borderRadius:999,background:"rgba(8,12,20,0.58)",border:"1px solid rgba(232,237,245,0.08)",color:q.text,fontSize:12,letterSpacing:1},children:r},r))}),R.jsxs("div",{className:"hero-actions",style:{display:"flex",gap:12,flexWrap:"wrap",marginBottom:26},children:[R.jsx("a",{href:"/wiki/",style:Bs,children:"Read the docs"}),R.jsx("a",{href:"/wiki/benchmarks.html",style:ur,children:"See benchmark truth"})]}),R.jsx("div",{className:"pill-row",style:{display:"flex",gap:10,flexWrap:"wrap"},children:["proof_state","next-step guidance","trail_resume","apply_batch progress","recovery loops","SSE handoff"].map((r,i)=>R.jsx("div",{style:{padding:"10px 14px",borderRadius:999,fontSize:12,letterSpacing:1.4,textTransform:"uppercase",color:[q.M,q.one,q.N,q.D][i%4],border:`1px solid ${[q.M,q.one,q.N,q.D][i%4]}30`,background:"rgba(7,11,18,0.45)"},children:r},r))})]})]}),R.jsxs(da.aside,{className:"hero-side",initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.55,delay:.15},style:{display:"grid",gap:16},children:[R.jsxs("div",{className:"hero-visual",children:[R.jsx("div",{className:"hero-visual-grid"}),R.jsx("div",{className:"hero-visual-orbit hero-visual-orbit-a"}),R.jsx("div",{className:"hero-visual-orbit hero-visual-orbit-b"}),R.jsx("div",{className:"hero-visual-orbit hero-visual-orbit-c"}),R.jsxs("div",{className:"hero-visual-core",children:[R.jsx("div",{className:"hero-visual-core-label",children:"runtime"}),R.jsx("div",{className:"hero-visual-core-value",children:"m1nd"})]}),R.jsxs("div",{className:"hero-visual-node hero-node-trace",children:[R.jsx("span",{children:"trace"}),R.jsx("strong",{children:"proof_state=triaging"})]}),R.jsxs("div",{className:"hero-visual-node hero-node-validate",children:[R.jsx("span",{children:"validate_plan"}),R.jsx("strong",{children:"next=heuristics_surface"})]}),R.jsxs("div",{className:"hero-visual-node hero-node-batch",children:[R.jsx("span",{children:"apply_batch"}),R.jsx("strong",{children:"progress + handoff"})]}),R.jsxs("div",{className:"hero-visual-node hero-node-resume",children:[R.jsx("span",{children:"trail_resume"}),R.jsx("strong",{children:"next focus + next tool"})]}),R.jsxs("div",{className:"hero-visual-snippet",children:[R.jsx("div",{className:"hero-visual-snippet-line",children:'$ m1nd.trace("AuthError: stale session in middleware")'}),R.jsx("div",{className:"hero-visual-snippet-line",children:"proof_state=triaging"}),R.jsx("div",{className:"hero-visual-snippet-line",children:"next_suggested_tool=view"}),R.jsx("div",{className:"hero-visual-snippet-line",children:"next_suggested_target=middleware/session.py"})]})]}),R.jsxs("div",{style:{background:"linear-gradient(180deg, rgba(11,18,32,0.92), rgba(20,27,45,0.78))",border:"1px solid rgba(0,212,255,0.18)",borderRadius:24,padding:22},children:[R.jsx(pn,{children:"Current benchmark truth"}),R.jsx("div",{style:{color:q.textMuted,fontSize:14,lineHeight:1.8},children:"The recorded warm-graph corpus now measures not only token proxy, but also guidance, recovery, false starts, and workflow follow-through."})]}),R.jsx("div",{className:"metrics-grid",style:{display:"grid",gap:14,gridTemplateColumns:"1fr 1fr"},children:Lx.map(r=>R.jsx(Ux,{...r},r.label))})]})]}),R.jsxs("section",{style:{marginBottom:74},children:[R.jsx(pn,{children:"Use it honestly"}),R.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:18,marginBottom:30},className:"use-grid",children:zx.map((r,i)=>R.jsxs("div",{style:{background:"rgba(15,20,32,0.74)",border:`1px solid ${i===0?`${q.D}22`:"rgba(107,127,163,0.16)"}`,borderRadius:22,padding:"24px 22px"},children:[R.jsx("div",{style:{fontSize:22,color:q.text,fontWeight:700,marginBottom:14},children:r.title}),R.jsx("div",{style:{display:"grid",gap:10},children:r.items.map(o=>R.jsxs("div",{style:{display:"flex",gap:10,alignItems:"flex-start"},children:[R.jsx("span",{style:{color:i===0?q.D:q.textDim},children:i===0?Ys.activate:Ys.edge}),R.jsx("span",{style:{color:q.textMuted,fontSize:14,lineHeight:1.7},children:o})]},o))})]},r.title))})]}),R.jsxs("section",{style:{marginBottom:74},children:[R.jsx(pn,{children:"Why it matters"}),R.jsxs("div",{className:"split-grid",style:{display:"grid",gridTemplateColumns:"0.92fr 1.08fr",gap:28,alignItems:"start"},children:[R.jsxs("div",{children:[R.jsx("h2",{style:ha,children:"Without structure, agents keep rediscovering the repo."}),R.jsx("p",{style:pa,children:"Raw text search can find strings, but it does not tell an agent whether it is still triaging, actively proving, or already safe to move into edit prep. The real product win is less hesitation, less re-reading, and less time spent reconstructing state from scratch."})]}),R.jsx($x,{})]})]}),R.jsxs("section",{style:{marginBottom:74},children:[R.jsx(pn,{children:"Why teams buy this"}),R.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:14},className:"buyer-grid",children:Ox.map((r,i)=>R.jsxs("div",{style:{padding:"18px 18px 20px",borderRadius:18,background:"rgba(15,20,32,0.72)",border:`1px solid ${[q.M,q.one,q.N,q.D][i%4]}22`},children:[R.jsx("div",{style:{color:[q.M,q.one,q.N,q.D][i%4],fontSize:11,letterSpacing:2,textTransform:"uppercase",marginBottom:10},children:"Outcome"}),R.jsx("div",{style:{color:q.text,fontSize:15,lineHeight:1.7},children:r})]},r))})]}),R.jsxs("section",{style:{marginBottom:74},children:[R.jsx(pn,{children:"What m1nd actually changes"}),R.jsx("div",{className:"capability-grid",style:{display:"grid",gap:18,gridTemplateColumns:"repeat(3, minmax(0, 1fr))"},children:Nx.map(r=>R.jsx(Wx,{...r},r.title))})]}),R.jsxs("section",{style:{marginBottom:74},children:[R.jsx(pn,{children:"Guided workflow"}),R.jsxs("div",{className:"workflow-grid",style:{display:"grid",gridTemplateColumns:"0.9fr 1.1fr",gap:34,alignItems:"start",background:"linear-gradient(180deg, rgba(20,27,45,0.72), rgba(15,20,32,0.62))",border:"1px solid rgba(0,212,255,0.18)",borderRadius:28,padding:"30px 28px"},children:[R.jsxs("div",{children:[R.jsx("h2",{style:ha,children:"A guided agent workflow"}),R.jsxs("p",{style:pa,children:["The product is strongest when it changes the sequence of work, not just the answer format. A grounded flow now looks like ",R.jsx("span",{style:{color:q.M},children:"trace -> view -> surgical_context_v2 -> validate_plan -> apply_batch"}),"."]})]}),R.jsx("div",{children:Fx.map(r=>R.jsx(Hx,{...r},r.step))})]})]}),R.jsxs("section",{className:"final-cta-grid",style:{background:"linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,0,170,0.08), rgba(0,255,136,0.08))",border:"1px solid rgba(0,212,255,0.2)",borderRadius:30,padding:"34px 30px",display:"grid",gridTemplateColumns:"1.1fr 0.9fr",gap:28,alignItems:"center"},children:[R.jsxs("div",{children:[R.jsx(pn,{children:"v0.6.1"}),R.jsx("h2",{style:ha,children:"Ship the runtime your agents can actually work with."}),R.jsx("p",{style:pa,children:"m1nd is strongest when the work is structural, connected, stateful, or risky. That is where proof state, handoff, continuity, recovery, and execution visibility change how an agent operates."})]}),R.jsxs("div",{className:"cta-actions",style:{display:"flex",gap:12,justifyContent:"flex-end",flexWrap:"wrap"},children:[R.jsx("a",{href:"https://crates.io/crates/m1nd-mcp",target:"_blank",rel:"noreferrer",style:Bs,children:"Install from crates.io"}),R.jsx("a",{href:"https://github.com/maxkle1nz/m1nd#readme",target:"_blank",rel:"noreferrer",style:ur,children:"Read README"}),R.jsx("a",{href:"/wiki/",style:ur,children:"Open wiki"}),R.jsx("a",{href:"/wiki/benchmarks.html",style:ur,children:"Benchmark corpus"}),R.jsx("a",{href:"https://github.com/maxkle1nz/m1nd/releases/tag/v0.6.1",target:"_blank",rel:"noreferrer",style:ur,children:"View release"})]})]})]})})}const Bs={display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:46,padding:"0 18px",borderRadius:999,border:"1px solid rgba(0,212,255,0.28)",background:"linear-gradient(135deg, rgba(0,212,255,0.18), rgba(0,255,136,0.14))",color:q.text,textDecoration:"none",fontSize:13,letterSpacing:1.2,textTransform:"uppercase"},ur={...Bs,background:"rgba(15,20,32,0.75)",border:"1px solid rgba(107,127,163,0.2)"},ha={fontSize:"clamp(30px, 4vw, 52px)",lineHeight:1.02,letterSpacing:-1.5,fontWeight:780,marginBottom:18},pa={color:q.textMuted,fontSize:16,lineHeight:1.85};ly.createRoot(document.getElementById("root")).render(R.jsx(re.StrictMode,{children:R.jsx(Kx,{})})); + `,pointerEvents:"none"}}),A.jsxs("div",{style:{position:"relative"},children:[A.jsx(Vn,{children:"Map first, cut second"}),A.jsx("h1",{style:{fontSize:"clamp(40px, 7vw, 78px)",lineHeight:.96,letterSpacing:-2.4,fontWeight:800,maxWidth:760,marginBottom:20},children:"Before the model finishes reading, m1nd has already found the cut."}),A.jsx("p",{style:{fontSize:18,color:oe.textMuted,lineHeight:1.85,maxWidth:760,marginBottom:28},children:"m1nd reduces token burn on structural work by finding authority, blast radius, and connected edit context before an agent disappears into read-search-drift loops."}),A.jsxs("div",{className:"hero-actions",style:{display:"flex",gap:12,flexWrap:"wrap",marginBottom:26},children:[A.jsx("a",{href:"/wiki/",style:Bs,children:"Read the docs"}),A.jsx("a",{href:"/wiki/benchmarks.html",style:ur,children:"See measured benchmarks"})]}),A.jsx("div",{className:"pill-row",style:{display:"flex",gap:10,flexWrap:"wrap"},children:["authority discovery","blast-radius preflight","connected edit context","apply_batch"].map((r,i)=>A.jsx("div",{style:{padding:"10px 14px",borderRadius:999,fontSize:12,letterSpacing:1.4,textTransform:"uppercase",color:[oe.M,oe.one,oe.N,oe.D][i%4],border:`1px solid ${[oe.M,oe.one,oe.N,oe.D][i%4]}30`,background:"rgba(7,11,18,0.45)"},children:r},r))})]})]}),A.jsxs(fa.aside,{className:"hero-side",initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.55,delay:.15},style:{display:"grid",gap:16},children:[A.jsxs("div",{className:"hero-visual",children:[A.jsx("div",{className:"hero-visual-grid"}),A.jsx("div",{className:"hero-visual-orbit hero-visual-orbit-a"}),A.jsx("div",{className:"hero-visual-orbit hero-visual-orbit-b"}),A.jsx("div",{className:"hero-visual-orbit hero-visual-orbit-c"}),A.jsxs("div",{className:"hero-visual-core",children:[A.jsx("div",{className:"hero-visual-core-label",children:"map lands first"}),A.jsx("div",{className:"hero-visual-core-value",children:"m1nd"})]}),A.jsxs("div",{className:"hero-visual-node hero-node-trace",children:[A.jsx("span",{children:"trace"}),A.jsx("strong",{children:"authority located"})]}),A.jsxs("div",{className:"hero-visual-node hero-node-validate",children:[A.jsx("span",{children:"validate_plan"}),A.jsx("strong",{children:"blast radius checked"})]}),A.jsxs("div",{className:"hero-visual-node hero-node-batch",children:[A.jsx("span",{children:"apply_batch"}),A.jsx("strong",{children:"narrow write + progress"})]}),A.jsxs("div",{className:"hero-visual-node hero-node-resume",children:[A.jsx("span",{children:"trail_resume"}),A.jsx("strong",{children:"continuity preserved"})]}),A.jsxs("div",{className:"hero-visual-snippet",children:[A.jsx("div",{className:"hero-visual-snippet-line",children:'$ m1nd.trace("AuthError: stale session in middleware")'}),A.jsx("div",{className:"hero-visual-snippet-line",children:"authority=middleware/session.py"}),A.jsx("div",{className:"hero-visual-snippet-line",children:"blast_radius=3 consumers"}),A.jsx("div",{className:"hero-visual-snippet-line",children:"next_suggested_tool=validate_plan"})]})]}),A.jsxs("div",{style:{background:"linear-gradient(180deg, rgba(11,18,32,0.92), rgba(20,27,45,0.78))",border:"1px solid rgba(0,212,255,0.18)",borderRadius:24,padding:22},children:[A.jsx(Vn,{children:"Measured benchmark truth"}),A.jsx("div",{style:{color:oe.textMuted,fontSize:14,lineHeight:1.8},children:"The current corpus tracks where m1nd changes real workflow behavior: less context churn, fewer false starts, stronger handoff, and faster recovery on structural tasks."})]}),A.jsx("div",{className:"metrics-grid",style:{display:"grid",gap:14,gridTemplateColumns:"1fr 1fr"},children:Lx.map(r=>A.jsx(Ix,{...r},r.label))})]})]}),A.jsxs("section",{style:{marginBottom:74},children:[A.jsx(Vn,{children:"Use cases"}),A.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:18,marginBottom:30},className:"use-grid",children:Fx.map((r,i)=>A.jsxs("div",{style:{background:"rgba(15,20,32,0.74)",border:`1px solid ${i===0?`${oe.D}22`:"rgba(107,127,163,0.16)"}`,borderRadius:22,padding:"24px 22px"},children:[A.jsx("div",{style:{fontSize:22,color:oe.text,fontWeight:700,marginBottom:14},children:r.title}),A.jsx("div",{style:{display:"grid",gap:10},children:r.items.map(o=>A.jsxs("div",{style:{display:"flex",gap:10,alignItems:"flex-start"},children:[A.jsx("span",{style:{color:i===0?oe.D:oe.textDim},children:i===0?Ma.activate:Ma.edge}),A.jsx("span",{style:{color:oe.textMuted,fontSize:14,lineHeight:1.7},children:o})]},o))})]},r.title))})]}),A.jsxs("section",{style:{marginBottom:74},children:[A.jsx(Vn,{children:"Why it matters"}),A.jsxs("div",{children:[A.jsx("h2",{style:da,children:"Stop paying tokens to rediscover repo structure."}),A.jsx("p",{style:{...ha,maxWidth:920},children:"Models read. m1nd locates. That difference shows up as lower spend, faster orientation, less wandering, and narrower edits before the model has burned half the budget reopening files."})]})]}),A.jsxs("section",{style:{marginBottom:74},children:[A.jsx(Vn,{children:"What m1nd actually changes"}),A.jsx("div",{className:"capability-grid",style:{display:"grid",gap:18,gridTemplateColumns:"repeat(3, minmax(0, 1fr))"},children:jx.map(r=>A.jsx(zx,{...r},r.title))})]}),A.jsxs("section",{style:{marginBottom:74},children:[A.jsx(Vn,{children:"How it works"}),A.jsxs("div",{className:"workflow-grid",style:{display:"grid",gridTemplateColumns:"0.9fr 1.1fr",gap:34,alignItems:"start",background:"linear-gradient(180deg, rgba(20,27,45,0.72), rgba(15,20,32,0.62))",border:"1px solid rgba(0,212,255,0.18)",borderRadius:28,padding:"30px 28px"},children:[A.jsxs("div",{children:[A.jsx("h2",{style:da,children:"A workflow that lands before the drift begins"}),A.jsxs("p",{style:ha,children:["A grounded flow looks like ",A.jsx("span",{style:{color:oe.M},children:"trace -> view -> surgical_context_v2 -> validate_plan -> apply_batch"}),"."]})]}),A.jsx("div",{children:Nx.map(r=>A.jsx(Bx,{...r},r.step))})]})]}),A.jsxs("section",{className:"final-cta-grid",style:{background:"linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,0,170,0.08), rgba(0,255,136,0.08))",border:"1px solid rgba(0,212,255,0.2)",borderRadius:30,padding:"34px 30px",display:"grid",gridTemplateColumns:"1.1fr 0.9fr",gap:28,alignItems:"center"},children:[A.jsxs("div",{children:[A.jsx(Vn,{children:"v0.6.1"}),A.jsx("h2",{style:da,children:"Ship the runtime your agents can actually work with."}),A.jsx("p",{style:ha,children:"m1nd is strongest when the task is structural, connected, stateful, or risky. That is where less spend, faster orientation, narrower cuts, and grounded continuity change how an agent operates."})]}),A.jsxs("div",{className:"cta-actions",style:{display:"flex",gap:12,justifyContent:"flex-end",flexWrap:"wrap"},children:[A.jsx("a",{href:"https://crates.io/crates/m1nd-mcp",target:"_blank",rel:"noreferrer",style:Bs,children:"Install from crates.io"}),A.jsx("a",{href:"https://github.com/maxkle1nz/m1nd#readme",target:"_blank",rel:"noreferrer",style:ur,children:"Read README"}),A.jsx("a",{href:"/wiki/",style:ur,children:"Open wiki"}),A.jsx("a",{href:"/wiki/benchmarks.html",style:ur,children:"Benchmark corpus"}),A.jsx("a",{href:"https://github.com/maxkle1nz/m1nd/releases/tag/v0.6.1",target:"_blank",rel:"noreferrer",style:ur,children:"View release"})]})]})]})})}const Bs={display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:46,padding:"0 18px",borderRadius:999,border:"1px solid rgba(0,212,255,0.28)",background:"linear-gradient(135deg, rgba(0,212,255,0.18), rgba(0,255,136,0.14))",color:oe.text,textDecoration:"none",fontSize:13,letterSpacing:1.2,textTransform:"uppercase"},ur={...Bs,background:"rgba(15,20,32,0.75)",border:"1px solid rgba(107,127,163,0.2)"},da={fontSize:"clamp(30px, 4vw, 52px)",lineHeight:1.02,letterSpacing:-1.5,fontWeight:780,marginBottom:18},ha={color:oe.textMuted,fontSize:16,lineHeight:1.85};ly.createRoot(document.getElementById("root")).render(A.jsx(ne.StrictMode,{children:A.jsx(Ux,{})})); diff --git a/m1nd-demo/dist/index.html b/m1nd-demo/dist/index.html index b0b180c5..3efe7ad5 100644 --- a/m1nd-demo/dist/index.html +++ b/m1nd-demo/dist/index.html @@ -3,12 +3,12 @@ - m1nd — a local code graph engine for MCP agents + m1nd — find the cut before the drift begins - + diff --git a/m1nd-demo/index.html b/m1nd-demo/index.html index b45379be..cd54d1ea 100644 --- a/m1nd-demo/index.html +++ b/m1nd-demo/index.html @@ -3,7 +3,7 @@ - m1nd — a local code graph engine for MCP agents + m1nd — find the cut before the drift begins