(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Pp={exports:{}},Ho={},_p={exports:{}},V={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var gi=Symbol.for("react.element"),E0=Symbol.for("react.portal"),P0=Symbol.for("react.fragment"),_0=Symbol.for("react.strict_mode"),R0=Symbol.for("react.profiler"),M0=Symbol.for("react.provider"),L0=Symbol.for("react.context"),z0=Symbol.for("react.forward_ref"),D0=Symbol.for("react.suspense"),I0=Symbol.for("react.memo"),F0=Symbol.for("react.lazy"),Yc=Symbol.iterator;function O0(e){return e===null||typeof e!="object"?null:(e=Yc&&e[Yc]||e["@@iterator"],typeof e=="function"?e:null)}var Rp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mp=Object.assign,Lp={};function ur(e,t,n){this.props=e,this.context=t,this.refs=Lp,this.updater=n||Rp}ur.prototype.isReactComponent={};ur.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ur.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zp(){}zp.prototype=ur.prototype;function ga(e,t,n){this.props=e,this.context=t,this.refs=Lp,this.updater=n||Rp}var ya=ga.prototype=new zp;ya.constructor=ga;Mp(ya,ur.prototype);ya.isPureReactComponent=!0;var Kc=Array.isArray,Dp=Object.prototype.hasOwnProperty,xa={current:null},Ip={key:!0,ref:!0,__self:!0,__source:!0};function Fp(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Dp.call(t,r)&&!Ip.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,de=R[X];if(0>>1;Xi(fs,D))sni(Ai,fs)?(R[X]=Ai,R[sn]=D,X=sn):(R[X]=fs,R[on]=D,X=on);else if(sni(Ai,D))R[X]=Ai,R[sn]=D,X=sn;else break e}}return z}function i(R,z){var D=R.sortIndex-z.sortIndex;return D!==0?D:R.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var c=[],u=[],d=1,p=null,f=3,y=!1,x=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=R)r(u),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(u)}}function w(R){if(v=!1,g(R),!x)if(n(c)!==null)x=!0,Ee(j);else{var z=n(u);z!==null&&U(w,z.startTime-R)}}function j(R,z){x=!1,v&&(v=!1,m(T),T=-1),y=!0;var D=f;try{for(g(z),p=n(c);p!==null&&(!(p.expirationTime>z)||R&&!le());){var X=p.callback;if(typeof X=="function"){p.callback=null,f=p.priorityLevel;var de=X(p.expirationTime<=z);z=e.unstable_now(),typeof de=="function"?p.callback=de:p===n(c)&&r(c),g(z)}else r(c);p=n(c)}if(p!==null)var Ci=!0;else{var on=n(u);on!==null&&U(w,on.startTime-z),Ci=!1}return Ci}finally{p=null,f=D,y=!1}}var b=!1,C=null,T=-1,F=5,I=-1;function le(){return!(e.unstable_now()-IR||125X?(R.sortIndex=D,t(u,R),n(c)===null&&R===n(u)&&(v?(m(T),T=-1):v=!0,U(w,D-X))):(R.sortIndex=de,t(c,R),x||y||(x=!0,Ee(j))),R},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(R){var z=f;return function(){var D=f;f=z;try{return R.apply(this,arguments)}finally{f=D}}}})($p);Np.exports=$p;var X0=Np.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Q0=A,Be=X0;function P(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"),sl=Object.prototype.hasOwnProperty,q0=/^[: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]*$/,Qc={},qc={};function Z0(e){return sl.call(qc,e)?!0:sl.call(Qc,e)?!1:q0.test(e)?qc[e]=!0:(Qc[e]=!0,!1)}function J0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eg(e,t,n,r){if(t===null||typeof t>"u"||J0(e,t,n,r))return!0;if(r)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 Ae(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Ae(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){ye[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var wa=/[\-:]([a-z])/g;function Sa(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(wa,Sa);ye[t]=new Ae(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(wa,Sa);ye[t]=new Ae(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(wa,Sa);ye[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function ka(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2a||i[l]!==o[a]){var c=` `+i[l].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=l&&0<=a);break}}}finally{gs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cr(e):""}function tg(e){switch(e.tag){case 5:return Cr(e.type);case 16:return Cr("Lazy");case 13:return Cr("Suspense");case 19:return Cr("SuspenseList");case 0:case 2:case 15:return e=ys(e.type,!1),e;case 11:return e=ys(e.type.render,!1),e;case 1:return e=ys(e.type,!0),e;default:return""}}function ul(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 _n:return"Fragment";case Pn:return"Portal";case ll:return"Profiler";case ja:return"StrictMode";case al:return"Suspense";case cl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Up:return(e.displayName||"Context")+".Consumer";case Hp:return(e._context.displayName||"Context")+".Provider";case ba:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ta:return t=e.displayName||null,t!==null?t:ul(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return ul(e(t))}catch{}}return null}function ng(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 ul(t);case 8:return t===ja?"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 Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rg(e){var t=Yp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _i(e){e._valueTracker||(e._valueTracker=rg(e))}function Kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fo(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 dl(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xp(e,t){t=t.checked,t!=null&&ka(e,"checked",t,!1)}function pl(e,t){Xp(e,t);var n=Qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fl(e,t.type,n):t.hasOwnProperty("defaultValue")&&fl(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 fl(e,t,n){(t!=="number"||fo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ar=Array.isArray;function Yn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ri.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={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},ig=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){ig.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function Jp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function ef(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Jp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var og=te({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 gl(e,t){if(t){if(og[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function yl(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 xl=null;function Ca(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vl=null,Kn=null,Xn=null;function ru(e){if(e=vi(e)){if(typeof vl!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Xo(t),vl(e.stateNode,e.type,t))}}function tf(e){Kn?Xn?Xn.push(e):Xn=[e]:Kn=e}function nf(){if(Kn){var e=Kn,t=Xn;if(Xn=Kn=null,ru(e),t)for(e=0;e>>=0,e===0?32:31-(gg(e)/yg|0)|0}var Mi=64,Li=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 yo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Er(a):(o&=l,o!==0&&(r=Er(o)))}else l=n&~i,l!==0?r=Er(l):o!==0&&(r=Er(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function Sg(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 r=e.eventTimes;for(e=e.expirationTimes;0=Dr),pu=" ",fu=!1;function jf(e,t){switch(e){case"keyup":return Xg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rn=!1;function qg(e,t){switch(e){case"compositionend":return bf(t);case"keypress":return t.which!==32?null:(fu=!0,pu);case"textInput":return e=t.data,e===pu&&fu?null:e;default:return null}}function Zg(e,t){if(Rn)return e==="compositionend"||!za&&jf(e,t)?(e=Sf(),eo=Ra=Bt=null,Rn=!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=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=yu(n)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pf(){for(var e=window,t=fo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fo(e.document)}return t}function Da(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 ly(e){var t=Pf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ef(n.ownerDocument.documentElement,n)){if(r!==null&&Da(n)){if(t=r.start,e=r.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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=xu(n,o);var l=xu(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Mn=null,Tl=null,Fr=null,Cl=!1;function vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cl||Mn==null||Mn!==fo(r)||(r=Mn,"selectionStart"in r&&Da(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Jr(Fr,r)||(Fr=r,r=wo(Tl,"onSelect"),0Dn||(e.current=Ml[Dn],Ml[Dn]=null,Dn--)}function H(e,t){Dn++,Ml[Dn]=e.current,e.current=t}var qt={},je=tn(qt),Re=tn(!1),vn=qt;function er(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function ko(){Y(Re),Y(je)}function Cu(e,t,n){if(je.current!==qt)throw Error(P(168));H(je,t),H(Re,n)}function Of(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(P(108,ng(e)||"Unknown",i));return te({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,vn=je.current,H(je,e),H(Re,Re.current),!0}function Au(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Of(e,t,vn),r.__reactInternalMemoizedMergedChildContext=e,Y(Re),Y(je),H(je,e)):Y(Re),H(Re,n)}var xt=null,Qo=!1,Rs=!1;function Bf(e){xt===null?xt=[e]:xt.push(e)}function vy(e){Qo=!0,Bf(e)}function nn(){if(!Rs&&xt!==null){Rs=!0;var e=0,t=W;try{var n=xt;for(W=1;e>=l,i-=l,wt=1<<32-it(t)+i|n<T?(F=C,C=null):F=C.sibling;var I=f(m,C,g[T],w);if(I===null){C===null&&(C=F);break}e&&C&&I.alternate===null&&t(m,C),h=o(I,h,T),b===null?j=I:b.sibling=I,b=I,C=F}if(T===g.length)return n(m,C),Q&&an(m,T),j;if(C===null){for(;TT?(F=C,C=null):F=C.sibling;var le=f(m,C,I.value,w);if(le===null){C===null&&(C=F);break}e&&C&&le.alternate===null&&t(m,C),h=o(le,h,T),b===null?j=le:b.sibling=le,b=le,C=F}if(I.done)return n(m,C),Q&&an(m,T),j;if(C===null){for(;!I.done;T++,I=g.next())I=p(m,I.value,w),I!==null&&(h=o(I,h,T),b===null?j=I:b.sibling=I,b=I);return Q&&an(m,T),j}for(C=r(m,C);!I.done;T++,I=g.next())I=y(C,m,T,I.value,w),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?T:I.key),h=o(I,h,T),b===null?j=I:b.sibling=I,b=I);return e&&C.forEach(function(lt){return t(m,lt)}),Q&&an(m,T),j}function S(m,h,g,w){if(typeof g=="object"&&g!==null&&g.type===_n&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pi:e:{for(var j=g.key,b=h;b!==null;){if(b.key===j){if(j=g.type,j===_n){if(b.tag===7){n(m,b.sibling),h=i(b,g.props.children),h.return=m,m=h;break e}}else if(b.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Dt&&_u(j)===b.type){n(m,b.sibling),h=i(b,g.props),h.ref=Sr(m,b,g),h.return=m,m=h;break e}n(m,b);break}else t(m,b);b=b.sibling}g.type===_n?(h=yn(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=ao(g.type,g.key,g.props,null,m.mode,w),w.ref=Sr(m,h,g),w.return=m,m=w)}return l(m);case Pn:e:{for(b=g.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Bs(g,m.mode,w),h.return=m,m=h}return l(m);case Dt:return b=g._init,S(m,h,b(g._payload),w)}if(Ar(g))return x(m,h,g,w);if(gr(g))return v(m,h,g,w);Vi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=Os(g,m.mode,w),h.return=m,m=h),l(m)):n(m,h)}return S}var nr=Wf(!0),Hf=Wf(!1),Co=tn(null),Ao=null,On=null,Ba=null;function Va(){Ba=On=Ao=null}function Na(e){var t=Co.current;Y(Co),e._currentValue=t}function Dl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function qn(e,t){Ao=e,Ba=On=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function Qe(e){var t=e._currentValue;if(Ba!==e)if(e={context:e,memoizedValue:t,next:null},On===null){if(Ao===null)throw Error(P(308));On=e,Ao.dependencies={lanes:0,firstContext:e}}else On=On.next=e;return t}var fn=null;function $a(e){fn===null?fn=[e]:fn.push(e)}function Uf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$a(t)):(n.next=i.next,i.next=n),t.interleaved=n,At(e,r)}function At(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 It=!1;function Wa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gf(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 kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,At(e,n)}return i=r.interleaved,i===null?(t.next=t,$a(r)):(t.next=i.next,i.next=t),r.interleaved=t,At(e,n)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ea(e,n)}}function Ru(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Eo(e,t,n,r){var i=e.updateQueue;It=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var c=a,u=c.next;c.next=null,l===null?o=u:l.next=u,l=c;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(o!==null){var p=i.baseState;l=0,d=u=c=null,a=o;do{var f=a.lane,y=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(f=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){p=x.call(y,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,f=typeof x=="function"?x.call(y,p,f):x,f==null)break e;p=te({},p,f);break e;case 2:It=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=y,c=p):d=d.next=y,l|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);kn|=l,e.lanes=l,e.memoizedState=p}}function Mu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ls.transition;Ls.transition={};try{e(!1),t()}finally{W=n,Ls.transition=r}}function ch(){return qe().memoizedState}function jy(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uh(e))dh(t,n);else if(n=Uf(e,t,n,r),n!==null){var i=Te();ot(n,e,r,i),ph(n,t,r)}}function by(e,t,n){var r=Kt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uh(e))dh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,l)){var c=t.interleaved;c===null?(i.next=i,$a(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Uf(e,t,i,r),n!==null&&(i=Te(),ot(n,e,r,i),ph(n,t,r))}}function uh(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function dh(e,t){Or=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ea(e,n)}}var Ro={readContext:Qe,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},Ty={readContext:Qe,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:zu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,io(4194308,4,ih.bind(null,t,e),n)},useLayoutEffect:function(e,t){return io(4194308,4,e,t)},useInsertionEffect:function(e,t){return io(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jy.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:Lu,useDebugValue:qa,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=Lu(!1),t=e[0];return e=ky.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,i=dt();if(Q){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),fe===null)throw Error(P(349));Sn&30||Qf(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,zu(Zf.bind(null,r,o,e),[e]),r.flags|=2048,li(9,qf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=dt(),t=fe.identifierPrefix;if(Q){var n=St,r=wt;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pt]=t,e[ni]=r,kh(e,t,!1,!1),t.stateNode=e;e:{switch(l=yl(n,r),n){case"dialog":G("cancel",e),G("close",e),i=r;break;case"iframe":case"object":case"embed":G("load",e),i=r;break;case"video":case"audio":for(i=0;ior&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Po(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Q)return ve(t),null}else 2*se()-o.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=se(),t.sibling=null,n=Z.current,H(Z,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return rc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Ly(e,t){switch(Fa(t),t.tag){case 1:return Me(t.type)&&ko(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),Y(Re),Y(je),Ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ua(t),null;case 13:if(Y(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Z),null;case 4:return rr(),null;case 10:return Na(t.type._context),null;case 22:case 23:return rc(),null;case 24:return null;default:return null}}var $i=!1,Se=!1,zy=typeof WeakSet=="function"?WeakSet:Set,M=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Hl(e,t,n){try{n()}catch(r){re(e,t,r)}}var Uu=!1;function Dy(e,t){if(Al=xo,e=Pf(),Da(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var y;p!==n||i!==0&&p.nodeType!==3||(a=l+i),p!==o||r!==0&&p.nodeType!==3||(c=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(y=p.firstChild)!==null;)f=p,p=y;for(;;){if(p===e)break t;if(f===n&&++u===i&&(a=l),f===o&&++d===r&&(c=l),(y=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=y}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(El={focusedElem:e,selectionRange:n},xo=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,S=x.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:tt(t.type,v),S);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=Uu,Uu=!1,x}function Br(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Hl(t,n,o)}i=i.next}while(i!==r)}}function Jo(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ul(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 Th(e){var t=e.alternate;t!==null&&(e.alternate=null,Th(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[ni],delete t[Rl],delete t[yy],delete t[xy])),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 Ch(e){return e.tag===5||e.tag===3||e.tag===4}function Gu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ch(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 Gl(e,t,n){var r=e.tag;if(r===5||r===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=So));else if(r!==4&&(e=e.child,e!==null))for(Gl(e,t,n),e=e.sibling;e!==null;)Gl(e,t,n),e=e.sibling}function Yl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}var he=null,nt=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Ah(e,t,n),n=n.sibling}function Ah(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Uo,n)}catch{}switch(n.tag){case 5:Se||Bn(n,t);case 6:var r=he,i=nt;he=null,Mt(e,t,n),he=r,nt=i,he!==null&&(nt?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(nt?(e=he,n=n.stateNode,e.nodeType===8?_s(e.parentNode,n):e.nodeType===1&&_s(e,n),qr(e)):_s(he,n.stateNode));break;case 4:r=he,i=nt,he=n.stateNode.containerInfo,nt=!0,Mt(e,t,n),he=r,nt=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Hl(n,t,l),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Se&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){re(n,t,a)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Mt(e,t,n),Se=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Yu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zy),t.forEach(function(r){var i=Hy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fy(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,zo=0,$&6)throw Error(P(331));var i=$;for($|=4,M=e.current;M!==null;){var o=M,l=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var c=0;cse()-tc?gn(e,0):ec|=n),Le(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=Li,Li<<=1,!(Li&130023424)&&(Li=4194304)):t=1);var n=Te();e=At(e,t),e!==null&&(yi(e,t,n),Le(e,n))}function Wy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dh(e,n)}function Hy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Dh(e,n)}var Ih;Ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,Ry(e,t,n);_e=!!(e.flags&131072)}else _e=!1,Q&&t.flags&1048576&&Vf(t,To,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oo(e,t),e=t.pendingProps;var i=er(t,je.current);qn(t,n),i=Ka(null,t,r,e,i,n);var o=Xa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(o=!0,jo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wa(t),i.updater=Zo,t.stateNode=i,i._reactInternals=t,Fl(t,r,e,n),t=Vl(null,t,r,!0,o,n)):(t.tag=0,Q&&o&&Ia(t),be(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Gy(r),e=tt(r,e),i){case 0:t=Bl(null,t,r,e,n);break e;case 1:t=$u(null,t,r,e,n);break e;case 11:t=Vu(null,t,r,e,n);break e;case 14:t=Nu(null,t,r,tt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),Bl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),$u(e,t,r,i,n);case 3:e:{if(vh(t),e===null)throw Error(P(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Gf(e,t),Eo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ir(Error(P(423)),t),t=Wu(e,t,r,n,i);break e}else if(r!==i){i=ir(Error(P(424)),t),t=Wu(e,t,r,n,i);break e}else for(Ie=Ut(t.stateNode.containerInfo.firstChild),Fe=t,Q=!0,rt=null,n=Hf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tr(),r===i){t=Et(e,t,n);break e}be(e,t,r,n)}t=t.child}return t;case 5:return Yf(t),e===null&&zl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Pl(r,i)?l=null:o!==null&&Pl(r,o)&&(t.flags|=32),xh(e,t),be(e,t,l,n),t.child;case 6:return e===null&&zl(t),null;case 13:return wh(e,t,n);case 4:return Ha(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nr(t,null,r,n):be(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),Vu(e,t,r,i,n);case 7:return be(e,t,t.pendingProps,n),t.child;case 8:return be(e,t,t.pendingProps.children,n),t.child;case 12:return be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,H(Co,r._currentValue),r._currentValue=l,o!==null)if(st(o.value,l)){if(o.children===i.children&&!Re.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=kt(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Dl(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(P(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Dl(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}be(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,qn(t,n),i=Qe(i),r=r(i),t.flags|=1,be(e,t,r,n),t.child;case 14:return r=t.type,i=tt(r,t.pendingProps),i=tt(r.type,i),Nu(e,t,r,i,n);case 15:return gh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),oo(e,t),t.tag=1,Me(r)?(e=!0,jo(t)):e=!1,qn(t,n),fh(t,r,i),Fl(t,r,i,n),Vl(null,t,r,!0,e,n);case 19:return Sh(e,t,n);case 22:return yh(e,t,n)}throw Error(P(156,t.tag))};function Fh(e,t){return uf(e,t)}function Uy(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new Uy(e,t,n,r)}function oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gy(e){if(typeof e=="function")return oc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ba)return 11;if(e===Ta)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=Ke(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 ao(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")oc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case _n:return yn(n.children,i,o,t);case ja:l=8,i|=8;break;case ll:return e=Ke(12,n,t,i|2),e.elementType=ll,e.lanes=o,e;case al:return e=Ke(13,n,t,i),e.elementType=al,e.lanes=o,e;case cl:return e=Ke(19,n,t,i),e.elementType=cl,e.lanes=o,e;case Gp:return ts(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hp:l=10;break e;case Up:l=9;break e;case ba:l=11;break e;case Ta:l=14;break e;case Dt:l=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ke(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function yn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function ts(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=Gp,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function Bs(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yy(e,t,n,r,i){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=vs(0),this.expirationTimes=vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function sc(e,t,n,r,i,o,l,a,c){return e=new Yy(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ke(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wa(o),e}function Ky(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nh)}catch(e){console.error(e)}}Nh(),Vp.exports=Ne;var Jy=Vp.exports,$h,td=Jy;$h=td.createRoot,td.hydrateRoot;const e1={bg:"#07090f",bgRaised:"#0e1422",border:"#283149",borderStrong:"#3a4560",white:"#ffffff",text:"#f8fafd",textMuted:"#d0d8e6",textDim:"#97a1b5",lavender:"#b06bff",lavenderDim:"#7d3ff0",emerald:"#10f0a4",emeraldDim:"#0bc586",diffPlus:"#10f0a4",diffMinus:"#ff5470"},t1={bg:"#fbfcfe",bgRaised:"#ffffff",border:"#c4cddb",borderStrong:"#9fabc0",white:"#0b1020",text:"#161d2b",textMuted:"#3d4657",textDim:"#616c80",lavender:"#7c3aed",lavenderDim:"#9d6bff",emerald:"#059669",emeraldDim:"#0a9d6e",diffPlus:"#059669",diffMinus:"#e11d48"},n1={emerald:"0 0 18px rgba(16,240,164,0.45)",lavender:"0 0 18px rgba(176,107,255,0.45)",emeraldText:"0 0 22px rgba(16,240,164,0.55)",lavenderText:"0 0 22px rgba(176,107,255,0.5)"},r1={emerald:"0 8px 24px rgba(5,150,105,0.18)",lavender:"0 8px 24px rgba(124,58,237,0.16)",emeraldText:"none",lavenderText:"none"},E='ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace',i1=e=>e==="dark"?{mode:e,T:e1,glow:n1}:{mode:e,T:t1,glow:r1},ci=1280,ss=720,Wh=A.createContext(null),Hh="rlenv-slides-theme",o1=()=>{if(typeof window>"u")return"dark";const e=window.localStorage.getItem(Hh);return e==="dark"||e==="light"?e:"dark"};function s1({children:e}){const[t,n]=A.useState(o1),r=A.useCallback(l=>{n(l);try{window.localStorage.setItem(Hh,l)}catch{}},[]),i=A.useCallback(()=>r(t==="dark"?"light":"dark"),[t,r]),o=i1(t);return A.useEffect(()=>{document.documentElement.style.background=o.T.bg,document.body.style.background=o.T.bg},[o.T.bg]),s.jsx(Wh.Provider,{value:{...o,toggle:i,setMode:r},children:e})}function _(){const e=A.useContext(Wh);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}const uc=A.createContext({});function dc(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const ls=A.createContext(null),pc=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class l1 extends A.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function a1({children:e,isPresent:t}){const n=A.useId(),r=A.useRef(null),i=A.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=A.useContext(pc);return A.useInsertionEffect(()=>{const{width:l,height:a,top:c,left:u}=i.current;if(t||!r.current||!l||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${l}px !important; height: ${a}px !important; top: ${c}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(d)}},[t]),s.jsx(l1,{isPresent:t,childRef:r,sizeRef:i,children:A.cloneElement(e,{ref:r})})}const c1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:l})=>{const a=dc(u1),c=A.useId(),u=A.useCallback(p=>{a.set(p,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),d=A.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:u,register:p=>(a.set(p,!1),()=>a.delete(p))}),o?[Math.random(),u]:[n,u]);return A.useMemo(()=>{a.forEach((p,f)=>a.set(f,!1))},[n]),A.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),l==="popLayout"&&(e=s.jsx(a1,{isPresent:n,children:e})),s.jsx(ls.Provider,{value:d,children:e})};function u1(){return new Map}function Uh(e=!0){const t=A.useContext(ls);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=A.useId();A.useEffect(()=>{e&&i(o)},[e]);const l=A.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const Ui=e=>e.key||"";function nd(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const fc=typeof window<"u",Gh=fc?A.useLayoutEffect:A.useEffect,rd=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1})=>{const[a,c]=Uh(l),u=A.useMemo(()=>nd(e),[e]),d=l&&!a?[]:u.map(Ui),p=A.useRef(!0),f=A.useRef(u),y=dc(()=>new Map),[x,v]=A.useState(u),[S,m]=A.useState(u);Gh(()=>{p.current=!1,f.current=u;for(let w=0;w{const j=Ui(w),b=l&&!a?!1:u===S||d.includes(j),C=()=>{if(y.has(j))y.set(j,!0);else return;let T=!0;y.forEach(F=>{F||(T=!1)}),T&&(g==null||g(),m(f.current),l&&(c==null||c()),r&&r())};return s.jsx(c1,{isPresent:b,initial:!p.current||n?void 0:!1,custom:b?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:b?void 0:C,children:w},j)})})},Oe=e=>e;let Yh=Oe;function hc(e){let t;return()=>(t===void 0&&(t=e()),t)}const sr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},jt=e=>e*1e3,bt=e=>e/1e3,d1={useManualTiming:!1};function p1(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(c.schedule(u),e()),u(l)}const c={schedule:(u,d=!1,p=!1)=>{const y=p&&r?t:n;return d&&o.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(l=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const Gi=["read","resolveKeyframes","update","preRender","render","postRender"],f1=40;function Kh(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Gi.reduce((m,h)=>(m[h]=p1(o),m),{}),{read:a,resolveKeyframes:c,update:u,preRender:d,render:p,postRender:f}=l,y=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,f1),1),i.timestamp=m,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),d.process(i),p.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},x=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Gi.reduce((m,h)=>{const g=l[h];return m[h]=(w,j=!1,b=!1)=>(n||x(),g.schedule(w,j,b)),m},{}),cancel:m=>{for(let h=0;hid[e].some(n=>!!t[n])};function h1(e){for(const t in e)lr[t]={...lr[t],...e[t]}}const m1=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 Fo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||m1.has(e)}let Qh=e=>!Fo(e);function g1(e){e&&(Qh=t=>t.startsWith("on")?!Fo(t):e(t))}try{g1(require("@emotion/is-prop-valid").default)}catch{}function y1(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Qh(i)||n===!0&&Fo(i)||!t&&!Fo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function x1(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const as=A.createContext({});function ui(e){return typeof e=="string"||Array.isArray(e)}function cs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const mc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gc=["initial",...mc];function us(e){return cs(e.animate)||gc.some(t=>ui(e[t]))}function qh(e){return!!(us(e)||e.variants)}function v1(e,t){if(us(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ui(n)?n:void 0,animate:ui(r)?r:void 0}}return e.inherit!==!1?t:{}}function w1(e){const{initial:t,animate:n}=v1(e,A.useContext(as));return A.useMemo(()=>({initial:t,animate:n}),[od(t),od(n)])}function od(e){return Array.isArray(e)?e.join(" "):e}const S1=Symbol.for("motionComponentSymbol");function Nn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function k1(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Nn(n)&&(n.current=r))},[t])}const yc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),j1="framerAppearId",Zh="data-"+yc(j1),{schedule:xc}=Kh(queueMicrotask,!1),Jh=A.createContext({});function b1(e,t,n,r,i){var o,l;const{visualElement:a}=A.useContext(as),c=A.useContext(Xh),u=A.useContext(ls),d=A.useContext(pc).reducedMotion,p=A.useRef(null);r=r||c.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=p.current,y=A.useContext(Jh);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&T1(p.current,n,i,y);const x=A.useRef(!1);A.useInsertionEffect(()=>{f&&x.current&&f.update(n,u)});const v=n[Zh],S=A.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,v)));return Gh(()=>{f&&(x.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),xc.render(f.render),S.current&&f.animationState&&f.animationState.animateChanges())}),A.useEffect(()=>{f&&(!S.current&&f.animationState&&f.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,v)}),S.current=!1))}),f}function T1(e,t,n,r){const{layoutId:i,layout:o,drag:l,dragConstraints:a,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:em(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||a&&Nn(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function em(e){if(e)return e.options.allowProjection!==!1?e.projection:em(e.parent)}function C1({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,l;e&&h1(e);function a(u,d){let p;const f={...A.useContext(pc),...u,layoutId:A1(u)},{isStatic:y}=f,x=w1(u),v=r(u,y);if(!y&&fc){E1();const S=P1(f);p=S.MeasureLayout,x.visualElement=b1(i,v,f,t,S.ProjectionNode)}return s.jsxs(as.Provider,{value:x,children:[p&&x.visualElement?s.jsx(p,{visualElement:x.visualElement,...f}):null,n(i,u,k1(v,x.visualElement,d),v,y,x.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(l=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&l!==void 0?l:""})`}`;const c=A.forwardRef(a);return c[S1]=i,c}function A1({layoutId:e}){const t=A.useContext(uc).id;return t&&e!==void 0?t+"-"+e:e}function E1(e,t){A.useContext(Xh).strict}function P1(e){const{drag:t,layout:n}=lr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const _1=["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 vc(e){return typeof e!="string"||e.includes("-")?!1:!!(_1.indexOf(e)>-1||/[A-Z]/u.test(e))}function sd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function wc(e,t,n,r){if(typeof t=="function"){const[i,o]=sd(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=sd(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Zl=e=>Array.isArray(e),R1=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),M1=e=>Zl(e)?e[e.length-1]||0:e,ke=e=>!!(e&&e.getVelocity);function co(e){const t=ke(e)?e.get():e;return R1(t)?t.toValue():t}function L1({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const l={latestValues:z1(r,i,o,e),renderState:t()};return n&&(l.onMount=a=>n({props:r,current:a,...l}),l.onUpdate=a=>n(a)),l}const tm=e=>(t,n)=>{const r=A.useContext(as),i=A.useContext(ls),o=()=>L1(e,t,r,i);return n?o():dc(o)};function z1(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=co(o[f]);let{initial:l,animate:a}=e;const c=us(e),u=qh(e);t&&u&&!c&&e.inherit!==!1&&(l===void 0&&(l=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||l===!1;const p=d?a:l;if(p&&typeof p!="boolean"&&!cs(p)){const f=Array.isArray(p)?p:[p];for(let y=0;yt=>typeof t=="string"&&t.startsWith(e),rm=nm("--"),D1=nm("var(--"),Sc=e=>D1(e)?I1.test(e.split("/*")[0].trim()):!1,I1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,im=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},di={...hr,transform:e=>Pt(0,1,e)},Yi={...hr,default:1},Si=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zt=Si("deg"),mt=Si("%"),O=Si("px"),F1=Si("vh"),O1=Si("vw"),ld={...mt,parse:e=>mt.parse(e)/100,transform:e=>mt.transform(e*100)},B1={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},V1={rotate:zt,rotateX:zt,rotateY:zt,rotateZ:zt,scale:Yi,scaleX:Yi,scaleY:Yi,scaleZ:Yi,skew:zt,skewX:zt,skewY:zt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:di,originX:ld,originY:ld,originZ:O},ad={...hr,transform:Math.round},kc={...B1,...V1,zIndex:ad,size:O,fillOpacity:di,strokeOpacity:di,numOctaves:ad},N1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$1=fr.length;function W1(e,t,n){let r="",i=!0;for(let o=0;o<$1;o++){const l=fr[o],a=e[l];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(l.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=im(a,kc[l]);if(!c){i=!1;const d=N1[l]||l;r+=`${d}(${u}) `}n&&(t[l]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function jc(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let l=!1,a=!1;for(const c in t){const u=t[c];if(An.has(c)){l=!0;continue}else if(rm(c)){i[c]=u;continue}else{const d=im(u,kc[c]);c.startsWith("origin")?(a=!0,o[c]=d):r[c]=d}}if(t.transform||(l||n?r.transform=W1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:d=0}=o;r.transformOrigin=`${c} ${u} ${d}`}}const H1={offset:"stroke-dashoffset",array:"stroke-dasharray"},U1={offset:"strokeDashoffset",array:"strokeDasharray"};function G1(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?H1:U1;e[o.offset]=O.transform(-r);const l=O.transform(t),a=O.transform(n);e[o.array]=`${l} ${a}`}function cd(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function Y1(e,t,n){const r=cd(t,e.x,e.width),i=cd(n,e.y,e.height);return`${r} ${i}`}function bc(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:l,pathSpacing:a=1,pathOffset:c=0,...u},d,p){if(jc(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:y,dimensions:x}=e;f.transform&&(x&&(y.transform=f.transform),delete f.transform),x&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=Y1(x,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),l!==void 0&&G1(f,l,a,c,!1)}const Tc=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),om=()=>({...Tc(),attrs:{}}),Cc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sm(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const lm=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 am(e,t,n,r){sm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(lm.has(i)?i:yc(i),t.attrs[i])}const Oo={};function K1(e){Object.assign(Oo,e)}function cm(e,{layout:t,layoutId:n}){return An.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Oo[e]||e==="opacity")}function Ac(e,t,n){var r;const{style:i}=e,o={};for(const l in i)(ke(i[l])||t.style&&ke(t.style[l])||cm(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=i[l]);return o}function um(e,t,n){const r=Ac(e,t,n);for(const i in e)if(ke(e[i])||ke(t[i])){const o=fr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function X1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const ud=["x","y","width","height","cx","cy","r"],Q1={useVisualState:tm({scrapeMotionValuesFromProps:um,createRenderState:om,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const a in i)if(An.has(a)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let a=0;a{X1(n,r),K.render(()=>{bc(r,i,Cc(n.tagName),e.transformTemplate),am(n,r)})})}})},q1={useVisualState:tm({scrapeMotionValuesFromProps:Ac,createRenderState:Tc})};function dm(e,t,n){for(const r in t)!ke(t[r])&&!cm(r,n)&&(e[r]=t[r])}function Z1({transformTemplate:e},t){return A.useMemo(()=>{const n=Tc();return jc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function J1(e,t){const n=e.style||{},r={};return dm(r,n,e),Object.assign(r,Z1(e,t)),r}function ex(e,t){const n={},r=J1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function tx(e,t,n,r){const i=A.useMemo(()=>{const o=om();return bc(o,t,Cc(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};dm(o,e.style,e),i.style={...o,...i.style}}return i}function nx(e=!1){return(n,r,i,{latestValues:o},l)=>{const c=(vc(n)?tx:ex)(r,o,l,n),u=y1(r,typeof n=="string",e),d=n!==A.Fragment?{...u,...c,ref:i}:{},{children:p}=r,f=A.useMemo(()=>ke(p)?p.get():p,[p]);return A.createElement(n,{...d,children:f})}}function rx(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...vc(r)?Q1:q1,preloadedFeatures:e,useRender:nx(i),createVisualElement:t,Component:r};return C1(l)}}function pm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class ox{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(ix()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class sx extends ox{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ec(e,t){return e?e[t]||e.default||e:void 0}const Jl=2e4;function fm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Jl?1/0:t}function Pc(e){return typeof e=="function"}function dd(e,t){e.timeline=t,e.onfinish=null}const _c=e=>Array.isArray(e)&&typeof e[0]=="number",lx={linearEasing:void 0};function ax(e,t){const n=hc(e);return()=>{var r;return(r=lx[t])!==null&&r!==void 0?r:n()}}const Bo=ax(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ea={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_r([0,.65,.55,1]),circOut:_r([.55,0,1,.45]),backIn:_r([.31,.01,.66,-.59]),backOut:_r([.33,1.53,.69,.99])};function gm(e,t){if(e)return typeof e=="function"&&Bo()?hm(e,t):_c(e)?_r(e):Array.isArray(e)?e.map(n=>gm(n,t)||ea.easeOut):ea[e]}const et={x:!1,y:!1};function ym(){return et.x||et.y}function cx(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function xm(e,t){const n=cx(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pd(e){return t=>{t.pointerType==="touch"||ym()||e(t)}}function ux(e,t,n={}){const[r,i,o]=xm(e,n),l=pd(a=>{const{target:c}=a,u=t(a);if(typeof u!="function"||!c)return;const d=pd(p=>{u(p),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(a=>{a.addEventListener("pointerenter",l,i)}),o}const vm=(e,t)=>t?e===t?!0:vm(e,t.parentElement):!1,Rc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,dx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function px(e){return dx.has(e.tagName)||e.tabIndex!==-1}const Rr=new WeakSet;function fd(e){return t=>{t.key==="Enter"&&e(t)}}function Ns(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fx=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=fd(()=>{if(Rr.has(n))return;Ns(n,"down");const i=fd(()=>{Ns(n,"up")}),o=()=>Ns(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function hd(e){return Rc(e)&&!ym()}function hx(e,t,n={}){const[r,i,o]=xm(e,n),l=a=>{const c=a.currentTarget;if(!hd(a)||Rr.has(c))return;Rr.add(c);const u=t(a),d=(y,x)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),!(!hd(y)||!Rr.has(c))&&(Rr.delete(c),typeof u=="function"&&u(y,{success:x}))},p=y=>{d(y,n.useGlobalTarget||vm(c,y.target))},f=y=>{d(y,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{!px(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",l,i),a.addEventListener("focus",u=>fx(u,i),i)}),o}function mx(e){return e==="x"||e==="y"?et[e]?null:(et[e]=!0,()=>{et[e]=!1}):et.x||et.y?null:(et.x=et.y=!0,()=>{et.x=et.y=!1})}const wm=new Set(["width","height","top","left","right","bottom",...fr]);let uo;function gx(){uo=void 0}const gt={now:()=>(uo===void 0&>.set(me.isProcessing||d1.useManualTiming?me.timestamp:performance.now()),uo),set:e=>{uo=e,queueMicrotask(gx)}};function Mc(e,t){e.indexOf(t)===-1&&e.push(t)}function Lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zc{constructor(){this.subscriptions=[]}add(t){return Mc(this.subscriptions,t),()=>Lc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class xx{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=gt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yx(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zc);const r=this.events[t].add(n);return t==="change"?()=>{r(),K.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>md)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,md);return Sm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pi(e,t){return new xx(e,t)}function vx(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pi(n))}function wx(e,t){const n=ds(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const l in o){const a=M1(o[l]);vx(e,l,a)}}function Sx(e){return!!(ke(e)&&e.add)}function ta(e,t){const n=e.getValue("willChange");if(Sx(n))return n.add(t)}function km(e){return e.props[Zh]}const jm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kx=1e-7,jx=12;function bx(e,t,n,r,i){let o,l,a=0;do l=t+(n-t)/2,o=jm(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>kx&&++abx(o,0,1,e,n);return o=>o===0||o===1?o:jm(i(o),t,r)}const bm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Tm=e=>t=>1-e(1-t),Cm=ki(.33,1.53,.69,.99),Dc=Tm(Cm),Am=bm(Dc),Em=e=>(e*=2)<1?.5*Dc(e):.5*(2-Math.pow(2,-10*(e-1))),Ic=e=>1-Math.sin(Math.acos(e)),Pm=Tm(Ic),_m=bm(Ic),Rm=e=>/^0[^.\s]+$/u.test(e);function Tx(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rm(e):!0}const $r=e=>Math.round(e*1e5)/1e5,Fc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Cx(e){return e==null}const Ax=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oc=(e,t)=>n=>!!(typeof n=="string"&&Ax.test(n)&&n.startsWith(e)||t&&!Cx(n)&&Object.prototype.hasOwnProperty.call(n,t)),Mm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,l,a]=r.match(Fc);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:a!==void 0?parseFloat(a):1}},Ex=e=>Pt(0,255,e),$s={...hr,transform:e=>Math.round(Ex(e))},mn={test:Oc("rgb","red"),parse:Mm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$s.transform(e)+", "+$s.transform(t)+", "+$s.transform(n)+", "+$r(di.transform(r))+")"};function Px(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const na={test:Oc("#"),parse:Px,transform:mn.transform},$n={test:Oc("hsl","hue"),parse:Mm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mt.transform($r(t))+", "+mt.transform($r(n))+", "+$r(di.transform(r))+")"},we={test:e=>mn.test(e)||na.test(e)||$n.test(e),parse:e=>mn.test(e)?mn.parse(e):$n.test(e)?$n.parse(e):na.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mn.transform(e):$n.transform(e)},_x=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Rx(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Fc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(_x))===null||n===void 0?void 0:n.length)||0)>0}const Lm="number",zm="color",Mx="var",Lx="var(",gd="${}",zx=/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 fi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(zx,c=>(we.test(c)?(r.color.push(o),i.push(zm),n.push(we.parse(c))):c.startsWith(Lx)?(r.var.push(o),i.push(Mx),n.push(c)):(r.number.push(o),i.push(Lm),n.push(parseFloat(c))),++o,gd)).split(gd);return{values:n,split:a,indexes:r,types:i}}function Dm(e){return fi(e).values}function Im(e){const{split:t,types:n}=fi(e),r=t.length;return i=>{let o="";for(let l=0;ltypeof e=="number"?0:e;function Ix(e){const t=Dm(e);return Im(e)(t.map(Dx))}const Jt={test:Rx,parse:Dm,createTransformer:Im,getAnimatableNone:Ix},Fx=new Set(["brightness","contrast","saturate","opacity"]);function Ox(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fc)||[];if(!r)return e;const i=n.replace(r,"");let o=Fx.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Bx=/\b([a-z-]*)\(.*?\)/gu,ra={...Jt,getAnimatableNone:e=>{const t=e.match(Bx);return t?t.map(Ox).join(" "):e}},Vx={...kc,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:ra,WebkitFilter:ra},Bc=e=>Vx[e];function Fm(e,t){let n=Bc(e);return n!==ra&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Nx=new Set(["auto","none","0"]);function $x(e,t,n){let r=0,i;for(;re===hr||e===O,xd=(e,t)=>parseFloat(e.split(", ")[t]),vd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return xd(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?xd(o[1],e):0}},Wx=new Set(["x","y","z"]),Hx=fr.filter(e=>!Wx.has(e));function Ux(e){const t=[];return Hx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ar={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:vd(4,13),y:vd(5,14)};ar.translateX=ar.x;ar.translateY=ar.y;const xn=new Set;let ia=!1,oa=!1;function Om(){if(oa){const e=Array.from(xn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ux(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,l])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}oa=!1,ia=!1,xn.forEach(e=>e.complete()),xn.clear()}function Bm(){xn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oa=!0)})}function Gx(){Bm(),Om()}class Vc{constructor(t,n,r,i,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xn.add(this),ia||(ia=!0,K.read(Bm),K.resolveKeyframes(Om))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Yx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kx(e){const t=Yx.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Nm(e,t,n=1){const[r,i]=Kx(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return Vm(l)?parseFloat(l):l}return Sc(i)?Nm(i,t,n+1):i}const $m=e=>t=>t.test(e),Xx={test:e=>e==="auto",parse:e=>e},Wm=[hr,O,mt,zt,O1,F1,Xx],wd=e=>Wm.find($m(e));class Hm extends Vc{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const Sd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Jt.test(e)||e==="0")&&!e.startsWith("url("));function Qx(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function ps(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Zx),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Jx=40;class Um{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=gt.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:l,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Jx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Gx(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=gt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:l,onComplete:a,onUpdate:c,isGenerator:u}=this.options;if(!u&&!qx(t,r,i,o))if(l)this.options.duration=0;else{c&&c(ps(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const J=(e,t,n)=>e+(t-e)*n;function Ws(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ev({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;i=Ws(c,a,e+1/3),o=Ws(c,a,e),l=Ws(c,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Vo(e,t){return n=>n>0?t:e}const Hs=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tv=[na,mn,$n],nv=e=>tv.find(t=>t.test(e));function kd(e){const t=nv(e);if(!t)return!1;let n=t.parse(e);return t===$n&&(n=ev(n)),n}const jd=(e,t)=>{const n=kd(e),r=kd(t);if(!n||!r)return Vo(e,t);const i={...n};return o=>(i.red=Hs(n.red,r.red,o),i.green=Hs(n.green,r.green,o),i.blue=Hs(n.blue,r.blue,o),i.alpha=J(n.alpha,r.alpha,o),mn.transform(i))},rv=(e,t)=>n=>t(e(n)),ji=(...e)=>e.reduce(rv),sa=new Set(["none","hidden"]);function iv(e,t){return sa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ov(e,t){return n=>J(e,t,n)}function Nc(e){return typeof e=="number"?ov:typeof e=="string"?Sc(e)?Vo:we.test(e)?jd:av:Array.isArray(e)?Gm:typeof e=="object"?we.test(e)?jd:sv:Vo}function Gm(e,t){const n=[...e],r=n.length,i=e.map((o,l)=>Nc(o)(o,t[l]));return o=>{for(let l=0;l{for(const o in r)n[o]=r[o](i);return n}}function lv(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=Jt.createTransformer(t),r=fi(e),i=fi(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?sa.has(e)&&!i.values.length||sa.has(t)&&!r.values.length?iv(e,t):ji(Gm(lv(r,i),i.values),n):Vo(e,t)};function Ym(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):Nc(e)(e,t)}const cv=5;function Km(e,t,n){const r=Math.max(t-cv,0);return Sm(n-e(r),t-r)}const ne={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},Us=.001;function uv({duration:e=ne.duration,bounce:t=ne.bounce,velocity:n=ne.velocity,mass:r=ne.mass}){let i,o,l=1-t;l=Pt(ne.minDamping,ne.maxDamping,l),e=Pt(ne.minDuration,ne.maxDuration,bt(e)),l<1?(i=u=>{const d=u*l,p=d*e,f=d-n,y=la(u,l),x=Math.exp(-p);return Us-f/y*x},o=u=>{const p=u*l*e,f=p*n+n,y=Math.pow(l,2)*Math.pow(u,2)*e,x=Math.exp(-p),v=la(Math.pow(u,2),l);return(-i(u)+Us>0?-1:1)*((f-y)*x)/v}):(i=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-Us+d*p},o=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const a=5/e,c=pv(i,o,a);if(e=jt(e),isNaN(c))return{stiffness:ne.stiffness,damping:ne.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:l*2*Math.sqrt(r*u),duration:e}}}const dv=12;function pv(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function mv(e){let t={velocity:ne.velocity,stiffness:ne.stiffness,damping:ne.damping,mass:ne.mass,isResolvedFromDuration:!1,...e};if(!bd(e,hv)&&bd(e,fv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Pt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ne.mass,stiffness:i,damping:o}}else{const n=uv(e);t={...t,...n,mass:ne.mass},t.isResolvedFromDuration=!0}return t}function Xm(e=ne.visualDuration,t=ne.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:y}=mv({...n,velocity:-bt(n.velocity||0)}),x=f||0,v=u/(2*Math.sqrt(c*d)),S=l-o,m=bt(Math.sqrt(c/d)),h=Math.abs(S)<5;r||(r=h?ne.restSpeed.granular:ne.restSpeed.default),i||(i=h?ne.restDelta.granular:ne.restDelta.default);let g;if(v<1){const j=la(m,v);g=b=>{const C=Math.exp(-v*m*b);return l-C*((x+v*m*S)/j*Math.sin(j*b)+S*Math.cos(j*b))}}else if(v===1)g=j=>l-Math.exp(-m*j)*(S+(x+m*S)*j);else{const j=m*Math.sqrt(v*v-1);g=b=>{const C=Math.exp(-v*m*b),T=Math.min(j*b,300);return l-C*((x+v*m*S)*Math.sinh(T)+j*S*Math.cosh(T))/j}}const w={calculatedDuration:y&&p||null,next:j=>{const b=g(j);if(y)a.done=j>=p;else{let C=0;v<1&&(C=j===0?jt(x):Km(g,j,b));const T=Math.abs(C)<=r,F=Math.abs(l-b)<=i;a.done=T&&F}return a.value=a.done?l:b,a},toString:()=>{const j=Math.min(fm(w),Jl),b=hm(C=>w.next(j*C).value,j,30);return j+"ms "+b}};return w}function Td({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,min:a,max:c,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},y=T=>a!==void 0&&Tc,x=T=>a===void 0?c:c===void 0||Math.abs(a-T)-v*Math.exp(-T/r),g=T=>m+h(T),w=T=>{const F=h(T),I=g(T);f.done=Math.abs(F)<=u,f.value=f.done?m:I};let j,b;const C=T=>{y(f.value)&&(j=T,b=Xm({keyframes:[f.value,x(f.value)],velocity:Km(g,T,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return C(0),{calculatedDuration:null,next:T=>{let F=!1;return!b&&j===void 0&&(F=!0,w(T),C(T)),j!==void 0&&T>=j?b.next(T-j):(!F&&w(T),f)}}}const gv=ki(.42,0,1,1),yv=ki(0,0,.58,1),Qm=ki(.42,0,.58,1),xv=e=>Array.isArray(e)&&typeof e[0]!="number",vv={linear:Oe,easeIn:gv,easeInOut:Qm,easeOut:yv,circIn:Ic,circInOut:_m,circOut:Pm,backIn:Dc,backInOut:Am,backOut:Cm,anticipate:Em},Cd=e=>{if(_c(e)){Yh(e.length===4);const[t,n,r,i]=e;return ki(t,n,r,i)}else if(typeof e=="string")return vv[e];return e};function wv(e,t,n){const r=[],i=n||Ym,o=e.length-1;for(let l=0;lt[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=wv(t,r,i),c=a.length,u=d=>{if(l&&d1)for(;pu(Pt(e[0],e[o-1],d)):u}function kv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=sr(0,t,r);e.push(J(n,1,i))}}function jv(e){const t=[0];return kv(t,e.length-1),t}function bv(e,t){return e.map(n=>n*t)}function Tv(e,t){return e.map(()=>t||Qm).splice(0,e.length-1)}function No({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=xv(r)?r.map(Cd):Cd(r),o={done:!1,value:t[0]},l=bv(n&&n.length===t.length?n:jv(t),e),a=Sv(l,t,{ease:Array.isArray(i)?i:Tv(t,i)});return{calculatedDuration:e,next:c=>(o.value=a(c),o.done=c>=e,o)}}const Cv=e=>{const t=({timestamp:n})=>e(n);return{start:()=>K.update(t,!0),stop:()=>Zt(t),now:()=>me.isProcessing?me.timestamp:gt.now()}},Av={decay:Td,inertia:Td,tween:No,keyframes:No,spring:Xm},Ev=e=>e/100;class $c extends Um{constructor(t){super(t),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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,l=(i==null?void 0:i.KeyframeResolver)||Vc,a=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new l(o,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:l=0}=this.options,a=Pc(n)?n:Av[n]||No;let c,u;a!==No&&typeof t[0]!="number"&&(c=ji(Ev,Ym(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=fm(d));const{calculatedDuration:p}=d,f=p+i,y=f*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:p,resolvedDuration:f,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:l,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:y,repeatType:x,repeatDelay:v,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let g=this.currentTime,w=o;if(y){const T=Math.min(this.currentTime,d)/p;let F=Math.floor(T),I=T%1;!I&&T>=1&&(I=1),I===1&&F--,F=Math.min(F,y+1),!!(F%2)&&(x==="reverse"?(I=1-I,v&&(I-=v/p)):x==="mirror"&&(w=l)),g=Pt(0,1,I)*p}const j=h?{done:!1,value:c[0]}:w.next(g);a&&(j.value=a(j.value));let{done:b}=j;!h&&u!==null&&(b=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return C&&i!==void 0&&(j.value=ps(c,this.options,i)),S&&S(j.value),C&&this.finish(),j}get duration(){const{resolved:t}=this;return t?bt(t.calculatedDuration):0}get time(){return bt(this.currentTime)}set time(t){t=jt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=bt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Cv,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const Pv=new Set(["opacity","clipPath","filter","transform"]);function _v(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:a="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=gm(a,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const Rv=hc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$o=10,Mv=2e4;function Lv(e){return Pc(e.type)||e.type==="spring"||!mm(e.ease)}function zv(e,t){const n=new $c({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(l,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:l,motionValue:a,name:c,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&Bo()&&Dv(o)&&(o=qm[o]),Lv(this.options)){const{onComplete:p,onUpdate:f,motionValue:y,element:x,...v}=this.options,S=zv(t,v);t=S.keyframes,t.length===1&&(t[1]=t[0]),r=S.duration,i=S.times,o=S.ease,l="keyframes"}const d=_v(a.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(dd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;a.set(ps(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return bt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return bt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=jt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Oe;const{animation:r}=n;dd(r,t)}return Oe}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:l,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,element:f,...y}=this.options,x=new $c({...y,keyframes:r,duration:i,type:o,ease:l,times:a,isGenerator:!0}),v=jt(this.time);u.setWithVelocity(x.sample(v-$o).value,x.sample(v).value,$o)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:l,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return Rv()&&r&&Pv.has(r)&&!c&&!u&&!i&&o!=="mirror"&&l!==0&&a!=="inertia"}}const Iv={type:"spring",stiffness:500,damping:25,restSpeed:10},Fv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ov={type:"keyframes",duration:.8},Bv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vv=(e,{keyframes:t})=>t.length>2?Ov:An.has(e)?e.startsWith("scale")?Fv(t[1]):Iv:Bv;function Nv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:l,repeatDelay:a,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Wc=(e,t,n,r={},i,o)=>l=>{const a=Ec(r,e)||{},c=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-jt(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{l(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};Nv(a)||(d={...d,...Vv(e,d)}),d.duration&&(d.duration=jt(d.duration)),d.repeatDelay&&(d.repeatDelay=jt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!o&&t.get()!==void 0){const f=ps(d.keyframes,a);if(f!==void 0)return K.update(()=>{d.onUpdate(f),d.onComplete()}),new sx([])}return!o&&Ad.supports(d)?new Ad(d):new $c(d)};function $v({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Zm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(l=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const p in c){const f=e.getValue(p,(o=e.latestValues[p])!==null&&o!==void 0?o:null),y=c[p];if(y===void 0||d&&$v(d,p))continue;const x={delay:n,...Ec(l||{},p)};let v=!1;if(window.MotionHandoffAnimation){const m=km(e);if(m){const h=window.MotionHandoffAnimation(m,p,K);h!==null&&(x.startTime=h,v=!0)}}ta(e,p),f.start(Wc(p,f,y,e.shouldReduceMotion&&wm.has(p)?{type:!1}:x,e,v));const S=f.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{K.update(()=>{a&&wx(e,a)})}),u}function aa(e,t,n={}){var r;const i=ds(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const l=i?()=>Promise.all(Zm(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=o;return Wv(e,t,d+u,p,f,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[l,a]:[a,l];return u().then(()=>d())}else return Promise.all([l(),a(n.delay)])}function Wv(e,t,n=0,r=0,i=1,o){const l=[],a=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(Hv).forEach((u,d)=>{u.notify("AnimationStart",t),l.push(aa(u,t,{...o,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(l)}function Hv(e,t){return e.sortNodePosition(t)}function Uv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>aa(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=aa(e,t,n);else{const i=typeof t=="function"?ds(e,t,n.custom):t;r=Promise.all(Zm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Gv=gc.length;function Jm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Jm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>Uv(e,n,r)))}function Qv(e){let t=Xv(e),n=Ed(),r=!0;const i=c=>(u,d)=>{var p;const f=ds(e,d,c==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:y,transitionEnd:x,...v}=f;u={...u,...v,...x}}return u};function o(c){t=c(e)}function l(c){const{props:u}=e,d=Jm(e.parent)||{},p=[],f=new Set;let y={},x=1/0;for(let S=0;Sx&&w,F=!1;const I=Array.isArray(g)?g:[g];let le=I.reduce(i(m),{});j===!1&&(le={});const{prevResolvedValues:lt={}}=h,at={...lt,...le},ie=U=>{T=!0,f.has(U)&&(F=!0,f.delete(U)),h.needsAnimating[U]=!0;const R=e.getValue(U);R&&(R.liveStyle=!1)};for(const U in at){const R=le[U],z=lt[U];if(y.hasOwnProperty(U))continue;let D=!1;Zl(R)&&Zl(z)?D=!pm(R,z):D=R!==z,D?R!=null?ie(U):f.add(U):R!==void 0&&f.has(U)?ie(U):h.protectedKeys[U]=!0}h.prevProp=g,h.prevResolvedValues=le,h.isActive&&(y={...y,...le}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(b&&C)||F)&&p.push(...I.map(U=>({animation:U,options:{type:m}})))}if(f.size){const S={};f.forEach(m=>{const h=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),S[m]=h??null}),p.push({animation:S})}let v=!!p.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(p):Promise.resolve()}function a(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(c,u)}),n[c].isActive=u;const p=l(c);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:l,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ed(),r=!0}}}function qv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pm(t,e):!1}function ln(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ed(){return{animate:ln(!0),whileInView:ln(),whileHover:ln(),whileTap:ln(),whileDrag:ln(),whileFocus:ln(),exit:ln()}}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Zv extends rn{constructor(t){super(t),t.animationState||(t.animationState=Qv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();cs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Jv=0;class e2 extends rn{constructor(){super(...arguments),this.id=Jv++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const t2={animation:{Feature:Zv},exit:{Feature:e2}};function hi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bi(e){return{point:{x:e.pageX,y:e.pageY}}}const n2=e=>t=>Rc(t)&&e(t,bi(t));function Wr(e,t,n,r){return hi(e,t,n2(n),r)}const Pd=(e,t)=>Math.abs(e-t);function r2(e,t){const n=Pd(e.x,t.x),r=Pd(e.y,t.y);return Math.sqrt(n**2+r**2)}class e0{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Ys(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=r2(p.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:x}=p,{timestamp:v}=me;this.history.push({...x,timestamp:v});const{onStart:S,onMove:m}=this.handlers;f||(S&&S(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Gs(f,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Ys(p.type==="pointercancel"?this.lastMoveEventInfo:Gs(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,S),x&&x(p,S)},!Rc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=bi(t),a=Gs(l,this.transformPagePoint),{point:c}=a,{timestamp:u}=me;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Ys(a,this.history)),this.removeListeners=ji(Wr(this.contextWindow,"pointermove",this.handlePointerMove),Wr(this.contextWindow,"pointerup",this.handlePointerUp),Wr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zt(this.updatePoint)}}function Gs(e,t){return t?{point:t(e.point)}:e}function _d(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ys({point:e},t){return{point:e,delta:_d(e,t0(t)),offset:_d(e,i2(t)),velocity:o2(t,.1)}}function i2(e){return e[0]}function t0(e){return e[e.length-1]}function o2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=t0(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>jt(t)));)n--;if(!r)return{x:0,y:0};const o=bt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const n0=1e-4,s2=1-n0,l2=1+n0,r0=.01,a2=0-r0,c2=0+r0;function Ve(e){return e.max-e.min}function u2(e,t,n){return Math.abs(e-t)<=n}function Rd(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=Ve(n)/Ve(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=s2&&e.scale<=l2||isNaN(e.scale))&&(e.scale=1),(e.translate>=a2&&e.translate<=c2||isNaN(e.translate))&&(e.translate=0)}function Hr(e,t,n,r){Rd(e.x,t.x,n.x,r?r.originX:void 0),Rd(e.y,t.y,n.y,r?r.originY:void 0)}function Md(e,t,n){e.min=n.min+t.min,e.max=e.min+Ve(t)}function d2(e,t,n){Md(e.x,t.x,n.x),Md(e.y,t.y,n.y)}function Ld(e,t,n){e.min=t.min-n.min,e.max=e.min+Ve(t)}function Ur(e,t,n){Ld(e.x,t.x,n.x),Ld(e.y,t.y,n.y)}function p2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function zd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function f2(e,{top:t,left:n,bottom:r,right:i}){return{x:zd(e.x,n,i),y:zd(e.y,t,r)}}function Dd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sr(t.min,t.max-r,e.min):r>i&&(n=sr(e.min,e.max-i,t.min)),Pt(0,1,n)}function g2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ca=.35;function y2(e=ca){return e===!1?e=0:e===!0&&(e=ca),{x:Id(e,"left","right"),y:Id(e,"top","bottom")}}function Id(e,t,n){return{min:Fd(e,t),max:Fd(e,n)}}function Fd(e,t){return typeof e=="number"?e:e[t]||0}const Od=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wn=()=>({x:Od(),y:Od()}),Bd=()=>({min:0,max:0}),oe=()=>({x:Bd(),y:Bd()});function Ue(e){return[e("x"),e("y")]}function i0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function x2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v2(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ks(e){return e===void 0||e===1}function ua({scale:e,scaleX:t,scaleY:n}){return!Ks(e)||!Ks(t)||!Ks(n)}function un(e){return ua(e)||o0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function o0(e){return Vd(e.x)||Vd(e.y)}function Vd(e){return e&&e!=="0%"}function Wo(e,t,n){const r=e-n,i=t*r;return n+i}function Nd(e,t,n,r,i){return i!==void 0&&(e=Wo(e,i,r)),Wo(e,n,r)+t}function da(e,t=0,n=1,r,i){e.min=Nd(e.min,t,n,r,i),e.max=Nd(e.max,t,n,r,i)}function s0(e,{x:t,y:n}){da(e.x,t.translate,t.scale,t.originPoint),da(e.y,n.translate,n.scale,n.originPoint)}const $d=.999999999999,Wd=1.0000000000001;function w2(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let a=0;a$d&&(t.x=1),t.y$d&&(t.y=1)}function Hn(e,t){e.min=e.min+t,e.max=e.max+t}function Hd(e,t,n,r,i=.5){const o=J(e.min,e.max,i);da(e,t,n,o,r)}function Un(e,t){Hd(e.x,t.x,t.scaleX,t.scale,t.originX),Hd(e.y,t.y,t.scaleY,t.scale,t.originY)}function l0(e,t){return i0(v2(e.getBoundingClientRect(),t))}function S2(e,t,n){const r=l0(e,n),{scroll:i}=t;return i&&(Hn(r.x,i.offset.x),Hn(r.y,i.offset.y)),r}const a0=({current:e})=>e?e.ownerDocument.defaultView:null,k2=new WeakMap;class j2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=oe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bi(d).point)},o=(d,p)=>{const{drag:f,dragPropagation:y,onDragStart:x}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mx(f),!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),Ue(S=>{let m=this.getAxisMotionValue(S).get()||0;if(mt.test(m)){const{projection:h}=this.visualElement;if(h&&h.layout){const g=h.layout.layoutBox[S];g&&(m=Ve(g)*(parseFloat(m)/100))}}this.originPoint[S]=m}),x&&K.postRender(()=>x(d,p)),ta(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(d,p)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:x,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:S}=p;if(y&&this.currentDirection===null){this.currentDirection=b2(S),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",p.point,S),this.updateAxis("y",p.point,S),this.visualElement.render(),v&&v(d,p)},a=(d,p)=>this.stop(d,p),c=()=>Ue(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new e0(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:a0(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&K.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ki(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=p2(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Nn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=f2(i.layoutBox,n):this.constraints=!1,this.elastic=y2(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ue(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=g2(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Nn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=S2(r,i.root,this.visualElement.getTransformPagePoint());let l=h2(i.layout.layoutBox,o);if(n){const a=n(x2(l));this.hasMutatedConstraints=!!a,a&&(l=i0(a))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Ue(d=>{if(!Ki(d,n,this.currentDirection))return;let p=c&&c[d]||{};l&&(p={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ta(this.visualElement,t),r.start(Wc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ue(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ue(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ue(n=>{const{drag:r}=this.getProps();if(!Ki(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:a}=i.layout.layoutBox[n];o.set(t[n]-J(l,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Nn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ue(l=>{const a=this.getAxisMotionValue(l);if(a&&this.constraints!==!1){const c=a.get();i[l]=m2({min:c,max:c},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ue(l=>{if(!Ki(l,t,null))return;const a=this.getAxisMotionValue(l),{min:c,max:u}=this.constraints[l];a.set(J(c,u,i[l]))})}addListeners(){if(!this.visualElement.current)return;k2.set(this.visualElement,this);const t=this.visualElement.current,n=Wr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Nn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),K.read(r);const l=hi(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ue(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=c[d].translate,p.set(p.get()+c[d].translate))}),this.visualElement.render())});return()=>{l(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=ca,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:a}}}function Ki(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function b2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class T2 extends rn{constructor(t){super(t),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new j2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ud=e=>(t,n)=>{e&&K.postRender(()=>e(t,n))};class C2 extends rn{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(t){this.session=new e0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:a0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ud(t),onStart:Ud(n),onMove:r,onEnd:(o,l)=>{delete this.session,i&&K.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=Wr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const po={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const br={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=Gd(e,t.target.x),r=Gd(e,t.target.y);return`${n}% ${r}%`}},A2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Jt.parse(e);if(i.length>5)return r;const o=Jt.createTransformer(e),l=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;i[0+l]/=a,i[1+l]/=c;const u=J(a,c,.5);return typeof i[2+l]=="number"&&(i[2+l]/=u),typeof i[3+l]=="number"&&(i[3+l]/=u),o(i)}};class E2 extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;K1(P2),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),po.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||K.postRender(()=>{const a=l.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function c0(e){const[t,n]=Uh(),r=A.useContext(uc);return s.jsx(E2,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(Jh),isPresent:t,safeToRemove:n})}const P2={borderRadius:{...br,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:br,borderTopRightRadius:br,borderBottomLeftRadius:br,borderBottomRightRadius:br,boxShadow:A2};function _2(e,t,n){const r=ke(e)?e:pi(e);return r.start(Wc("",r,t,n)),r.animation}function R2(e){return e instanceof SVGElement&&e.tagName!=="svg"}const M2=(e,t)=>e.depth-t.depth;class L2{constructor(){this.children=[],this.isDirty=!1}add(t){Mc(this.children,t),this.isDirty=!0}remove(t){Lc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(M2),this.isDirty=!1,this.children.forEach(t)}}function z2(e,t){const n=gt.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Zt(r),e(o-t))};return K.read(r,!0),()=>Zt(r)}const u0=["TopLeft","TopRight","BottomLeft","BottomRight"],D2=u0.length,Yd=e=>typeof e=="string"?parseFloat(e):e,Kd=e=>typeof e=="number"||O.test(e);function I2(e,t,n,r,i,o){i?(e.opacity=J(0,n.opacity!==void 0?n.opacity:1,F2(r)),e.opacityExit=J(t.opacity!==void 0?t.opacity:1,0,O2(r))):o&&(e.opacity=J(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;lrt?1:n(sr(e,t,r))}function Qd(e,t){e.min=t.min,e.max=t.max}function He(e,t){Qd(e.x,t.x),Qd(e.y,t.y)}function qd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Zd(e,t,n,r,i){return e-=t,e=Wo(e,1/n,r),i!==void 0&&(e=Wo(e,1/i,r)),e}function B2(e,t=0,n=1,r=.5,i,o=e,l=e){if(mt.test(t)&&(t=parseFloat(t),t=J(l.min,l.max,t/100)-l.min),typeof t!="number")return;let a=J(o.min,o.max,r);e===o&&(a-=t),e.min=Zd(e.min,t,n,a,i),e.max=Zd(e.max,t,n,a,i)}function Jd(e,t,[n,r,i],o,l){B2(e,t[n],t[r],t[i],t.scale,o,l)}const V2=["x","scaleX","originX"],N2=["y","scaleY","originY"];function ep(e,t,n,r){Jd(e.x,t,V2,n?n.x:void 0,r?r.x:void 0),Jd(e.y,t,N2,n?n.y:void 0,r?r.y:void 0)}function tp(e){return e.translate===0&&e.scale===1}function p0(e){return tp(e.x)&&tp(e.y)}function np(e,t){return e.min===t.min&&e.max===t.max}function $2(e,t){return np(e.x,t.x)&&np(e.y,t.y)}function rp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function f0(e,t){return rp(e.x,t.x)&&rp(e.y,t.y)}function ip(e){return Ve(e.x)/Ve(e.y)}function op(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class W2{constructor(){this.members=[]}add(t){Mc(this.members,t),t.scheduleRender()}remove(t){if(Lc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function H2(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(r=`translate3d(${i}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:y,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),p&&(r+=`rotateX(${p}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const dn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Mr=typeof window<"u"&&window.MotionDebug!==void 0,Xs=["","X","Y","Z"],U2={visibility:"hidden"},sp=1e3;let G2=0;function Qs(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function h0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=km(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",K,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&h0(r)}function m0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},a=t==null?void 0:t()){this.id=G2++,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,Mr&&(dn.totalNodes=dn.resolvedTargetDeltas=dn.recalculatedProjection=0),this.nodes.forEach(X2),this.nodes.forEach(ew),this.nodes.forEach(tw),this.nodes.forEach(Q2),Mr&&window.MotionDebug.record(dn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=z2(f,250),po.hasAnimatedSinceResize&&(po.hasAnimatedSinceResize=!1,this.nodes.forEach(ap))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||sw,{onLayoutAnimationStart:S,onLayoutAnimationComplete:m}=d.getProps(),h=!this.targetLayout||!f0(this.targetLayout,x)||y,g=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,g);const w={...Ec(v,"layout"),onPlay:S,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||ap(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Zt(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(nw),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&h0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{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 c=0;c{const j=w/1e3;cp(p.x,l.x,j),cp(p.y,l.y,j),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ur(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iw(this.relativeTarget,this.relativeTargetOrigin,f,j),g&&$2(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=oe()),He(g,this.relativeTarget)),v&&(this.animationValues=d,I2(d,u,this.latestValues,j,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Zt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.update(()=>{po.hasAnimatedSinceResize=!0,this.currentAnimation=_2(0,sp,{...l,onUpdate:a=>{this.mixTargetDelta(a),l.onUpdate&&l.onUpdate(a)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:d}=l;if(!(!a||!c||!u)){if(this!==l&&this.layout&&u&&g0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||oe();const p=Ve(this.layout.layoutBox.x);c.x.min=l.target.x.min,c.x.max=c.x.min+p;const f=Ve(this.layout.layoutBox.y);c.y.min=l.target.y.min,c.y.max=c.y.min+f}He(a,c),Un(a,d),Hr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(l,a){this.sharedNodes.has(l)||this.sharedNodes.set(l,new W2),this.sharedNodes.get(l).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),l&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let a=!1;const{latestValues:c}=l;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&Qs("z",l,u,this.animationValues);for(let d=0;d{var a;return(a=l.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(lp),this.root.sharedNodes.clear()}}}function Y2(e){e.updateLayout()}function K2(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?Ue(p=>{const f=l?n.measuredBox[p]:n.layoutBox[p],y=Ve(f);f.min=r[p].min,f.max=f.min+y}):g0(o,n.layoutBox,r)&&Ue(p=>{const f=l?n.measuredBox[p]:n.layoutBox[p],y=Ve(r[p]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+y)});const a=Wn();Hr(a,r,n.layoutBox);const c=Wn();l?Hr(c,e.applyTransform(i,!0),n.measuredBox):Hr(c,r,n.layoutBox);const u=!p0(a);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:y}=p;if(f&&y){const x=oe();Ur(x,n.layoutBox,f.layoutBox);const v=oe();Ur(v,r,y.layoutBox),f0(x,v)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function X2(e){Mr&&dn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Q2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function q2(e){e.clearSnapshot()}function lp(e){e.clearMeasurements()}function Z2(e){e.isLayoutDirty=!1}function J2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ap(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ew(e){e.resolveTargetDelta()}function tw(e){e.calcProjection()}function nw(e){e.resetSkewAndRotation()}function rw(e){e.removeLeadSnapshot()}function cp(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function up(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function iw(e,t,n,r){up(e.x,t.x,n.x,r),up(e.y,t.y,n.y,r)}function ow(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sw={duration:.45,ease:[.4,0,.1,1]},dp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),pp=dp("applewebkit/")&&!dp("chrome/")?Math.round:Oe;function fp(e){e.min=pp(e.min),e.max=pp(e.max)}function lw(e){fp(e.x),fp(e.y)}function g0(e,t,n){return e==="position"||e==="preserve-aspect"&&!u2(ip(t),ip(n),.2)}function aw(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const cw=m0({attachResizeListener:(e,t)=>hi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qs={current:void 0},y0=m0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qs.current){const e=new cw({});e.mount(window),e.setOptions({layoutScroll:!0}),qs.current=e}return qs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),uw={pan:{Feature:C2},drag:{Feature:T2,ProjectionNode:y0,MeasureLayout:c0}};function hp(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&K.postRender(()=>o(t,bi(t)))}class dw extends rn{mount(){const{current:t}=this.node;t&&(this.unmount=ux(t,n=>(hp(this.node,n,"Start"),r=>hp(this.node,r,"End"))))}unmount(){}}class pw extends rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ji(hi(this.node.current,"focus",()=>this.onFocus()),hi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mp(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&K.postRender(()=>o(t,bi(t)))}class fw extends rn{mount(){const{current:t}=this.node;t&&(this.unmount=hx(t,n=>(mp(this.node,n,"Start"),(r,{success:i})=>mp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pa=new WeakMap,Zs=new WeakMap,hw=e=>{const t=pa.get(e.target);t&&t(e)},mw=e=>{e.forEach(hw)};function gw({root:e,...t}){const n=e||document;Zs.has(n)||Zs.set(n,{});const r=Zs.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(mw,{root:e,...t})),r[i]}function yw(e,t,n){const r=gw(t);return pa.set(e,n),r.observe(e),()=>{pa.delete(e),r.unobserve(e)}}const xw={some:0,all:1};class vw extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:xw[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(c)};return yw(this.node.current,l,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ww(t,n))&&this.startObserver()}unmount(){}}function ww({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sw={inView:{Feature:vw},tap:{Feature:fw},focus:{Feature:pw},hover:{Feature:dw}},kw={layout:{ProjectionNode:y0,MeasureLayout:c0}},fa={current:null},x0={current:!1};function jw(){if(x0.current=!0,!!fc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fa.current=e.matches;e.addListener(t),t()}else fa.current=!1}const bw=[...Wm,we,Jt],Tw=e=>bw.find($m(e)),gp=new WeakMap;function Cw(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ke(i))e.addValue(r,i);else if(ke(o))e.addValue(r,pi(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,pi(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Aw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:l},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vc,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 y=gt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),x0.current||jw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gp.delete(this.current),this.projection&&this.projection.unmount(),Zt(this.notifyUpdate),Zt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=An.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&K.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in lr){const n=lr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):oe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=pi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Vm(i)||Rm(i))?i=parseFloat(i):!Tw(i)&&Jt.test(n)&&(i=Fm(t,n)),this.setBaseTarget(t,ke(i)?i.get():i)),ke(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const l=wc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ke(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class v0 extends Aw{constructor(){super(...arguments),this.KeyframeResolver=Hm}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ke(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ew(e){return window.getComputedStyle(e)}class Pw extends v0{constructor(){super(...arguments),this.type="html",this.renderInstance=sm}readValueFromInstance(t,n){if(An.has(n)){const r=Bc(n);return r&&r.default||0}else{const r=Ew(t),i=(rm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return l0(t,n)}build(t,n,r){jc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ac(t,n,r)}}class _w extends v0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=oe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(An.has(n)){const r=Bc(n);return r&&r.default||0}return n=lm.has(n)?n:yc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return um(t,n,r)}build(t,n,r){bc(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){am(t,n,r,i)}mount(t){this.isSVGTag=Cc(t.tagName),super.mount(t)}}const Rw=(e,t)=>vc(e)?new _w(t):new Pw(t,{allowProjection:e!==A.Fragment}),Mw=rx({...t2,...Sw,...uw,...kw},Rw),k=x1(Mw);function w0(){const{T:e,mode:t}=_(),n=t==="dark"?.18:.3,r=t==="dark"?"radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%)":"radial-gradient(ellipse at center, transparent 45%, rgba(15,23,42,0.05) 100%)";return s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:`linear-gradient(${e.border} 1px, transparent 1px), linear-gradient(90deg, ${e.border} 1px, transparent 1px)`,backgroundSize:"40px 40px",opacity:n,maskImage:"radial-gradient(ellipse at center, #000 30%, transparent 80%)",WebkitMaskImage:"radial-gradient(ellipse at center, #000 30%, transparent 80%)",pointerEvents:"none"}}),s.jsx("div",{style:{position:"absolute",inset:0,background:r,pointerEvents:"none"}})]})}const S0=380;function Lw({size:e=20,color:t}){return s.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}function zw({open:e,onToggle:t}){const{T:n}=_();return s.jsx("button",{onClick:t,"aria-label":"Settings",title:"Settings","data-chrome":!0,style:{position:"fixed",top:18,right:20,width:42,height:42,display:"grid",placeItems:"center",borderRadius:11,border:`1.5px solid ${n.border}`,background:n.bgRaised,zIndex:60,opacity:e?1:.55,transition:"opacity .2s"},onMouseEnter:r=>r.currentTarget.style.opacity="1",onMouseLeave:r=>r.currentTarget.style.opacity=e?"1":"0.55",children:s.jsx(k.span,{animate:{rotate:e?90:0},transition:{type:"spring",damping:16},style:{display:"grid",placeItems:"center"},children:s.jsx(Lw,{color:n.textMuted})})})}const ha=300,Dw=ha*ss/ci;function Iw({slide:e}){const{T:t}=_(),n=e.component;return s.jsx("div",{style:{width:ha,height:Dw,position:"relative",overflow:"hidden",background:t.bg,borderRadius:8},children:s.jsxs("div",{style:{width:ci,height:ss,transform:`scale(${ha/ci})`,transformOrigin:"top left",position:"absolute",top:0,left:0,pointerEvents:"none"},children:[s.jsx(w0,{}),s.jsx(n,{})]})})}function Fw({slides:e,index:t,goto:n,showArrows:r,setShowArrows:i,onClose:o}){const{T:l,mode:a,setMode:c}=_();return s.jsxs("div",{style:{width:S0,height:"100%",background:l.bg,borderRight:`1.5px solid ${l.border}`,display:"flex",flexDirection:"column",fontFamily:E},children:[s.jsxs("div",{style:{padding:"22px 24px 18px",borderBottom:`1px solid ${l.border}`},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:18},children:[s.jsx("span",{style:{fontSize:12,letterSpacing:3,color:l.textDim,textTransform:"uppercase"},children:"Settings"}),s.jsx("button",{onClick:o,"aria-label":"Close",style:{border:"none",background:"transparent",color:l.textDim,fontSize:20,lineHeight:1},children:"✕"})]}),s.jsxs("div",{style:{display:"flex",gap:12},children:[s.jsx(xp,{label:a==="dark"?"Dark":"Light",active:!0,onClick:()=>c(a==="dark"?"light":"dark"),T:l,children:a==="dark"?s.jsx(Ow,{color:l.text}):s.jsx(Bw,{color:l.text})}),s.jsx(xp,{label:"Arrows",active:r,onClick:()=>i(!r),T:l,children:s.jsx(Vw,{color:r?l.text:l.textDim})})]})]}),s.jsxs("div",{style:{padding:"16px 24px 24px",overflowY:"auto",flex:1},children:[s.jsxs("div",{style:{fontSize:12,letterSpacing:3,color:l.textDim,textTransform:"uppercase",marginBottom:14},children:["Slides · ",e.length]}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:16},children:e.map((u,d)=>{const p=d===t;return s.jsxs("button",{onClick:()=>n(d),style:{padding:0,border:"none",background:"transparent",textAlign:"left"},children:[s.jsx("div",{style:{border:`2px solid ${p?l.borderStrong:l.border}`,borderRadius:10,overflow:"hidden",outline:p?`2px solid ${l.text}`:"none",outlineOffset:-1,transition:"border-color .15s"},children:s.jsx(Iw,{slide:u})}),s.jsxs("div",{style:{display:"flex",gap:8,marginTop:8,alignItems:"baseline"},children:[s.jsx("span",{style:{color:p?l.text:l.textDim,fontSize:13,fontWeight:700,fontVariantNumeric:"tabular-nums"},children:String(d+1).padStart(2,"0")}),s.jsx("span",{style:{color:p?l.text:l.textMuted,fontSize:14},children:u.title})]})]},u.id)})})]})]})}function xp({label:e,active:t,onClick:n,children:r,T:i}){return s.jsxs("button",{onClick:n,title:e,"aria-pressed":t,style:{display:"flex",alignItems:"center",gap:9,padding:"9px 14px",borderRadius:10,border:`1.5px solid ${t?i.text:i.border}`,background:t?i.bgRaised:"transparent",color:t?i.text:i.textDim,fontSize:13,fontWeight:600,fontFamily:E},children:[r,s.jsx("span",{children:e})]})}function Ow({color:e}){return s.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}function Bw({color:e}){return s.jsxs("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"4"}),s.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]})}function Vw({color:e}){return s.jsxs("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M15 18l-6-6 6-6"}),s.jsx("path",{d:"M9 6l6 6-6 6",opacity:.55})]})}function Nw({id:e,children:t}){const n=A.useRef(null),[r,i]=A.useState(null);return A.useEffect(()=>{},[e]),s.jsxs("div",{ref:n,style:{position:"absolute",inset:0},children:[t,r&&s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-ov-badge":"1",style:{position:"absolute",inset:0,border:"3px solid #ff4d6d",boxShadow:"inset 0 0 0 3px rgba(255,77,109,0.25)",pointerEvents:"none",zIndex:999}}),s.jsxs("div",{"data-ov-badge":"1",style:{position:"absolute",top:8,left:"50%",transform:"translateX(-50%)",background:"#ff4d6d",color:"#fff",fontFamily:"ui-monospace, monospace",fontSize:15,fontWeight:800,padding:"5px 12px",borderRadius:8,letterSpacing:.5,zIndex:1e3,pointerEvents:"none"},children:["⚠ OVERFLOW ",r.dx>0?`→${r.dx}px`:""," ",r.dy>0?`↓${r.dy}px`:""]})]})]})}const $w={hidden:{opacity:0,y:18},show:{opacity:1,y:0}},Ww=(e=.09,t=.15)=>({hidden:{},show:{transition:{staggerChildren:e,delayChildren:t}}}),bn={type:"spring",damping:22,stiffness:180};function N({children:e,style:t,className:n}){return s.jsx(k.div,{variants:$w,transition:bn,style:t,className:n,children:e})}function ze({children:e,style:t,gap:n,delay:r}){return s.jsx(k.div,{variants:Ww(n,r),initial:"hidden",animate:"show",style:t,children:e})}function vt({children:e,marker:t="▸",markerColor:n}){const{T:r}=_();return s.jsxs("div",{style:{display:"flex",gap:18,alignItems:"baseline"},children:[s.jsx("span",{style:{color:n??r.emerald,fontWeight:800,fontSize:28},children:t}),s.jsx("span",{style:{color:r.text,fontSize:34,lineHeight:1.4},children:e})]})}function L({children:e,color:t="emerald",glow:n=!1}){const{T:r,glow:i}=_(),o=t==="lavender"?r.lavender:r.emerald,l=n?t==="lavender"?i.lavenderText:i.emeraldText:"none";return s.jsx("span",{style:{color:o,textShadow:l},children:e})}const k0=A.createContext(null);function B({index:e,kicker:t,title:n,children:r,titleSize:i=46}){const{T:o}=_(),l=A.useContext(k0),a=String(l??e??0).padStart(2,"0");return s.jsxs("div",{style:{position:"absolute",inset:0},children:[s.jsxs("div",{style:{position:"absolute",top:52,left:96,right:96},children:[s.jsxs(k.div,{initial:{opacity:0,x:-14},animate:{opacity:1,x:0},transition:{...bn,delay:.05},style:{fontSize:17,fontWeight:700,letterSpacing:5,textTransform:"uppercase",marginBottom:10,fontFamily:E},children:[s.jsx("span",{style:{color:o.emerald},children:a}),s.jsxs("span",{style:{color:o.textDim},children:["  /  ",t]})]}),s.jsx(k.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{...bn,delay:.12},style:{fontSize:i,fontWeight:800,color:o.white,letterSpacing:-1,lineHeight:1.06,maxWidth:1040},children:n})]}),r,s.jsx("div",{style:{position:"absolute",bottom:44,right:96,fontFamily:E,fontSize:18,color:o.textDim,letterSpacing:2},children:a})]})}function j0({size:e=22,color:t="currentColor"}){return s.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:t,children:s.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"})})}function mr({size:e=22}){return s.jsxs("svg",{width:e,height:e*88/95,viewBox:"0 0 95 88",fill:"none","aria-label":"Hugging Face",children:[s.jsx("path",{fill:"#FFD21E",d:"M47.21 76.5a34.75 34.75 0 1 0 0-69.5 34.75 34.75 0 0 0 0 69.5Z"}),s.jsx("path",{fill:"#FF9D0B",d:"M81.96 41.75a34.75 34.75 0 1 0-69.5 0 34.75 34.75 0 0 0 69.5 0Zm-73.5 0a38.75 38.75 0 1 1 77.5 0 38.75 38.75 0 0 1-77.5 0Z"}),s.jsx("path",{fill:"#3A3B45",d:"M58.5 32.3c1.28.44 1.78 3.06 3.07 2.38a5 5 0 1 0-6.76-2.07c.61 1.15 2.55-.72 3.7-.32ZM34.95 32.3c-1.28.44-1.79 3.06-3.07 2.38a5 5 0 1 1 6.76-2.07c-.61 1.15-2.56-.72-3.7-.32Z"}),s.jsx("path",{fill:"#FF323D",d:"M46.96 56.29c9.83 0 13-8.76 13-13.26 0-2.34-1.57-1.6-4.09-.36-2.33 1.15-5.46 2.74-8.9 2.74-7.19 0-13-6.88-13-2.38s3.16 13.26 13 13.26Z"}),s.jsx("path",{fill:"#3A3B45",fillRule:"evenodd",d:"M39.43 54a8.7 8.7 0 0 1 5.3-4.49c.4-.12.81.57 1.24 1.28.4.68.82 1.37 1.24 1.37.45 0 .9-.68 1.33-1.35.45-.7.89-1.38 1.32-1.25a8.61 8.61 0 0 1 5 4.17c3.73-2.94 5.1-7.74 5.1-10.7 0-2.34-1.57-1.6-4.09-.36l-.14.07c-2.31 1.15-5.39 2.67-8.77 2.67s-6.45-1.52-8.77-2.67c-2.6-1.29-4.23-2.1-4.23.29 0 3.05 1.46 8.06 5.47 10.97Z",clipRule:"evenodd"}),s.jsx("path",{fill:"#FF9D0B",d:"M70.71 37a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5ZM24.21 37a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5ZM17.52 48c-1.62 0-3.06.66-4.07 1.87a5.97 5.97 0 0 0-1.33 3.76 7.1 7.1 0 0 0-1.94-.3c-1.55 0-2.95.59-3.94 1.66a5.8 5.8 0 0 0-.8 7 5.3 5.3 0 0 0-1.79 2.82c-.24.9-.48 2.8.8 4.74a5.22 5.22 0 0 0-.37 5.02c1.02 2.32 3.57 4.14 8.52 6.1 3.07 1.22 5.89 2 5.91 2.01a44.33 44.33 0 0 0 10.93 1.6c5.86 0 10.05-1.8 12.46-5.34 3.88-5.69 3.33-10.9-1.7-15.92-2.77-2.78-4.62-6.87-5-7.77-.78-2.66-2.84-5.62-6.25-5.62a5.7 5.7 0 0 0-4.6 2.46c-1-1.26-1.98-2.25-2.86-2.82A7.4 7.4 0 0 0 17.52 48Zm0 4c.51 0 1.14.22 1.82.65 2.14 1.36 6.25 8.43 7.76 11.18.5.92 1.37 1.31 2.14 1.31 1.55 0 2.75-1.53.15-3.48-3.92-2.93-2.55-7.72-.68-8.01.08-.02.17-.02.24-.02 1.7 0 2.45 2.93 2.45 2.93s2.2 5.52 5.98 9.3c3.77 3.77 3.97 6.8 1.22 10.83-1.88 2.75-5.47 3.58-9.16 3.58-3.81 0-7.73-.9-9.92-1.46-.11-.03-13.45-3.8-11.76-7 .28-.54.75-.76 1.34-.76 2.38 0 6.7 3.54 8.57 3.54.41 0 .7-.17.83-.6.79-2.85-12.06-4.05-10.98-8.17.2-.73.71-1.02 1.44-1.02 3.14 0 10.2 5.53 11.68 5.53.11 0 .2-.03.24-.1.74-1.2.33-2.04-4.9-5.2-5.21-3.16-8.88-5.06-6.8-7.33.24-.26.58-.38 1-.38 3.17 0 10.66 6.82 10.66 6.82s2.02 2.1 3.25 2.1c.28 0 .52-.1.68-.38.86-1.46-8.06-8.22-8.56-11.01-.34-1.9.24-2.85 1.31-2.85Z"}),s.jsx("path",{fill:"#FFD21E",d:"M38.6 76.69c2.75-4.04 2.55-7.07-1.22-10.84-3.78-3.77-5.98-9.3-5.98-9.3s-.82-3.2-2.69-2.9c-1.87.3-3.24 5.08.68 8.01 3.91 2.93-.78 4.92-2.29 2.17-1.5-2.75-5.62-9.82-7.76-11.18-2.13-1.35-3.63-.6-3.13 2.2.5 2.79 9.43 9.55 8.56 11-.87 1.47-3.93-1.71-3.93-1.71s-9.57-8.71-11.66-6.44c-2.08 2.27 1.59 4.17 6.8 7.33 5.23 3.16 5.64 4 4.9 5.2-.75 1.2-12.28-8.53-13.36-4.4-1.08 4.11 11.77 5.3 10.98 8.15-.8 2.85-9.06-5.38-10.74-2.18-1.7 3.21 11.65 6.98 11.76 7.01 4.3 1.12 15.25 3.49 19.08-2.12Z"}),s.jsx("path",{fill:"#FF9D0B",d:"M77.4 48c1.62 0 3.07.66 4.07 1.87a5.97 5.97 0 0 1 1.33 3.76 7.1 7.1 0 0 1 1.95-.3c1.55 0 2.95.59 3.94 1.66a5.8 5.8 0 0 1 .8 7 5.3 5.3 0 0 1 1.78 2.82c.24.9.48 2.8-.8 4.74a5.22 5.22 0 0 1 .37 5.02c-1.02 2.32-3.57 4.14-8.51 6.1-3.08 1.22-5.9 2-5.92 2.01a44.33 44.33 0 0 1-10.93 1.6c-5.86 0-10.05-1.8-12.46-5.34-3.88-5.69-3.33-10.9 1.7-15.92 2.78-2.78 4.63-6.87 5.01-7.77.78-2.66 2.83-5.62 6.24-5.62a5.7 5.7 0 0 1 4.6 2.46c1-1.26 1.98-2.25 2.87-2.82A7.4 7.4 0 0 1 77.4 48Zm0 4c-.51 0-1.13.22-1.82.65-2.13 1.36-6.25 8.43-7.76 11.18a2.43 2.43 0 0 1-2.14 1.31c-1.54 0-2.75-1.53-.14-3.48 3.91-2.93 2.54-7.72.67-8.01a1.54 1.54 0 0 0-.24-.02c-1.7 0-2.45 2.93-2.45 2.93s-2.2 5.52-5.97 9.3c-3.78 3.77-3.98 6.8-1.22 10.83 1.87 2.75 5.47 3.58 9.15 3.58 3.82 0 7.73-.9 9.93-1.46.1-.03 13.45-3.8 11.76-7-.29-.54-.75-.76-1.34-.76-2.38 0-6.71 3.54-8.57 3.54-.42 0-.71-.17-.83-.6-.8-2.85 12.05-4.05 10.97-8.17-.19-.73-.7-1.02-1.44-1.02-3.14 0-10.2 5.53-11.68 5.53-.1 0-.19-.03-.23-.1-.74-1.2-.34-2.04 4.88-5.2 5.23-3.16 8.9-5.06 6.8-7.33-.23-.26-.57-.38-.98-.38-3.18 0-10.67 6.82-10.67 6.82s-2.02 2.1-3.24 2.1a.74.74 0 0 1-.68-.38c-.87-1.46 8.05-8.22 8.55-11.01.34-1.9-.24-2.85-1.31-2.85Z"}),s.jsx("path",{fill:"#FFD21E",d:"M56.33 76.69c-2.75-4.04-2.56-7.07 1.22-10.84 3.77-3.77 5.97-9.3 5.97-9.3s.82-3.2 2.7-2.9c1.86.3 3.23 5.08-.68 8.01-3.92 2.93.78 4.92 2.28 2.17 1.51-2.75 5.63-9.82 7.76-11.18 2.13-1.35 3.64-.6 3.13 2.2-.5 2.79-9.42 9.55-8.55 11 .86 1.47 3.92-1.71 3.92-1.71s9.58-8.71 11.66-6.44c2.08 2.27-1.58 4.17-6.8 7.33-5.23 3.16-5.63 4-4.9 5.2.75 1.2 12.28-8.53 13.36-4.4 1.08 4.11-11.76 5.3-10.97 8.15.8 2.85 9.05-5.38 10.74-2.18 1.69 3.21-11.65 6.98-11.76 7.01-4.31 1.12-15.26 3.49-19.08-2.12Z"})]})}const Hw=["RL Environments","RL Training"],Nt=646;function b0(e,t){const n=[];for(let r=0;r<=56;r++){const i=r/56,o=i*1280,l=Nt-Math.pow(i,e)*t;n.push(`${r===0?"M":"L"}${o.toFixed(1)} ${l.toFixed(1)}`)}return n.join(" ")}const ma=b0(2.4,258),Uw=b0(3.3,168),Gw=`${ma} L1280 ${Nt} L0 ${Nt} Z`,Yw=[.42,.66,.84,.97].map(e=>({t:e,x:e*1280,y:Nt-Math.pow(e,2.4)*258})),vp=[{x:330,label:"10×"},{x:700,label:"100×"},{x:1055,label:"1,000×"}];function Kw(){const{T:e,mode:t}=_(),n=t==="dark"?.5:.6,r=t==="dark"?.3:.22;return s.jsxs("svg",{width:"1280",height:"720",viewBox:"0 0 1280 720",style:{position:"absolute",inset:0},children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"scale-area",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0%",stopColor:e.emerald,stopOpacity:r}),s.jsx("stop",{offset:"100%",stopColor:e.emerald,stopOpacity:0})]})}),vp.concat([{x:1240,label:""}]).map((i,o)=>s.jsx(k.line,{x1:i.x,y1:300,x2:i.x,y2:Nt,stroke:e.border,strokeWidth:1,initial:{opacity:0},animate:{opacity:n*.55},transition:{delay:.3+o*.1,duration:.5}},o)),s.jsx(k.line,{x1:0,y1:Nt,x2:1280,y2:Nt,stroke:e.border,strokeWidth:1.5,initial:{opacity:0},animate:{opacity:n},transition:{delay:.25,duration:.5}}),s.jsx(k.path,{d:Uw,fill:"none",stroke:e.lavender,strokeWidth:2,strokeLinecap:"round",initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:.5},transition:{pathLength:{delay:.5,duration:1.7,ease:"easeInOut"},opacity:{delay:.5,duration:.4}}}),s.jsx(k.path,{d:Gw,fill:"url(#scale-area)",initial:{opacity:0},animate:{opacity:1},transition:{delay:1.5,duration:.9}}),s.jsx(k.path,{d:ma,fill:"none",stroke:e.emerald,strokeWidth:10,strokeLinecap:"round",opacity:.2,initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.55,duration:1.8,ease:"easeInOut"}}),s.jsx(k.path,{d:ma,fill:"none",stroke:e.emerald,strokeWidth:3.2,strokeLinecap:"round",initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.55,duration:1.8,ease:"easeInOut"}}),Yw.map(i=>s.jsx(k.circle,{cx:i.x,cy:i.y,r:5,fill:e.emerald,initial:{opacity:0,scale:0},animate:{opacity:.9,scale:1},transition:{delay:.55+i.t*1.8,type:"spring",damping:14,stiffness:220},style:{transformOrigin:`${i.x}px ${i.y}px`}},i.t)),vp.map((i,o)=>s.jsx(k.text,{x:i.x,y:Nt+26,textAnchor:"middle",fill:e.textDim,fontFamily:E,fontSize:17,letterSpacing:1,initial:{opacity:0},animate:{opacity:n*.9},transition:{delay:1.1+o*.14,duration:.5},children:i.label},i.label))]})}function Xw(){const{T:e,glow:t,mode:n}=_(),r={hidden:{opacity:0,y:16},show:{opacity:1,y:0}},i=n==="dark"?"radial-gradient(ellipse at center, rgba(7,9,15,0.5) 30%, rgba(7,9,15,0.94) 78%)":"radial-gradient(ellipse at center, rgba(251,252,254,0.55) 30%, rgba(251,252,254,0.92) 78%)";return s.jsxs("div",{style:{position:"absolute",inset:0},children:[s.jsx("div",{style:{position:"absolute",inset:0,background:i}}),s.jsx(Kw,{}),s.jsxs(k.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},transition:{type:"spring",damping:22,delay:.5},style:{position:"absolute",top:46,right:96,textAlign:"right",fontFamily:E,lineHeight:1.5},children:[s.jsx("div",{style:{fontSize:20,fontWeight:700,color:e.textMuted,letterSpacing:2},children:"AMD AI Dev Day"}),s.jsx("div",{style:{fontSize:16,color:e.textDim,letterSpacing:.6},children:"amd.indiadevday.com"})]}),s.jsxs(k.div,{initial:"hidden",animate:"show",variants:{show:{transition:{staggerChildren:.16,delayChildren:.15}}},style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"0 80px"},children:[s.jsxs(k.h1,{variants:r,transition:{type:"spring",damping:20},style:{margin:0,fontSize:88,fontWeight:800,color:e.white,letterSpacing:-3,lineHeight:1.02,maxWidth:1120},children:[s.jsx(L,{color:"emerald",glow:!0,children:"Scaling RL"})," for LLMs"]}),s.jsx(k.div,{variants:r,transition:{type:"spring",damping:20},style:{marginTop:42,display:"flex",alignItems:"stretch",gap:20},children:Hw.map(o=>s.jsx("div",{style:{minWidth:300,padding:"22px 34px",background:e.bgRaised,border:`1.5px solid ${e.emerald}`,borderRadius:16,boxShadow:t.emerald,fontSize:34,fontWeight:700,color:e.emerald,textShadow:t.emeraldText,letterSpacing:-.4,whiteSpace:"nowrap"},children:o},o))}),s.jsxs(k.div,{variants:r,transition:{type:"spring",damping:20},style:{marginTop:54,display:"flex",alignItems:"center",gap:14,fontFamily:E,fontSize:24,color:e.textDim,letterSpacing:1},children:[s.jsx(mr,{size:30}),s.jsx("span",{children:"Adithya S Kolavi"}),s.jsx("span",{style:{opacity:.5},children:"·"}),s.jsx("span",{children:"@AdithyaSK"})]})]})]})}const Qw=""+new URL("cognitivelab-BpHudwdd.png",import.meta.url).href;function qw({size:e=40,color:t="currentColor"}){return s.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,"aria-label":"Apple",children:s.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"})})}function T0({size:e=40,color:t="currentColor"}){return s.jsx("svg",{width:e,height:e*24/24,viewBox:"0 0 24 24",fill:t,"aria-label":"Meta",children:s.jsx("path",{d:"M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z"})})}function Zw({size:e=40,color:t="currentColor"}){return s.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,"aria-label":"GitHub",children:s.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})}function Jw({size:e=40}){const t=e*.06,n=(e-t)/2;return s.jsxs("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,"aria-label":"Microsoft",children:[s.jsx("rect",{x:0,y:0,width:n,height:n,fill:"#F25022"}),s.jsx("rect",{x:n+t,y:0,width:n,height:n,fill:"#7FBA00"}),s.jsx("rect",{x:0,y:n+t,width:n,height:n,fill:"#00A4EF"}),s.jsx("rect",{x:n+t,y:n+t,width:n,height:n,fill:"#FFB900"})]})}function e3({size:e=40,color:t="#4D6BFE"}){return s.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,"aria-label":"DeepSeek",children:s.jsx("path",{d:"M23.748 4.651c-.254-.124-.364.113-.512.233-.051.04-.094.09-.137.137-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.155-.708-.311-.955-.65-.172-.24-.219-.509-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.094.172.187.129.323-.082.28-.18.553-.266.833-.055.179-.137.218-.328.14a5.5 5.5 0 0 1-1.737-1.179c-.857-.828-1.631-1.743-2.597-2.46a12 12 0 0 0-.689-.47c-.985-.957.13-1.743.387-1.836.27-.098.094-.433-.778-.428-.872.003-1.67.295-2.687.685a3 3 0 0 1-.465.136 9.6 9.6 0 0 0-2.883-.101c-1.885.21-3.39 1.1-4.497 2.622C.082 8.776-.231 10.854.152 13.02c.403 2.284 1.568 4.175 3.36 5.653 1.857 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.132-.284 4.994-1.86.47.234.962.328 1.78.398.629.058 1.235-.031 1.705-.129.735-.155.684-.836.418-.961-2.155-1.004-1.682-.595-2.112-.926 1.095-1.295 2.768-3.598 3.284-6.733.05-.346.115-.834.108-1.114-.004-.171.035-.238.23-.257a4.2 4.2 0 0 0 1.545-.475c1.397-.763 1.96-2.016 2.093-3.517.02-.23-.004-.467-.247-.588M11.58 18.168c-2.088-1.642-3.101-2.183-3.52-2.16-.39.024-.32.472-.234.763.09.288.207.487.371.74.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.168-1.361-.801-2.5-1.86-3.301-3.306-.775-1.393-1.225-2.888-1.299-4.482-.02-.385.094-.522.477-.592a4.7 4.7 0 0 1 1.53-.038c2.131.311 3.946 1.264 5.467 2.774.868.86 1.525 1.887 2.202 2.89.72 1.066 1.494 2.082 2.48 2.915.348.291.626.513.892.677-.802.09-2.14.109-3.055-.615zm1.001-6.44a.306.306 0 0 1 .415-.287.3.3 0 0 1 .113.074.3.3 0 0 1 .086.214c0 .17-.136.307-.308.307a.303.303 0 0 1-.306-.307m3.11 1.596c-.2.081-.4.151-.591.16a1.25 1.25 0 0 1-.798-.254c-.274-.23-.47-.358-.551-.758a1.7 1.7 0 0 1 .015-.588c.07-.327-.007-.537-.238-.727-.188-.156-.426-.199-.689-.199a.6.6 0 0 1-.254-.078.253.253 0 0 1-.114-.358 1 1 0 0 1 .192-.21c.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.392.451.462.576.685.915.176.264.336.536.446.848.066.194-.02.353-.25.45"})})}function t3({size:e=40,color:t="#EE4C2C"}){return s.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,"aria-label":"PyTorch",children:s.jsx("path",{d:"M12.005 0L4.952 7.053a9.865 9.865 0 000 14.022 9.866 9.866 0 0014.022 0c3.984-3.9 3.986-10.205.08-14.163l-1.416 1.416a7.86 7.86 0 01-.081 11.331 7.868 7.868 0 01-11.19 0 7.869 7.869 0 010-11.19l4.75-4.75.808-.860zM14.514 5.257a1.269 1.269 0 100 2.538 1.269 1.269 0 000-2.538z"})})}function n3({size:e=40}){return s.jsx("img",{src:Qw,alt:"CognitiveLab",width:e,height:e,style:{display:"block",borderRadius:"50%"}})}const C0=""+new URL("adithyask-CfgQu2fr.jpeg",import.meta.url).href;function Xi({label:e,children:t}){const{T:n}=_();return s.jsxs(N,{children:[e&&s.jsx("div",{style:{fontFamily:E,fontSize:15,letterSpacing:3,color:n.textDim,textTransform:"uppercase",marginBottom:12},children:e}),s.jsx("div",{style:{display:"flex",alignItems:"center",gap:18,fontSize:30,color:n.text},children:t})]})}function r3(){const{T:e,glow:t}=_();return s.jsx(B,{index:1,kicker:"whoami",title:s.jsx(s.Fragment,{children:"Adithya S Kolavi"}),children:s.jsxs("div",{style:{position:"absolute",top:200,left:96,right:96,display:"flex",gap:72,alignItems:"center"},children:[s.jsx(k.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{type:"spring",damping:18,delay:.2},style:{flex:"0 0 auto"},children:s.jsx("div",{style:{width:300,height:300,borderRadius:26,padding:3,background:`linear-gradient(140deg, ${e.lavender}, ${e.emerald})`,boxShadow:t.lavender},children:s.jsx("img",{src:C0,alt:"Adithya S Kolavi",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:23,display:"block"}})})}),s.jsx("div",{style:{flex:1},children:s.jsxs(ze,{gap:.13,delay:.35,style:{display:"flex",flexDirection:"column",gap:26},children:[s.jsx(Xi,{label:"Now",children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:18},children:[s.jsx(mr,{size:40}),s.jsxs("span",{children:[s.jsx("b",{style:{color:e.white},children:"Hugging Face"})," · post-training"]})]}),s.jsx("div",{style:{fontSize:24,color:e.emerald},children:"🚀 making RL go brrrrr"})]})}),s.jsxs(Xi,{label:"Previously",children:[s.jsx(qw,{size:38,color:e.text}),s.jsx("span",{style:{marginRight:8},children:"Apple"}),s.jsx(Jw,{size:34}),s.jsx("span",{children:"Microsoft Research"})]}),s.jsxs(Xi,{label:"Founded — grant from Meta",children:[s.jsx(n3,{size:44}),s.jsx("span",{children:s.jsx("b",{style:{color:e.white},children:"CognitiveLab"})}),s.jsx("span",{style:{color:e.textDim,fontSize:26},children:"·"}),s.jsx(T0,{size:34,color:e.text}),s.jsx("span",{style:{fontSize:26,color:e.textMuted},children:"Meta"})]}),s.jsxs(Xi,{children:[s.jsx(Zw,{size:34,color:e.text}),s.jsxs("span",{style:{whiteSpace:"nowrap",fontSize:28},children:["I ",s.jsx("span",{style:{color:"#ff5470",fontSize:24},children:"❤"})," open source ·"," ",s.jsx(L,{color:"emerald",children:"13k+ stars"})," across my repos"]})]})]})})]})})}const i3=[{what:"Models",tail:"weights, in a git repo"},{what:"Datasets",tail:"versioned, streamable"},{what:"Spaces",tail:"a demo behind a URL"}],o3="The AI community building the future.",s3=[{name:"transformers"},{name:"diffusers"},{name:"datasets"},{name:"accelerate"},{name:"TRL",hot:!0},{name:"OpenEnv",hot:!0}];function wp({children:e}){const{T:t}=_();return s.jsx("div",{style:{fontFamily:E,fontSize:17,fontWeight:700,letterSpacing:4,color:t.lavender,textTransform:"uppercase",marginBottom:18},children:e})}function l3(){const{T:e,glow:t,mode:n}=_(),r=n==="dark"?"radial-gradient(circle, rgba(255,210,30,0.20) 0%, rgba(255,157,11,0.08) 45%, rgba(0,0,0,0) 70%)":"radial-gradient(circle, rgba(255,190,30,0.30) 0%, rgba(255,157,11,0.10) 45%, rgba(0,0,0,0) 70%)";return s.jsxs(B,{kicker:"The platform",title:s.jsx(s.Fragment,{children:"Hugging Face"}),children:[s.jsx(k.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{...bn,delay:.2},style:{position:"absolute",top:138,left:96,right:96,fontSize:27,color:e.textMuted,letterSpacing:-.2},children:o3}),s.jsxs("div",{style:{position:"absolute",top:196,left:96,right:96,bottom:66,display:"flex",alignItems:"center",gap:68},children:[s.jsxs(k.div,{initial:{opacity:0,scale:.82},animate:{opacity:1,scale:1},transition:{type:"spring",damping:16,stiffness:140,delay:.15},style:{flex:"0 0 auto",display:"flex",flexDirection:"column",alignItems:"center",gap:18},children:[s.jsxs("div",{style:{width:300,height:300,display:"grid",placeItems:"center",position:"relative"},children:[s.jsx("div",{style:{position:"absolute",inset:-28,background:r}}),s.jsx(mr,{size:244})]}),s.jsx("div",{style:{fontFamily:E,fontSize:22,fontWeight:700,letterSpacing:6,color:e.emerald,textShadow:t.emeraldText,textTransform:"uppercase"},children:"Open source"})]}),s.jsx("div",{style:{flex:1},children:s.jsxs(ze,{gap:.12,delay:.4,style:{display:"flex",flexDirection:"column",gap:40},children:[s.jsx(N,{children:s.jsxs("div",{children:[s.jsx(wp,{children:"The platform"}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:18},children:i3.map(i=>s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:20},children:[s.jsx("div",{style:{width:5,height:38,borderRadius:3,background:e.emerald,boxShadow:t.emerald}}),s.jsx("span",{style:{fontSize:44,fontWeight:800,color:e.white,letterSpacing:-1.2,lineHeight:1},children:i.what}),s.jsx("span",{style:{fontSize:24,color:e.textDim,letterSpacing:-.2},children:i.tail})]},i.what))})]})}),s.jsx(N,{children:s.jsxs("div",{children:[s.jsx(wp,{children:"The libraries"}),s.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:12},children:s3.map(i=>s.jsx("span",{style:{padding:"10px 20px",borderRadius:999,border:`1.5px solid ${i.hot?e.emerald:e.border}`,background:e.bgRaised,boxShadow:i.hot?t.emerald:"none",fontFamily:E,fontSize:22,fontWeight:700,color:i.hot?e.emerald:e.white,letterSpacing:.3},children:i.name},i.name))})]})})]})})]})]})}const a3=["What RL environments are","Why we need them","OpenEnv & TRL","Generating environments","Reward hacking"];function c3({n:e,label:t,i:n}){const{T:r}=_();return s.jsxs(k.div,{initial:{opacity:0,x:18},animate:{opacity:1,x:0},transition:{type:"spring",damping:22,delay:.3+n*.08},style:{display:"flex",alignItems:"baseline",gap:22,padding:"12px 0",borderBottom:`1px solid ${r.border}`},children:[s.jsx("span",{style:{fontFamily:E,fontSize:22,fontWeight:700,color:r.textDim,width:44,flex:"0 0 auto"},children:String(e).padStart(2,"0")}),s.jsx("span",{style:{fontSize:34,fontWeight:600,color:r.text},children:t})]})}function u3(){const{T:e}=_();return s.jsx(B,{index:2,kicker:"Roadmap",title:s.jsx(s.Fragment,{children:"What we’ll cover"}),children:s.jsxs("div",{style:{position:"absolute",top:236,left:96,right:96},children:[s.jsx(k.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},style:{fontFamily:E,fontSize:18,letterSpacing:2,color:e.textDim,textTransform:"uppercase",marginBottom:6},children:"The talk"}),a3.map((t,n)=>s.jsx(c3,{n:n+1,label:t,i:n},t)),s.jsxs(k.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{type:"spring",damping:22,delay:.85},style:{marginTop:34,display:"flex",alignItems:"center",gap:18,fontSize:30},children:[s.jsx("span",{style:{fontFamily:E,fontSize:24,color:e.textDim},children:"then →"}),s.jsx(L,{color:"emerald",children:"Q & A"})]})]})})}function d3(){const{T:e}=_(),t={hidden:{opacity:0,y:18},show:{opacity:1,y:0}};return s.jsx("div",{style:{position:"absolute",inset:0},children:s.jsxs(k.div,{initial:"hidden",animate:"show",variants:{show:{transition:{staggerChildren:.2,delayChildren:.15}}},style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"0 130px"},children:[s.jsxs(k.div,{variants:t,transition:{type:"spring",damping:20},style:{display:"flex",flexDirection:"column",alignItems:"center",gap:22,marginBottom:54},children:[s.jsx(k.span,{style:{fontSize:96,lineHeight:1,transformOrigin:"70% 90%"},animate:{rotate:[0,14,-8,14,-4,0]},transition:{duration:1.6,delay:.6,ease:"easeInOut"},children:"✋"}),s.jsx("span",{style:{fontFamily:E,fontSize:22,fontWeight:700,color:e.white,letterSpacing:6,textTransform:"uppercase"},children:"Show of hands"})]}),s.jsxs(k.div,{variants:t,transition:{type:"spring",damping:20},style:{fontSize:72,fontWeight:800,color:e.white,letterSpacing:-2,lineHeight:1.16,maxWidth:1040},children:["How many of you have heard"," ",s.jsx(L,{color:"emerald",children:"“RL environments”"}),"?"]})]})})}const Qi=[{key:"pretrain",label:"Pretraining",sub:"the whole web"},{key:"sft",label:"SFT",sub:"curated data"},{key:"rlhf",label:"RLHF",sub:"humans judge"},{key:"rlvr",label:"RLVR · GRPO",sub:"verifiers judge"}];function Ti({active:e,compact:t=!1,animate:n=!0}){const{T:r,glow:i}=_(),o=t?18:22,l=t?26:32,a=t?0:18;return s.jsxs("div",{style:{position:"relative",width:"100%"},children:[s.jsx("div",{style:{position:"absolute",top:o/2,left:`${100/(Qi.length*2)}%`,right:`${100/(Qi.length*2)}%`,height:2,background:r.textDim,opacity:.5}}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Qi.length}, 1fr)`},children:Qi.map((c,u)=>{const d=u===e,p=us.jsxs(k.div,{initial:{opacity:0,x:18},animate:{opacity:1,x:0},transition:{type:"spring",damping:22,delay:.4+n*.12},style:{display:"flex",alignItems:"baseline",gap:18},children:[s.jsx("span",{style:{fontFamily:E,fontSize:40,fontWeight:800,color:e.emerald,width:118,flex:"0 0 auto",whiteSpace:"nowrap"},children:t.n}),s.jsxs("span",{style:{display:"flex",flexDirection:"column"},children:[s.jsx("span",{style:{fontSize:24,color:e.white,fontWeight:600},children:t.who}),s.jsx("span",{style:{fontFamily:E,fontSize:17,color:e.textDim},children:t.what})]})]},t.who)),s.jsxs(k.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1},style:{fontSize:21,color:e.textMuted,lineHeight:1.4,marginTop:8},children:["Each model was trained on that many environments — from a handful to"," ",s.jsx(L,{color:"emerald",children:"millions"}),"."]})]})]})})}const S3=9.8,k3=1,Hc=.1,Uc=.5,Sp=Hc*Uc,Js=k3+Hc,j3=10,Gn=.02,el=2.4;function b3(e,t){const n=j3*t,r=Math.cos(e.th),i=Math.sin(e.th),o=(n+Sp*e.thd*e.thd*i)/Js,l=(S3*i-r*o)/(Uc*(4/3-Hc*r*r/Js)),a=o-Sp*l*r/Js;return{x:e.x+Gn*e.xd,xd:e.xd+Gn*a,th:e.th+Gn*e.thd,thd:e.thd+Gn*l}}const T3=.5,C3=1.5,A3=25,E3=5,kp=e=>Math.max(-1,Math.min(1,T3*e.x+C3*e.xd+A3*e.th+E3*e.thd)),jp=()=>({x:0,xd:0,th:(Math.random()-.5)*.08,thd:0});function P3({width:e=560,height:t=380,speed:n=.5}){const{T:r}=_(),i=A.useRef(null);return A.useEffect(()=>{const o=i.current;if(!o)return;const l=o.getContext("2d");if(!l)return;const a=Math.min(window.devicePixelRatio||1,2);o.width=Math.round(e*a),o.height=Math.round(t*a),l.setTransform(a,0,0,a,0,0);const c=Math.max(36,e*.09),u=Math.round(t*.66),d=Math.max(56,Math.min(110,e*.17)),p=Math.max(26,d*.42),f=(e/2-c)/el,y=Uc*2*f,x=u-p/2,v=ie=>e/2+ie*f;let S=jp(),m=kp(S),h=0,g=performance.now(),w=0,j=1.6+Math.random()*1.8,b=0,C=!0;const T=[],F=16,I=()=>{m=kp(S),S=b3(S,m),Math.abs(S.th)<.2095&&Math.abs(S.x).7||Math.abs(S.x)>el)&&(S=jp(),h=0,T.length=0)},le=(ie,We,Ee,U)=>{const R=14+U*30,z=ie+Ee*R,D=We;l.strokeStyle=r.lavenderDim,l.fillStyle=r.lavenderDim,l.lineWidth=2.5,l.lineCap="round",l.beginPath(),l.moveTo(ie,D),l.lineTo(z,D),l.stroke(),l.beginPath(),l.moveTo(z,D),l.lineTo(z-Ee*7,D-4),l.lineTo(z-Ee*7,D+4),l.closePath(),l.fill()},lt=()=>{const ie=v(S.x),We=ie+y*Math.sin(S.th),Ee=x-y*Math.cos(S.th);l.clearRect(0,0,e,t),l.strokeStyle=r.border,l.lineWidth=2,l.lineCap="butt",l.beginPath(),l.moveTo(c,u),l.lineTo(e-c,u),l.stroke(),l.fillStyle=r.border;for(let z=-2;z<=2;z++){const D=z===0;l.fillRect(v(z)-1,u+4,D?2:1.5,D?11:7)}for(let z=0;z.02&&le(ie,u+p/2+20,Math.sign(m),Math.abs(m)),l.fillStyle=r.bgRaised,l.strokeStyle=r.text,l.lineWidth=2.5,_3(l,ie-d/2,u-p/2,d,p,Math.min(10,p/3)),l.fill(),l.stroke();const U=Math.max(5,p*.18);l.fillStyle=r.textDim,l.strokeStyle=r.text,l.lineWidth=2;for(const z of[ie-d/3,ie+d/3])l.beginPath(),l.arc(z,u+p/2,U,0,Math.PI*2),l.fill(),l.stroke();l.strokeStyle=r.lavender,l.lineWidth=Math.max(8,d*.11),l.lineCap="round",l.beginPath(),l.moveTo(ie,x),l.lineTo(We,Ee),l.stroke(),l.fillStyle=r.text,l.beginPath(),l.arc(ie,x,Math.max(3,d*.035),0,Math.PI*2),l.fill(),l.shadowColor=r.emerald,l.shadowBlur=18,l.fillStyle=r.emerald,l.beginPath(),l.arc(We,Ee,Math.max(7,d*.09),0,Math.PI*2),l.fill(),l.shadowBlur=0,l.font=`13px ${E}`,l.textBaseline="top",l.fillStyle=r.textDim,l.textAlign="left",l.fillText(`reward +${h}`,c,8),l.textAlign="right";const R=S.th*180/Math.PI;l.fillText(`θ ${R>=0?"+":"−"}${Math.abs(R).toFixed(1)}°`,e-c,8),l.textAlign="left"},at=ie=>{if(!C)return;let We=(ie-g)/1e3;g=ie,We>.1&&(We=.1),w+=We*n,j-=We*n,j<=0&&(S={...S,thd:S.thd+(Math.random()<.5?-1:1)*(.9+Math.random()*.6)},j=2.2+Math.random()*2.4);let Ee=0;for(;w>=Gn&&Ee<240;)I(),w-=Gn,Ee++;const U=v(S.x);T.push({x:U+y*Math.sin(S.th),y:x-y*Math.cos(S.th)}),T.length>F&&T.shift(),lt(),b=requestAnimationFrame(at)};return b=requestAnimationFrame(at),()=>{C=!1,cancelAnimationFrame(b)}},[e,t,n,r]),s.jsxs("div",{style:{background:r.bgRaised,border:`1.5px solid ${r.border}`,borderRadius:18,padding:18},children:[s.jsx("div",{style:{fontFamily:E,fontSize:15,letterSpacing:2,color:r.textDim,textTransform:"uppercase",marginBottom:6},children:"CartPole"}),s.jsx("canvas",{ref:i,style:{width:e,height:t,display:"block"}})]})}function _3(e,t,n,r,i,o){e.beginPath(),e.moveTo(t+o,n),e.arcTo(t+r,n,t+r,n+i,o),e.arcTo(t+r,n+i,t,n+i,o),e.arcTo(t,n+i,t,n,o),e.arcTo(t,n,t+r,n,o),e.closePath()}function R3(){const{T:e}=_();return s.jsx(B,{kicker:"Classical RL",title:s.jsx(s.Fragment,{children:"RL environments already exist"}),children:s.jsx("div",{style:{position:"absolute",top:230,left:96,right:72,bottom:70},children:s.jsxs("div",{style:{position:"relative",height:"100%"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:32},children:[s.jsxs(k.div,{initial:{opacity:0,x:-16},animate:{opacity:1,x:0},transition:{type:"spring",damping:22,delay:.25},style:{width:230,flex:"0 0 auto",border:`1.5px solid ${e.border}`,borderLeft:`3px solid ${e.emerald}`,borderRadius:14,padding:"26px 22px",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:34,fontWeight:700,color:e.text},children:"Agent"}),s.jsx("div",{style:{fontFamily:E,fontSize:18,color:e.textDim,marginTop:6},children:"a policy"})]}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:10,width:130,flex:"0 0 auto"},children:[s.jsx("span",{style:{fontFamily:E,fontSize:18,color:e.emerald},children:"action"}),s.jsx("div",{style:{position:"relative",width:"100%",height:0,borderTop:`2px solid ${e.lavender}`},children:s.jsx("div",{style:{position:"absolute",right:-2,top:-6,width:0,height:0,borderTop:"6px solid transparent",borderBottom:"6px solid transparent",borderLeft:`11px solid ${e.lavender}`}})})]}),s.jsx(k.div,{initial:{opacity:0,x:16},animate:{opacity:1,x:0},transition:{type:"spring",damping:22,delay:.35},style:{flex:1},children:s.jsx(P3,{width:620,height:330,speed:.5})})]}),s.jsxs(k.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.9},style:{position:"absolute",left:115,right:20,bottom:6,display:"flex",alignItems:"center",gap:14},children:[s.jsx("div",{style:{width:0,height:0,borderTop:"6px solid transparent",borderBottom:"6px solid transparent",borderRight:`11px solid ${e.lavender}`,flex:"0 0 auto"}}),s.jsx("div",{style:{flex:1,borderTop:`2px dashed ${e.lavender}`,opacity:.6}}),s.jsx("span",{style:{fontFamily:E,fontSize:20,color:e.emerald},children:"state · reward"}),s.jsx("div",{style:{flex:1,borderTop:`2px dashed ${e.lavender}`,opacity:.6}})]})]})})})}const q={bg:"#0d1117",panelBorder:"#30363d",headerBg:"#161b22",text:"#d4d4d4",comment:"#6a9955",string:"#ce9178",number:"#b5cea8",keyword:"#c586c0",decl:"#569cd6",type:"#4ec9b0",func:"#dcdcaa",op:"#d4d4d4",dim:"#8b949e"},M3=new Set(["import","from","return","if","else","elif","for","while","in","not","and","or","with","as","try","except","finally","raise","lambda","yield","async","await","pass","break","continue","is","del","global"]),L3=new Set(["def","class","None","True","False","self","super"]),z3=new Set(["str","int","float","bool","list","dict","tuple","set","bytes","Observation","State","Action","Rubric","FastMCP","MCPEnvironment","GRPOConfig","GRPOTrainer","Sandbox","CodingEnv","TestsPassRubric"]);function D3(e){const t=[];let n=0;const r=(i,o)=>i&&t.push({t:i,c:o});for(;n=0?i.slice(0,o):i,a=o>=0?i.slice(o):"";return l.split(/(\s+)/).forEach((c,u)=>{/^\s+$/.test(c)||c===""?n.push({t:c,c:q.text}):c.startsWith("--")||c.startsWith("-")?n.push({t:c,c:q.decl}):u===1?n.push({t:c,c:q.func}):n.push({t:c,c:q.text})}),a&&n.push({t:a,c:q.comment}),n}function F3(e,t){return e.split(/(⟪[^⟫]*⟫)/g).filter(r=>r.length>0).map((r,i)=>{const o=r.startsWith("⟪")&&r.endsWith("⟫"),l=o?r.slice(1,-1):r,c=(t==="bash"?I3(l):D3(l)).map((u,d)=>s.jsx("span",{style:{color:u.c},children:u.t},d));return o?s.jsx("span",{style:{background:"rgba(16,240,164,0.14)",borderRadius:3},children:c},i):s.jsx(A.Fragment,{children:c},i)})}function Rt({filename:e,lang:t="python",code:n,fontSize:r=22,delay:i=.25}){const o=n.replace(/\n$/,"").split(` `);return s.jsxs(k.div,{initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{type:"spring",damping:24,delay:i},style:{background:q.bg,border:`1px solid ${q.panelBorder}`,borderRadius:14,overflow:"hidden",boxShadow:"0 12px 40px rgba(0,0,0,0.4)"},children:[e&&s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"11px 20px",background:q.headerBg,borderBottom:`1px solid ${q.panelBorder}`,fontFamily:E,fontSize:15,color:q.dim},children:[s.jsxs("span",{style:{display:"flex",alignItems:"center",gap:8},children:[s.jsx("span",{style:{width:11,height:11,borderRadius:"50%",background:"#ff5f56"}}),s.jsx("span",{style:{width:11,height:11,borderRadius:"50%",background:"#ffbd2e"}}),s.jsx("span",{style:{width:11,height:11,borderRadius:"50%",background:"#27c93f"}}),s.jsx("span",{style:{marginLeft:8},children:e})]}),s.jsx("span",{style:{letterSpacing:2,textTransform:"uppercase"},children:t})]}),s.jsx("pre",{style:{margin:0,padding:"20px 24px",fontFamily:E,fontSize:r,lineHeight:1.55,whiteSpace:"pre",overflow:"hidden",color:q.text},children:o.map((l,a)=>s.jsx("div",{children:l?F3(l,t):" "},a))})]})}const O3=`import gymnasium as gym env = gym.make("CartPole-v1") obs, info = env.reset() done = False while not done: action = policy(obs) # agent decides obs, reward, done, _, _ = env.step(action)`,B3=[s.jsxs(s.Fragment,{children:[s.jsx("code",{children:"reset()"})," → first observation"]}),s.jsxs(s.Fragment,{children:[s.jsx("code",{children:"step(action)"})," → ",s.jsx(L,{color:"emerald",children:"obs, reward, done"})]}),s.jsxs(s.Fragment,{children:[s.jsx("code",{children:"action_space"})," · ",s.jsx("code",{children:"observation_space"})]}),s.jsxs(s.Fragment,{children:["any agent ↔ any env · ",s.jsx("b",{children:"reproducible"})]})];function V3(){const{T:e}=_();return s.jsx(B,{kicker:"OpenAI Gym",title:s.jsx(s.Fragment,{children:"One API for every environment"}),children:s.jsxs("div",{style:{position:"absolute",top:205,left:96,right:96,display:"grid",gridTemplateColumns:"0.85fr 1.15fr",gap:44,alignItems:"center"},children:[s.jsxs(k.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{type:"spring",damping:22,delay:.3},style:{display:"flex",flexDirection:"column",gap:16},children:[s.jsxs("div",{style:{fontSize:23,color:e.textMuted,lineHeight:1.4,marginBottom:6},children:["Before Gym, every env had its own interface. Gym"," ",s.jsx("span",{style:{color:e.textDim},children:"(2016 → Gymnasium)"})," gave RL"," ",s.jsx(L,{color:"emerald",children:"one contract"}),"."]}),B3.map((t,n)=>s.jsxs("div",{style:{display:"flex",gap:14,alignItems:"baseline",fontSize:24,color:e.text},children:[s.jsx("span",{style:{color:e.emerald,fontWeight:800},children:"▸"}),s.jsx("span",{children:t})]},n))]}),s.jsxs("div",{children:[s.jsx(Rt,{filename:"cartpole.py",code:O3,fontSize:16,delay:.45}),s.jsxs("div",{style:{fontSize:19,color:e.textDim,marginTop:14,textAlign:"center"},children:[s.jsx(L,{color:"emerald",children:"CartPole-v1"})," — the “hello world” you just saw."]})]})]})})}const N3=[{from:"Agent",to:"the LLM",sub:"policy · token gen"},{from:"Environment",to:"a sandbox",sub:"tools · code · state"},{from:"Reward",to:"a verifier",sub:"rubric · check"}];function $3(){const{T:e}=_();return s.jsxs(B,{index:10,kicker:"The bridge",title:s.jsx(s.Fragment,{children:"Same idea — for LLMs"}),children:[s.jsx("div",{style:{position:"absolute",top:250,left:96,right:96,display:"flex",flexDirection:"column",gap:26},children:N3.map((t,n)=>s.jsxs(k.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{type:"spring",damping:22,delay:.3+n*.16},style:{display:"flex",alignItems:"center",gap:28},children:[s.jsx("div",{style:{width:300,padding:"18px 26px",border:`1.5px solid ${e.border}`,borderRadius:12,fontFamily:E,fontSize:30,color:e.textMuted,textAlign:"center"},children:t.from}),s.jsx("div",{style:{fontSize:36,color:e.lavender},children:"→"}),s.jsxs("div",{style:{flex:1,padding:"16px 28px",border:`1.5px solid ${e.border}`,borderLeft:`3px solid ${e.emerald}`,borderRadius:12,display:"flex",alignItems:"baseline",gap:18},children:[s.jsx("span",{style:{fontSize:36,fontWeight:700,color:e.emerald},children:t.to}),s.jsx("span",{style:{fontFamily:E,fontSize:22,color:e.textDim},children:t.sub})]})]},t.from))}),s.jsxs(k.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1},style:{position:"absolute",bottom:90,left:96,right:96,fontSize:26,color:e.textMuted},children:["Same skeleton — what changes is the"," ",s.jsx("b",{style:{color:e.white},children:"tools, observations, and reward rule"}),"."]})]})}const W3=["Dataset","Model","Trainer"],H3=["Tasks","Prompt template","Initial state","Tools / harness","Observation","Execution backend","State","Reward / rubric","Done","Episode control","Transport"];function U3(){const{T:e}=_();return s.jsx(B,{index:11,kicker:"Why it’s harder",title:s.jsx(s.Fragment,{children:"A lot more to wire up"}),children:s.jsxs("div",{style:{position:"absolute",top:210,left:96,right:96,display:"grid",gridTemplateColumns:"1fr 1.4fr",gap:40,alignItems:"start"},children:[s.jsxs("div",{style:{border:`1.5px solid ${e.border}`,borderRadius:16,padding:"28px 30px"},children:[s.jsxs("div",{style:{fontFamily:E,fontSize:20,letterSpacing:2,color:e.textDim,textTransform:"uppercase",marginBottom:22},children:["SFT"," ",s.jsx("span",{style:{fontSize:15,letterSpacing:1},children:"(supervised finetuning)"})]}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[W3.map((t,n)=>s.jsx(k.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3+n*.1,type:"spring",damping:22},style:{fontSize:30,color:e.white,padding:"16px 22px",border:`1.5px solid ${e.border}`,borderRadius:12},children:t},t)),s.jsx("div",{style:{fontSize:22,color:e.textDim,marginTop:6},children:"swap freely · done"})]})]}),s.jsxs("div",{style:{border:`1.5px solid ${e.borderStrong}`,borderRadius:16,padding:"28px 30px"},children:[s.jsx("div",{style:{fontFamily:E,fontSize:20,letterSpacing:2,color:e.textDim,textTransform:"uppercase",marginBottom:22},children:"Reinforcement learning"}),s.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:12},children:H3.map((t,n)=>s.jsx(k.span,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.5+n*.05,type:"spring",damping:20},style:{fontFamily:E,fontSize:22,color:e.text,padding:"10px 16px",border:`1.5px solid ${e.borderStrong}`,borderRadius:999},children:t},t))}),s.jsxs(k.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2},style:{fontSize:26,color:e.textMuted,marginTop:26},children:["same goal — ",s.jsx(L,{color:"emerald",children:"many more moving parts"}),"."]})]})]})})}const G3=[{name:"OpenEnv",who:"Meta",line:"HTTP + MCP · Rubric rewards"},{name:"Verifiers",who:"Prime Intellect",line:"in-process · dataset+tools+rubric"},{name:"OpenReward",who:"ORS",line:"per-tool-call rewards"},{name:"Harbor",who:"Laude Institute",line:"agent harnesses in containers"}];function Y3(){const{T:e}=_();return s.jsxs(B,{index:12,kicker:"The unifiers",title:s.jsx(s.Fragment,{children:"Frameworks step in"}),children:[s.jsxs("div",{style:{position:"absolute",top:236,left:96,right:96,fontSize:28,color:e.textMuted,maxWidth:1080},children:["Frameworks stepped in to ",s.jsx(L,{color:"emerald",children:"standardize all these different components"}),"."]}),s.jsx("div",{style:{position:"absolute",top:322,left:96,right:96,display:"grid",gridTemplateColumns:"1fr 1fr",gap:24},children:G3.map((t,n)=>s.jsxs(k.div,{initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{type:"spring",damping:22,delay:.3+n*.12},style:{border:`1.5px solid ${e.border}`,borderLeft:`3px solid ${e.lavender}`,borderRadius:12,padding:"22px 26px",display:"flex",flexDirection:"column",gap:6},children:[s.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:14},children:[s.jsx("span",{style:{fontSize:34,fontWeight:700,color:e.white},children:t.name}),s.jsx("span",{style:{fontFamily:E,fontSize:20,color:e.emerald},children:t.who})]}),s.jsx("div",{style:{fontFamily:E,fontSize:20,color:e.textDim},children:t.line})]},t.name))}),s.jsx(k.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1},style:{position:"absolute",bottom:96,left:96,right:96,fontFamily:E,fontSize:20,color:e.textDim},children:"…plus NeMo Gym (NVIDIA) · SkyRL Gym (Berkeley) · GEM — same concept, different dialects."})]})}const K3=`