@opencx/widget 3.0.52 → 3.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@
37
37
  `+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{Kp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vs(e):""}function PP(e){switch(e.tag){case 5:return Vs(e.type);case 16:return Vs("Lazy");case 13:return Vs("Suspense");case 19:return Vs("SuspenseList");case 0:case 2:case 15:return e=Xp(e.type,!1),e;case 11:return e=Xp(e.type.render,!1),e;case 1:return e=Xp(e.type,!0),e;default:return""}}function Qp(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 mo:return"Fragment";case ho:return"Portal";case Vp:return"Profiler";case Hp:return"StrictMode";case Wp:return"Suspense";case Yp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ry:return(e.displayName||"Context")+".Consumer";case Ny:return(e._context.displayName||"Context")+".Provider";case $p:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:Qp(e.type)||"Memo";case bi:t=e._payload,e=e._init;try{return Qp(e(t))}catch{}}return null}function OP(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 Qp(t);case 8:return t===Hp?"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 Ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DP(e){var t=Oy(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oc(e){e._valueTracker||(e._valueTracker=DP(e))}function Dy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sc(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 Zp(e,t){var n=t.checked;return ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ly(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ei(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 My(e,t){t=t.checked,t!=null&&zp(e,"checked",t,!1)}function Jp(e,t){My(e,t);var n=Ei(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")?eh(e,t.type,n):t.hasOwnProperty("defaultValue")&&eh(e,t.type,Ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fy(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 eh(e,t,n){(t!=="number"||sc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $s=Array.isArray;function go(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ei(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function th(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(X(91));return ot({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function By(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(X(92));if($s(n)){if(1<n.length)throw Error(X(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ei(n)}}function jy(e,t){var n=Ei(t.value),r=Ei(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Uy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uc,Hy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(uc=uc||document.createElement("div"),uc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ws(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ys={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},LP=["Webkit","ms","Moz","O"];Object.keys(Ys).forEach(function(e){LP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ys[t]=Ys[e]})});function Vy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ys.hasOwnProperty(e)&&Ys[e]?(""+t).trim():t+"px"}function $y(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Vy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var MP=ot({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 rh(e,t){if(t){if(MP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function ih(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 ah=null;function oh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sh=null,vo=null,yo=null;function Wy(e){if(e=hu(e)){if(typeof sh!="function")throw Error(X(280));var t=e.stateNode;t&&(t=Ic(t),sh(e.stateNode,e.type,t))}}function Yy(e){vo?yo?yo.push(e):yo=[e]:vo=e}function Gy(){if(vo){var e=vo,t=yo;if(yo=vo=null,Wy(e),t)for(e=0;e<t.length;e++)Wy(t[e])}}function qy(e,t){return e(t)}function Ky(){}var uh=!1;function Xy(e,t,n){if(uh)return e(t,n);uh=!0;try{return qy(e,t,n)}finally{uh=!1,(vo!==null||yo!==null)&&(Ky(),Gy())}}function Gs(e,t){var n=e.stateNode;if(n===null)return null;var r=Ic(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(X(231,t,typeof n));return n}var lh=!1;if(Vr)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){lh=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{lh=!1}function FP(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Ks=!1,lc=null,cc=!1,ch=null,BP={onError:function(e){Ks=!0,lc=e}};function jP(e,t,n,r,i,a,o,s,u){Ks=!1,lc=null,FP.apply(BP,arguments)}function UP(e,t,n,r,i,a,o,s,u){if(jP.apply(this,arguments),Ks){if(Ks){var l=lc;Ks=!1,lc=null}else throw Error(X(198));cc||(cc=!0,ch=l)}}function Sa(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Qy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zy(e){if(Sa(e)!==e)throw Error(X(188))}function zP(e){var t=e.alternate;if(!t){if(t=Sa(e),t===null)throw Error(X(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Zy(i),e;if(a===r)return Zy(i),t;a=a.sibling}throw Error(X(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(X(189))}}if(n.alternate!==r)throw Error(X(190))}if(n.tag!==3)throw Error(X(188));return n.stateNode.current===n?e:t}function Jy(e){return e=zP(e),e!==null?ex(e):null}function ex(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ex(e);if(t!==null)return t;e=e.sibling}return null}var tx=Cn.unstable_scheduleCallback,nx=Cn.unstable_cancelCallback,HP=Cn.unstable_shouldYield,VP=Cn.unstable_requestPaint,vt=Cn.unstable_now,$P=Cn.unstable_getCurrentPriorityLevel,dh=Cn.unstable_ImmediatePriority,rx=Cn.unstable_UserBlockingPriority,dc=Cn.unstable_NormalPriority,WP=Cn.unstable_LowPriority,ix=Cn.unstable_IdlePriority,fc=null,Tr=null;function YP(e){if(Tr&&typeof Tr.onCommitFiberRoot=="function")try{Tr.onCommitFiberRoot(fc,e,void 0,(e.current.flags&128)===128)}catch{}}var ar=Math.clz32?Math.clz32:KP,GP=Math.log,qP=Math.LN2;function KP(e){return e>>>=0,e===0?32:31-(GP(e)/qP|0)|0}var pc=64,hc=4194304;function Xs(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 mc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Xs(s):(a&=o,a!==0&&(r=Xs(a)))}else o=n&~i,o!==0?r=Xs(o):a!==0&&(r=Xs(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ar(t),i=1<<n,r|=e[n],t&=~i;return r}function XP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function QP(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ar(a),s=1<<o,u=i[o];u===-1?(!(s&n)||s&r)&&(i[o]=XP(s,t)):u<=t&&(e.expiredLanes|=s),a&=~s}}function fh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ax(){var e=pc;return pc<<=1,!(pc&4194240)&&(pc=64),e}function ph(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ar(t),e[t]=n}function ZP(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<n;){var i=31-ar(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function hh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ar(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var $e=0;function ox(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var sx,mh,ux,lx,cx,gh=!1,gc=[],Ti=null,_i=null,Ci=null,Zs=new Map,Js=new Map,Si=[],JP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function dx(e,t){switch(e){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":_i=null;break;case"mouseover":case"mouseout":Ci=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(t.pointerId)}}function eu(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=hu(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function eO(e,t,n,r,i){switch(t){case"focusin":return Ti=eu(Ti,e,t,n,r,i),!0;case"dragenter":return _i=eu(_i,e,t,n,r,i),!0;case"mouseover":return Ci=eu(Ci,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Zs.set(a,eu(Zs.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Js.set(a,eu(Js.get(a)||null,e,t,n,r,i)),!0}return!1}function fx(e){var t=ka(e.target);if(t!==null){var n=Sa(t);if(n!==null){if(t=n.tag,t===13){if(t=Qy(n),t!==null){e.blockedOn=t,cx(e.priority,function(){ux(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ah=r,n.target.dispatchEvent(r),ah=null}else return t=hu(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function px(e,t,n){vc(e)&&n.delete(t)}function tO(){gh=!1,Ti!==null&&vc(Ti)&&(Ti=null),_i!==null&&vc(_i)&&(_i=null),Ci!==null&&vc(Ci)&&(Ci=null),Zs.forEach(px),Js.forEach(px)}function tu(e,t){e.blockedOn===t&&(e.blockedOn=null,gh||(gh=!0,Cn.unstable_scheduleCallback(Cn.unstable_NormalPriority,tO)))}function nu(e){function t(i){return tu(i,e)}if(0<gc.length){tu(gc[0],e);for(var n=1;n<gc.length;n++){var r=gc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ti!==null&&tu(Ti,e),_i!==null&&tu(_i,e),Ci!==null&&tu(Ci,e),Zs.forEach(t),Js.forEach(t),n=0;n<Si.length;n++)r=Si[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Si.length&&(n=Si[0],n.blockedOn===null);)fx(n),n.blockedOn===null&&Si.shift()}var xo=$r.ReactCurrentBatchConfig,yc=!0;function nO(e,t,n,r){var i=$e,a=xo.transition;xo.transition=null;try{$e=1,vh(e,t,n,r)}finally{$e=i,xo.transition=a}}function rO(e,t,n,r){var i=$e,a=xo.transition;xo.transition=null;try{$e=4,vh(e,t,n,r)}finally{$e=i,xo.transition=a}}function vh(e,t,n,r){if(yc){var i=yh(e,t,n,r);if(i===null)Lh(e,t,r,xc,n),dx(e,r);else if(eO(i,e,t,n,r))r.stopPropagation();else if(dx(e,r),t&4&&-1<JP.indexOf(e)){for(;i!==null;){var a=hu(i);if(a!==null&&sx(a),a=yh(e,t,n,r),a===null&&Lh(e,t,r,xc,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Lh(e,t,r,null,n)}}var xc=null;function yh(e,t,n,r){if(xc=null,e=oh(r),e=ka(e),e!==null)if(t=Sa(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Qy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xc=e,null}function hx(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($P()){case dh:return 1;case rx:return 4;case dc:case WP:return 16;case ix:return 536870912;default:return 16}default:return 16}}var ki=null,xh=null,wc=null;function mx(){if(wc)return wc;var e,t=xh,n=t.length,r,i="value"in ki?ki.value:ki.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return wc=i.slice(e,1<r?1-r:void 0)}function bc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ec(){return!0}function gx(){return!1}function Sn(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Ec:gx,this.isPropagationStopped=gx,this}return ot(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ec)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ec)},persist:function(){},isPersistent:Ec}),t}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wh=Sn(wo),ru=ot({},wo,{view:0,detail:0}),iO=Sn(ru),bh,Eh,iu,Tc=ot({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_h,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==iu&&(iu&&e.type==="mousemove"?(bh=e.screenX-iu.screenX,Eh=e.screenY-iu.screenY):Eh=bh=0,iu=e),bh)},movementY:function(e){return"movementY"in e?e.movementY:Eh}}),vx=Sn(Tc),aO=ot({},Tc,{dataTransfer:0}),oO=Sn(aO),sO=ot({},ru,{relatedTarget:0}),Th=Sn(sO),uO=ot({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),lO=Sn(uO),cO=ot({},wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dO=Sn(cO),fO=ot({},wo,{data:0}),yx=Sn(fO),pO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gO(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mO[e])?!!t[e]:!1}function _h(){return gO}var vO=ot({},ru,{key:function(e){if(e.key){var t=pO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_h,charCode:function(e){return e.type==="keypress"?bc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yO=Sn(vO),xO=ot({},Tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xx=Sn(xO),wO=ot({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_h}),bO=Sn(wO),EO=ot({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),TO=Sn(EO),_O=ot({},Tc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),CO=Sn(_O),SO=[9,13,27,32],Ch=Vr&&"CompositionEvent"in window,au=null;Vr&&"documentMode"in document&&(au=document.documentMode);var kO=Vr&&"TextEvent"in window&&!au,wx=Vr&&(!Ch||au&&8<au&&11>=au),bx=" ",Ex=!1;function Tx(e,t){switch(e){case"keyup":return SO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _x(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bo=!1;function AO(e,t){switch(e){case"compositionend":return _x(t);case"keypress":return t.which!==32?null:(Ex=!0,bx);case"textInput":return e=t.data,e===bx&&Ex?null:e;default:return null}}function NO(e,t){if(bo)return e==="compositionend"||!Ch&&Tx(e,t)?(e=mx(),wc=xh=ki=null,bo=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wx&&t.locale!=="ko"?null:t.data;default:return null}}var RO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Cx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!RO[e.type]:t==="textarea"}function Sx(e,t,n,r){Yy(r),t=Ac(t,"onChange"),0<t.length&&(n=new wh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ou=null,su=null;function IO(e){$x(e,0)}function _c(e){var t=So(e);if(Dy(t))return e}function PO(e,t){if(e==="change")return t}var kx=!1;if(Vr){var Sh;if(Vr){var kh="oninput"in document;if(!kh){var Ax=document.createElement("div");Ax.setAttribute("oninput","return;"),kh=typeof Ax.oninput=="function"}Sh=kh}else Sh=!1;kx=Sh&&(!document.documentMode||9<document.documentMode)}function Nx(){ou&&(ou.detachEvent("onpropertychange",Rx),su=ou=null)}function Rx(e){if(e.propertyName==="value"&&_c(su)){var t=[];Sx(t,su,e,oh(e)),Xy(IO,t)}}function OO(e,t,n){e==="focusin"?(Nx(),ou=t,su=n,ou.attachEvent("onpropertychange",Rx)):e==="focusout"&&Nx()}function DO(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _c(su)}function LO(e,t){if(e==="click")return _c(t)}function MO(e,t){if(e==="input"||e==="change")return _c(t)}function FO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var or=typeof Object.is=="function"?Object.is:FO;function uu(e,t){if(or(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Bp.call(t,i)||!or(e[i],t[i]))return!1}return!0}function Ix(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Px(e,t){var n=Ix(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=Ix(n)}}function Ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dx(){for(var e=window,t=sc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sc(e.document)}return t}function Ah(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 BO(e){var t=Dx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ox(n.ownerDocument.documentElement,n)){if(r!==null&&Ah(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,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Px(n,a);var o=Px(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var jO=Vr&&"documentMode"in document&&11>=document.documentMode,Eo=null,Nh=null,lu=null,Rh=!1;function Lx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rh||Eo==null||Eo!==sc(r)||(r=Eo,"selectionStart"in r&&Ah(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}),lu&&uu(lu,r)||(lu=r,r=Ac(Nh,"onSelect"),0<r.length&&(t=new wh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Eo)))}function Cc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var To={animationend:Cc("Animation","AnimationEnd"),animationiteration:Cc("Animation","AnimationIteration"),animationstart:Cc("Animation","AnimationStart"),transitionend:Cc("Transition","TransitionEnd")},Ih={},Mx={};Vr&&(Mx=document.createElement("div").style,"AnimationEvent"in window||(delete To.animationend.animation,delete To.animationiteration.animation,delete To.animationstart.animation),"TransitionEvent"in window||delete To.transitionend.transition);function Sc(e){if(Ih[e])return Ih[e];if(!To[e])return e;var t=To[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mx)return Ih[e]=t[n];return e}var Fx=Sc("animationend"),Bx=Sc("animationiteration"),jx=Sc("animationstart"),Ux=Sc("transitionend"),zx=new Map,Hx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ai(e,t){zx.set(e,t),Ca(t,[e])}for(var Ph=0;Ph<Hx.length;Ph++){var Oh=Hx[Ph],UO=Oh.toLowerCase(),zO=Oh[0].toUpperCase()+Oh.slice(1);Ai(UO,"on"+zO)}Ai(Fx,"onAnimationEnd"),Ai(Bx,"onAnimationIteration"),Ai(jx,"onAnimationStart"),Ai("dblclick","onDoubleClick"),Ai("focusin","onFocus"),Ai("focusout","onBlur"),Ai(Ux,"onTransitionEnd"),po("onMouseEnter",["mouseout","mouseover"]),po("onMouseLeave",["mouseout","mouseover"]),po("onPointerEnter",["pointerout","pointerover"]),po("onPointerLeave",["pointerout","pointerover"]),Ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),HO=new Set("cancel close invalid load scroll toggle".split(" ").concat(cu));function Vx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,UP(r,t,void 0,e),e.currentTarget=null}function $x(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Vx(i,s,l),a=u}else for(o=0;o<r.length;o++){if(s=r[o],u=s.instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Vx(i,s,l),a=u}}}if(cc)throw e=ch,cc=!1,ch=null,e}function Ze(e,t){var n=t[zh];n===void 0&&(n=t[zh]=new Set);var r=e+"__bubble";n.has(r)||(Wx(t,e,2,!1),n.add(r))}function Dh(e,t,n){var r=0;t&&(r|=4),Wx(n,e,r,t)}var kc="_reactListening"+Math.random().toString(36).slice(2);function du(e){if(!e[kc]){e[kc]=!0,Sy.forEach(function(n){n!=="selectionchange"&&(HO.has(n)||Dh(n,!1,e),Dh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[kc]||(t[kc]=!0,Dh("selectionchange",!1,t))}}function Wx(e,t,n,r){switch(hx(t)){case 1:var i=nO;break;case 4:i=rO;break;default:i=vh}n=i.bind(null,t,n,e),i=void 0,!lh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lh(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ka(s),o===null)return;if(u=o.tag,u===5||u===6){r=a=o;continue e}s=s.parentNode}}r=r.return}Xy(function(){var l=a,c=oh(n),d=[];e:{var f=zx.get(e);if(f!==void 0){var h=wh,m=e;switch(e){case"keypress":if(bc(n)===0)break e;case"keydown":case"keyup":h=yO;break;case"focusin":m="focus",h=Th;break;case"focusout":m="blur",h=Th;break;case"beforeblur":case"afterblur":h=Th;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=vx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=oO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=bO;break;case Fx:case Bx:case jx:h=lO;break;case Ux:h=TO;break;case"scroll":h=iO;break;case"wheel":h=CO;break;case"copy":case"cut":case"paste":h=dO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=xx}var y=(t&4)!==0,E=!y&&e==="scroll",g=y?f!==null?f+"Capture":null:f;y=[];for(var x=l,w;x!==null;){w=x;var T=w.stateNode;if(w.tag===5&&T!==null&&(w=T,g!==null&&(T=Gs(x,g),T!=null&&y.push(fu(x,T,w)))),E)break;x=x.return}0<y.length&&(f=new h(f,m,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==ah&&(m=n.relatedTarget||n.fromElement)&&(ka(m)||m[Wr]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=l,m=m?ka(m):null,m!==null&&(E=Sa(m),m!==E||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=l),h!==m)){if(y=vx,T="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=xx,T="onPointerLeave",g="onPointerEnter",x="pointer"),E=h==null?f:So(h),w=m==null?f:So(m),f=new y(T,x+"leave",h,n,c),f.target=E,f.relatedTarget=w,T=null,ka(c)===l&&(y=new y(g,x+"enter",m,n,c),y.target=w,y.relatedTarget=E,T=y),E=T,h&&m)t:{for(y=h,g=m,x=0,w=y;w;w=_o(w))x++;for(w=0,T=g;T;T=_o(T))w++;for(;0<x-w;)y=_o(y),x--;for(;0<w-x;)g=_o(g),w--;for(;x--;){if(y===g||g!==null&&y===g.alternate)break t;y=_o(y),g=_o(g)}y=null}else y=null;h!==null&&Yx(d,f,h,y,!1),m!==null&&E!==null&&Yx(d,E,m,y,!0)}}e:{if(f=l?So(l):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=PO;else if(Cx(f))if(kx)C=MO;else{C=DO;var _=OO}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=LO);if(C&&(C=C(e,l))){Sx(d,C,n,c);break e}_&&_(e,f,l),e==="focusout"&&(_=f._wrapperState)&&_.controlled&&f.type==="number"&&eh(f,"number",f.value)}switch(_=l?So(l):window,e){case"focusin":(Cx(_)||_.contentEditable==="true")&&(Eo=_,Nh=l,lu=null);break;case"focusout":lu=Nh=Eo=null;break;case"mousedown":Rh=!0;break;case"contextmenu":case"mouseup":case"dragend":Rh=!1,Lx(d,n,c);break;case"selectionchange":if(jO)break;case"keydown":case"keyup":Lx(d,n,c)}var A;if(Ch)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else bo?Tx(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(wx&&n.locale!=="ko"&&(bo||P!=="onCompositionStart"?P==="onCompositionEnd"&&bo&&(A=mx()):(ki=c,xh="value"in ki?ki.value:ki.textContent,bo=!0)),_=Ac(l,P),0<_.length&&(P=new yx(P,e,null,n,c),d.push({event:P,listeners:_}),A?P.data=A:(A=_x(n),A!==null&&(P.data=A)))),(A=kO?AO(e,n):NO(e,n))&&(l=Ac(l,"onBeforeInput"),0<l.length&&(c=new yx("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=A))}$x(d,t)})}function fu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ac(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Gs(e,n),a!=null&&r.unshift(fu(e,a,i)),a=Gs(e,t),a!=null&&r.push(fu(e,a,i))),e=e.return}return r}function _o(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Yx(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&l!==null&&(s=l,i?(u=Gs(n,a),u!=null&&o.unshift(fu(n,u,s))):i||(u=Gs(n,a),u!=null&&o.push(fu(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var VO=/\r\n?/g,$O=/\u0000|\uFFFD/g;function Gx(e){return(typeof e=="string"?e:""+e).replace(VO,`
38
38
  `).replace($O,"")}function Nc(e,t,n){if(t=Gx(t),Gx(e)!==t&&n)throw Error(X(425))}function Rc(){}var Mh=null,Fh=null;function Bh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jh=typeof setTimeout=="function"?setTimeout:void 0,WO=typeof clearTimeout=="function"?clearTimeout:void 0,qx=typeof Promise=="function"?Promise:void 0,YO=typeof queueMicrotask=="function"?queueMicrotask:typeof qx<"u"?function(e){return qx.resolve(null).then(e).catch(GO)}:jh;function GO(e){setTimeout(function(){throw e})}function Uh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),nu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);nu(t)}function Ni(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Kx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Co=Math.random().toString(36).slice(2),_r="__reactFiber$"+Co,pu="__reactProps$"+Co,Wr="__reactContainer$"+Co,zh="__reactEvents$"+Co,qO="__reactListeners$"+Co,KO="__reactHandles$"+Co;function ka(e){var t=e[_r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wr]||n[_r]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kx(e);e!==null;){if(n=e[_r])return n;e=Kx(e)}return t}e=n,n=e.parentNode}return null}function hu(e){return e=e[_r]||e[Wr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function So(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(X(33))}function Ic(e){return e[pu]||null}var Hh=[],ko=-1;function Ri(e){return{current:e}}function Je(e){0>ko||(e.current=Hh[ko],Hh[ko]=null,ko--)}function Xe(e,t){ko++,Hh[ko]=e.current,e.current=t}var Ii={},$t=Ri(Ii),fn=Ri(!1),Aa=Ii;function Ao(e,t){var n=e.type.contextTypes;if(!n)return Ii;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pn(e){return e=e.childContextTypes,e!=null}function Pc(){Je(fn),Je($t)}function Xx(e,t,n){if($t.current!==Ii)throw Error(X(168));Xe($t,t),Xe(fn,n)}function Qx(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(X(108,OP(e)||"Unknown",i));return ot({},n,r)}function Oc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ii,Aa=$t.current,Xe($t,e),Xe(fn,fn.current),!0}function Zx(e,t,n){var r=e.stateNode;if(!r)throw Error(X(169));n?(e=Qx(e,t,Aa),r.__reactInternalMemoizedMergedChildContext=e,Je(fn),Je($t),Xe($t,e)):Je(fn),Xe(fn,n)}var Yr=null,Dc=!1,Vh=!1;function Jx(e){Yr===null?Yr=[e]:Yr.push(e)}function XO(e){Dc=!0,Jx(e)}function Pi(){if(!Vh&&Yr!==null){Vh=!0;var e=0,t=$e;try{var n=Yr;for($e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yr=null,Dc=!1}catch(i){throw Yr!==null&&(Yr=Yr.slice(e+1)),tx(dh,Pi),i}finally{$e=t,Vh=!1}}return null}var No=[],Ro=0,Lc=null,Mc=0,Hn=[],Vn=0,Na=null,Gr=1,qr="";function Ra(e,t){No[Ro++]=Mc,No[Ro++]=Lc,Lc=e,Mc=t}function ew(e,t,n){Hn[Vn++]=Gr,Hn[Vn++]=qr,Hn[Vn++]=Na,Na=e;var r=Gr;e=qr;var i=32-ar(r)-1;r&=~(1<<i),n+=1;var a=32-ar(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Gr=1<<32-ar(t)+i|n<<i|r,qr=a+e}else Gr=1<<a|n<<i|r,qr=e}function $h(e){e.return!==null&&(Ra(e,1),ew(e,1,0))}function Wh(e){for(;e===Lc;)Lc=No[--Ro],No[Ro]=null,Mc=No[--Ro],No[Ro]=null;for(;e===Na;)Na=Hn[--Vn],Hn[Vn]=null,qr=Hn[--Vn],Hn[Vn]=null,Gr=Hn[--Vn],Hn[Vn]=null}var kn=null,An=null,nt=!1,sr=null;function tw(e,t){var n=Gn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function nw(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,kn=e,An=Ni(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,kn=e,An=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Na!==null?{id:Gr,overflow:qr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,kn=e,An=null,!0):!1;default:return!1}}function Yh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gh(e){if(nt){var t=An;if(t){var n=t;if(!nw(e,t)){if(Yh(e))throw Error(X(418));t=Ni(n.nextSibling);var r=kn;t&&nw(e,t)?tw(r,n):(e.flags=e.flags&-4097|2,nt=!1,kn=e)}}else{if(Yh(e))throw Error(X(418));e.flags=e.flags&-4097|2,nt=!1,kn=e}}}function rw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;kn=e}function Fc(e){if(e!==kn)return!1;if(!nt)return rw(e),nt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bh(e.type,e.memoizedProps)),t&&(t=An)){if(Yh(e))throw iw(),Error(X(418));for(;t;)tw(e,t),t=Ni(t.nextSibling)}if(rw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){An=Ni(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}An=null}}else An=kn?Ni(e.stateNode.nextSibling):null;return!0}function iw(){for(var e=An;e;)e=Ni(e.nextSibling)}function Io(){An=kn=null,nt=!1}function qh(e){sr===null?sr=[e]:sr.push(e)}var QO=$r.ReactCurrentBatchConfig;function mu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(X(309));var r=n.stateNode}if(!r)throw Error(X(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(X(284));if(!n._owner)throw Error(X(290,e))}return e}function Bc(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function aw(e){var t=e._init;return t(e._payload)}function ow(e){function t(g,x){if(e){var w=g.deletions;w===null?(g.deletions=[x],g.flags|=16):w.push(x)}}function n(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function r(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function i(g,x){return g=Ui(g,x),g.index=0,g.sibling=null,g}function a(g,x,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<x?(g.flags|=2,x):w):(g.flags|=2,x)):(g.flags|=1048576,x)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,x,w,T){return x===null||x.tag!==6?(x=jm(w,g.mode,T),x.return=g,x):(x=i(x,w),x.return=g,x)}function u(g,x,w,T){var C=w.type;return C===mo?c(g,x,w.props.children,T,w.key):x!==null&&(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===bi&&aw(C)===x.type)?(T=i(x,w.props),T.ref=mu(g,x,w),T.return=g,T):(T=ud(w.type,w.key,w.props,null,g.mode,T),T.ref=mu(g,x,w),T.return=g,T)}function l(g,x,w,T){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=Um(w,g.mode,T),x.return=g,x):(x=i(x,w.children||[]),x.return=g,x)}function c(g,x,w,T,C){return x===null||x.tag!==7?(x=Ba(w,g.mode,T,C),x.return=g,x):(x=i(x,w),x.return=g,x)}function d(g,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=jm(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ac:return w=ud(x.type,x.key,x.props,null,g.mode,w),w.ref=mu(g,null,x),w.return=g,w;case ho:return x=Um(x,g.mode,w),x.return=g,x;case bi:var T=x._init;return d(g,T(x._payload),w)}if($s(x)||Hs(x))return x=Ba(x,g.mode,w,null),x.return=g,x;Bc(g,x)}return null}function f(g,x,w,T){var C=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:s(g,x,""+w,T);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ac:return w.key===C?u(g,x,w,T):null;case ho:return w.key===C?l(g,x,w,T):null;case bi:return C=w._init,f(g,x,C(w._payload),T)}if($s(w)||Hs(w))return C!==null?null:c(g,x,w,T,null);Bc(g,w)}return null}function h(g,x,w,T,C){if(typeof T=="string"&&T!==""||typeof T=="number")return g=g.get(w)||null,s(x,g,""+T,C);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ac:return g=g.get(T.key===null?w:T.key)||null,u(x,g,T,C);case ho:return g=g.get(T.key===null?w:T.key)||null,l(x,g,T,C);case bi:var _=T._init;return h(g,x,w,_(T._payload),C)}if($s(T)||Hs(T))return g=g.get(w)||null,c(x,g,T,C,null);Bc(x,T)}return null}function m(g,x,w,T){for(var C=null,_=null,A=x,P=x=0,H=null;A!==null&&P<w.length;P++){A.index>P?(H=A,A=null):H=A.sibling;var I=f(g,A,w[P],T);if(I===null){A===null&&(A=H);break}e&&A&&I.alternate===null&&t(g,A),x=a(I,x,P),_===null?C=I:_.sibling=I,_=I,A=H}if(P===w.length)return n(g,A),nt&&Ra(g,P),C;if(A===null){for(;P<w.length;P++)A=d(g,w[P],T),A!==null&&(x=a(A,x,P),_===null?C=A:_.sibling=A,_=A);return nt&&Ra(g,P),C}for(A=r(g,A);P<w.length;P++)H=h(A,g,P,w[P],T),H!==null&&(e&&H.alternate!==null&&A.delete(H.key===null?P:H.key),x=a(H,x,P),_===null?C=H:_.sibling=H,_=H);return e&&A.forEach(function(V){return t(g,V)}),nt&&Ra(g,P),C}function y(g,x,w,T){var C=Hs(w);if(typeof C!="function")throw Error(X(150));if(w=C.call(w),w==null)throw Error(X(151));for(var _=C=null,A=x,P=x=0,H=null,I=w.next();A!==null&&!I.done;P++,I=w.next()){A.index>P?(H=A,A=null):H=A.sibling;var V=f(g,A,I.value,T);if(V===null){A===null&&(A=H);break}e&&A&&V.alternate===null&&t(g,A),x=a(V,x,P),_===null?C=V:_.sibling=V,_=V,A=H}if(I.done)return n(g,A),nt&&Ra(g,P),C;if(A===null){for(;!I.done;P++,I=w.next())I=d(g,I.value,T),I!==null&&(x=a(I,x,P),_===null?C=I:_.sibling=I,_=I);return nt&&Ra(g,P),C}for(A=r(g,A);!I.done;P++,I=w.next())I=h(A,g,P,I.value,T),I!==null&&(e&&I.alternate!==null&&A.delete(I.key===null?P:I.key),x=a(I,x,P),_===null?C=I:_.sibling=I,_=I);return e&&A.forEach(function(z){return t(g,z)}),nt&&Ra(g,P),C}function E(g,x,w,T){if(typeof w=="object"&&w!==null&&w.type===mo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ac:e:{for(var C=w.key,_=x;_!==null;){if(_.key===C){if(C=w.type,C===mo){if(_.tag===7){n(g,_.sibling),x=i(_,w.props.children),x.return=g,g=x;break e}}else if(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===bi&&aw(C)===_.type){n(g,_.sibling),x=i(_,w.props),x.ref=mu(g,_,w),x.return=g,g=x;break e}n(g,_);break}else t(g,_);_=_.sibling}w.type===mo?(x=Ba(w.props.children,g.mode,T,w.key),x.return=g,g=x):(T=ud(w.type,w.key,w.props,null,g.mode,T),T.ref=mu(g,x,w),T.return=g,g=T)}return o(g);case ho:e:{for(_=w.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(g,x.sibling),x=i(x,w.children||[]),x.return=g,g=x;break e}else{n(g,x);break}else t(g,x);x=x.sibling}x=Um(w,g.mode,T),x.return=g,g=x}return o(g);case bi:return _=w._init,E(g,x,_(w._payload),T)}if($s(w))return m(g,x,w,T);if(Hs(w))return y(g,x,w,T);Bc(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(g,x.sibling),x=i(x,w),x.return=g,g=x):(n(g,x),x=jm(w,g.mode,T),x.return=g,g=x),o(g)):n(g,x)}return E}var Po=ow(!0),sw=ow(!1),jc=Ri(null),Uc=null,Oo=null,Kh=null;function Xh(){Kh=Oo=Uc=null}function Qh(e){var t=jc.current;Je(jc),e._currentValue=t}function Zh(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 Do(e,t){Uc=e,Kh=Oo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(hn=!0),e.firstContext=null)}function $n(e){var t=e._currentValue;if(Kh!==e)if(e={context:e,memoizedValue:t,next:null},Oo===null){if(Uc===null)throw Error(X(308));Oo=e,Uc.dependencies={lanes:0,firstContext:e}}else Oo=Oo.next=e;return t}var Ia=null;function Jh(e){Ia===null?Ia=[e]:Ia.push(e)}function uw(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Jh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Kr(e,r)}function Kr(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 Oi=!1;function em(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lw(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 Xr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Kr(e,n)}return i=r.interleaved,i===null?(t.next=t,Jh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Kr(e,n)}function zc(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,hh(e,n)}}function cw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 Hc(e,t,n,r){var i=e.updateQueue;Oi=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,l=u.next;u.next=null,o===null?a=l:o.next=l,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(a!==null){var d=i.baseState;o=0,c=l=u=null,s=a;do{var f=s.lane,h=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(f=t,h=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=ot({},d,f);break e;case 2:Oi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,u=d):c=c.next=h,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(u=d),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Da|=o,e.lanes=o,e.memoizedState=d}}function dw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(X(191,i));i.call(r)}}}var gu={},Cr=Ri(gu),vu=Ri(gu),yu=Ri(gu);function Pa(e){if(e===gu)throw Error(X(174));return e}function tm(e,t){switch(Xe(yu,t),Xe(vu,e),Xe(Cr,gu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nh(t,e)}Je(Cr),Xe(Cr,t)}function Lo(){Je(Cr),Je(vu),Je(yu)}function fw(e){Pa(yu.current);var t=Pa(Cr.current),n=nh(t,e.type);t!==n&&(Xe(vu,e),Xe(Cr,n))}function nm(e){vu.current===e&&(Je(Cr),Je(vu))}var st=Ri(0);function Vc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rm=[];function im(){for(var e=0;e<rm.length;e++)rm[e]._workInProgressVersionPrimary=null;rm.length=0}var $c=$r.ReactCurrentDispatcher,am=$r.ReactCurrentBatchConfig,Oa=0,ut=null,Ct=null,Rt=null,Wc=!1,xu=!1,wu=0,ZO=0;function Wt(){throw Error(X(321))}function om(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function sm(e,t,n,r,i,a){if(Oa=a,ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$c.current=e===null||e.memoizedState===null?nD:rD,e=n(r,i),xu){a=0;do{if(xu=!1,wu=0,25<=a)throw Error(X(301));a+=1,Rt=Ct=null,t.updateQueue=null,$c.current=iD,e=n(r,i)}while(xu)}if($c.current=qc,t=Ct!==null&&Ct.next!==null,Oa=0,Rt=Ct=ut=null,Wc=!1,t)throw Error(X(300));return e}function um(){var e=wu!==0;return wu=0,e}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?ut.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Wn(){if(Ct===null){var e=ut.alternate;e=e!==null?e.memoizedState:null}else e=Ct.next;var t=Rt===null?ut.memoizedState:Rt.next;if(t!==null)Rt=t,Ct=e;else{if(e===null)throw Error(X(310));Ct=e,e={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Rt===null?ut.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function bu(e,t){return typeof t=="function"?t(e):t}function lm(e){var t=Wn(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var r=Ct,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var s=o=null,u=null,l=a;do{var c=l.lane;if((Oa&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(s=u=d,o=r):u=u.next=d,ut.lanes|=c,Da|=c}l=l.next}while(l!==null&&l!==a);u===null?o=r:u.next=s,or(r,t.memoizedState)||(hn=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,ut.lanes|=a,Da|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cm(e){var t=Wn(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);or(a,t.memoizedState)||(hn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function pw(){}function hw(e,t){var n=ut,r=Wn(),i=t(),a=!or(r.memoizedState,i);if(a&&(r.memoizedState=i,hn=!0),r=r.queue,dm(vw.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||Rt!==null&&Rt.memoizedState.tag&1){if(n.flags|=2048,Eu(9,gw.bind(null,n,r,i,t),void 0,null),It===null)throw Error(X(349));Oa&30||mw(n,t,i)}return i}function mw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ut.updateQueue,t===null?(t={lastEffect:null,stores:null},ut.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gw(e,t,n,r){t.value=n,t.getSnapshot=r,yw(t)&&xw(e)}function vw(e,t,n){return n(function(){yw(t)&&xw(e)})}function yw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch{return!0}}function xw(e){var t=Kr(e,1);t!==null&&dr(t,e,1,-1)}function ww(e){var t=Sr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bu,lastRenderedState:e},t.queue=e,e=e.dispatch=tD.bind(null,ut,e),[t.memoizedState,e]}function Eu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ut.updateQueue,t===null?(t={lastEffect:null,stores:null},ut.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function bw(){return Wn().memoizedState}function Yc(e,t,n,r){var i=Sr();ut.flags|=e,i.memoizedState=Eu(1|t,n,void 0,r===void 0?null:r)}function Gc(e,t,n,r){var i=Wn();r=r===void 0?null:r;var a=void 0;if(Ct!==null){var o=Ct.memoizedState;if(a=o.destroy,r!==null&&om(r,o.deps)){i.memoizedState=Eu(t,n,a,r);return}}ut.flags|=e,i.memoizedState=Eu(1|t,n,a,r)}function Ew(e,t){return Yc(8390656,8,e,t)}function dm(e,t){return Gc(2048,8,e,t)}function Tw(e,t){return Gc(4,2,e,t)}function _w(e,t){return Gc(4,4,e,t)}function Cw(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sw(e,t,n){return n=n!=null?n.concat([e]):null,Gc(4,4,Cw.bind(null,t,e),n)}function fm(){}function kw(e,t){var n=Wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&om(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Aw(e,t){var n=Wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&om(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Nw(e,t,n){return Oa&21?(or(n,t)||(n=ax(),ut.lanes|=n,Da|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,hn=!0),e.memoizedState=n)}function JO(e,t){var n=$e;$e=n!==0&&4>n?n:4,e(!0);var r=am.transition;am.transition={};try{e(!1),t()}finally{$e=n,am.transition=r}}function Rw(){return Wn().memoizedState}function eD(e,t,n){var r=Bi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Iw(e))Pw(t,n);else if(n=uw(e,t,n,r),n!==null){var i=sn();dr(n,e,r,i),Ow(n,t,r)}}function tD(e,t,n){var r=Bi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Iw(e))Pw(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,or(s,o)){var u=t.interleaved;u===null?(i.next=i,Jh(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=uw(e,t,i,r),n!==null&&(i=sn(),dr(n,e,r,i),Ow(n,t,r))}}function Iw(e){var t=e.alternate;return e===ut||t!==null&&t===ut}function Pw(e,t){xu=Wc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ow(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hh(e,n)}}var qc={readContext:$n,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useInsertionEffect:Wt,useLayoutEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useMutableSource:Wt,useSyncExternalStore:Wt,useId:Wt,unstable_isNewReconciler:!1},nD={readContext:$n,useCallback:function(e,t){return Sr().memoizedState=[e,t===void 0?null:t],e},useContext:$n,useEffect:Ew,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yc(4194308,4,Cw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yc(4,2,e,t)},useMemo:function(e,t){var n=Sr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sr();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=eD.bind(null,ut,e),[r.memoizedState,e]},useRef:function(e){var t=Sr();return e={current:e},t.memoizedState=e},useState:ww,useDebugValue:fm,useDeferredValue:function(e){return Sr().memoizedState=e},useTransition:function(){var e=ww(!1),t=e[0];return e=JO.bind(null,e[1]),Sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ut,i=Sr();if(nt){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),It===null)throw Error(X(349));Oa&30||mw(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ew(vw.bind(null,r,a,e),[e]),r.flags|=2048,Eu(9,gw.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Sr(),t=It.identifierPrefix;if(nt){var n=qr,r=Gr;n=(r&~(1<<32-ar(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ZO++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rD={readContext:$n,useCallback:kw,useContext:$n,useEffect:dm,useImperativeHandle:Sw,useInsertionEffect:Tw,useLayoutEffect:_w,useMemo:Aw,useReducer:lm,useRef:bw,useState:function(){return lm(bu)},useDebugValue:fm,useDeferredValue:function(e){var t=Wn();return Nw(t,Ct.memoizedState,e)},useTransition:function(){var e=lm(bu)[0],t=Wn().memoizedState;return[e,t]},useMutableSource:pw,useSyncExternalStore:hw,useId:Rw,unstable_isNewReconciler:!1},iD={readContext:$n,useCallback:kw,useContext:$n,useEffect:dm,useImperativeHandle:Sw,useInsertionEffect:Tw,useLayoutEffect:_w,useMemo:Aw,useReducer:cm,useRef:bw,useState:function(){return cm(bu)},useDebugValue:fm,useDeferredValue:function(e){var t=Wn();return Ct===null?t.memoizedState=e:Nw(t,Ct.memoizedState,e)},useTransition:function(){var e=cm(bu)[0],t=Wn().memoizedState;return[e,t]},useMutableSource:pw,useSyncExternalStore:hw,useId:Rw,unstable_isNewReconciler:!1};function ur(e,t){if(e&&e.defaultProps){t=ot({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function pm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ot({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kc={isMounted:function(e){return(e=e._reactInternals)?Sa(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sn(),i=Bi(e),a=Xr(r,i);a.payload=t,n!=null&&(a.callback=n),t=Di(e,a,i),t!==null&&(dr(t,e,i,r),zc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sn(),i=Bi(e),a=Xr(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Di(e,a,i),t!==null&&(dr(t,e,i,r),zc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sn(),r=Bi(e),i=Xr(n,r);i.tag=2,t!=null&&(i.callback=t),t=Di(e,i,r),t!==null&&(dr(t,e,r,n),zc(t,e,r))}};function Dw(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!uu(n,r)||!uu(i,a):!0}function Lw(e,t,n){var r=!1,i=Ii,a=t.contextType;return typeof a=="object"&&a!==null?a=$n(a):(i=pn(t)?Aa:$t.current,r=t.contextTypes,a=(r=r!=null)?Ao(e,i):Ii),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Mw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kc.enqueueReplaceState(t,t.state,null)}function hm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},em(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=$n(a):(a=pn(t)?Aa:$t.current,i.context=Ao(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(pm(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Kc.enqueueReplaceState(i,i.state,null),Hc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Mo(e,t){try{var n="",r=t;do n+=PP(r),r=r.return;while(r);var i=n}catch(a){i=`
39
39
  Error generating stack: `+a.message+`
40
- `+a.stack}return{value:e,source:t,stack:i,digest:null}}function mm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aD=typeof WeakMap=="function"?WeakMap:Map;function Fw(e,t,n){n=Xr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nd||(nd=!0,Im=r),gm(e,t)},n}function Bw(e,t,n){n=Xr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){gm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){gm(e,t),typeof r!="function"&&(Mi===null?Mi=new Set([this]):Mi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function jw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aD;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xD.bind(null,e,t,n),t.then(e,e))}function Uw(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function zw(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xr(-1,1),t.tag=2,Di(n,t,1))),n.lanes|=1),e)}var oD=$r.ReactCurrentOwner,hn=!1;function on(e,t,n,r){t.child=e===null?sw(t,null,n,r):Po(t,e.child,n,r)}function Hw(e,t,n,r,i){n=n.render;var a=t.ref;return Do(t,i),r=sm(e,t,n,r,a,i),n=um(),e!==null&&!hn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qr(e,t,i)):(nt&&n&&$h(t),t.flags|=1,on(e,t,r,i),t.child)}function Vw(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Bm(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,$w(e,t,a,r,i)):(e=ud(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:uu,n(o,r)&&e.ref===t.ref)return Qr(e,t,i)}return t.flags|=1,e=Ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function $w(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(uu(a,r)&&e.ref===t.ref)if(hn=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(hn=!0);else return t.lanes=e.lanes,Qr(e,t,i)}return vm(e,t,n,r,i)}function Ww(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Bo,Nn),Nn|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Xe(Bo,Nn),Nn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Xe(Bo,Nn),Nn|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Xe(Bo,Nn),Nn|=r;return on(e,t,i,n),t.child}function Yw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vm(e,t,n,r,i){var a=pn(n)?Aa:$t.current;return a=Ao(t,a),Do(t,i),n=sm(e,t,n,r,a,i),r=um(),e!==null&&!hn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qr(e,t,i)):(nt&&r&&$h(t),t.flags|=1,on(e,t,n,i),t.child)}function Gw(e,t,n,r,i){if(pn(n)){var a=!0;Oc(t)}else a=!1;if(Do(t,i),t.stateNode===null)Qc(e,t),Lw(t,n,r),hm(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;typeof l=="object"&&l!==null?l=$n(l):(l=pn(n)?Aa:$t.current,l=Ao(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Mw(t,o,r,l),Oi=!1;var f=t.memoizedState;o.state=f,Hc(t,r,o,i),u=t.memoizedState,s!==r||f!==u||fn.current||Oi?(typeof c=="function"&&(pm(t,n,c,r),u=t.memoizedState),(s=Oi||Dw(t,n,s,r,f,u,l))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,lw(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ur(t.type,s),o.props=l,d=t.pendingProps,f=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=$n(u):(u=pn(n)?Aa:$t.current,u=Ao(t,u));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==u)&&Mw(t,o,r,u),Oi=!1,f=t.memoizedState,o.state=f,Hc(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||fn.current||Oi?(typeof h=="function"&&(pm(t,n,h,r),m=t.memoizedState),(l=Oi||Dw(t,n,l,r,f,m,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=l):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ym(e,t,n,r,a,i)}function ym(e,t,n,r,i,a){Yw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Zx(t,n,!1),Qr(e,t,a);r=t.stateNode,oD.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Po(t,e.child,null,a),t.child=Po(t,null,s,a)):on(e,t,s,a),t.memoizedState=r.state,i&&Zx(t,n,!0),t.child}function qw(e){var t=e.stateNode;t.pendingContext?Xx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xx(e,t.context,!1),tm(e,t.containerInfo)}function Kw(e,t,n,r,i){return Io(),qh(i),t.flags|=256,on(e,t,n,r),t.child}var xm={dehydrated:null,treeContext:null,retryLane:0};function wm(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xw(e,t,n){var r=t.pendingProps,i=st.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Xe(st,i&1),e===null)return Gh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=ld(o,r,0,null),e=Ba(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=wm(n),t.memoizedState=xm,e):bm(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return sD(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Ui(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Ui(s,a):(a=Ba(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?wm(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=xm,r}return a=e.child,e=a.sibling,r=Ui(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bm(e,t){return t=ld({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xc(e,t,n,r){return r!==null&&qh(r),Po(t,e.child,null,n),e=bm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sD(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=mm(Error(X(422))),Xc(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=ld({mode:"visible",children:r.children},i,0,null),a=Ba(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Po(t,e.child,null,o),t.child.memoizedState=wm(o),t.memoizedState=xm,a);if(!(t.mode&1))return Xc(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(X(419)),r=mm(a,r,void 0),Xc(e,t,o,r)}if(s=(o&e.childLanes)!==0,hn||s){if(r=It,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Kr(e,i),dr(r,e,i,-1))}return Fm(),r=mm(Error(X(421))),Xc(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=wD.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,An=Ni(i.nextSibling),kn=t,nt=!0,sr=null,e!==null&&(Hn[Vn++]=Gr,Hn[Vn++]=qr,Hn[Vn++]=Na,Gr=e.id,qr=e.overflow,Na=t),t=bm(t,r.children),t.flags|=4096,t)}function Qw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zh(e.return,t,n)}function Em(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Zw(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(on(e,t,r.children,n),r=st.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qw(e,n,t);else if(e.tag===19)Qw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Xe(st,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Vc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Em(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Vc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Em(t,!0,n,null,a);break;case"together":Em(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,n=Ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uD(e,t,n){switch(t.tag){case 3:qw(t),Io();break;case 5:fw(t);break;case 1:pn(t.type)&&Oc(t);break;case 4:tm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Xe(jc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Xe(st,st.current&1),t.flags|=128,null):n&t.child.childLanes?Xw(e,t,n):(Xe(st,st.current&1),e=Qr(e,t,n),e!==null?e.sibling:null);Xe(st,st.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Zw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Xe(st,st.current),r)break;return null;case 22:case 23:return t.lanes=0,Ww(e,t,n)}return Qr(e,t,n)}var Jw,Tm,eb,tb;Jw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tm=function(){},eb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pa(Cr.current);var a=null;switch(n){case"input":i=Zp(e,i),r=Zp(e,r),a=[];break;case"select":i=ot({},i,{value:void 0}),r=ot({},r,{value:void 0}),a=[];break;case"textarea":i=th(e,i),r=th(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rc)}rh(n,r);var o;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(zs.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in r){var u=r[l];if(s=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(zs.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Ze("scroll",e),a||s===u||(a=[])):(a=a||[]).push(l,u))}n&&(a=a||[]).push("style",n);var l=a;(t.updateQueue=l)&&(t.flags|=4)}},tb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tu(e,t){if(!nt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lD(e,t,n){var r=t.pendingProps;switch(Wh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(t),null;case 1:return pn(t.type)&&Pc(),Yt(t),null;case 3:return r=t.stateNode,Lo(),Je(fn),Je($t),im(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sr!==null&&(Dm(sr),sr=null))),Tm(e,t),Yt(t),null;case 5:nm(t);var i=Pa(yu.current);if(n=t.type,e!==null&&t.stateNode!=null)eb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(X(166));return Yt(t),null}if(e=Pa(Cr.current),Fc(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[_r]=t,r[pu]=a,e=(t.mode&1)!==0,n){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(i=0;i<cu.length;i++)Ze(cu[i],r);break;case"source":Ze("error",r);break;case"img":case"image":case"link":Ze("error",r),Ze("load",r);break;case"details":Ze("toggle",r);break;case"input":Ly(r,a),Ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ze("invalid",r);break;case"textarea":By(r,a),Ze("invalid",r)}rh(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&Nc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Nc(r.textContent,s,e),i=["children",""+s]):zs.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ze("scroll",r)}switch(n){case"input":oc(r),Fy(r,a,!0);break;case"textarea":oc(r),Uy(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Rc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_r]=t,e[pu]=r,Jw(e,t,!1,!1),t.stateNode=e;e:{switch(o=ih(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),i=r;break;case"iframe":case"object":case"embed":Ze("load",e),i=r;break;case"video":case"audio":for(i=0;i<cu.length;i++)Ze(cu[i],e);i=r;break;case"source":Ze("error",e),i=r;break;case"img":case"image":case"link":Ze("error",e),Ze("load",e),i=r;break;case"details":Ze("toggle",e),i=r;break;case"input":Ly(e,r),i=Zp(e,r),Ze("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ot({},r,{value:void 0}),Ze("invalid",e);break;case"textarea":By(e,r),i=th(e,r),Ze("invalid",e);break;default:i=r}rh(n,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];a==="style"?$y(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Hy(e,u)):a==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Ws(e,u):typeof u=="number"&&Ws(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(zs.hasOwnProperty(a)?u!=null&&a==="onScroll"&&Ze("scroll",e):u!=null&&zp(e,a,u,o))}switch(n){case"input":oc(e),Fy(e,r,!1);break;case"textarea":oc(e),Uy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ei(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?go(e,!!r.multiple,a,!1):r.defaultValue!=null&&go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Rc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Yt(t),null;case 6:if(e&&t.stateNode!=null)tb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(X(166));if(n=Pa(yu.current),Pa(Cr.current),Fc(t)){if(r=t.stateNode,n=t.memoizedProps,r[_r]=t,(a=r.nodeValue!==n)&&(e=kn,e!==null))switch(e.tag){case 3:Nc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Nc(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_r]=t,t.stateNode=r}return Yt(t),null;case 13:if(Je(st),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(nt&&An!==null&&t.mode&1&&!(t.flags&128))iw(),Io(),t.flags|=98560,a=!1;else if(a=Fc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(X(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(X(317));a[_r]=t}else Io(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yt(t),a=!1}else sr!==null&&(Dm(sr),sr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||st.current&1?St===0&&(St=3):Fm())),t.updateQueue!==null&&(t.flags|=4),Yt(t),null);case 4:return Lo(),Tm(e,t),e===null&&du(t.stateNode.containerInfo),Yt(t),null;case 10:return Qh(t.type._context),Yt(t),null;case 17:return pn(t.type)&&Pc(),Yt(t),null;case 19:if(Je(st),a=t.memoizedState,a===null)return Yt(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Tu(a,!1);else{if(St!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vc(e),o!==null){for(t.flags|=128,Tu(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Xe(st,st.current&1|2),t.child}e=e.sibling}a.tail!==null&&vt()>jo&&(t.flags|=128,r=!0,Tu(a,!1),t.lanes=4194304)}else{if(!r)if(e=Vc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!nt)return Yt(t),null}else 2*vt()-a.renderingStartTime>jo&&n!==1073741824&&(t.flags|=128,r=!0,Tu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=vt(),t.sibling=null,n=st.current,Xe(st,r?n&1|2:n&1),t):(Yt(t),null);case 22:case 23:return Mm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nn&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function cD(e,t){switch(Wh(t),t.tag){case 1:return pn(t.type)&&Pc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lo(),Je(fn),Je($t),im(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nm(t),null;case 13:if(Je(st),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));Io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(st),null;case 4:return Lo(),null;case 10:return Qh(t.type._context),null;case 22:case 23:return Mm(),null;case 24:return null;default:return null}}var Zc=!1,Gt=!1,dD=typeof WeakSet=="function"?WeakSet:Set,oe=null;function Fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pt(e,t,r)}else n.current=null}function _m(e,t,n){try{n()}catch(r){pt(e,t,r)}}var nb=!1;function fD(e,t){if(Mh=yc,e=Dx(),Ah(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(u=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++l===i&&(s=o),f===a&&++c===r&&(u=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fh={focusedElem:e,selectionRange:n},yc=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,E=m.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:ur(t.type,y),E);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(T){pt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return m=nb,nb=!1,m}function _u(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 a=i.destroy;i.destroy=void 0,a!==void 0&&_m(t,n,a)}i=i.next}while(i!==r)}}function Jc(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 Cm(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 rb(e){var t=e.alternate;t!==null&&(e.alternate=null,rb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_r],delete t[pu],delete t[zh],delete t[qO],delete t[KO])),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 ib(e){return e.tag===5||e.tag===3||e.tag===4}function ab(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ib(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 Sm(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=Rc));else if(r!==4&&(e=e.child,e!==null))for(Sm(e,t,n),e=e.sibling;e!==null;)Sm(e,t,n),e=e.sibling}function km(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(km(e,t,n),e=e.sibling;e!==null;)km(e,t,n),e=e.sibling}var Bt=null,lr=!1;function Li(e,t,n){for(n=n.child;n!==null;)ob(e,t,n),n=n.sibling}function ob(e,t,n){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(fc,n)}catch{}switch(n.tag){case 5:Gt||Fo(n,t);case 6:var r=Bt,i=lr;Bt=null,Li(e,t,n),Bt=r,lr=i,Bt!==null&&(lr?(e=Bt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bt.removeChild(n.stateNode));break;case 18:Bt!==null&&(lr?(e=Bt,n=n.stateNode,e.nodeType===8?Uh(e.parentNode,n):e.nodeType===1&&Uh(e,n),nu(e)):Uh(Bt,n.stateNode));break;case 4:r=Bt,i=lr,Bt=n.stateNode.containerInfo,lr=!0,Li(e,t,n),Bt=r,lr=i;break;case 0:case 11:case 14:case 15:if(!Gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&_m(n,t,o),i=i.next}while(i!==r)}Li(e,t,n);break;case 1:if(!Gt&&(Fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){pt(n,t,s)}Li(e,t,n);break;case 21:Li(e,t,n);break;case 22:n.mode&1?(Gt=(r=Gt)||n.memoizedState!==null,Li(e,t,n),Gt=r):Li(e,t,n);break;default:Li(e,t,n)}}function sb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dD),t.forEach(function(r){var i=bD.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Bt=s.stateNode,lr=!1;break e;case 3:Bt=s.stateNode.containerInfo,lr=!0;break e;case 4:Bt=s.stateNode.containerInfo,lr=!0;break e}s=s.return}if(Bt===null)throw Error(X(160));ob(a,o,i),Bt=null,lr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){pt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ub(t,e),t=t.sibling}function ub(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(cr(t,e),kr(e),r&4){try{_u(3,e,e.return),Jc(3,e)}catch(y){pt(e,e.return,y)}try{_u(5,e,e.return)}catch(y){pt(e,e.return,y)}}break;case 1:cr(t,e),kr(e),r&512&&n!==null&&Fo(n,n.return);break;case 5:if(cr(t,e),kr(e),r&512&&n!==null&&Fo(n,n.return),e.flags&32){var i=e.stateNode;try{Ws(i,"")}catch(y){pt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&My(i,a),ih(s,o);var l=ih(s,a);for(o=0;o<u.length;o+=2){var c=u[o],d=u[o+1];c==="style"?$y(i,d):c==="dangerouslySetInnerHTML"?Hy(i,d):c==="children"?Ws(i,d):zp(i,c,d,l)}switch(s){case"input":Jp(i,a);break;case"textarea":jy(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?go(i,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?go(i,!!a.multiple,a.defaultValue,!0):go(i,!!a.multiple,a.multiple?[]:"",!1))}i[pu]=a}catch(y){pt(e,e.return,y)}}break;case 6:if(cr(t,e),kr(e),r&4){if(e.stateNode===null)throw Error(X(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(y){pt(e,e.return,y)}}break;case 3:if(cr(t,e),kr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{nu(t.containerInfo)}catch(y){pt(e,e.return,y)}break;case 4:cr(t,e),kr(e);break;case 13:cr(t,e),kr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Rm=vt())),r&4&&sb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Gt=(l=Gt)||c,cr(t,e),Gt=l):cr(t,e),kr(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(oe=e,c=e.child;c!==null;){for(d=oe=c;oe!==null;){switch(f=oe,h=f.child,f.tag){case 0:case 11:case 14:case 15:_u(4,f,f.return);break;case 1:Fo(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){pt(r,n,y)}}break;case 5:Fo(f,f.return);break;case 22:if(f.memoizedState!==null){db(d);continue}}h!==null?(h.return=f,oe=h):db(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,l?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,u=d.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Vy("display",o))}catch(y){pt(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){pt(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:cr(t,e),kr(e),r&4&&sb(e);break;case 21:break;default:cr(t,e),kr(e)}}function kr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ib(n)){var r=n;break e}n=n.return}throw Error(X(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ws(i,""),r.flags&=-33);var a=ab(e);km(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=ab(e);Sm(e,s,o);break;default:throw Error(X(161))}}catch(u){pt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pD(e,t,n){oe=e,lb(e)}function lb(e,t,n){for(var r=(e.mode&1)!==0;oe!==null;){var i=oe,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Zc;if(!o){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Gt;s=Zc;var l=Gt;if(Zc=o,(Gt=u)&&!l)for(oe=i;oe!==null;)o=oe,u=o.child,o.tag===22&&o.memoizedState!==null?fb(i):u!==null?(u.return=o,oe=u):fb(i);for(;a!==null;)oe=a,lb(a),a=a.sibling;oe=i,Zc=s,Gt=l}cb(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,oe=a):cb(e)}}function cb(e){for(;oe!==null;){var t=oe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gt||Jc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ur(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&dw(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dw(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&nu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(X(163))}Gt||t.flags&512&&Cm(t)}catch(f){pt(t,t.return,f)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function db(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function fb(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jc(4,t)}catch(u){pt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){pt(t,i,u)}}var a=t.return;try{Cm(t)}catch(u){pt(t,a,u)}break;case 5:var o=t.return;try{Cm(t)}catch(u){pt(t,o,u)}}}catch(u){pt(t,t.return,u)}if(t===e){oe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,oe=s;break}oe=t.return}}var hD=Math.ceil,ed=$r.ReactCurrentDispatcher,Am=$r.ReactCurrentOwner,Yn=$r.ReactCurrentBatchConfig,Fe=0,It=null,Et=null,jt=0,Nn=0,Bo=Ri(0),St=0,Cu=null,Da=0,td=0,Nm=0,Su=null,mn=null,Rm=0,jo=1/0,Zr=null,nd=!1,Im=null,Mi=null,rd=!1,Fi=null,id=0,ku=0,Pm=null,ad=-1,od=0;function sn(){return Fe&6?vt():ad!==-1?ad:ad=vt()}function Bi(e){return e.mode&1?Fe&2&&jt!==0?jt&-jt:QO.transition!==null?(od===0&&(od=ax()),od):(e=$e,e!==0||(e=window.event,e=e===void 0?16:hx(e.type)),e):1}function dr(e,t,n,r){if(50<ku)throw ku=0,Pm=null,Error(X(185));Qs(e,n,r),(!(Fe&2)||e!==It)&&(e===It&&(!(Fe&2)&&(td|=n),St===4&&ji(e,jt)),gn(e,r),n===1&&Fe===0&&!(t.mode&1)&&(jo=vt()+500,Dc&&Pi()))}function gn(e,t){var n=e.callbackNode;QP(e,t);var r=mc(e,e===It?jt:0);if(r===0)n!==null&&nx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nx(n),t===1)e.tag===0?XO(hb.bind(null,e)):Jx(hb.bind(null,e)),YO(function(){!(Fe&6)&&Pi()}),n=null;else{switch(ox(r)){case 1:n=dh;break;case 4:n=rx;break;case 16:n=dc;break;case 536870912:n=ix;break;default:n=dc}n=Eb(n,pb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pb(e,t){if(ad=-1,od=0,Fe&6)throw Error(X(327));var n=e.callbackNode;if(Uo()&&e.callbackNode!==n)return null;var r=mc(e,e===It?jt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sd(e,r);else{t=r;var i=Fe;Fe|=2;var a=gb();(It!==e||jt!==t)&&(Zr=null,jo=vt()+500,Ma(e,t));do try{vD();break}catch(s){mb(e,s)}while(!0);Xh(),ed.current=a,Fe=i,Et!==null?t=0:(It=null,jt=0,t=St)}if(t!==0){if(t===2&&(i=fh(e),i!==0&&(r=i,t=Om(e,i))),t===1)throw n=Cu,Ma(e,0),ji(e,r),gn(e,vt()),n;if(t===6)ji(e,r);else{if(i=e.current.alternate,!(r&30)&&!mD(i)&&(t=sd(e,r),t===2&&(a=fh(e),a!==0&&(r=a,t=Om(e,a))),t===1))throw n=Cu,Ma(e,0),ji(e,r),gn(e,vt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(X(345));case 2:Fa(e,mn,Zr);break;case 3:if(ji(e,r),(r&130023424)===r&&(t=Rm+500-vt(),10<t)){if(mc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){sn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=jh(Fa.bind(null,e,mn,Zr),t);break}Fa(e,mn,Zr);break;case 4:if(ji(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-ar(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hD(r/1960))-r,10<r){e.timeoutHandle=jh(Fa.bind(null,e,mn,Zr),r);break}Fa(e,mn,Zr);break;case 5:Fa(e,mn,Zr);break;default:throw Error(X(329))}}}return gn(e,vt()),e.callbackNode===n?pb.bind(null,e):null}function Om(e,t){var n=Su;return e.current.memoizedState.isDehydrated&&(Ma(e,t).flags|=256),e=sd(e,t),e!==2&&(t=mn,mn=n,t!==null&&Dm(t)),e}function Dm(e){mn===null?mn=e:mn.push.apply(mn,e)}function mD(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!or(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ji(e,t){for(t&=~Nm,t&=~td,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ar(t),r=1<<n;e[n]=-1,t&=~r}}function hb(e){if(Fe&6)throw Error(X(327));Uo();var t=mc(e,0);if(!(t&1))return gn(e,vt()),null;var n=sd(e,t);if(e.tag!==0&&n===2){var r=fh(e);r!==0&&(t=r,n=Om(e,r))}if(n===1)throw n=Cu,Ma(e,0),ji(e,t),gn(e,vt()),n;if(n===6)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fa(e,mn,Zr),gn(e,vt()),null}function Lm(e,t){var n=Fe;Fe|=1;try{return e(t)}finally{Fe=n,Fe===0&&(jo=vt()+500,Dc&&Pi())}}function La(e){Fi!==null&&Fi.tag===0&&!(Fe&6)&&Uo();var t=Fe;Fe|=1;var n=Yn.transition,r=$e;try{if(Yn.transition=null,$e=1,e)return e()}finally{$e=r,Yn.transition=n,Fe=t,!(Fe&6)&&Pi()}}function Mm(){Nn=Bo.current,Je(Bo)}function Ma(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,WO(n)),Et!==null)for(n=Et.return;n!==null;){var r=n;switch(Wh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pc();break;case 3:Lo(),Je(fn),Je($t),im();break;case 5:nm(r);break;case 4:Lo();break;case 13:Je(st);break;case 19:Je(st);break;case 10:Qh(r.type._context);break;case 22:case 23:Mm()}n=n.return}if(It=e,Et=e=Ui(e.current,null),jt=Nn=t,St=0,Cu=null,Nm=td=Da=0,mn=Su=null,Ia!==null){for(t=0;t<Ia.length;t++)if(n=Ia[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Ia=null}return e}function mb(e,t){do{var n=Et;try{if(Xh(),$c.current=qc,Wc){for(var r=ut.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Wc=!1}if(Oa=0,Rt=Ct=ut=null,xu=!1,wu=0,Am.current=null,n===null||n.return===null){St=1,Cu=t,Et=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=jt,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Uw(o);if(h!==null){h.flags&=-257,zw(h,o,s,a,t),h.mode&1&&jw(a,l,t),t=h,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){jw(a,l,t),Fm();break e}u=Error(X(426))}}else if(nt&&s.mode&1){var E=Uw(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),zw(E,o,s,a,t),qh(Mo(u,s));break e}}a=u=Mo(u,s),St!==4&&(St=2),Su===null?Su=[a]:Su.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=Fw(a,u,t);cw(a,g);break e;case 1:s=u;var x=a.type,w=a.stateNode;if(!(a.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Mi===null||!Mi.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t;var T=Bw(a,s,t);cw(a,T);break e}}a=a.return}while(a!==null)}yb(n)}catch(C){t=C,Et===n&&n!==null&&(Et=n=n.return);continue}break}while(!0)}function gb(){var e=ed.current;return ed.current=qc,e===null?qc:e}function Fm(){(St===0||St===3||St===2)&&(St=4),It===null||!(Da&268435455)&&!(td&268435455)||ji(It,jt)}function sd(e,t){var n=Fe;Fe|=2;var r=gb();(It!==e||jt!==t)&&(Zr=null,Ma(e,t));do try{gD();break}catch(i){mb(e,i)}while(!0);if(Xh(),Fe=n,ed.current=r,Et!==null)throw Error(X(261));return It=null,jt=0,St}function gD(){for(;Et!==null;)vb(Et)}function vD(){for(;Et!==null&&!HP();)vb(Et)}function vb(e){var t=bb(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?yb(e):Et=t,Am.current=null}function yb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cD(n,t),n!==null){n.flags&=32767,Et=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{St=6,Et=null;return}}else if(n=lD(n,t,Nn),n!==null){Et=n;return}if(t=t.sibling,t!==null){Et=t;return}Et=t=e}while(t!==null);St===0&&(St=5)}function Fa(e,t,n){var r=$e,i=Yn.transition;try{Yn.transition=null,$e=1,yD(e,t,n,r)}finally{Yn.transition=i,$e=r}return null}function yD(e,t,n,r){do Uo();while(Fi!==null);if(Fe&6)throw Error(X(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(ZP(e,a),e===It&&(Et=It=null,jt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rd||(rd=!0,Eb(dc,function(){return Uo(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Yn.transition,Yn.transition=null;var o=$e;$e=1;var s=Fe;Fe|=4,Am.current=null,fD(e,n),ub(n,e),BO(Fh),yc=!!Mh,Fh=Mh=null,e.current=n,pD(n),VP(),Fe=s,$e=o,Yn.transition=a}else e.current=n;if(rd&&(rd=!1,Fi=e,id=i),a=e.pendingLanes,a===0&&(Mi=null),YP(n.stateNode),gn(e,vt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(nd)throw nd=!1,e=Im,Im=null,e;return id&1&&e.tag!==0&&Uo(),a=e.pendingLanes,a&1?e===Pm?ku++:(ku=0,Pm=e):ku=0,Pi(),null}function Uo(){if(Fi!==null){var e=ox(id),t=Yn.transition,n=$e;try{if(Yn.transition=null,$e=16>e?16:e,Fi===null)var r=!1;else{if(e=Fi,Fi=null,id=0,Fe&6)throw Error(X(331));var i=Fe;for(Fe|=4,oe=e.current;oe!==null;){var a=oe,o=a.child;if(oe.flags&16){var s=a.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(oe=l;oe!==null;){var c=oe;switch(c.tag){case 0:case 11:case 15:_u(8,c,a)}var d=c.child;if(d!==null)d.return=c,oe=d;else for(;oe!==null;){c=oe;var f=c.sibling,h=c.return;if(rb(c),c===l){oe=null;break}if(f!==null){f.return=h,oe=f;break}oe=h}}}var m=a.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var E=y.sibling;y.sibling=null,y=E}while(y!==null)}}oe=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,oe=o;else e:for(;oe!==null;){if(a=oe,a.flags&2048)switch(a.tag){case 0:case 11:case 15:_u(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,oe=g;break e}oe=a.return}}var x=e.current;for(oe=x;oe!==null;){o=oe;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,oe=w;else e:for(o=x;oe!==null;){if(s=oe,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Jc(9,s)}}catch(C){pt(s,s.return,C)}if(s===o){oe=null;break e}var T=s.sibling;if(T!==null){T.return=s.return,oe=T;break e}oe=s.return}}if(Fe=i,Pi(),Tr&&typeof Tr.onPostCommitFiberRoot=="function")try{Tr.onPostCommitFiberRoot(fc,e)}catch{}r=!0}return r}finally{$e=n,Yn.transition=t}}return!1}function xb(e,t,n){t=Mo(n,t),t=Fw(e,t,1),e=Di(e,t,1),t=sn(),e!==null&&(Qs(e,1,t),gn(e,t))}function pt(e,t,n){if(e.tag===3)xb(e,e,n);else for(;t!==null;){if(t.tag===3){xb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mi===null||!Mi.has(r))){e=Mo(n,e),e=Bw(t,e,1),t=Di(t,e,1),e=sn(),t!==null&&(Qs(t,1,e),gn(t,e));break}}t=t.return}}function xD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=sn(),e.pingedLanes|=e.suspendedLanes&n,It===e&&(jt&n)===n&&(St===4||St===3&&(jt&130023424)===jt&&500>vt()-Rm?Ma(e,0):Nm|=n),gn(e,t)}function wb(e,t){t===0&&(e.mode&1?(t=hc,hc<<=1,!(hc&130023424)&&(hc=4194304)):t=1);var n=sn();e=Kr(e,t),e!==null&&(Qs(e,t,n),gn(e,n))}function wD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wb(e,n)}function bD(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(X(314))}r!==null&&r.delete(t),wb(e,n)}var bb;bb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fn.current)hn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hn=!1,uD(e,t,n);hn=!!(e.flags&131072)}else hn=!1,nt&&t.flags&1048576&&ew(t,Mc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qc(e,t),e=t.pendingProps;var i=Ao(t,$t.current);Do(t,n),i=sm(null,t,r,e,i,n);var a=um();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,pn(r)?(a=!0,Oc(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,em(t),i.updater=Kc,t.stateNode=i,i._reactInternals=t,hm(t,r,e,n),t=ym(null,t,r,!0,a,n)):(t.tag=0,nt&&a&&$h(t),on(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=TD(r),e=ur(r,e),i){case 0:t=vm(null,t,r,e,n);break e;case 1:t=Gw(null,t,r,e,n);break e;case 11:t=Hw(null,t,r,e,n);break e;case 14:t=Vw(null,t,r,ur(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),vm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),Gw(e,t,r,i,n);case 3:e:{if(qw(t),e===null)throw Error(X(387));r=t.pendingProps,a=t.memoizedState,i=a.element,lw(e,t),Hc(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Mo(Error(X(423)),t),t=Kw(e,t,r,n,i);break e}else if(r!==i){i=Mo(Error(X(424)),t),t=Kw(e,t,r,n,i);break e}else for(An=Ni(t.stateNode.containerInfo.firstChild),kn=t,nt=!0,sr=null,n=sw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Io(),r===i){t=Qr(e,t,n);break e}on(e,t,r,n)}t=t.child}return t;case 5:return fw(t),e===null&&Gh(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Bh(r,i)?o=null:a!==null&&Bh(r,a)&&(t.flags|=32),Yw(e,t),on(e,t,o,n),t.child;case 6:return e===null&&Gh(t),null;case 13:return Xw(e,t,n);case 4:return tm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Po(t,null,r,n):on(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),Hw(e,t,r,i,n);case 7:return on(e,t,t.pendingProps,n),t.child;case 8:return on(e,t,t.pendingProps.children,n),t.child;case 12:return on(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Xe(jc,r._currentValue),r._currentValue=o,a!==null)if(or(a.value,o)){if(a.children===i.children&&!fn.current){t=Qr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=Xr(-1,n&-n),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Zh(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(X(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Zh(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}on(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Do(t,n),i=$n(i),r=r(i),t.flags|=1,on(e,t,r,n),t.child;case 14:return r=t.type,i=ur(r,t.pendingProps),i=ur(r.type,i),Vw(e,t,r,i,n);case 15:return $w(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),Qc(e,t),t.tag=1,pn(r)?(e=!0,Oc(t)):e=!1,Do(t,n),Lw(t,r,i),hm(t,r,i,n),ym(null,t,r,!0,e,n);case 19:return Zw(e,t,n);case 22:return Ww(e,t,n)}throw Error(X(156,t.tag))};function Eb(e,t){return tx(e,t)}function ED(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 Gn(e,t,n,r){return new ED(e,t,n,r)}function Bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TD(e){if(typeof e=="function")return Bm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$p)return 11;if(e===Gp)return 14}return 2}function Ui(e,t){var n=e.alternate;return n===null?(n=Gn(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 ud(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")Bm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case mo:return Ba(n.children,i,a,t);case Hp:o=8,i|=8;break;case Vp:return e=Gn(12,n,t,i|2),e.elementType=Vp,e.lanes=a,e;case Wp:return e=Gn(13,n,t,i),e.elementType=Wp,e.lanes=a,e;case Yp:return e=Gn(19,n,t,i),e.elementType=Yp,e.lanes=a,e;case Iy:return ld(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ny:o=10;break e;case Ry:o=9;break e;case $p:o=11;break e;case Gp:o=14;break e;case bi:o=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=Gn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ba(e,t,n,r){return e=Gn(7,e,r,t),e.lanes=n,e}function ld(e,t,n,r){return e=Gn(22,e,r,t),e.elementType=Iy,e.lanes=n,e.stateNode={isHidden:!1},e}function jm(e,t,n){return e=Gn(6,e,null,t),e.lanes=n,e}function Um(e,t,n){return t=Gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _D(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=ph(0),this.expirationTimes=ph(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ph(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zm(e,t,n,r,i,a,o,s,u){return e=new _D(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Gn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},em(a),e}function CD(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ho,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Tb(e){if(!e)return Ii;e=e._reactInternals;e:{if(Sa(e)!==e||e.tag!==1)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(X(171))}if(e.tag===1){var n=e.type;if(pn(n))return Qx(e,n,t)}return t}function _b(e,t,n,r,i,a,o,s,u){return e=zm(n,r,!0,e,i,a,o,s,u),e.context=Tb(null),n=e.current,r=sn(),i=Bi(n),a=Xr(r,i),a.callback=t??null,Di(n,a,i),e.current.lanes=i,Qs(e,i,r),gn(e,r),e}function cd(e,t,n,r){var i=t.current,a=sn(),o=Bi(i);return n=Tb(n),t.context===null?t.context=n:t.pendingContext=n,t=Xr(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Di(i,t,o),e!==null&&(dr(e,i,o,a),zc(e,i,o)),o}function dd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Cb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hm(e,t){Cb(e,t),(e=e.alternate)&&Cb(e,t)}function SD(){return null}var Sb=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vm(e){this._internalRoot=e}fd.prototype.render=Vm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(X(409));cd(e,t,null,null)},fd.prototype.unmount=Vm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;La(function(){cd(null,e,null,null)}),t[Wr]=null}};function fd(e){this._internalRoot=e}fd.prototype.unstable_scheduleHydration=function(e){if(e){var t=lx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Si.length&&t!==0&&t<Si[n].priority;n++);Si.splice(n,0,e),n===0&&fx(e)}};function $m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kb(){}function kD(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var l=dd(o);a.call(l)}}var o=_b(t,r,e,0,null,!1,!1,"",kb);return e._reactRootContainer=o,e[Wr]=o.current,du(e.nodeType===8?e.parentNode:e),La(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=dd(u);s.call(l)}}var u=zm(e,0,!1,null,null,!1,!1,"",kb);return e._reactRootContainer=u,e[Wr]=u.current,du(e.nodeType===8?e.parentNode:e),La(function(){cd(t,u,n,r)}),u}function hd(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var u=dd(o);s.call(u)}}cd(t,o,e,i)}else o=kD(n,t,e,i,r);return dd(o)}sx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xs(t.pendingLanes);n!==0&&(hh(t,n|1),gn(t,vt()),!(Fe&6)&&(jo=vt()+500,Pi()))}break;case 13:La(function(){var r=Kr(e,1);if(r!==null){var i=sn();dr(r,e,1,i)}}),Hm(e,1)}},mh=function(e){if(e.tag===13){var t=Kr(e,134217728);if(t!==null){var n=sn();dr(t,e,134217728,n)}Hm(e,134217728)}},ux=function(e){if(e.tag===13){var t=Bi(e),n=Kr(e,t);if(n!==null){var r=sn();dr(n,e,t,r)}Hm(e,t)}},lx=function(){return $e},cx=function(e,t){var n=$e;try{return $e=e,t()}finally{$e=n}},sh=function(e,t,n){switch(t){case"input":if(Jp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ic(r);if(!i)throw Error(X(90));Dy(r),Jp(r,i)}}}break;case"textarea":jy(e,n);break;case"select":t=n.value,t!=null&&go(e,!!n.multiple,t,!1)}},qy=Lm,Ky=La;var AD={usingClientEntryPoint:!1,Events:[hu,So,Ic,Yy,Gy,Lm]},Au={findFiberByHostInstance:ka,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ND={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$r.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jy(e),e===null?null:e.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||SD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!md.isDisabled&&md.supportsFiber)try{fc=md.inject(ND),Tr=md}catch{}}_n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AD,_n.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$m(t))throw Error(X(200));return CD(e,t,null,n)},_n.createRoot=function(e,t){if(!$m(e))throw Error(X(299));var n=!1,r="",i=Sb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zm(e,1,!1,null,null,n,!1,r,i),e[Wr]=t.current,du(e.nodeType===8?e.parentNode:e),new Vm(t)},_n.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(X(188)):(e=Object.keys(e).join(","),Error(X(268,e)));return e=Jy(t),e=e===null?null:e.stateNode,e},_n.flushSync=function(e){return La(e)},_n.hydrate=function(e,t,n){if(!pd(t))throw Error(X(200));return hd(null,e,t,!0,n)},_n.hydrateRoot=function(e,t,n){if(!$m(e))throw Error(X(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=Sb;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=_b(t,null,e,1,n??null,i,!1,a,o),e[Wr]=t.current,du(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new fd(t)},_n.render=function(e,t,n){if(!pd(t))throw Error(X(200));return hd(null,e,t,!1,n)},_n.unmountComponentAtNode=function(e){if(!pd(e))throw Error(X(40));return e._reactRootContainer?(La(function(){hd(null,null,e,!1,function(){e._reactRootContainer=null,e[Wr]=null})}),!0):!1},_n.unstable_batchedUpdates=Lm,_n.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pd(n))throw Error(X(200));if(e==null||e._reactInternals===void 0)throw Error(X(38));return hd(e,t,n,!1,r)},_n.version="18.3.1-next-f1338f8080-20240426";function Ab(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ab)}catch(e){console.error(e)}}Ab(),Ty.exports=_n;var ja=Ty.exports,Nb,Rb=ja;Nb=Rb.createRoot,Rb.hydrateRoot;const Ib="3.0.52";function gd(e){"@babel/helpers - typeof";return gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gd(e)}var RD=/^\s+/,ID=/\s+$/;function ce(e,t){if(e=e||"",t=t||{},e instanceof ce)return e;if(!(this instanceof ce))return new ce(e,t);var n=PD(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}ce.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=Fb(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ob(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ob(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Pb(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Pb(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Db(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return MD(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(rt(this._r,255)*100)+"%",g:Math.round(rt(this._g,255)*100)+"%",b:Math.round(rt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(rt(this._r,255)*100)+"%, "+Math.round(rt(this._g,255)*100)+"%, "+Math.round(rt(this._b,255)*100)+"%)":"rgba("+Math.round(rt(this._r,255)*100)+"%, "+Math.round(rt(this._g,255)*100)+"%, "+Math.round(rt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:qD[Db(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Lb(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=ce(t);r="#"+Lb(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ce(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(UD,arguments)},brighten:function(){return this._applyModification(zD,arguments)},darken:function(){return this._applyModification(HD,arguments)},desaturate:function(){return this._applyModification(FD,arguments)},saturate:function(){return this._applyModification(BD,arguments)},greyscale:function(){return this._applyModification(jD,arguments)},spin:function(){return this._applyModification(VD,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(YD,arguments)},complement:function(){return this._applyCombination($D,arguments)},monochromatic:function(){return this._applyCombination(GD,arguments)},splitcomplement:function(){return this._applyCombination(WD,arguments)},triad:function(){return this._applyCombination(Mb,[3])},tetrad:function(){return this._applyCombination(Mb,[4])}},ce.fromRatio=function(e,t){if(gd(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Nu(e[r]));e=n}return ce(e,t)};function PD(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=ZD(e)),gd(e)=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=OD(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jr(e.h)&&Jr(e.s)&&Jr(e.v)?(r=Nu(e.s),i=Nu(e.v),t=LD(e.h,r,i),o=!0,s="hsv"):Jr(e.h)&&Jr(e.s)&&Jr(e.l)&&(r=Nu(e.s),a=Nu(e.l),t=DD(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Fb(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function OD(e,t,n){return{r:rt(e,255)*255,g:rt(t,255)*255,b:rt(n,255)*255}}function Pb(e,t,n){e=rt(e,255),t=rt(t,255),n=rt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var u=r-i;switch(o=s>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,l:s}}function DD(e,t,n){var r,i,a;e=rt(e,360),t=rt(t,100),n=rt(n,100);function o(l,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(c-l)*6*d:d<1/2?c:d<2/3?l+(c-l)*(2/3-d)*6:l}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Ob(e,t,n){e=rt(e,255),t=rt(t,255),n=rt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,u=r-i;if(o=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,v:s}}function LD(e,t,n){e=rt(e,360)*6,t=rt(t,100),n=rt(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6,l=[n,o,a,a,s,n][u],c=[s,n,n,o,a,a][u],d=[a,a,s,n,n,o][u];return{r:l*255,g:c*255,b:d*255}}function Db(e,t,n,r){var i=[fr(Math.round(e).toString(16)),fr(Math.round(t).toString(16)),fr(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function MD(e,t,n,r,i){var a=[fr(Math.round(e).toString(16)),fr(Math.round(t).toString(16)),fr(Math.round(n).toString(16)),fr(Bb(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Lb(e,t,n,r){var i=[fr(Bb(r)),fr(Math.round(e).toString(16)),fr(Math.round(t).toString(16)),fr(Math.round(n).toString(16))];return i.join("")}ce.equals=function(e,t){return!e||!t?!1:ce(e).toRgbString()==ce(t).toRgbString()},ce.random=function(){return ce.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function FD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s-=t/100,n.s=vd(n.s),ce(n)}function BD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s+=t/100,n.s=vd(n.s),ce(n)}function jD(e){return ce(e).desaturate(100)}function UD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l+=t/100,n.l=vd(n.l),ce(n)}function zD(e,t){t=t===0?0:t||10;var n=ce(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),ce(n)}function HD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l-=t/100,n.l=vd(n.l),ce(n)}function VD(e,t){var n=ce(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,ce(n)}function $D(e){var t=ce(e).toHsl();return t.h=(t.h+180)%360,ce(t)}function Mb(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ce(e).toHsl(),r=[ce(e)],i=360/t,a=1;a<t;a++)r.push(ce({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function WD(e){var t=ce(e).toHsl(),n=t.h;return[ce(e),ce({h:(n+72)%360,s:t.s,l:t.l}),ce({h:(n+216)%360,s:t.s,l:t.l})]}function YD(e,t,n){t=t||6,n=n||30;var r=ce(e).toHsl(),i=360/n,a=[ce(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(ce(r));return a}function GD(e,t){t=t||6;for(var n=ce(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(ce({h:r,s:i,v:a})),a=(a+s)%1;return o}ce.mix=function(e,t,n){n=n===0?0:n||50;var r=ce(e).toRgb(),i=ce(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return ce(o)},ce.readability=function(e,t){var n=ce(e),r=ce(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ce.isReadable=function(e,t,n){var r=ce.readability(e,t),i,a;switch(a=!1,i=JD(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},ce.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,u;n=n||{},o=n.includeFallbackColors,s=n.level,u=n.size;for(var l=0;l<t.length;l++)a=ce.readability(e,t[l]),a>i&&(i=a,r=ce(t[l]));return ce.isReadable(e,r,{level:s,size:u})||!o?r:(n.includeFallbackColors=!1,ce.mostReadable(e,["#fff","#000"],n))};var Wm=ce.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qD=ce.hexNames=KD(Wm);function KD(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Fb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rt(e,t){XD(e)&&(e="100%");var n=QD(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function vd(e){return Math.min(1,Math.max(0,e))}function Rn(e){return parseInt(e,16)}function XD(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function QD(e){return typeof e=="string"&&e.indexOf("%")!=-1}function fr(e){return e.length==1?"0"+e:""+e}function Nu(e){return e<=1&&(e=e*100+"%"),e}function Bb(e){return Math.round(parseFloat(e)*255).toString(16)}function jb(e){return Rn(e)/255}var pr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Jr(e){return!!pr.CSS_UNIT.exec(e)}function ZD(e){e=e.replace(RD,"").replace(ID,"").toLowerCase();var t=!1;if(Wm[e])e=Wm[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=pr.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(e))?{r:Rn(n[1]),g:Rn(n[2]),b:Rn(n[3]),a:jb(n[4]),format:t?"name":"hex8"}:(n=pr.hex6.exec(e))?{r:Rn(n[1]),g:Rn(n[2]),b:Rn(n[3]),format:t?"name":"hex"}:(n=pr.hex4.exec(e))?{r:Rn(n[1]+""+n[1]),g:Rn(n[2]+""+n[2]),b:Rn(n[3]+""+n[3]),a:jb(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=pr.hex3.exec(e))?{r:Rn(n[1]+""+n[1]),g:Rn(n[2]+""+n[2]),b:Rn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function JD(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const e6=350,Ub=400,zb=600,Ym={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},Hb=({primary:e="hsl(0, 0%, 0%)"})=>{const t=ce(e).toHsl(),n=ce(e).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${t.h} ${t.s*100}% ${t.l*100}%`,"--opencx-primary-foreground":n,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%"}};function t6(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))})}function Ru(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gm=e=>Array.isArray(e);function Vb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Iu(e){return typeof e=="string"||Array.isArray(e)}function $b(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qm(e,t,n,r){if(typeof t=="function"){const[i,a]=$b(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=$b(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function yd(e,t,n){const r=e.getProps();return qm(r,t,n!==void 0?n:r.custom,e)}const Km=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xm=["initial",...Km],Pu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zi=new Set(Pu),ei=e=>e*1e3,ti=e=>e/1e3,n6={type:"spring",stiffness:500,damping:25,restSpeed:10},r6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i6={type:"keyframes",duration:.8},a6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o6=(e,{keyframes:t})=>t.length>2?i6:zi.has(e)?e.startsWith("scale")?r6(t[1]):n6:a6;function Qm(e,t){return e?e[t]||e.default||e:void 0}const s6={skipAnimations:!1,useManualTiming:!1},u6=e=>e!==null;function xd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(u6),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const qt=e=>e;function l6(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(l){a.has(l)&&(u.schedule(l),e()),l(o)}const u={schedule:(l,c=!1,d=!1)=>{const h=d&&r?t:n;return c&&a.add(l),h.has(l)||h.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(o=l,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(s),r=!1,i&&(i=!1,u.process(l))}};return u}const wd=["read","resolveKeyframes","update","preRender","render","postRender"],c6=40;function Wb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=wd.reduce((g,x)=>(g[x]=l6(a),g),{}),{read:s,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=o,h=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,c6),1),i.timestamp=g,i.isProcessing=!0,s.process(i),u.process(i),l.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},m=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:wd.reduce((g,x)=>{const w=o[x];return g[x]=(T,C=!1,_=!1)=>(n||m(),w.schedule(T,C,_)),g},{}),cancel:g=>{for(let x=0;x<wd.length;x++)o[wd[x]].cancel(g)},state:i,steps:o}}const{schedule:Ge,cancel:Hi,state:Ut,steps:Zm}=Wb(typeof requestAnimationFrame<"u"?requestAnimationFrame:qt,!0),Yb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d6=1e-7,f6=12;function p6(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Yb(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>d6&&++s<f6);return o}function Ou(e,t,n,r){if(e===t&&n===r)return qt;const i=a=>p6(a,0,1,e,n);return a=>a===0||a===1?a:Yb(i(a),t,r)}const Gb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qb=e=>t=>1-e(1-t),Kb=Ou(.33,1.53,.69,.99),Jm=qb(Kb),Xb=Gb(Jm),Qb=e=>(e*=2)<1?.5*Jm(e):.5*(2-Math.pow(2,-10*(e-1))),eg=e=>1-Math.sin(Math.acos(e)),Zb=qb(eg),Jb=Gb(eg),eE=e=>/^0[^.\s]+$/u.test(e);function h6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eE(e):!0}let tg=qt;const tE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),nE=e=>t=>typeof t=="string"&&t.startsWith(e),rE=nE("--"),m6=nE("var(--"),ng=e=>m6(e)?g6.test(e.split("/*")[0].trim()):!1,g6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,v6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function y6(e){const t=v6.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function iE(e,t,n=1){const[r,i]=y6(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return tE(o)?parseFloat(o):o}return ng(i)?iE(i,t,n+1):i}const Vi=(e,t,n)=>n>t?t:n<e?e:n,zo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Du={...zo,transform:e=>Vi(0,1,e)},bd={...zo,default:1},Lu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$i=Lu("deg"),Ar=Lu("%"),me=Lu("px"),x6=Lu("vh"),w6=Lu("vw"),aE={...Ar,parse:e=>Ar.parse(e)/100,transform:e=>Ar.transform(e*100)},b6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oE=e=>e===zo||e===me,sE=(e,t)=>parseFloat(e.split(", ")[t]),uE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return sE(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?sE(a[1],e):0}},E6=new Set(["x","y","z"]),T6=Pu.filter(e=>!E6.has(e));function _6(e){const t=[];return T6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ho={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:uE(4,13),y:uE(5,14)};Ho.translateX=Ho.x,Ho.translateY=Ho.y;const lE=e=>t=>t.test(e),cE=[zo,me,Ar,$i,w6,x6,{test:e=>e==="auto",parse:e=>e}],dE=e=>cE.find(lE(e)),Ua=new Set;let rg=!1,ig=!1;function fE(){if(ig){const e=Array.from(Ua).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=_6(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(([a,o])=>{var s;(s=r.getValue(a))===null||s===void 0||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ig=!1,rg=!1,Ua.forEach(e=>e.complete()),Ua.clear()}function pE(){Ua.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ig=!0)})}function C6(){pE(),fE()}class ag{constructor(t,n,r,i,a,o=!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=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ua.add(this),rg||(rg=!0,Ge.read(pE),Ge.resolveKeyframes(fE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ua.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ua.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Mu=e=>Math.round(e*1e5)/1e5,og=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function S6(e){return e==null}const k6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sg=(e,t)=>n=>!!(typeof n=="string"&&k6.test(n)&&n.startsWith(e)||t&&!S6(n)&&Object.prototype.hasOwnProperty.call(n,t)),hE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(og);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},A6=e=>Vi(0,255,e),ug={...zo,transform:e=>Math.round(A6(e))},za={test:sg("rgb","red"),parse:hE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ug.transform(e)+", "+ug.transform(t)+", "+ug.transform(n)+", "+Mu(Du.transform(r))+")"};function N6(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 lg={test:sg("#"),parse:N6,transform:za.transform},Vo={test:sg("hsl","hue"),parse:hE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ar.transform(Mu(t))+", "+Ar.transform(Mu(n))+", "+Mu(Du.transform(r))+")"},Kt={test:e=>za.test(e)||lg.test(e)||Vo.test(e),parse:e=>za.test(e)?za.parse(e):Vo.test(e)?Vo.parse(e):lg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?za.transform(e):Vo.transform(e)},R6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(og))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(R6))===null||n===void 0?void 0:n.length)||0)>0}const mE="number",gE="color",P6="var",O6="var(",vE="${}",D6=/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 Fu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(D6,u=>(Kt.test(u)?(r.color.push(a),i.push(gE),n.push(Kt.parse(u))):u.startsWith(O6)?(r.var.push(a),i.push(P6),n.push(u)):(r.number.push(a),i.push(mE),n.push(parseFloat(u))),++a,vE)).split(vE);return{values:n,split:s,indexes:r,types:i}}function yE(e){return Fu(e).values}function xE(e){const{split:t,types:n}=Fu(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===mE?a+=Mu(i[o]):s===gE?a+=Kt.transform(i[o]):a+=i[o]}return a}}const L6=e=>typeof e=="number"?0:e;function M6(e){const t=yE(e);return xE(e)(t.map(L6))}const Wi={test:I6,parse:yE,createTransformer:xE,getAnimatableNone:M6},F6=new Set(["brightness","contrast","saturate","opacity"]);function B6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(og)||[];if(!r)return e;const i=n.replace(r,"");let a=F6.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const j6=/\b([a-z-]*)\(.*?\)/gu,cg={...Wi,getAnimatableNone:e=>{const t=e.match(j6);return t?t.map(B6).join(" "):e}},U6={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},z6={rotate:$i,rotateX:$i,rotateY:$i,rotateZ:$i,scale:bd,scaleX:bd,scaleY:bd,scaleZ:bd,skew:$i,skewX:$i,skewY:$i,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Du,originX:aE,originY:aE,originZ:me},wE={...zo,transform:Math.round},dg={...U6,...z6,zIndex:wE,size:me,fillOpacity:Du,strokeOpacity:Du,numOctaves:wE},H6={...dg,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:cg,WebkitFilter:cg},fg=e=>H6[e];function bE(e,t){let n=fg(e);return n!==cg&&(n=Wi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const V6=new Set(["auto","none","0"]);function $6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!V6.has(a)&&Fu(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=bE(n,i)}class EE extends ag{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),ng(l))){const c=iE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!b6.has(r)||t.length!==2)return;const[i,a]=t,o=dE(i),s=dE(a);if(o!==s)if(oE(o)&&oE(s))for(let u=0;u<t.length;u++){const l=t[u];typeof l=="string"&&(t[u]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)h6(t[i])&&r.push(i);r.length&&$6(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ho[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=Ho[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,l])=>{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function pg(e){return typeof e=="function"}let Ed;function W6(){Ed=void 0}const Nr={now:()=>(Ed===void 0&&Nr.set(Ut.isProcessing||s6.useManualTiming?Ut.timestamp:performance.now()),Ed),set:e=>{Ed=e,queueMicrotask(W6)}},TE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wi.test(e)||e==="0")&&!e.startsWith("url("));function Y6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function G6(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=TE(i,t),s=TE(a,t);return!o||!s?!1:Y6(e)||(n==="spring"||pg(n))&&r}const q6=40;class _E{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>q6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&C6(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:s,onUpdate:u,isGenerator:l}=this.options;if(!l&&!G6(t,r,i,a))if(o)this.options.duration=0;else{u==null||u(xd(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function CE(e,t){return t?e*(1e3/t):0}const K6=5;function SE(e,t,n){const r=Math.max(t-K6,0);return CE(n-e(r),t-r)}const hg=.001,X6=.01,Q6=10,Z6=.05,J6=1;function eL({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=Vi(Z6,J6,o),e=Vi(X6,Q6,ti(e)),o<1?(i=l=>{const c=l*o,d=c*e,f=c-n,h=mg(l,o),m=Math.exp(-d);return hg-f/h*m},a=l=>{const d=l*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),y=mg(Math.pow(l,2),o);return(-i(l)+hg>0?-1:1)*((f-h)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-hg+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=nL(i,a,s);if(e=ei(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const tL=12;function nL(e,t,n){let r=n;for(let i=1;i<tL;i++)r=r-e(r)/t(r);return r}function mg(e,t){return e*Math.sqrt(1-t*t)}const rL=["duration","bounce"],iL=["stiffness","damping","mass"];function kE(e,t){return t.some(n=>e[n]!==void 0)}function aL(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!kE(e,iL)&&kE(e,rL)){const n=eL(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function AE({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=aL({...r,velocity:-ti(r.velocity||0)}),h=d||0,m=u/(2*Math.sqrt(s*l)),y=a-i,E=ti(Math.sqrt(s/l)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let x;if(m<1){const w=mg(E,m);x=T=>{const C=Math.exp(-m*E*T);return a-C*((h+m*E*y)/w*Math.sin(w*T)+y*Math.cos(w*T))}}else if(m===1)x=w=>a-Math.exp(-E*w)*(y+(h+E*y)*w);else{const w=E*Math.sqrt(m*m-1);x=T=>{const C=Math.exp(-m*E*T),_=Math.min(w*T,300);return a-C*((h+m*E*y)*Math.sinh(_)+w*y*Math.cosh(_))/w}}return{calculatedDuration:f&&c||null,next:w=>{const T=x(w);if(f)o.done=w>=c;else{let C=0;m<1&&(C=w===0?ei(h):SE(x,w,T));const _=Math.abs(C)<=n,A=Math.abs(a-T)<=t;o.done=_&&A}return o.value=o.done?a:T,o}}}function NE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=P=>s!==void 0&&P<s||u!==void 0&&P>u,m=P=>s===void 0?u:u===void 0||Math.abs(s-P)<Math.abs(u-P)?s:u;let y=n*t;const E=d+y,g=o===void 0?E:o(E);g!==E&&(y=g-d);const x=P=>-y*Math.exp(-P/r),w=P=>g+x(P),T=P=>{const H=x(P),I=w(P);f.done=Math.abs(H)<=l,f.value=f.done?g:I};let C,_;const A=P=>{h(f.value)&&(C=P,_=AE({keyframes:[f.value,m(f.value)],velocity:SE(w,P,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return A(0),{calculatedDuration:null,next:P=>{let H=!1;return!_&&C===void 0&&(H=!0,T(P),A(P)),C!==void 0&&P>=C?_.next(P-C):(!H&&T(P),f)}}}const oL=Ou(.42,0,1,1),sL=Ou(0,0,.58,1),RE=Ou(.42,0,.58,1),uL=e=>Array.isArray(e)&&typeof e[0]!="number",gg=e=>Array.isArray(e)&&typeof e[0]=="number",IE={linear:qt,easeIn:oL,easeInOut:RE,easeOut:sL,circIn:eg,circInOut:Jb,circOut:Zb,backIn:Jm,backInOut:Xb,backOut:Kb,anticipate:Qb},PE=e=>{if(gg(e)){tg(e.length===4);const[t,n,r,i]=e;return Ou(t,n,r,i)}else if(typeof e=="string")return tg(IE[e]!==void 0),IE[e];return e},lL=(e,t)=>n=>t(e(n)),ni=(...e)=>e.reduce(lL),$o=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lt=(e,t,n)=>e+(t-e)*n;function vg(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 cL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=vg(u,s,e+1/3),a=vg(u,s,e),o=vg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Td(e,t){return n=>n>0?t:e}const yg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},dL=[lg,za,Vo],fL=e=>dL.find(t=>t.test(e));function OE(e){const t=fL(e);if(!t)return!1;let n=t.parse(e);return t===Vo&&(n=cL(n)),n}const DE=(e,t)=>{const n=OE(e),r=OE(t);if(!n||!r)return Td(e,t);const i={...n};return a=>(i.red=yg(n.red,r.red,a),i.green=yg(n.green,r.green,a),i.blue=yg(n.blue,r.blue,a),i.alpha=lt(n.alpha,r.alpha,a),za.transform(i))},xg=new Set(["none","hidden"]);function pL(e,t){return xg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hL(e,t){return n=>lt(e,t,n)}function wg(e){return typeof e=="number"?hL:typeof e=="string"?ng(e)?Td:Kt.test(e)?DE:vL:Array.isArray(e)?LE:typeof e=="object"?Kt.test(e)?DE:mL:Td}function LE(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>wg(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function mL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wg(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function gL(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],s=e.indexes[o][i[o]],u=(n=e.values[s])!==null&&n!==void 0?n:0;r[a]=u,i[o]++}return r}const vL=(e,t)=>{const n=Wi.createTransformer(t),r=Fu(e),i=Fu(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?xg.has(e)&&!i.values.length||xg.has(t)&&!r.values.length?pL(e,t):ni(LE(gL(r,i),i.values),n):Td(e,t)};function ME(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lt(e,t,n):wg(e)(e,t)}function yL(e,t,n){const r=[],i=n||ME,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||qt:t;s=ni(u,s)}r.push(s)}return r}function xL(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(tg(a===t.length),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=yL(t,r,i),s=o.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=$o(e[c],e[c+1],l);return o[c](d)};return n?l=>u(Vi(e[0],e[a-1],l)):u}function wL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=$o(0,t,r);e.push(lt(n,1,i))}}function bL(e){const t=[0];return wL(t,e.length-1),t}function EL(e,t){return e.map(n=>n*t)}function TL(e,t){return e.map(()=>t||RE).splice(0,e.length-1)}function _d({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=uL(r)?r.map(PE):PE(r),a={done:!1,value:t[0]},o=EL(n&&n.length===t.length?n:bL(t),e),s=xL(o,t,{ease:Array.isArray(i)?i:TL(t,i)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}const FE=2e4;function _L(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<FE;)t+=n,r=e.next(t);return t>=FE?1/0:t}const CL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ge.update(t,!0),stop:()=>Hi(t),now:()=>Ut.isProcessing?Ut.timestamp:Nr.now()}},SL={decay:NE,inertia:NE,tween:_d,keyframes:_d,spring:AE},kL=e=>e/100;class bg extends _E{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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||ag,s=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new o(a,s,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,s=pg(n)?n:SL[n]||_d;let u,l;s!==_d&&typeof t[0]!="number"&&(u=ni(kL,ME(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});a==="mirror"&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=_L(c));const{calculatedDuration:d}=c,f=d+i,h=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}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:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return a.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:y,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/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 g=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,T=a;if(h){const P=Math.min(this.currentTime,c)/d;let H=Math.floor(P),I=P%1;!I&&P>=1&&(I=1),I===1&&H--,H=Math.min(H,h+1),!!(H%2)&&(m==="reverse"?(I=1-I,y&&(I-=y/d)):m==="mirror"&&(T=o)),w=Vi(0,1,I)*d}const C=x?{done:!1,value:u[0]}:T.next(w);s&&(C.value=s(C.value));let{done:_}=C;!x&&l!==null&&(_=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&i!==void 0&&(C.value=xd(u,this.options,i)),E&&E(C.value),A&&this.finish(),C}get duration(){const{resolved:t}=this;return t?ti(t.calculatedDuration):0}get time(){return ti(this.currentTime)}set time(t){t=ei(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=ti(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=CL,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),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 BE=new Set(["opacity","clipPath","filter","transform"]),AL=10,NL=(e,t)=>{let n="";const r=Math.max(Math.round(t/AL),2);for(let i=0;i<r;i++)n+=e($o(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Eg(e){let t;return()=>(t===void 0&&(t=e()),t)}const RL={linearEasing:void 0};function IL(e,t){const n=Eg(e);return()=>{var r;return(r=RL[t])!==null&&r!==void 0?r:n()}}const Cd=IL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function jE(e){return!!(typeof e=="function"&&Cd()||!e||typeof e=="string"&&(e in Tg||Cd())||gg(e)||Array.isArray(e)&&e.every(jE))}const Bu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bu([0,.65,.55,1]),circOut:Bu([.55,0,1,.45]),backIn:Bu([.31,.01,.66,-.59]),backOut:Bu([.33,1.53,.69,.99])};function UE(e,t){if(e)return typeof e=="function"&&Cd()?NL(e,t):gg(e)?Bu(e):Array.isArray(e)?e.map(n=>UE(n,t)||Tg.easeOut):Tg[e]}function PL(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=UE(s,i);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function zE(e,t){e.timeline=t,e.onfinish=null}const OL=Eg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Sd=10,DL=2e4;function LL(e){return pg(e.type)||e.type==="spring"||!jE(e.ease)}function ML(e,t){const n=new bg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<DL;)r=n.sample(a),i.push(r.value),a+=Sd;return{times:void 0,keyframes:i,duration:a-Sd,ease:"linear"}}const HE={anticipate:Qb,backInOut:Xb,circInOut:Jb};function FL(e){return e in HE}class VE extends _E{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new EE(a,(o,s)=>this.onKeyframesResolved(o,s),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:a,ease:o,type:s,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof o=="string"&&Cd()&&FL(o)&&(o=HE[o]),LL(this.options)){const{onComplete:f,onUpdate:h,motionValue:m,element:y,...E}=this.options,g=ML(t,E);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,a=g.times,o=g.ease,s="keyframes"}const d=PL(u.owner.current,l,t,{...this.options,duration:i,times:a,ease:o});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(zE(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(xd(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:a,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ti(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ti(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ei(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 qt;const{animation:r}=n;zE(r,t)}return qt}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:a,ease:o,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...h}=this.options,m=new bg({...h,keyframes:r,duration:i,type:a,ease:o,times:s,isGenerator:!0}),y=ei(this.time);l.setWithVelocity(m.sample(y-Sd).value,m.sample(y).value,Sd)}const{onStop:u}=this.options;u&&u(),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:a,damping:o,type:s}=t;return OL()&&r&&BE.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&a!=="mirror"&&o!==0&&s!=="inertia"}}const BL=Eg(()=>window.ScrollTimeline!==void 0);class jL{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>BL()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function UL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const _g=(e,t,n,r={},i,a)=>o=>{const s=Qm(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ei(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-l,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};UL(s)||(c={...c,...o6(e,c)}),c.duration&&(c.duration=ei(c.duration)),c.repeatDelay&&(c.repeatDelay=ei(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){const f=xd(c.keyframes,s);if(f!==void 0)return Ge.update(()=>{c.onUpdate(f),c.onComplete()}),new jL([])}return!a&&VE.supports(c)?new VE(c):new bg(c)},zL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),HL=e=>Gm(e)?e[e.length-1]||0:e;function Cg(e,t){e.indexOf(t)===-1&&e.push(t)}function Sg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class kg{constructor(){this.subscriptions=[]}add(t){return Cg(this.subscriptions,t),()=>Sg(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 a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $E=30,VL=e=>!isNaN(parseFloat(e));class $L{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Nr.now();this.updatedAt!==a&&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=Nr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=VL(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 kg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ge.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=Nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$E)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$E);return CE(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 ju(e,t){return new $L(e,t)}function WL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ju(n))}function YL(e,t){const n=yd(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=HL(a[o]);WL(e,o,s)}}const kd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),WE="data-"+kd("framerAppearId");function YE(e){return e.props[WE]}const Xt=e=>!!(e&&e.getVelocity);function GL(e){return!!(Xt(e)&&e.add)}function Ag(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(GL(n))return n.add(t)}function qL({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function GE(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(o=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),h=u[d];if(h===void 0||c&&qL(c,d))continue;const m={delay:n,...Qm(o||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=YE(e);if(g){const x=window.MotionHandoffAnimation(g,d,Ge);x!==null&&(m.startTime=x,y=!0)}}Ag(e,d),f.start(_g(d,f,h,e.shouldReduceMotion&&zi.has(d)?{type:!1}:m,e,y));const E=f.animation;E&&l.push(E)}return s&&Promise.all(l).then(()=>{Ge.update(()=>{s&&YL(e,s)})}),l}function Ng(e,t,n={}){var r;const i=yd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(GE(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=a;return KL(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[l,c]=u==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function KL(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>s-l*r;return Array.from(e.variantChildren).sort(XL).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(Ng(l,t,{...a,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function XL(e,t){return e.sortNodePosition(t)}function QL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Ng(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Ng(e,t,n);else{const i=typeof t=="function"?yd(e,t,n.custom):t;r=Promise.all(GE(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ZL=Xm.length;function qE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ZL;n++){const r=Xm[n],i=e.props[r];(Iu(i)||i===!1)&&(t[r]=i)}return t}const JL=[...Km].reverse(),e4=Km.length;function t4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>QL(e,n,r)))}function n4(e){let t=t4(e),n=KE(),r=!0;const i=u=>(l,c)=>{var d;const f=yd(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:m,...y}=f;l={...l,...y,...m}}return l};function a(u){t=u(e)}function o(u){const{props:l}=e,c=qE(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let E=0;E<e4;E++){const g=JL[E],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=Iu(w),C=g===u?x.isActive:null;C===!1&&(m=E);let _=w===c[g]&&w!==l[g]&&T;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),x.protectedKeys={...h},!x.isActive&&C===null||!w&&!x.prevProp||Ru(w)||typeof w=="boolean")continue;const A=r4(x.prevProp,w);let P=A||g===u&&x.isActive&&!_&&T||E>m&&T,H=!1;const I=Array.isArray(w)?w:[w];let V=I.reduce(i(g),{});C===!1&&(V={});const{prevResolvedValues:z={}}=x,K={...z,...V},W=J=>{P=!0,f.has(J)&&(H=!0,f.delete(J)),x.needsAnimating[J]=!0;const F=e.getValue(J);F&&(F.liveStyle=!1)};for(const J in K){const F=V[J],B=z[J];if(h.hasOwnProperty(J))continue;let k=!1;Gm(F)&&Gm(B)?k=!Vb(F,B):k=F!==B,k?F!=null?W(J):f.add(J):F!==void 0&&f.has(J)?W(J):x.protectedKeys[J]=!0}x.prevProp=w,x.prevResolvedValues=V,x.isActive&&(h={...h,...V}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(_&&A)||H)&&d.push(...I.map(J=>({animation:J,options:{type:g}})))}if(f.size){const E={};f.forEach(g=>{const x=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),E[g]=x??null}),d.push({animation:E})}let y=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function s(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(u,l)}),n[u].isActive=l;const d=o(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=KE(),r=!0}}}function r4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vb(t,e):!1}function Ha(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function KE(){return{animate:Ha(!0),whileInView:Ha(),whileHover:Ha(),whileTap:Ha(),whileDrag:Ha(),whileFocus:Ha(),exit:Ha()}}class Yi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class i4 extends Yi{constructor(t){super(t),t.animationState||(t.animationState=n4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ru(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 a4=0;class o4 extends Yi{constructor(){super(...arguments),this.id=a4++}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 s4={animation:{Feature:i4},exit:{Feature:o4}},XE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ad(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const u4=e=>t=>XE(t)&&e(t,Ad(t));function ri(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ii(e,t,n,r){return ri(e,t,u4(n),r)}const QE=(e,t)=>Math.abs(e-t);function l4(e,t){const n=QE(e.x,t.x),r=QE(e.y,t.y);return Math.sqrt(n**2+r**2)}class ZE{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!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 d=Ig(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=l4(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:y}=Ut;this.history.push({...m,timestamp:y});const{onStart:E,onMove:g}=this.handlers;f||(E&&E(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Rg(f,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Ig(d.type==="pointercancel"?this.lastMoveEventInfo:Rg(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,E),m&&m(d,E)},!XE(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Ad(t),s=Rg(o,this.transformPagePoint),{point:u}=s,{timestamp:l}=Ut;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Ig(s,this.history)),this.removeListeners=ni(ii(this.contextWindow,"pointermove",this.handlePointerMove),ii(this.contextWindow,"pointerup",this.handlePointerUp),ii(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Hi(this.updatePoint)}}function Rg(e,t){return t?{point:t(e.point)}:e}function JE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ig({point:e},t){return{point:e,delta:JE(e,eT(t)),offset:JE(e,c4(t)),velocity:d4(t,.1)}}function c4(e){return e[0]}function eT(e){return e[e.length-1]}function d4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=eT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ei(t)));)n--;if(!r)return{x:0,y:0};const a=ti(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function tT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const nT=tT("dragHorizontal"),rT=tT("dragVertical");function iT(e){let t=!1;if(e==="y")t=rT();else if(e==="x")t=nT();else{const n=nT(),r=rT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function aT(){const e=iT(!0);return e?(e(),!1):!0}function Wo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const oT=1e-4,f4=1-oT,p4=1+oT,sT=.01,h4=0-sT,m4=0+sT;function In(e){return e.max-e.min}function g4(e,t,n){return Math.abs(e-t)<=n}function uT(e,t,n,r=.5){e.origin=r,e.originPoint=lt(t.min,t.max,e.origin),e.scale=In(n)/In(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=f4&&e.scale<=p4||isNaN(e.scale))&&(e.scale=1),(e.translate>=h4&&e.translate<=m4||isNaN(e.translate))&&(e.translate=0)}function Uu(e,t,n,r){uT(e.x,t.x,n.x,r?r.originX:void 0),uT(e.y,t.y,n.y,r?r.originY:void 0)}function lT(e,t,n){e.min=n.min+t.min,e.max=e.min+In(t)}function v4(e,t,n){lT(e.x,t.x,n.x),lT(e.y,t.y,n.y)}function cT(e,t,n){e.min=t.min-n.min,e.max=e.min+In(t)}function zu(e,t,n){cT(e.x,t.x,n.x),cT(e.y,t.y,n.y)}function y4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?lt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?lt(n,e,r.max):Math.min(e,n)),e}function dT(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 x4(e,{top:t,left:n,bottom:r,right:i}){return{x:dT(e.x,n,i),y:dT(e.y,t,r)}}function fT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function w4(e,t){return{x:fT(e.x,t.x),y:fT(e.y,t.y)}}function b4(e,t){let n=.5;const r=In(e),i=In(t);return i>r?n=$o(t.min,t.max-r,e.min):r>i&&(n=$o(e.min,e.max-i,t.min)),Vi(0,1,n)}function E4(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 Pg=.35;function T4(e=Pg){return e===!1?e=0:e===!0&&(e=Pg),{x:pT(e,"left","right"),y:pT(e,"top","bottom")}}function pT(e,t,n){return{min:hT(e,t),max:hT(e,n)}}function hT(e,t){return typeof e=="number"?e:e[t]||0}const mT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yo=()=>({x:mT(),y:mT()}),gT=()=>({min:0,max:0}),yt=()=>({x:gT(),y:gT()});function qn(e){return[e("x"),e("y")]}function vT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C4(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 Og(e){return e===void 0||e===1}function Dg({scale:e,scaleX:t,scaleY:n}){return!Og(e)||!Og(t)||!Og(n)}function Va(e){return Dg(e)||yT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yT(e){return xT(e.x)||xT(e.y)}function xT(e){return e&&e!=="0%"}function Nd(e,t,n){const r=e-n,i=t*r;return n+i}function wT(e,t,n,r,i){return i!==void 0&&(e=Nd(e,i,r)),Nd(e,n,r)+t}function Lg(e,t=0,n=1,r,i){e.min=wT(e.min,t,n,r,i),e.max=wT(e.max,t,n,r,i)}function bT(e,{x:t,y:n}){Lg(e.x,t.translate,t.scale,t.originPoint),Lg(e.y,n.translate,n.scale,n.originPoint)}const ET=.999999999999,TT=1.0000000000001;function S4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&qo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,bT(e,o)),r&&Va(a.latestValues)&&qo(e,a.latestValues))}t.x<TT&&t.x>ET&&(t.x=1),t.y<TT&&t.y>ET&&(t.y=1)}function Go(e,t){e.min=e.min+t,e.max=e.max+t}function _T(e,t,n,r,i=.5){const a=lt(e.min,e.max,i);Lg(e,t,n,a,r)}function qo(e,t){_T(e.x,t.x,t.scaleX,t.scale,t.originX),_T(e.y,t.y,t.scaleY,t.scale,t.originY)}function CT(e,t){return vT(C4(e.getBoundingClientRect(),t))}function k4(e,t,n){const r=CT(e,n),{scroll:i}=t;return i&&(Go(r.x,i.offset.x),Go(r.y,i.offset.y)),r}const ST=({current:e})=>e?e.ownerDocument.defaultView:null,A4=new WeakMap;class N4{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ad(c,"page").point)},a=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:m}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iT(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qn(E=>{let g=this.getAxisMotionValue(E).get()||0;if(Ar.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[E];w&&(g=In(w)*(parseFloat(g)/100))}}this.originPoint[E]=g}),m&&Ge.postRender(()=>m(c,d)),Ag(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:E}=d;if(h&&this.currentDirection===null){this.currentDirection=R4(E),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,E),this.updateAxis("y",d.point,E),this.visualElement.render(),y&&y(c,d)},s=(c,d)=>this.stop(c,d),u=()=>qn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ZE(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ST(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ge.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Rd(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=y4(o,this.constraints[t],this.elastic[t])),a.set(o)}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,a=this.constraints;n&&Wo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=x4(i.layoutBox,n):this.constraints=!1,this.elastic=T4(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&qn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=E4(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Wo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=k4(r,i.root,this.visualElement.getTransformPagePoint());let o=w4(i.layout.layoutBox,a);if(n){const s=n(_4(o));this.hasMutatedConstraints=!!s,s&&(o=vT(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=qn(c=>{if(!Rd(c,n,this.currentDirection))return;let d=u&&u[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ag(this.visualElement,t),r.start(_g(t,r,0,n,this.visualElement,!1))}stopAnimation(){qn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qn(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){qn(n=>{const{drag:r}=this.getProps();if(!Rd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-lt(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Wo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};qn(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const u=s.get();i[o]=b4({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qn(o=>{if(!Rd(o,t,null))return;const s=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];s.set(lt(u,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;A4.set(this.visualElement,this);const t=this.visualElement.current,n=ii(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Wo(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ge.read(r);const o=ri(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(qn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=Pg,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Rd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function R4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class I4 extends Yi{constructor(t){super(t),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new N4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kT=e=>(t,n)=>{e&&Ge.postRender(()=>e(t,n))};class P4 extends Yi{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(t){this.session=new ZE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ST(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kT(t),onStart:kT(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Ge.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=ii(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 Id=v.createContext(null);function O4(){const e=v.useContext(Id);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();v.useEffect(()=>r(i),[]);const a=v.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,a]:[!0]}const Mg=v.createContext({}),AT=v.createContext({}),Pd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function NT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=NT(e,t.target.x),r=NT(e,t.target.y);return`${n}% ${r}%`}},D4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Wi.parse(e);if(i.length>5)return r;const a=Wi.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=u;const l=lt(s,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),a(i)}},Od={};function L4(e){Object.assign(Od,e)}const{schedule:Fg,cancel:Ote}=Wb(queueMicrotask,!1);class M4 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;L4(F4),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Pd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ge.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Fg.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 RT(e){const[t,n]=O4(),r=v.useContext(Mg);return b.jsx(M4,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(AT),isPresent:t,safeToRemove:n})}const F4={borderRadius:{...Hu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hu,borderTopRightRadius:Hu,borderBottomLeftRadius:Hu,borderBottomRightRadius:Hu,boxShadow:D4},IT=["TopLeft","TopRight","BottomLeft","BottomRight"],B4=IT.length,PT=e=>typeof e=="string"?parseFloat(e):e,OT=e=>typeof e=="number"||me.test(e);function j4(e,t,n,r,i,a){i?(e.opacity=lt(0,n.opacity!==void 0?n.opacity:1,U4(r)),e.opacityExit=lt(t.opacity!==void 0?t.opacity:1,0,z4(r))):a&&(e.opacity=lt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<B4;o++){const s=`border${IT[o]}Radius`;let u=DT(t,s),l=DT(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||OT(u)===OT(l)?(e[s]=Math.max(lt(PT(u),PT(l),r),0),(Ar.test(l)||Ar.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||n.rotate)&&(e.rotate=lt(t.rotate||0,n.rotate||0,r))}function DT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const U4=LT(0,.5,Zb),z4=LT(.5,.95,qt);function LT(e,t,n){return r=>r<e?0:r>t?1:n($o(e,t,r))}function MT(e,t){e.min=t.min,e.max=t.max}function Kn(e,t){MT(e.x,t.x),MT(e.y,t.y)}function FT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function BT(e,t,n,r,i){return e-=t,e=Nd(e,1/n,r),i!==void 0&&(e=Nd(e,1/i,r)),e}function H4(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ar.test(t)&&(t=parseFloat(t),t=lt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=lt(a.min,a.max,r);e===a&&(s-=t),e.min=BT(e.min,t,n,s,i),e.max=BT(e.max,t,n,s,i)}function jT(e,t,[n,r,i],a,o){H4(e,t[n],t[r],t[i],t.scale,a,o)}const V4=["x","scaleX","originX"],$4=["y","scaleY","originY"];function UT(e,t,n,r){jT(e.x,t,V4,n?n.x:void 0,r?r.x:void 0),jT(e.y,t,$4,n?n.y:void 0,r?r.y:void 0)}function zT(e){return e.translate===0&&e.scale===1}function HT(e){return zT(e.x)&&zT(e.y)}function VT(e,t){return e.min===t.min&&e.max===t.max}function W4(e,t){return VT(e.x,t.x)&&VT(e.y,t.y)}function $T(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function WT(e,t){return $T(e.x,t.x)&&$T(e.y,t.y)}function YT(e){return In(e.x)/In(e.y)}function GT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Y4{constructor(){this.members=[]}add(t){Cg(this.members,t),t.scheduleRender()}remove(t){if(Sg(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 a=this.members[i];if(a.isPresent!==!1){r=a;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 G4(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const q4=(e,t)=>e.depth-t.depth;class K4{constructor(){this.children=[],this.isDirty=!1}add(t){Cg(this.children,t),this.isDirty=!0}remove(t){Sg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q4),this.isDirty=!1,this.children.forEach(t)}}function Dd(e){const t=Xt(e)?e.get():e;return zL(t)?t.toValue():t}function X4(e,t){const n=Nr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Hi(r),e(a-t))};return Ge.read(r,!0),()=>Hi(r)}function Q4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Z4(e,t,n){const r=Xt(e)?e:ju(e);return r.start(_g("",r,t,n)),r.animation}const $a={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vu=typeof window<"u"&&window.MotionDebug!==void 0,Bg=["","X","Y","Z"],J4={visibility:"hidden"},qT=1e3;let eM=0;function jg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function KT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=YE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ge,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&KT(r)}function XT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=eM++,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,Vu&&($a.totalNodes=$a.resolvedTargetDeltas=$a.recalculatedProjection=0),this.nodes.forEach(rM),this.nodes.forEach(uM),this.nodes.forEach(lM),this.nodes.forEach(iM),Vu&&window.MotionDebug.record($a)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new K4)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new kg),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const u=this.eventHandlers.get(o);u&&u.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Q4(o),this.instance=o;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=X4(f,250),Pd.hasAnimatedSinceResize&&(Pd.hasAnimatedSinceResize=!1,this.nodes.forEach(ZT))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||hM,{onLayoutAnimationStart:E,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!WT(this.targetLayout,m)||h,w=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const T={...Qm(y,"layout"),onPlay:E,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||ZT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Hi(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(cM),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&KT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(QT);return}this.isUpdating||this.nodes.forEach(oM),this.isUpdating=!1,this.nodes.forEach(sM),this.nodes.forEach(tM),this.nodes.forEach(nM),this.clearAllSnapshots();const s=Nr.now();Ut.delta=Vi(0,1e3/60,s-Ut.timestamp),Ut.timestamp=s,Ut.isProcessing=!0,Zm.update.process(Ut),Zm.preRender.process(Ut),Zm.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aM),this.sharedNodes.forEach(dM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=yt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!HT(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&(s||Va(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return o&&(u=this.removeTransform(u)),mM(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:s}=this.options;if(!s)return yt();const u=s.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gM))){const{scroll:c}=this.root;c&&(Go(u.x,c.offset.x),Go(u.y,c.offset.y))}return u}removeElementScroll(o){var s;const u=yt();if(Kn(u,o),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return u;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Kn(u,o),Go(u.x,d.offset.x),Go(u.y,d.offset.y))}return u}applyTransform(o,s=!1){const u=yt();Kn(u,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&qo(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Va(c.latestValues)&&qo(u,c.latestValues)}return Va(this.latestValues)&&qo(u,this.latestValues),u}removeTransform(o){const s=yt();Kn(s,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!Va(l.latestValues))continue;Dg(l.latestValues)&&l.updateSnapshot();const c=yt(),d=l.measurePageBox();Kn(c,d),UT(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return Va(this.latestValues)&&UT(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),zu(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=yt(),this.targetWithTransforms=yt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),v4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kn(this.target,this.layout.layoutBox),bT(this.target,this.targetDelta)):Kn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),zu(this.relativeTargetOrigin,this.target,h.target),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vu&&$a.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Dg(this.parent.latestValues)||yT(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Kn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;S4(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=yt());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(FT(this.prevProjectionDelta.x,this.projectionDelta.x),FT(this.prevProjectionDelta.y,this.projectionDelta.y)),Uu(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!GT(this.projectionDelta.x,this.prevProjectionDelta.x)||!GT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Vu&&$a.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yo(),this.projectionDelta=Yo(),this.projectionDeltaWithTransform=Yo()}setAnimationOrigin(o,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=Yo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=yt(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,E=this.getStack(),g=!E||E.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(pM));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const C=T/1e3;JT(d.x,o.x,C),JT(d.y,o.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zu(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fM(this.relativeTarget,this.relativeTargetOrigin,f,C),w&&W4(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=yt()),Kn(w,this.relativeTarget)),y&&(this.animationValues=c,j4(c,l,this.latestValues,C,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Hi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{Pd.hasAnimatedSinceResize=!0,this.currentAnimation=Z4(0,qT,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=o;if(!(!s||!u||!l)){if(this!==o&&this.layout&&l&&i2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||yt();const d=In(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+d;const f=In(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+f}Kn(s,u),qo(s,c),Uu(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Y4),this.sharedNodes.get(o).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;const l={};u.z&&jg("z",o,l,this.animationValues);for(let c=0;c<Bg.length;c++)jg(`rotate${Bg[c]}`,o,l,this.animationValues),jg(`skew${Bg[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}getProjectionStyles(o){var s,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return J4;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Dd(o==null?void 0:o.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Dd(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Va(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=G4(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?l.opacity=d===this?(u=(s=f.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in Od){if(f[y]===void 0)continue;const{correct:E,applyTo:g}=Od[y],x=l.transform==="none"?f[y]:E(f[y],d);if(g){const w=g.length;for(let T=0;T<w;T++)l[g[T]]=x}else l[y]=x}return this.options.layoutId&&(l.pointerEvents=d===this?Dd(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(QT),this.root.sharedNodes.clear()}}}function tM(e){e.updateLayout()}function nM(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:a}=e.options,o=n.source!==e.layout.source;a==="size"?qn(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=In(f);f.min=r[d].min,f.max=f.min+h}):i2(a,n.layoutBox,r)&&qn(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=In(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=Yo();Uu(s,r,n.layoutBox);const u=Yo();o?Uu(u,e.applyTransform(i,!0),n.measuredBox):Uu(u,r,n.layoutBox);const l=!HT(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=yt();zu(m,n.layoutBox,f.layoutBox);const y=yt();zu(y,r,h.layoutBox),WT(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rM(e){Vu&&$a.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 iM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aM(e){e.clearSnapshot()}function QT(e){e.clearMeasurements()}function oM(e){e.isLayoutDirty=!1}function sM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uM(e){e.resolveTargetDelta()}function lM(e){e.calcProjection()}function cM(e){e.resetSkewAndRotation()}function dM(e){e.removeLeadSnapshot()}function JT(e,t,n){e.translate=lt(t.translate,0,n),e.scale=lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function e2(e,t,n,r){e.min=lt(t.min,n.min,r),e.max=lt(t.max,n.max,r)}function fM(e,t,n,r){e2(e.x,t.x,n.x,r),e2(e.y,t.y,n.y,r)}function pM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hM={duration:.45,ease:[.4,0,.1,1]},t2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n2=t2("applewebkit/")&&!t2("chrome/")?Math.round:qt;function r2(e){e.min=n2(e.min),e.max=n2(e.max)}function mM(e){r2(e.x),r2(e.y)}function i2(e,t,n){return e==="position"||e==="preserve-aspect"&&!g4(YT(t),YT(n),.2)}function gM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const vM=XT({attachResizeListener:(e,t)=>ri(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ug={current:void 0},a2=XT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ug.current){const e=new vM({});e.mount(window),e.setOptions({layoutScroll:!0}),Ug.current=e}return Ug.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yM={pan:{Feature:P4},drag:{Feature:I4,ProjectionNode:a2,MeasureLayout:RT}};function o2(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(a,o)=>{if(a.pointerType==="touch"||aT())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const u=s[r];u&&Ge.postRender(()=>u(a,o))};return ii(e.current,n,i,{passive:!e.getProps()[r]})}class xM extends Yi{mount(){this.unmount=ni(o2(this.node,!0),o2(this.node,!1))}unmount(){}}class wM extends Yi{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=ni(ri(this.node.current,"focus",()=>this.onFocus()),ri(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const s2=(e,t)=>t?e===t?!0:s2(e,t.parentElement):!1;function zg(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ad(n))}class bM extends Yi{constructor(){super(...arguments),this.removeStartListeners=qt,this.removeEndListeners=qt,this.removeAccessibleListeners=qt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),a=ii(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!s2(this.node.current,s.target)?c:l;f&&Ge.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),o=ii(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ni(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||zg("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ge.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=ri(this.node.current,"keyup",o),zg("down",(s,u)=>{this.startPress(s,u)})},n=ri(this.node.current,"keydown",t),r=()=>{this.isPressing&&zg("cancel",(a,o)=>this.cancelPress(a,o))},i=ri(this.node.current,"blur",r);this.removeAccessibleListeners=ni(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ge.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!aT()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ge.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ii(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ri(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ni(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Hg=new WeakMap,Vg=new WeakMap,EM=e=>{const t=Hg.get(e.target);t&&t(e)},TM=e=>{e.forEach(EM)};function _M({root:e,...t}){const n=e||document;Vg.has(n)||Vg.set(n,{});const r=Vg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TM,{root:e,...t})),r[i]}function CM(e,t,n){const r=_M(t);return Hg.set(e,n),r.observe(e),()=>{Hg.delete(e),r.unobserve(e)}}const SM={some:0,all:1};class kM extends Yi{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:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:SM[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(u)};return CM(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AM(t,n))&&this.startObserver()}unmount(){}}function AM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const NM={inView:{Feature:kM},tap:{Feature:bM},focus:{Feature:wM},hover:{Feature:xM}},RM={layout:{ProjectionNode:a2,MeasureLayout:RT}},$g=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ld=v.createContext({}),Wg=typeof window<"u",u2=Wg?v.useLayoutEffect:v.useEffect,l2=v.createContext({strict:!1});function IM(e,t,n,r,i){var a,o;const{visualElement:s}=v.useContext(Ld),u=v.useContext(l2),l=v.useContext(Id),c=v.useContext($g).reducedMotion,d=v.useRef();r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=v.useContext(AT);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&PM(d.current,n,i,h),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[WE],y=v.useRef(!!m&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return u2(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),Fg.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)===null||E===void 0||E.call(window,m)}),y.current=!1))}),f}function PM(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:c2(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Wo(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function c2(e){if(e)return e.options.allowProjection!==!1?e.projection:c2(e.parent)}function OM(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Wo(n)&&(n.current=r))},[t])}function Md(e){return Ru(e.animate)||Xm.some(t=>Iu(e[t]))}function d2(e){return!!(Md(e)||e.variants)}function DM(e,t){if(Md(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Iu(n)?n:void 0,animate:Iu(r)?r:void 0}}return e.inherit!==!1?t:{}}function LM(e){const{initial:t,animate:n}=DM(e,v.useContext(Ld));return v.useMemo(()=>({initial:t,animate:n}),[f2(t),f2(n)])}function f2(e){return Array.isArray(e)?e.join(" "):e}const p2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ko={};for(const e in p2)Ko[e]={isEnabled:t=>p2[e].some(n=>!!t[n])};function MM(e){for(const t in e)Ko[t]={...Ko[t],...e[t]}}const FM=Symbol.for("motionComponentSymbol");function BM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&MM(e);function a(s,u){let l;const c={...v.useContext($g),...s,layoutId:jM(s)},{isStatic:d}=c,f=LM(s),h=r(s,d);if(!d&&Wg){UM();const m=zM(c);l=m.MeasureLayout,f.visualElement=IM(i,h,c,t,m.ProjectionNode)}return b.jsxs(Ld.Provider,{value:f,children:[l&&f.visualElement?b.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,OM(h,f.visualElement,u),h,d,f.visualElement)]})}const o=v.forwardRef(a);return o[FM]=i,o}function jM({layoutId:e}){const t=v.useContext(Mg).id;return t&&e!==void 0?t+"-"+e:e}function UM(e,t){v.useContext(l2).strict}function zM(e){const{drag:t,layout:n}=Ko;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 HM=["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 Yg(e){return typeof e!="string"||e.includes("-")?!1:!!(HM.indexOf(e)>-1||/[A-Z]/u.test(e))}function h2(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const m2=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 g2(e,t,n,r){h2(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(m2.has(i)?i:kd(i),t.attrs[i])}function v2(e,{layout:t,layoutId:n}){return zi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Od[e]||e==="opacity")}function Gg(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Xt(i[o])||t.style&&Xt(t.style[o])||v2(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),a}function y2(e,t,n){const r=Gg(e,t,n);for(const i in e)if(Xt(e[i])||Xt(t[i])){const a=Pu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function qg(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function VM(e){if(zi.has(e))return"transform";if(BE.has(e))return kd(e)}function $M({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,a,o,s){const u={latestValues:WM(i,a,o,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const x2=e=>(t,n)=>{const r=v.useContext(Ld),i=v.useContext(Id),a=()=>$M(e,t,r,i,n);return n?a():qg(a)};function w2(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const a=qm(e,r[i]);if(a){const{transitionEnd:o,transition:s,...u}=a;n(u,o)}}}function WM(e,t,n,r,i){var a;const o={},s=new Set,u=r&&((a=e.style)===null||a===void 0?void 0:a.willChange)===void 0,l=i(e,{});for(const E in l)o[E]=Dd(l[E]);let{initial:c,animate:d}=e;const f=Md(e),h=d2(e);t&&h&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const y=m?d:c;return y&&typeof y!="boolean"&&!Ru(y)&&w2(e,y,(E,g)=>{for(const x in E){let w=E[x];if(Array.isArray(w)){const T=m?w.length-1:0;w=w[T]}w!==null&&(o[x]=w)}for(const x in g)o[x]=g[x]}),u&&(d&&c!==!1&&!Ru(d)&&w2(e,d,E=>{for(const g in E){const x=VM(g);x&&s.add(x)}}),s.size&&(o.willChange=Array.from(s).join(","))),o}const Kg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),b2=()=>({...Kg(),attrs:{}}),E2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,YM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GM=Pu.length;function qM(e,t,n){let r="",i=!0;for(let a=0;a<GM;a++){const o=Pu[a],s=e[o];if(s===void 0)continue;let u=!0;if(typeof s=="number"?u=s===(o.startsWith("scale")?1:0):u=parseFloat(s)===0,!u||n){const l=E2(s,dg[o]);if(!u){i=!1;const c=YM[o]||o;r+=`${c}(${l}) `}n&&(t[o]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Xg(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const u in t){const l=t[u];if(zi.has(u)){o=!0;continue}else if(rE(u)){i[u]=l;continue}else{const c=E2(l,dg[u]);u.startsWith("origin")?(s=!0,a[u]=c):r[u]=c}}if(t.transform||(o||n?r.transform=qM(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:u="50%",originY:l="50%",originZ:c=0}=a;r.transformOrigin=`${u} ${l} ${c}`}}function T2(e,t,n){return typeof e=="string"?e:me.transform(t+n*e)}function KM(e,t,n){const r=T2(t,e.x,e.width),i=T2(n,e.y,e.height);return`${r} ${i}`}const XM={offset:"stroke-dashoffset",array:"stroke-dasharray"},QM={offset:"strokeDashoffset",array:"strokeDasharray"};function ZM(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?XM:QM;e[a.offset]=me.transform(-r);const o=me.transform(t),s=me.transform(n);e[a.array]=`${o} ${s}`}function Qg(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(Xg(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(i!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=KM(m,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&ZM(f,o,s,u,!1)}const Zg=e=>typeof e=="string"&&e.toLowerCase()==="svg",JM={useVisualState:x2({scrapeMotionValuesFromProps:y2,createRenderState:b2,onMount:(e,t,{renderState:n,latestValues:r})=>{Ge.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ge.render(()=>{Qg(n,r,Zg(t.tagName),e.transformTemplate),g2(t,n)})}})},e5={useVisualState:x2({applyWillChange:!0,scrapeMotionValuesFromProps:Gg,createRenderState:Kg})};function _2(e,t,n){for(const r in t)!Xt(t[r])&&!v2(r,n)&&(e[r]=t[r])}function t5({transformTemplate:e},t){return v.useMemo(()=>{const n=Kg();return Xg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function n5(e,t){const n=e.style||{},r={};return _2(r,n,e),Object.assign(r,t5(e,t)),r}function r5(e,t){const n={},r=n5(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}const i5=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 Fd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i5.has(e)}let C2=e=>!Fd(e);function a5(e){e&&(C2=t=>t.startsWith("on")?!Fd(t):e(t))}try{a5(require("@emotion/is-prop-valid").default)}catch{}function o5(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(C2(i)||n===!0&&Fd(i)||!t&&!Fd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function s5(e,t,n,r){const i=v.useMemo(()=>{const a=b2();return Qg(a,t,Zg(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};_2(a,e.style,e),i.style={...a,...i.style}}return i}function u5(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=(Yg(n)?s5:r5)(r,a,o,n),l=o5(r,typeof n=="string",e),c=n!==v.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=v.useMemo(()=>Xt(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function l5(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Yg(r)?JM:e5,preloadedFeatures:e,useRender:u5(i),createVisualElement:t,Component:r};return BM(o)}}const Jg={current:null},S2={current:!1};function c5(){if(S2.current=!0,!!Wg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jg.current=e.matches;e.addListener(t),t()}else Jg.current=!1}function d5(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Xt(i))e.addValue(r,i);else if(Xt(a))e.addValue(r,ju(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,ju(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const k2=new WeakMap,f5=[...cE,Kt,Wi],p5=e=>f5.find(lE(e)),A2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class h5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ag,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 f=Nr.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ge.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Md(n),this.isVariantNode=d2(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];u[f]!==void 0&&Xt(h)&&h.set(u[f],!1)}}mount(t){this.current=t,k2.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),S2.current||c5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){k2.delete(this.current),this.projection&&this.projection.unmount(),Hi(this.notifyUpdate),Hi(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=zi.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),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 Ko){const n=Ko[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 a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yt()}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;r<A2.length;r++){const i=A2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=d5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.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=ju(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"&&(tE(i)||eE(i))?i=parseFloat(i):!p5(i)&&Wi.test(n)&&(i=bE(t,n)),this.setBaseTarget(t,Xt(i)?i.get():i)),Xt(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 o=qm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Xt(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new kg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class N2 extends h5{constructor(){super(...arguments),this.KeyframeResolver=EE}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]}}function m5(e){return window.getComputedStyle(e)}class g5 extends N2{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=h2}readValueFromInstance(t,n){if(zi.has(n)){const r=fg(n);return r&&r.default||0}else{const r=m5(t),i=(rE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return CT(t,n)}build(t,n,r){Xg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Gg(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class v5 extends N2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(zi.has(n)){const r=fg(n);return r&&r.default||0}return n=m2.has(n)?n:kd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return y2(t,n,r)}build(t,n,r){Qg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){g2(t,n,r,i)}mount(t){this.isSVGTag=Zg(t.tagName),super.mount(t)}}const y5=(e,t)=>Yg(e)?new v5(t):new g5(t,{allowProjection:e!==v.Fragment}),x5=l5({...s4,...NM,...yM,...RM},y5),Xo=t6(x5);class w5 extends v.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 b5({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=v.useContext($g);return v.useInsertionEffect(()=>{const{width:o,height:s,top:u,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
40
+ `+a.stack}return{value:e,source:t,stack:i,digest:null}}function mm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aD=typeof WeakMap=="function"?WeakMap:Map;function Fw(e,t,n){n=Xr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nd||(nd=!0,Im=r),gm(e,t)},n}function Bw(e,t,n){n=Xr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){gm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){gm(e,t),typeof r!="function"&&(Mi===null?Mi=new Set([this]):Mi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function jw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aD;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xD.bind(null,e,t,n),t.then(e,e))}function Uw(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function zw(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xr(-1,1),t.tag=2,Di(n,t,1))),n.lanes|=1),e)}var oD=$r.ReactCurrentOwner,hn=!1;function on(e,t,n,r){t.child=e===null?sw(t,null,n,r):Po(t,e.child,n,r)}function Hw(e,t,n,r,i){n=n.render;var a=t.ref;return Do(t,i),r=sm(e,t,n,r,a,i),n=um(),e!==null&&!hn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qr(e,t,i)):(nt&&n&&$h(t),t.flags|=1,on(e,t,r,i),t.child)}function Vw(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Bm(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,$w(e,t,a,r,i)):(e=ud(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:uu,n(o,r)&&e.ref===t.ref)return Qr(e,t,i)}return t.flags|=1,e=Ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function $w(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(uu(a,r)&&e.ref===t.ref)if(hn=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(hn=!0);else return t.lanes=e.lanes,Qr(e,t,i)}return vm(e,t,n,r,i)}function Ww(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Bo,Nn),Nn|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Xe(Bo,Nn),Nn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Xe(Bo,Nn),Nn|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Xe(Bo,Nn),Nn|=r;return on(e,t,i,n),t.child}function Yw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vm(e,t,n,r,i){var a=pn(n)?Aa:$t.current;return a=Ao(t,a),Do(t,i),n=sm(e,t,n,r,a,i),r=um(),e!==null&&!hn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qr(e,t,i)):(nt&&r&&$h(t),t.flags|=1,on(e,t,n,i),t.child)}function Gw(e,t,n,r,i){if(pn(n)){var a=!0;Oc(t)}else a=!1;if(Do(t,i),t.stateNode===null)Qc(e,t),Lw(t,n,r),hm(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;typeof l=="object"&&l!==null?l=$n(l):(l=pn(n)?Aa:$t.current,l=Ao(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Mw(t,o,r,l),Oi=!1;var f=t.memoizedState;o.state=f,Hc(t,r,o,i),u=t.memoizedState,s!==r||f!==u||fn.current||Oi?(typeof c=="function"&&(pm(t,n,c,r),u=t.memoizedState),(s=Oi||Dw(t,n,s,r,f,u,l))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,lw(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ur(t.type,s),o.props=l,d=t.pendingProps,f=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=$n(u):(u=pn(n)?Aa:$t.current,u=Ao(t,u));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==u)&&Mw(t,o,r,u),Oi=!1,f=t.memoizedState,o.state=f,Hc(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||fn.current||Oi?(typeof h=="function"&&(pm(t,n,h,r),m=t.memoizedState),(l=Oi||Dw(t,n,l,r,f,m,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=l):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ym(e,t,n,r,a,i)}function ym(e,t,n,r,i,a){Yw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Zx(t,n,!1),Qr(e,t,a);r=t.stateNode,oD.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Po(t,e.child,null,a),t.child=Po(t,null,s,a)):on(e,t,s,a),t.memoizedState=r.state,i&&Zx(t,n,!0),t.child}function qw(e){var t=e.stateNode;t.pendingContext?Xx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xx(e,t.context,!1),tm(e,t.containerInfo)}function Kw(e,t,n,r,i){return Io(),qh(i),t.flags|=256,on(e,t,n,r),t.child}var xm={dehydrated:null,treeContext:null,retryLane:0};function wm(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xw(e,t,n){var r=t.pendingProps,i=st.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Xe(st,i&1),e===null)return Gh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=ld(o,r,0,null),e=Ba(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=wm(n),t.memoizedState=xm,e):bm(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return sD(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Ui(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Ui(s,a):(a=Ba(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?wm(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=xm,r}return a=e.child,e=a.sibling,r=Ui(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bm(e,t){return t=ld({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xc(e,t,n,r){return r!==null&&qh(r),Po(t,e.child,null,n),e=bm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sD(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=mm(Error(X(422))),Xc(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=ld({mode:"visible",children:r.children},i,0,null),a=Ba(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Po(t,e.child,null,o),t.child.memoizedState=wm(o),t.memoizedState=xm,a);if(!(t.mode&1))return Xc(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(X(419)),r=mm(a,r,void 0),Xc(e,t,o,r)}if(s=(o&e.childLanes)!==0,hn||s){if(r=It,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Kr(e,i),dr(r,e,i,-1))}return Fm(),r=mm(Error(X(421))),Xc(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=wD.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,An=Ni(i.nextSibling),kn=t,nt=!0,sr=null,e!==null&&(Hn[Vn++]=Gr,Hn[Vn++]=qr,Hn[Vn++]=Na,Gr=e.id,qr=e.overflow,Na=t),t=bm(t,r.children),t.flags|=4096,t)}function Qw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zh(e.return,t,n)}function Em(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Zw(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(on(e,t,r.children,n),r=st.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qw(e,n,t);else if(e.tag===19)Qw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Xe(st,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Vc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Em(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Vc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Em(t,!0,n,null,a);break;case"together":Em(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,n=Ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uD(e,t,n){switch(t.tag){case 3:qw(t),Io();break;case 5:fw(t);break;case 1:pn(t.type)&&Oc(t);break;case 4:tm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Xe(jc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Xe(st,st.current&1),t.flags|=128,null):n&t.child.childLanes?Xw(e,t,n):(Xe(st,st.current&1),e=Qr(e,t,n),e!==null?e.sibling:null);Xe(st,st.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Zw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Xe(st,st.current),r)break;return null;case 22:case 23:return t.lanes=0,Ww(e,t,n)}return Qr(e,t,n)}var Jw,Tm,eb,tb;Jw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tm=function(){},eb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pa(Cr.current);var a=null;switch(n){case"input":i=Zp(e,i),r=Zp(e,r),a=[];break;case"select":i=ot({},i,{value:void 0}),r=ot({},r,{value:void 0}),a=[];break;case"textarea":i=th(e,i),r=th(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rc)}rh(n,r);var o;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(zs.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in r){var u=r[l];if(s=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(zs.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Ze("scroll",e),a||s===u||(a=[])):(a=a||[]).push(l,u))}n&&(a=a||[]).push("style",n);var l=a;(t.updateQueue=l)&&(t.flags|=4)}},tb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tu(e,t){if(!nt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lD(e,t,n){var r=t.pendingProps;switch(Wh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(t),null;case 1:return pn(t.type)&&Pc(),Yt(t),null;case 3:return r=t.stateNode,Lo(),Je(fn),Je($t),im(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sr!==null&&(Dm(sr),sr=null))),Tm(e,t),Yt(t),null;case 5:nm(t);var i=Pa(yu.current);if(n=t.type,e!==null&&t.stateNode!=null)eb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(X(166));return Yt(t),null}if(e=Pa(Cr.current),Fc(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[_r]=t,r[pu]=a,e=(t.mode&1)!==0,n){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(i=0;i<cu.length;i++)Ze(cu[i],r);break;case"source":Ze("error",r);break;case"img":case"image":case"link":Ze("error",r),Ze("load",r);break;case"details":Ze("toggle",r);break;case"input":Ly(r,a),Ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ze("invalid",r);break;case"textarea":By(r,a),Ze("invalid",r)}rh(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&Nc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Nc(r.textContent,s,e),i=["children",""+s]):zs.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ze("scroll",r)}switch(n){case"input":oc(r),Fy(r,a,!0);break;case"textarea":oc(r),Uy(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Rc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_r]=t,e[pu]=r,Jw(e,t,!1,!1),t.stateNode=e;e:{switch(o=ih(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),i=r;break;case"iframe":case"object":case"embed":Ze("load",e),i=r;break;case"video":case"audio":for(i=0;i<cu.length;i++)Ze(cu[i],e);i=r;break;case"source":Ze("error",e),i=r;break;case"img":case"image":case"link":Ze("error",e),Ze("load",e),i=r;break;case"details":Ze("toggle",e),i=r;break;case"input":Ly(e,r),i=Zp(e,r),Ze("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ot({},r,{value:void 0}),Ze("invalid",e);break;case"textarea":By(e,r),i=th(e,r),Ze("invalid",e);break;default:i=r}rh(n,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];a==="style"?$y(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Hy(e,u)):a==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Ws(e,u):typeof u=="number"&&Ws(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(zs.hasOwnProperty(a)?u!=null&&a==="onScroll"&&Ze("scroll",e):u!=null&&zp(e,a,u,o))}switch(n){case"input":oc(e),Fy(e,r,!1);break;case"textarea":oc(e),Uy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ei(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?go(e,!!r.multiple,a,!1):r.defaultValue!=null&&go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Rc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Yt(t),null;case 6:if(e&&t.stateNode!=null)tb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(X(166));if(n=Pa(yu.current),Pa(Cr.current),Fc(t)){if(r=t.stateNode,n=t.memoizedProps,r[_r]=t,(a=r.nodeValue!==n)&&(e=kn,e!==null))switch(e.tag){case 3:Nc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Nc(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_r]=t,t.stateNode=r}return Yt(t),null;case 13:if(Je(st),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(nt&&An!==null&&t.mode&1&&!(t.flags&128))iw(),Io(),t.flags|=98560,a=!1;else if(a=Fc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(X(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(X(317));a[_r]=t}else Io(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yt(t),a=!1}else sr!==null&&(Dm(sr),sr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||st.current&1?St===0&&(St=3):Fm())),t.updateQueue!==null&&(t.flags|=4),Yt(t),null);case 4:return Lo(),Tm(e,t),e===null&&du(t.stateNode.containerInfo),Yt(t),null;case 10:return Qh(t.type._context),Yt(t),null;case 17:return pn(t.type)&&Pc(),Yt(t),null;case 19:if(Je(st),a=t.memoizedState,a===null)return Yt(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Tu(a,!1);else{if(St!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vc(e),o!==null){for(t.flags|=128,Tu(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Xe(st,st.current&1|2),t.child}e=e.sibling}a.tail!==null&&vt()>jo&&(t.flags|=128,r=!0,Tu(a,!1),t.lanes=4194304)}else{if(!r)if(e=Vc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!nt)return Yt(t),null}else 2*vt()-a.renderingStartTime>jo&&n!==1073741824&&(t.flags|=128,r=!0,Tu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=vt(),t.sibling=null,n=st.current,Xe(st,r?n&1|2:n&1),t):(Yt(t),null);case 22:case 23:return Mm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nn&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function cD(e,t){switch(Wh(t),t.tag){case 1:return pn(t.type)&&Pc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lo(),Je(fn),Je($t),im(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nm(t),null;case 13:if(Je(st),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));Io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(st),null;case 4:return Lo(),null;case 10:return Qh(t.type._context),null;case 22:case 23:return Mm(),null;case 24:return null;default:return null}}var Zc=!1,Gt=!1,dD=typeof WeakSet=="function"?WeakSet:Set,oe=null;function Fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pt(e,t,r)}else n.current=null}function _m(e,t,n){try{n()}catch(r){pt(e,t,r)}}var nb=!1;function fD(e,t){if(Mh=yc,e=Dx(),Ah(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(u=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++l===i&&(s=o),f===a&&++c===r&&(u=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fh={focusedElem:e,selectionRange:n},yc=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,E=m.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:ur(t.type,y),E);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(T){pt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return m=nb,nb=!1,m}function _u(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 a=i.destroy;i.destroy=void 0,a!==void 0&&_m(t,n,a)}i=i.next}while(i!==r)}}function Jc(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 Cm(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 rb(e){var t=e.alternate;t!==null&&(e.alternate=null,rb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_r],delete t[pu],delete t[zh],delete t[qO],delete t[KO])),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 ib(e){return e.tag===5||e.tag===3||e.tag===4}function ab(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ib(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 Sm(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=Rc));else if(r!==4&&(e=e.child,e!==null))for(Sm(e,t,n),e=e.sibling;e!==null;)Sm(e,t,n),e=e.sibling}function km(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(km(e,t,n),e=e.sibling;e!==null;)km(e,t,n),e=e.sibling}var Bt=null,lr=!1;function Li(e,t,n){for(n=n.child;n!==null;)ob(e,t,n),n=n.sibling}function ob(e,t,n){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(fc,n)}catch{}switch(n.tag){case 5:Gt||Fo(n,t);case 6:var r=Bt,i=lr;Bt=null,Li(e,t,n),Bt=r,lr=i,Bt!==null&&(lr?(e=Bt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bt.removeChild(n.stateNode));break;case 18:Bt!==null&&(lr?(e=Bt,n=n.stateNode,e.nodeType===8?Uh(e.parentNode,n):e.nodeType===1&&Uh(e,n),nu(e)):Uh(Bt,n.stateNode));break;case 4:r=Bt,i=lr,Bt=n.stateNode.containerInfo,lr=!0,Li(e,t,n),Bt=r,lr=i;break;case 0:case 11:case 14:case 15:if(!Gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&_m(n,t,o),i=i.next}while(i!==r)}Li(e,t,n);break;case 1:if(!Gt&&(Fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){pt(n,t,s)}Li(e,t,n);break;case 21:Li(e,t,n);break;case 22:n.mode&1?(Gt=(r=Gt)||n.memoizedState!==null,Li(e,t,n),Gt=r):Li(e,t,n);break;default:Li(e,t,n)}}function sb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dD),t.forEach(function(r){var i=bD.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Bt=s.stateNode,lr=!1;break e;case 3:Bt=s.stateNode.containerInfo,lr=!0;break e;case 4:Bt=s.stateNode.containerInfo,lr=!0;break e}s=s.return}if(Bt===null)throw Error(X(160));ob(a,o,i),Bt=null,lr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){pt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ub(t,e),t=t.sibling}function ub(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(cr(t,e),kr(e),r&4){try{_u(3,e,e.return),Jc(3,e)}catch(y){pt(e,e.return,y)}try{_u(5,e,e.return)}catch(y){pt(e,e.return,y)}}break;case 1:cr(t,e),kr(e),r&512&&n!==null&&Fo(n,n.return);break;case 5:if(cr(t,e),kr(e),r&512&&n!==null&&Fo(n,n.return),e.flags&32){var i=e.stateNode;try{Ws(i,"")}catch(y){pt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&My(i,a),ih(s,o);var l=ih(s,a);for(o=0;o<u.length;o+=2){var c=u[o],d=u[o+1];c==="style"?$y(i,d):c==="dangerouslySetInnerHTML"?Hy(i,d):c==="children"?Ws(i,d):zp(i,c,d,l)}switch(s){case"input":Jp(i,a);break;case"textarea":jy(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?go(i,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?go(i,!!a.multiple,a.defaultValue,!0):go(i,!!a.multiple,a.multiple?[]:"",!1))}i[pu]=a}catch(y){pt(e,e.return,y)}}break;case 6:if(cr(t,e),kr(e),r&4){if(e.stateNode===null)throw Error(X(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(y){pt(e,e.return,y)}}break;case 3:if(cr(t,e),kr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{nu(t.containerInfo)}catch(y){pt(e,e.return,y)}break;case 4:cr(t,e),kr(e);break;case 13:cr(t,e),kr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Rm=vt())),r&4&&sb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Gt=(l=Gt)||c,cr(t,e),Gt=l):cr(t,e),kr(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(oe=e,c=e.child;c!==null;){for(d=oe=c;oe!==null;){switch(f=oe,h=f.child,f.tag){case 0:case 11:case 14:case 15:_u(4,f,f.return);break;case 1:Fo(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){pt(r,n,y)}}break;case 5:Fo(f,f.return);break;case 22:if(f.memoizedState!==null){db(d);continue}}h!==null?(h.return=f,oe=h):db(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,l?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,u=d.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Vy("display",o))}catch(y){pt(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){pt(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:cr(t,e),kr(e),r&4&&sb(e);break;case 21:break;default:cr(t,e),kr(e)}}function kr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ib(n)){var r=n;break e}n=n.return}throw Error(X(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ws(i,""),r.flags&=-33);var a=ab(e);km(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=ab(e);Sm(e,s,o);break;default:throw Error(X(161))}}catch(u){pt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pD(e,t,n){oe=e,lb(e)}function lb(e,t,n){for(var r=(e.mode&1)!==0;oe!==null;){var i=oe,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Zc;if(!o){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Gt;s=Zc;var l=Gt;if(Zc=o,(Gt=u)&&!l)for(oe=i;oe!==null;)o=oe,u=o.child,o.tag===22&&o.memoizedState!==null?fb(i):u!==null?(u.return=o,oe=u):fb(i);for(;a!==null;)oe=a,lb(a),a=a.sibling;oe=i,Zc=s,Gt=l}cb(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,oe=a):cb(e)}}function cb(e){for(;oe!==null;){var t=oe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gt||Jc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ur(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&dw(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dw(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&nu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(X(163))}Gt||t.flags&512&&Cm(t)}catch(f){pt(t,t.return,f)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function db(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function fb(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jc(4,t)}catch(u){pt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){pt(t,i,u)}}var a=t.return;try{Cm(t)}catch(u){pt(t,a,u)}break;case 5:var o=t.return;try{Cm(t)}catch(u){pt(t,o,u)}}}catch(u){pt(t,t.return,u)}if(t===e){oe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,oe=s;break}oe=t.return}}var hD=Math.ceil,ed=$r.ReactCurrentDispatcher,Am=$r.ReactCurrentOwner,Yn=$r.ReactCurrentBatchConfig,Fe=0,It=null,Et=null,jt=0,Nn=0,Bo=Ri(0),St=0,Cu=null,Da=0,td=0,Nm=0,Su=null,mn=null,Rm=0,jo=1/0,Zr=null,nd=!1,Im=null,Mi=null,rd=!1,Fi=null,id=0,ku=0,Pm=null,ad=-1,od=0;function sn(){return Fe&6?vt():ad!==-1?ad:ad=vt()}function Bi(e){return e.mode&1?Fe&2&&jt!==0?jt&-jt:QO.transition!==null?(od===0&&(od=ax()),od):(e=$e,e!==0||(e=window.event,e=e===void 0?16:hx(e.type)),e):1}function dr(e,t,n,r){if(50<ku)throw ku=0,Pm=null,Error(X(185));Qs(e,n,r),(!(Fe&2)||e!==It)&&(e===It&&(!(Fe&2)&&(td|=n),St===4&&ji(e,jt)),gn(e,r),n===1&&Fe===0&&!(t.mode&1)&&(jo=vt()+500,Dc&&Pi()))}function gn(e,t){var n=e.callbackNode;QP(e,t);var r=mc(e,e===It?jt:0);if(r===0)n!==null&&nx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nx(n),t===1)e.tag===0?XO(hb.bind(null,e)):Jx(hb.bind(null,e)),YO(function(){!(Fe&6)&&Pi()}),n=null;else{switch(ox(r)){case 1:n=dh;break;case 4:n=rx;break;case 16:n=dc;break;case 536870912:n=ix;break;default:n=dc}n=Eb(n,pb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pb(e,t){if(ad=-1,od=0,Fe&6)throw Error(X(327));var n=e.callbackNode;if(Uo()&&e.callbackNode!==n)return null;var r=mc(e,e===It?jt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sd(e,r);else{t=r;var i=Fe;Fe|=2;var a=gb();(It!==e||jt!==t)&&(Zr=null,jo=vt()+500,Ma(e,t));do try{vD();break}catch(s){mb(e,s)}while(!0);Xh(),ed.current=a,Fe=i,Et!==null?t=0:(It=null,jt=0,t=St)}if(t!==0){if(t===2&&(i=fh(e),i!==0&&(r=i,t=Om(e,i))),t===1)throw n=Cu,Ma(e,0),ji(e,r),gn(e,vt()),n;if(t===6)ji(e,r);else{if(i=e.current.alternate,!(r&30)&&!mD(i)&&(t=sd(e,r),t===2&&(a=fh(e),a!==0&&(r=a,t=Om(e,a))),t===1))throw n=Cu,Ma(e,0),ji(e,r),gn(e,vt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(X(345));case 2:Fa(e,mn,Zr);break;case 3:if(ji(e,r),(r&130023424)===r&&(t=Rm+500-vt(),10<t)){if(mc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){sn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=jh(Fa.bind(null,e,mn,Zr),t);break}Fa(e,mn,Zr);break;case 4:if(ji(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-ar(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hD(r/1960))-r,10<r){e.timeoutHandle=jh(Fa.bind(null,e,mn,Zr),r);break}Fa(e,mn,Zr);break;case 5:Fa(e,mn,Zr);break;default:throw Error(X(329))}}}return gn(e,vt()),e.callbackNode===n?pb.bind(null,e):null}function Om(e,t){var n=Su;return e.current.memoizedState.isDehydrated&&(Ma(e,t).flags|=256),e=sd(e,t),e!==2&&(t=mn,mn=n,t!==null&&Dm(t)),e}function Dm(e){mn===null?mn=e:mn.push.apply(mn,e)}function mD(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!or(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ji(e,t){for(t&=~Nm,t&=~td,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ar(t),r=1<<n;e[n]=-1,t&=~r}}function hb(e){if(Fe&6)throw Error(X(327));Uo();var t=mc(e,0);if(!(t&1))return gn(e,vt()),null;var n=sd(e,t);if(e.tag!==0&&n===2){var r=fh(e);r!==0&&(t=r,n=Om(e,r))}if(n===1)throw n=Cu,Ma(e,0),ji(e,t),gn(e,vt()),n;if(n===6)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fa(e,mn,Zr),gn(e,vt()),null}function Lm(e,t){var n=Fe;Fe|=1;try{return e(t)}finally{Fe=n,Fe===0&&(jo=vt()+500,Dc&&Pi())}}function La(e){Fi!==null&&Fi.tag===0&&!(Fe&6)&&Uo();var t=Fe;Fe|=1;var n=Yn.transition,r=$e;try{if(Yn.transition=null,$e=1,e)return e()}finally{$e=r,Yn.transition=n,Fe=t,!(Fe&6)&&Pi()}}function Mm(){Nn=Bo.current,Je(Bo)}function Ma(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,WO(n)),Et!==null)for(n=Et.return;n!==null;){var r=n;switch(Wh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pc();break;case 3:Lo(),Je(fn),Je($t),im();break;case 5:nm(r);break;case 4:Lo();break;case 13:Je(st);break;case 19:Je(st);break;case 10:Qh(r.type._context);break;case 22:case 23:Mm()}n=n.return}if(It=e,Et=e=Ui(e.current,null),jt=Nn=t,St=0,Cu=null,Nm=td=Da=0,mn=Su=null,Ia!==null){for(t=0;t<Ia.length;t++)if(n=Ia[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Ia=null}return e}function mb(e,t){do{var n=Et;try{if(Xh(),$c.current=qc,Wc){for(var r=ut.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Wc=!1}if(Oa=0,Rt=Ct=ut=null,xu=!1,wu=0,Am.current=null,n===null||n.return===null){St=1,Cu=t,Et=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=jt,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Uw(o);if(h!==null){h.flags&=-257,zw(h,o,s,a,t),h.mode&1&&jw(a,l,t),t=h,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){jw(a,l,t),Fm();break e}u=Error(X(426))}}else if(nt&&s.mode&1){var E=Uw(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),zw(E,o,s,a,t),qh(Mo(u,s));break e}}a=u=Mo(u,s),St!==4&&(St=2),Su===null?Su=[a]:Su.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=Fw(a,u,t);cw(a,g);break e;case 1:s=u;var x=a.type,w=a.stateNode;if(!(a.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Mi===null||!Mi.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t;var T=Bw(a,s,t);cw(a,T);break e}}a=a.return}while(a!==null)}yb(n)}catch(C){t=C,Et===n&&n!==null&&(Et=n=n.return);continue}break}while(!0)}function gb(){var e=ed.current;return ed.current=qc,e===null?qc:e}function Fm(){(St===0||St===3||St===2)&&(St=4),It===null||!(Da&268435455)&&!(td&268435455)||ji(It,jt)}function sd(e,t){var n=Fe;Fe|=2;var r=gb();(It!==e||jt!==t)&&(Zr=null,Ma(e,t));do try{gD();break}catch(i){mb(e,i)}while(!0);if(Xh(),Fe=n,ed.current=r,Et!==null)throw Error(X(261));return It=null,jt=0,St}function gD(){for(;Et!==null;)vb(Et)}function vD(){for(;Et!==null&&!HP();)vb(Et)}function vb(e){var t=bb(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?yb(e):Et=t,Am.current=null}function yb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cD(n,t),n!==null){n.flags&=32767,Et=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{St=6,Et=null;return}}else if(n=lD(n,t,Nn),n!==null){Et=n;return}if(t=t.sibling,t!==null){Et=t;return}Et=t=e}while(t!==null);St===0&&(St=5)}function Fa(e,t,n){var r=$e,i=Yn.transition;try{Yn.transition=null,$e=1,yD(e,t,n,r)}finally{Yn.transition=i,$e=r}return null}function yD(e,t,n,r){do Uo();while(Fi!==null);if(Fe&6)throw Error(X(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(ZP(e,a),e===It&&(Et=It=null,jt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rd||(rd=!0,Eb(dc,function(){return Uo(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Yn.transition,Yn.transition=null;var o=$e;$e=1;var s=Fe;Fe|=4,Am.current=null,fD(e,n),ub(n,e),BO(Fh),yc=!!Mh,Fh=Mh=null,e.current=n,pD(n),VP(),Fe=s,$e=o,Yn.transition=a}else e.current=n;if(rd&&(rd=!1,Fi=e,id=i),a=e.pendingLanes,a===0&&(Mi=null),YP(n.stateNode),gn(e,vt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(nd)throw nd=!1,e=Im,Im=null,e;return id&1&&e.tag!==0&&Uo(),a=e.pendingLanes,a&1?e===Pm?ku++:(ku=0,Pm=e):ku=0,Pi(),null}function Uo(){if(Fi!==null){var e=ox(id),t=Yn.transition,n=$e;try{if(Yn.transition=null,$e=16>e?16:e,Fi===null)var r=!1;else{if(e=Fi,Fi=null,id=0,Fe&6)throw Error(X(331));var i=Fe;for(Fe|=4,oe=e.current;oe!==null;){var a=oe,o=a.child;if(oe.flags&16){var s=a.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(oe=l;oe!==null;){var c=oe;switch(c.tag){case 0:case 11:case 15:_u(8,c,a)}var d=c.child;if(d!==null)d.return=c,oe=d;else for(;oe!==null;){c=oe;var f=c.sibling,h=c.return;if(rb(c),c===l){oe=null;break}if(f!==null){f.return=h,oe=f;break}oe=h}}}var m=a.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var E=y.sibling;y.sibling=null,y=E}while(y!==null)}}oe=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,oe=o;else e:for(;oe!==null;){if(a=oe,a.flags&2048)switch(a.tag){case 0:case 11:case 15:_u(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,oe=g;break e}oe=a.return}}var x=e.current;for(oe=x;oe!==null;){o=oe;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,oe=w;else e:for(o=x;oe!==null;){if(s=oe,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Jc(9,s)}}catch(C){pt(s,s.return,C)}if(s===o){oe=null;break e}var T=s.sibling;if(T!==null){T.return=s.return,oe=T;break e}oe=s.return}}if(Fe=i,Pi(),Tr&&typeof Tr.onPostCommitFiberRoot=="function")try{Tr.onPostCommitFiberRoot(fc,e)}catch{}r=!0}return r}finally{$e=n,Yn.transition=t}}return!1}function xb(e,t,n){t=Mo(n,t),t=Fw(e,t,1),e=Di(e,t,1),t=sn(),e!==null&&(Qs(e,1,t),gn(e,t))}function pt(e,t,n){if(e.tag===3)xb(e,e,n);else for(;t!==null;){if(t.tag===3){xb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mi===null||!Mi.has(r))){e=Mo(n,e),e=Bw(t,e,1),t=Di(t,e,1),e=sn(),t!==null&&(Qs(t,1,e),gn(t,e));break}}t=t.return}}function xD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=sn(),e.pingedLanes|=e.suspendedLanes&n,It===e&&(jt&n)===n&&(St===4||St===3&&(jt&130023424)===jt&&500>vt()-Rm?Ma(e,0):Nm|=n),gn(e,t)}function wb(e,t){t===0&&(e.mode&1?(t=hc,hc<<=1,!(hc&130023424)&&(hc=4194304)):t=1);var n=sn();e=Kr(e,t),e!==null&&(Qs(e,t,n),gn(e,n))}function wD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wb(e,n)}function bD(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(X(314))}r!==null&&r.delete(t),wb(e,n)}var bb;bb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fn.current)hn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hn=!1,uD(e,t,n);hn=!!(e.flags&131072)}else hn=!1,nt&&t.flags&1048576&&ew(t,Mc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qc(e,t),e=t.pendingProps;var i=Ao(t,$t.current);Do(t,n),i=sm(null,t,r,e,i,n);var a=um();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,pn(r)?(a=!0,Oc(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,em(t),i.updater=Kc,t.stateNode=i,i._reactInternals=t,hm(t,r,e,n),t=ym(null,t,r,!0,a,n)):(t.tag=0,nt&&a&&$h(t),on(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=TD(r),e=ur(r,e),i){case 0:t=vm(null,t,r,e,n);break e;case 1:t=Gw(null,t,r,e,n);break e;case 11:t=Hw(null,t,r,e,n);break e;case 14:t=Vw(null,t,r,ur(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),vm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),Gw(e,t,r,i,n);case 3:e:{if(qw(t),e===null)throw Error(X(387));r=t.pendingProps,a=t.memoizedState,i=a.element,lw(e,t),Hc(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Mo(Error(X(423)),t),t=Kw(e,t,r,n,i);break e}else if(r!==i){i=Mo(Error(X(424)),t),t=Kw(e,t,r,n,i);break e}else for(An=Ni(t.stateNode.containerInfo.firstChild),kn=t,nt=!0,sr=null,n=sw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Io(),r===i){t=Qr(e,t,n);break e}on(e,t,r,n)}t=t.child}return t;case 5:return fw(t),e===null&&Gh(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Bh(r,i)?o=null:a!==null&&Bh(r,a)&&(t.flags|=32),Yw(e,t),on(e,t,o,n),t.child;case 6:return e===null&&Gh(t),null;case 13:return Xw(e,t,n);case 4:return tm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Po(t,null,r,n):on(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),Hw(e,t,r,i,n);case 7:return on(e,t,t.pendingProps,n),t.child;case 8:return on(e,t,t.pendingProps.children,n),t.child;case 12:return on(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Xe(jc,r._currentValue),r._currentValue=o,a!==null)if(or(a.value,o)){if(a.children===i.children&&!fn.current){t=Qr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=Xr(-1,n&-n),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Zh(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(X(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Zh(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}on(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Do(t,n),i=$n(i),r=r(i),t.flags|=1,on(e,t,r,n),t.child;case 14:return r=t.type,i=ur(r,t.pendingProps),i=ur(r.type,i),Vw(e,t,r,i,n);case 15:return $w(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ur(r,i),Qc(e,t),t.tag=1,pn(r)?(e=!0,Oc(t)):e=!1,Do(t,n),Lw(t,r,i),hm(t,r,i,n),ym(null,t,r,!0,e,n);case 19:return Zw(e,t,n);case 22:return Ww(e,t,n)}throw Error(X(156,t.tag))};function Eb(e,t){return tx(e,t)}function ED(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 Gn(e,t,n,r){return new ED(e,t,n,r)}function Bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TD(e){if(typeof e=="function")return Bm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$p)return 11;if(e===Gp)return 14}return 2}function Ui(e,t){var n=e.alternate;return n===null?(n=Gn(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 ud(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")Bm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case mo:return Ba(n.children,i,a,t);case Hp:o=8,i|=8;break;case Vp:return e=Gn(12,n,t,i|2),e.elementType=Vp,e.lanes=a,e;case Wp:return e=Gn(13,n,t,i),e.elementType=Wp,e.lanes=a,e;case Yp:return e=Gn(19,n,t,i),e.elementType=Yp,e.lanes=a,e;case Iy:return ld(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ny:o=10;break e;case Ry:o=9;break e;case $p:o=11;break e;case Gp:o=14;break e;case bi:o=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=Gn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ba(e,t,n,r){return e=Gn(7,e,r,t),e.lanes=n,e}function ld(e,t,n,r){return e=Gn(22,e,r,t),e.elementType=Iy,e.lanes=n,e.stateNode={isHidden:!1},e}function jm(e,t,n){return e=Gn(6,e,null,t),e.lanes=n,e}function Um(e,t,n){return t=Gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _D(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=ph(0),this.expirationTimes=ph(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ph(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zm(e,t,n,r,i,a,o,s,u){return e=new _D(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Gn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},em(a),e}function CD(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ho,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Tb(e){if(!e)return Ii;e=e._reactInternals;e:{if(Sa(e)!==e||e.tag!==1)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(X(171))}if(e.tag===1){var n=e.type;if(pn(n))return Qx(e,n,t)}return t}function _b(e,t,n,r,i,a,o,s,u){return e=zm(n,r,!0,e,i,a,o,s,u),e.context=Tb(null),n=e.current,r=sn(),i=Bi(n),a=Xr(r,i),a.callback=t??null,Di(n,a,i),e.current.lanes=i,Qs(e,i,r),gn(e,r),e}function cd(e,t,n,r){var i=t.current,a=sn(),o=Bi(i);return n=Tb(n),t.context===null?t.context=n:t.pendingContext=n,t=Xr(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Di(i,t,o),e!==null&&(dr(e,i,o,a),zc(e,i,o)),o}function dd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Cb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hm(e,t){Cb(e,t),(e=e.alternate)&&Cb(e,t)}function SD(){return null}var Sb=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vm(e){this._internalRoot=e}fd.prototype.render=Vm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(X(409));cd(e,t,null,null)},fd.prototype.unmount=Vm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;La(function(){cd(null,e,null,null)}),t[Wr]=null}};function fd(e){this._internalRoot=e}fd.prototype.unstable_scheduleHydration=function(e){if(e){var t=lx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Si.length&&t!==0&&t<Si[n].priority;n++);Si.splice(n,0,e),n===0&&fx(e)}};function $m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kb(){}function kD(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var l=dd(o);a.call(l)}}var o=_b(t,r,e,0,null,!1,!1,"",kb);return e._reactRootContainer=o,e[Wr]=o.current,du(e.nodeType===8?e.parentNode:e),La(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=dd(u);s.call(l)}}var u=zm(e,0,!1,null,null,!1,!1,"",kb);return e._reactRootContainer=u,e[Wr]=u.current,du(e.nodeType===8?e.parentNode:e),La(function(){cd(t,u,n,r)}),u}function hd(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var u=dd(o);s.call(u)}}cd(t,o,e,i)}else o=kD(n,t,e,i,r);return dd(o)}sx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xs(t.pendingLanes);n!==0&&(hh(t,n|1),gn(t,vt()),!(Fe&6)&&(jo=vt()+500,Pi()))}break;case 13:La(function(){var r=Kr(e,1);if(r!==null){var i=sn();dr(r,e,1,i)}}),Hm(e,1)}},mh=function(e){if(e.tag===13){var t=Kr(e,134217728);if(t!==null){var n=sn();dr(t,e,134217728,n)}Hm(e,134217728)}},ux=function(e){if(e.tag===13){var t=Bi(e),n=Kr(e,t);if(n!==null){var r=sn();dr(n,e,t,r)}Hm(e,t)}},lx=function(){return $e},cx=function(e,t){var n=$e;try{return $e=e,t()}finally{$e=n}},sh=function(e,t,n){switch(t){case"input":if(Jp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ic(r);if(!i)throw Error(X(90));Dy(r),Jp(r,i)}}}break;case"textarea":jy(e,n);break;case"select":t=n.value,t!=null&&go(e,!!n.multiple,t,!1)}},qy=Lm,Ky=La;var AD={usingClientEntryPoint:!1,Events:[hu,So,Ic,Yy,Gy,Lm]},Au={findFiberByHostInstance:ka,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ND={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$r.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jy(e),e===null?null:e.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||SD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!md.isDisabled&&md.supportsFiber)try{fc=md.inject(ND),Tr=md}catch{}}_n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AD,_n.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$m(t))throw Error(X(200));return CD(e,t,null,n)},_n.createRoot=function(e,t){if(!$m(e))throw Error(X(299));var n=!1,r="",i=Sb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zm(e,1,!1,null,null,n,!1,r,i),e[Wr]=t.current,du(e.nodeType===8?e.parentNode:e),new Vm(t)},_n.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(X(188)):(e=Object.keys(e).join(","),Error(X(268,e)));return e=Jy(t),e=e===null?null:e.stateNode,e},_n.flushSync=function(e){return La(e)},_n.hydrate=function(e,t,n){if(!pd(t))throw Error(X(200));return hd(null,e,t,!0,n)},_n.hydrateRoot=function(e,t,n){if(!$m(e))throw Error(X(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=Sb;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=_b(t,null,e,1,n??null,i,!1,a,o),e[Wr]=t.current,du(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new fd(t)},_n.render=function(e,t,n){if(!pd(t))throw Error(X(200));return hd(null,e,t,!1,n)},_n.unmountComponentAtNode=function(e){if(!pd(e))throw Error(X(40));return e._reactRootContainer?(La(function(){hd(null,null,e,!1,function(){e._reactRootContainer=null,e[Wr]=null})}),!0):!1},_n.unstable_batchedUpdates=Lm,_n.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pd(n))throw Error(X(200));if(e==null||e._reactInternals===void 0)throw Error(X(38));return hd(e,t,n,!1,r)},_n.version="18.3.1-next-f1338f8080-20240426";function Ab(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ab)}catch(e){console.error(e)}}Ab(),Ty.exports=_n;var ja=Ty.exports,Nb,Rb=ja;Nb=Rb.createRoot,Rb.hydrateRoot;const Ib="3.0.53";function gd(e){"@babel/helpers - typeof";return gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gd(e)}var RD=/^\s+/,ID=/\s+$/;function ce(e,t){if(e=e||"",t=t||{},e instanceof ce)return e;if(!(this instanceof ce))return new ce(e,t);var n=PD(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}ce.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=Fb(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ob(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ob(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Pb(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Pb(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Db(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return MD(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(rt(this._r,255)*100)+"%",g:Math.round(rt(this._g,255)*100)+"%",b:Math.round(rt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(rt(this._r,255)*100)+"%, "+Math.round(rt(this._g,255)*100)+"%, "+Math.round(rt(this._b,255)*100)+"%)":"rgba("+Math.round(rt(this._r,255)*100)+"%, "+Math.round(rt(this._g,255)*100)+"%, "+Math.round(rt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:qD[Db(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Lb(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=ce(t);r="#"+Lb(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ce(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(UD,arguments)},brighten:function(){return this._applyModification(zD,arguments)},darken:function(){return this._applyModification(HD,arguments)},desaturate:function(){return this._applyModification(FD,arguments)},saturate:function(){return this._applyModification(BD,arguments)},greyscale:function(){return this._applyModification(jD,arguments)},spin:function(){return this._applyModification(VD,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(YD,arguments)},complement:function(){return this._applyCombination($D,arguments)},monochromatic:function(){return this._applyCombination(GD,arguments)},splitcomplement:function(){return this._applyCombination(WD,arguments)},triad:function(){return this._applyCombination(Mb,[3])},tetrad:function(){return this._applyCombination(Mb,[4])}},ce.fromRatio=function(e,t){if(gd(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Nu(e[r]));e=n}return ce(e,t)};function PD(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=ZD(e)),gd(e)=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=OD(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jr(e.h)&&Jr(e.s)&&Jr(e.v)?(r=Nu(e.s),i=Nu(e.v),t=LD(e.h,r,i),o=!0,s="hsv"):Jr(e.h)&&Jr(e.s)&&Jr(e.l)&&(r=Nu(e.s),a=Nu(e.l),t=DD(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Fb(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function OD(e,t,n){return{r:rt(e,255)*255,g:rt(t,255)*255,b:rt(n,255)*255}}function Pb(e,t,n){e=rt(e,255),t=rt(t,255),n=rt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var u=r-i;switch(o=s>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,l:s}}function DD(e,t,n){var r,i,a;e=rt(e,360),t=rt(t,100),n=rt(n,100);function o(l,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(c-l)*6*d:d<1/2?c:d<2/3?l+(c-l)*(2/3-d)*6:l}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Ob(e,t,n){e=rt(e,255),t=rt(t,255),n=rt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,u=r-i;if(o=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,v:s}}function LD(e,t,n){e=rt(e,360)*6,t=rt(t,100),n=rt(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6,l=[n,o,a,a,s,n][u],c=[s,n,n,o,a,a][u],d=[a,a,s,n,n,o][u];return{r:l*255,g:c*255,b:d*255}}function Db(e,t,n,r){var i=[fr(Math.round(e).toString(16)),fr(Math.round(t).toString(16)),fr(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function MD(e,t,n,r,i){var a=[fr(Math.round(e).toString(16)),fr(Math.round(t).toString(16)),fr(Math.round(n).toString(16)),fr(Bb(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Lb(e,t,n,r){var i=[fr(Bb(r)),fr(Math.round(e).toString(16)),fr(Math.round(t).toString(16)),fr(Math.round(n).toString(16))];return i.join("")}ce.equals=function(e,t){return!e||!t?!1:ce(e).toRgbString()==ce(t).toRgbString()},ce.random=function(){return ce.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function FD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s-=t/100,n.s=vd(n.s),ce(n)}function BD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s+=t/100,n.s=vd(n.s),ce(n)}function jD(e){return ce(e).desaturate(100)}function UD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l+=t/100,n.l=vd(n.l),ce(n)}function zD(e,t){t=t===0?0:t||10;var n=ce(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),ce(n)}function HD(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l-=t/100,n.l=vd(n.l),ce(n)}function VD(e,t){var n=ce(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,ce(n)}function $D(e){var t=ce(e).toHsl();return t.h=(t.h+180)%360,ce(t)}function Mb(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ce(e).toHsl(),r=[ce(e)],i=360/t,a=1;a<t;a++)r.push(ce({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function WD(e){var t=ce(e).toHsl(),n=t.h;return[ce(e),ce({h:(n+72)%360,s:t.s,l:t.l}),ce({h:(n+216)%360,s:t.s,l:t.l})]}function YD(e,t,n){t=t||6,n=n||30;var r=ce(e).toHsl(),i=360/n,a=[ce(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(ce(r));return a}function GD(e,t){t=t||6;for(var n=ce(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(ce({h:r,s:i,v:a})),a=(a+s)%1;return o}ce.mix=function(e,t,n){n=n===0?0:n||50;var r=ce(e).toRgb(),i=ce(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return ce(o)},ce.readability=function(e,t){var n=ce(e),r=ce(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ce.isReadable=function(e,t,n){var r=ce.readability(e,t),i,a;switch(a=!1,i=JD(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},ce.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,u;n=n||{},o=n.includeFallbackColors,s=n.level,u=n.size;for(var l=0;l<t.length;l++)a=ce.readability(e,t[l]),a>i&&(i=a,r=ce(t[l]));return ce.isReadable(e,r,{level:s,size:u})||!o?r:(n.includeFallbackColors=!1,ce.mostReadable(e,["#fff","#000"],n))};var Wm=ce.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qD=ce.hexNames=KD(Wm);function KD(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Fb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rt(e,t){XD(e)&&(e="100%");var n=QD(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function vd(e){return Math.min(1,Math.max(0,e))}function Rn(e){return parseInt(e,16)}function XD(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function QD(e){return typeof e=="string"&&e.indexOf("%")!=-1}function fr(e){return e.length==1?"0"+e:""+e}function Nu(e){return e<=1&&(e=e*100+"%"),e}function Bb(e){return Math.round(parseFloat(e)*255).toString(16)}function jb(e){return Rn(e)/255}var pr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Jr(e){return!!pr.CSS_UNIT.exec(e)}function ZD(e){e=e.replace(RD,"").replace(ID,"").toLowerCase();var t=!1;if(Wm[e])e=Wm[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=pr.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(e))?{r:Rn(n[1]),g:Rn(n[2]),b:Rn(n[3]),a:jb(n[4]),format:t?"name":"hex8"}:(n=pr.hex6.exec(e))?{r:Rn(n[1]),g:Rn(n[2]),b:Rn(n[3]),format:t?"name":"hex"}:(n=pr.hex4.exec(e))?{r:Rn(n[1]+""+n[1]),g:Rn(n[2]+""+n[2]),b:Rn(n[3]+""+n[3]),a:jb(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=pr.hex3.exec(e))?{r:Rn(n[1]+""+n[1]),g:Rn(n[2]+""+n[2]),b:Rn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function JD(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const e6=350,Ub=400,zb=600,Ym={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},Hb=({primary:e="hsl(0, 0%, 0%)"})=>{const t=ce(e).toHsl(),n=ce(e).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${t.h} ${t.s*100}% ${t.l*100}%`,"--opencx-primary-foreground":n,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%"}};function t6(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))})}function Ru(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gm=e=>Array.isArray(e);function Vb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Iu(e){return typeof e=="string"||Array.isArray(e)}function $b(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qm(e,t,n,r){if(typeof t=="function"){const[i,a]=$b(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=$b(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function yd(e,t,n){const r=e.getProps();return qm(r,t,n!==void 0?n:r.custom,e)}const Km=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xm=["initial",...Km],Pu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zi=new Set(Pu),ei=e=>e*1e3,ti=e=>e/1e3,n6={type:"spring",stiffness:500,damping:25,restSpeed:10},r6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i6={type:"keyframes",duration:.8},a6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o6=(e,{keyframes:t})=>t.length>2?i6:zi.has(e)?e.startsWith("scale")?r6(t[1]):n6:a6;function Qm(e,t){return e?e[t]||e.default||e:void 0}const s6={skipAnimations:!1,useManualTiming:!1},u6=e=>e!==null;function xd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(u6),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const qt=e=>e;function l6(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(l){a.has(l)&&(u.schedule(l),e()),l(o)}const u={schedule:(l,c=!1,d=!1)=>{const h=d&&r?t:n;return c&&a.add(l),h.has(l)||h.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(o=l,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(s),r=!1,i&&(i=!1,u.process(l))}};return u}const wd=["read","resolveKeyframes","update","preRender","render","postRender"],c6=40;function Wb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=wd.reduce((g,x)=>(g[x]=l6(a),g),{}),{read:s,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=o,h=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,c6),1),i.timestamp=g,i.isProcessing=!0,s.process(i),u.process(i),l.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},m=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:wd.reduce((g,x)=>{const w=o[x];return g[x]=(T,C=!1,_=!1)=>(n||m(),w.schedule(T,C,_)),g},{}),cancel:g=>{for(let x=0;x<wd.length;x++)o[wd[x]].cancel(g)},state:i,steps:o}}const{schedule:Ge,cancel:Hi,state:Ut,steps:Zm}=Wb(typeof requestAnimationFrame<"u"?requestAnimationFrame:qt,!0),Yb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d6=1e-7,f6=12;function p6(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Yb(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>d6&&++s<f6);return o}function Ou(e,t,n,r){if(e===t&&n===r)return qt;const i=a=>p6(a,0,1,e,n);return a=>a===0||a===1?a:Yb(i(a),t,r)}const Gb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qb=e=>t=>1-e(1-t),Kb=Ou(.33,1.53,.69,.99),Jm=qb(Kb),Xb=Gb(Jm),Qb=e=>(e*=2)<1?.5*Jm(e):.5*(2-Math.pow(2,-10*(e-1))),eg=e=>1-Math.sin(Math.acos(e)),Zb=qb(eg),Jb=Gb(eg),eE=e=>/^0[^.\s]+$/u.test(e);function h6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eE(e):!0}let tg=qt;const tE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),nE=e=>t=>typeof t=="string"&&t.startsWith(e),rE=nE("--"),m6=nE("var(--"),ng=e=>m6(e)?g6.test(e.split("/*")[0].trim()):!1,g6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,v6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function y6(e){const t=v6.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function iE(e,t,n=1){const[r,i]=y6(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return tE(o)?parseFloat(o):o}return ng(i)?iE(i,t,n+1):i}const Vi=(e,t,n)=>n>t?t:n<e?e:n,zo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Du={...zo,transform:e=>Vi(0,1,e)},bd={...zo,default:1},Lu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$i=Lu("deg"),Ar=Lu("%"),me=Lu("px"),x6=Lu("vh"),w6=Lu("vw"),aE={...Ar,parse:e=>Ar.parse(e)/100,transform:e=>Ar.transform(e*100)},b6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oE=e=>e===zo||e===me,sE=(e,t)=>parseFloat(e.split(", ")[t]),uE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return sE(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?sE(a[1],e):0}},E6=new Set(["x","y","z"]),T6=Pu.filter(e=>!E6.has(e));function _6(e){const t=[];return T6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ho={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:uE(4,13),y:uE(5,14)};Ho.translateX=Ho.x,Ho.translateY=Ho.y;const lE=e=>t=>t.test(e),cE=[zo,me,Ar,$i,w6,x6,{test:e=>e==="auto",parse:e=>e}],dE=e=>cE.find(lE(e)),Ua=new Set;let rg=!1,ig=!1;function fE(){if(ig){const e=Array.from(Ua).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=_6(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(([a,o])=>{var s;(s=r.getValue(a))===null||s===void 0||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ig=!1,rg=!1,Ua.forEach(e=>e.complete()),Ua.clear()}function pE(){Ua.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ig=!0)})}function C6(){pE(),fE()}class ag{constructor(t,n,r,i,a,o=!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=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ua.add(this),rg||(rg=!0,Ge.read(pE),Ge.resolveKeyframes(fE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ua.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ua.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Mu=e=>Math.round(e*1e5)/1e5,og=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function S6(e){return e==null}const k6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sg=(e,t)=>n=>!!(typeof n=="string"&&k6.test(n)&&n.startsWith(e)||t&&!S6(n)&&Object.prototype.hasOwnProperty.call(n,t)),hE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(og);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},A6=e=>Vi(0,255,e),ug={...zo,transform:e=>Math.round(A6(e))},za={test:sg("rgb","red"),parse:hE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ug.transform(e)+", "+ug.transform(t)+", "+ug.transform(n)+", "+Mu(Du.transform(r))+")"};function N6(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 lg={test:sg("#"),parse:N6,transform:za.transform},Vo={test:sg("hsl","hue"),parse:hE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ar.transform(Mu(t))+", "+Ar.transform(Mu(n))+", "+Mu(Du.transform(r))+")"},Kt={test:e=>za.test(e)||lg.test(e)||Vo.test(e),parse:e=>za.test(e)?za.parse(e):Vo.test(e)?Vo.parse(e):lg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?za.transform(e):Vo.transform(e)},R6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(og))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(R6))===null||n===void 0?void 0:n.length)||0)>0}const mE="number",gE="color",P6="var",O6="var(",vE="${}",D6=/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 Fu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(D6,u=>(Kt.test(u)?(r.color.push(a),i.push(gE),n.push(Kt.parse(u))):u.startsWith(O6)?(r.var.push(a),i.push(P6),n.push(u)):(r.number.push(a),i.push(mE),n.push(parseFloat(u))),++a,vE)).split(vE);return{values:n,split:s,indexes:r,types:i}}function yE(e){return Fu(e).values}function xE(e){const{split:t,types:n}=Fu(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===mE?a+=Mu(i[o]):s===gE?a+=Kt.transform(i[o]):a+=i[o]}return a}}const L6=e=>typeof e=="number"?0:e;function M6(e){const t=yE(e);return xE(e)(t.map(L6))}const Wi={test:I6,parse:yE,createTransformer:xE,getAnimatableNone:M6},F6=new Set(["brightness","contrast","saturate","opacity"]);function B6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(og)||[];if(!r)return e;const i=n.replace(r,"");let a=F6.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const j6=/\b([a-z-]*)\(.*?\)/gu,cg={...Wi,getAnimatableNone:e=>{const t=e.match(j6);return t?t.map(B6).join(" "):e}},U6={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},z6={rotate:$i,rotateX:$i,rotateY:$i,rotateZ:$i,scale:bd,scaleX:bd,scaleY:bd,scaleZ:bd,skew:$i,skewX:$i,skewY:$i,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Du,originX:aE,originY:aE,originZ:me},wE={...zo,transform:Math.round},dg={...U6,...z6,zIndex:wE,size:me,fillOpacity:Du,strokeOpacity:Du,numOctaves:wE},H6={...dg,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:cg,WebkitFilter:cg},fg=e=>H6[e];function bE(e,t){let n=fg(e);return n!==cg&&(n=Wi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const V6=new Set(["auto","none","0"]);function $6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!V6.has(a)&&Fu(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=bE(n,i)}class EE extends ag{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),ng(l))){const c=iE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!b6.has(r)||t.length!==2)return;const[i,a]=t,o=dE(i),s=dE(a);if(o!==s)if(oE(o)&&oE(s))for(let u=0;u<t.length;u++){const l=t[u];typeof l=="string"&&(t[u]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)h6(t[i])&&r.push(i);r.length&&$6(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ho[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=Ho[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,l])=>{n.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function pg(e){return typeof e=="function"}let Ed;function W6(){Ed=void 0}const Nr={now:()=>(Ed===void 0&&Nr.set(Ut.isProcessing||s6.useManualTiming?Ut.timestamp:performance.now()),Ed),set:e=>{Ed=e,queueMicrotask(W6)}},TE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wi.test(e)||e==="0")&&!e.startsWith("url("));function Y6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function G6(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=TE(i,t),s=TE(a,t);return!o||!s?!1:Y6(e)||(n==="spring"||pg(n))&&r}const q6=40;class _E{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>q6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&C6(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:s,onUpdate:u,isGenerator:l}=this.options;if(!l&&!G6(t,r,i,a))if(o)this.options.duration=0;else{u==null||u(xd(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function CE(e,t){return t?e*(1e3/t):0}const K6=5;function SE(e,t,n){const r=Math.max(t-K6,0);return CE(n-e(r),t-r)}const hg=.001,X6=.01,Q6=10,Z6=.05,J6=1;function eL({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=Vi(Z6,J6,o),e=Vi(X6,Q6,ti(e)),o<1?(i=l=>{const c=l*o,d=c*e,f=c-n,h=mg(l,o),m=Math.exp(-d);return hg-f/h*m},a=l=>{const d=l*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),y=mg(Math.pow(l,2),o);return(-i(l)+hg>0?-1:1)*((f-h)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-hg+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=nL(i,a,s);if(e=ei(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const tL=12;function nL(e,t,n){let r=n;for(let i=1;i<tL;i++)r=r-e(r)/t(r);return r}function mg(e,t){return e*Math.sqrt(1-t*t)}const rL=["duration","bounce"],iL=["stiffness","damping","mass"];function kE(e,t){return t.some(n=>e[n]!==void 0)}function aL(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!kE(e,iL)&&kE(e,rL)){const n=eL(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function AE({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=aL({...r,velocity:-ti(r.velocity||0)}),h=d||0,m=u/(2*Math.sqrt(s*l)),y=a-i,E=ti(Math.sqrt(s/l)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let x;if(m<1){const w=mg(E,m);x=T=>{const C=Math.exp(-m*E*T);return a-C*((h+m*E*y)/w*Math.sin(w*T)+y*Math.cos(w*T))}}else if(m===1)x=w=>a-Math.exp(-E*w)*(y+(h+E*y)*w);else{const w=E*Math.sqrt(m*m-1);x=T=>{const C=Math.exp(-m*E*T),_=Math.min(w*T,300);return a-C*((h+m*E*y)*Math.sinh(_)+w*y*Math.cosh(_))/w}}return{calculatedDuration:f&&c||null,next:w=>{const T=x(w);if(f)o.done=w>=c;else{let C=0;m<1&&(C=w===0?ei(h):SE(x,w,T));const _=Math.abs(C)<=n,A=Math.abs(a-T)<=t;o.done=_&&A}return o.value=o.done?a:T,o}}}function NE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=P=>s!==void 0&&P<s||u!==void 0&&P>u,m=P=>s===void 0?u:u===void 0||Math.abs(s-P)<Math.abs(u-P)?s:u;let y=n*t;const E=d+y,g=o===void 0?E:o(E);g!==E&&(y=g-d);const x=P=>-y*Math.exp(-P/r),w=P=>g+x(P),T=P=>{const H=x(P),I=w(P);f.done=Math.abs(H)<=l,f.value=f.done?g:I};let C,_;const A=P=>{h(f.value)&&(C=P,_=AE({keyframes:[f.value,m(f.value)],velocity:SE(w,P,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return A(0),{calculatedDuration:null,next:P=>{let H=!1;return!_&&C===void 0&&(H=!0,T(P),A(P)),C!==void 0&&P>=C?_.next(P-C):(!H&&T(P),f)}}}const oL=Ou(.42,0,1,1),sL=Ou(0,0,.58,1),RE=Ou(.42,0,.58,1),uL=e=>Array.isArray(e)&&typeof e[0]!="number",gg=e=>Array.isArray(e)&&typeof e[0]=="number",IE={linear:qt,easeIn:oL,easeInOut:RE,easeOut:sL,circIn:eg,circInOut:Jb,circOut:Zb,backIn:Jm,backInOut:Xb,backOut:Kb,anticipate:Qb},PE=e=>{if(gg(e)){tg(e.length===4);const[t,n,r,i]=e;return Ou(t,n,r,i)}else if(typeof e=="string")return tg(IE[e]!==void 0),IE[e];return e},lL=(e,t)=>n=>t(e(n)),ni=(...e)=>e.reduce(lL),$o=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lt=(e,t,n)=>e+(t-e)*n;function vg(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 cL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=vg(u,s,e+1/3),a=vg(u,s,e),o=vg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Td(e,t){return n=>n>0?t:e}const yg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},dL=[lg,za,Vo],fL=e=>dL.find(t=>t.test(e));function OE(e){const t=fL(e);if(!t)return!1;let n=t.parse(e);return t===Vo&&(n=cL(n)),n}const DE=(e,t)=>{const n=OE(e),r=OE(t);if(!n||!r)return Td(e,t);const i={...n};return a=>(i.red=yg(n.red,r.red,a),i.green=yg(n.green,r.green,a),i.blue=yg(n.blue,r.blue,a),i.alpha=lt(n.alpha,r.alpha,a),za.transform(i))},xg=new Set(["none","hidden"]);function pL(e,t){return xg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hL(e,t){return n=>lt(e,t,n)}function wg(e){return typeof e=="number"?hL:typeof e=="string"?ng(e)?Td:Kt.test(e)?DE:vL:Array.isArray(e)?LE:typeof e=="object"?Kt.test(e)?DE:mL:Td}function LE(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>wg(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function mL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wg(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function gL(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],s=e.indexes[o][i[o]],u=(n=e.values[s])!==null&&n!==void 0?n:0;r[a]=u,i[o]++}return r}const vL=(e,t)=>{const n=Wi.createTransformer(t),r=Fu(e),i=Fu(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?xg.has(e)&&!i.values.length||xg.has(t)&&!r.values.length?pL(e,t):ni(LE(gL(r,i),i.values),n):Td(e,t)};function ME(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lt(e,t,n):wg(e)(e,t)}function yL(e,t,n){const r=[],i=n||ME,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||qt:t;s=ni(u,s)}r.push(s)}return r}function xL(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(tg(a===t.length),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=yL(t,r,i),s=o.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=$o(e[c],e[c+1],l);return o[c](d)};return n?l=>u(Vi(e[0],e[a-1],l)):u}function wL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=$o(0,t,r);e.push(lt(n,1,i))}}function bL(e){const t=[0];return wL(t,e.length-1),t}function EL(e,t){return e.map(n=>n*t)}function TL(e,t){return e.map(()=>t||RE).splice(0,e.length-1)}function _d({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=uL(r)?r.map(PE):PE(r),a={done:!1,value:t[0]},o=EL(n&&n.length===t.length?n:bL(t),e),s=xL(o,t,{ease:Array.isArray(i)?i:TL(t,i)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}const FE=2e4;function _L(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<FE;)t+=n,r=e.next(t);return t>=FE?1/0:t}const CL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ge.update(t,!0),stop:()=>Hi(t),now:()=>Ut.isProcessing?Ut.timestamp:Nr.now()}},SL={decay:NE,inertia:NE,tween:_d,keyframes:_d,spring:AE},kL=e=>e/100;class bg extends _E{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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||ag,s=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new o(a,s,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,s=pg(n)?n:SL[n]||_d;let u,l;s!==_d&&typeof t[0]!="number"&&(u=ni(kL,ME(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});a==="mirror"&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=_L(c));const{calculatedDuration:d}=c,f=d+i,h=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}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:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return a.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:y,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/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 g=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,T=a;if(h){const P=Math.min(this.currentTime,c)/d;let H=Math.floor(P),I=P%1;!I&&P>=1&&(I=1),I===1&&H--,H=Math.min(H,h+1),!!(H%2)&&(m==="reverse"?(I=1-I,y&&(I-=y/d)):m==="mirror"&&(T=o)),w=Vi(0,1,I)*d}const C=x?{done:!1,value:u[0]}:T.next(w);s&&(C.value=s(C.value));let{done:_}=C;!x&&l!==null&&(_=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&i!==void 0&&(C.value=xd(u,this.options,i)),E&&E(C.value),A&&this.finish(),C}get duration(){const{resolved:t}=this;return t?ti(t.calculatedDuration):0}get time(){return ti(this.currentTime)}set time(t){t=ei(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=ti(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=CL,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),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 BE=new Set(["opacity","clipPath","filter","transform"]),AL=10,NL=(e,t)=>{let n="";const r=Math.max(Math.round(t/AL),2);for(let i=0;i<r;i++)n+=e($o(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Eg(e){let t;return()=>(t===void 0&&(t=e()),t)}const RL={linearEasing:void 0};function IL(e,t){const n=Eg(e);return()=>{var r;return(r=RL[t])!==null&&r!==void 0?r:n()}}const Cd=IL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function jE(e){return!!(typeof e=="function"&&Cd()||!e||typeof e=="string"&&(e in Tg||Cd())||gg(e)||Array.isArray(e)&&e.every(jE))}const Bu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bu([0,.65,.55,1]),circOut:Bu([.55,0,1,.45]),backIn:Bu([.31,.01,.66,-.59]),backOut:Bu([.33,1.53,.69,.99])};function UE(e,t){if(e)return typeof e=="function"&&Cd()?NL(e,t):gg(e)?Bu(e):Array.isArray(e)?e.map(n=>UE(n,t)||Tg.easeOut):Tg[e]}function PL(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=UE(s,i);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function zE(e,t){e.timeline=t,e.onfinish=null}const OL=Eg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Sd=10,DL=2e4;function LL(e){return pg(e.type)||e.type==="spring"||!jE(e.ease)}function ML(e,t){const n=new bg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<DL;)r=n.sample(a),i.push(r.value),a+=Sd;return{times:void 0,keyframes:i,duration:a-Sd,ease:"linear"}}const HE={anticipate:Qb,backInOut:Xb,circInOut:Jb};function FL(e){return e in HE}class VE extends _E{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new EE(a,(o,s)=>this.onKeyframesResolved(o,s),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:a,ease:o,type:s,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof o=="string"&&Cd()&&FL(o)&&(o=HE[o]),LL(this.options)){const{onComplete:f,onUpdate:h,motionValue:m,element:y,...E}=this.options,g=ML(t,E);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,a=g.times,o=g.ease,s="keyframes"}const d=PL(u.owner.current,l,t,{...this.options,duration:i,times:a,ease:o});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(zE(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(xd(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:a,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ti(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ti(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ei(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 qt;const{animation:r}=n;zE(r,t)}return qt}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:a,ease:o,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...h}=this.options,m=new bg({...h,keyframes:r,duration:i,type:a,ease:o,times:s,isGenerator:!0}),y=ei(this.time);l.setWithVelocity(m.sample(y-Sd).value,m.sample(y).value,Sd)}const{onStop:u}=this.options;u&&u(),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:a,damping:o,type:s}=t;return OL()&&r&&BE.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&a!=="mirror"&&o!==0&&s!=="inertia"}}const BL=Eg(()=>window.ScrollTimeline!==void 0);class jL{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>BL()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function UL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const _g=(e,t,n,r={},i,a)=>o=>{const s=Qm(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ei(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-l,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};UL(s)||(c={...c,...o6(e,c)}),c.duration&&(c.duration=ei(c.duration)),c.repeatDelay&&(c.repeatDelay=ei(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){const f=xd(c.keyframes,s);if(f!==void 0)return Ge.update(()=>{c.onUpdate(f),c.onComplete()}),new jL([])}return!a&&VE.supports(c)?new VE(c):new bg(c)},zL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),HL=e=>Gm(e)?e[e.length-1]||0:e;function Cg(e,t){e.indexOf(t)===-1&&e.push(t)}function Sg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class kg{constructor(){this.subscriptions=[]}add(t){return Cg(this.subscriptions,t),()=>Sg(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 a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $E=30,VL=e=>!isNaN(parseFloat(e));class $L{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Nr.now();this.updatedAt!==a&&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=Nr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=VL(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 kg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ge.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=Nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$E)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$E);return CE(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 ju(e,t){return new $L(e,t)}function WL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ju(n))}function YL(e,t){const n=yd(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=HL(a[o]);WL(e,o,s)}}const kd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),WE="data-"+kd("framerAppearId");function YE(e){return e.props[WE]}const Xt=e=>!!(e&&e.getVelocity);function GL(e){return!!(Xt(e)&&e.add)}function Ag(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(GL(n))return n.add(t)}function qL({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function GE(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(o=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),h=u[d];if(h===void 0||c&&qL(c,d))continue;const m={delay:n,...Qm(o||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=YE(e);if(g){const x=window.MotionHandoffAnimation(g,d,Ge);x!==null&&(m.startTime=x,y=!0)}}Ag(e,d),f.start(_g(d,f,h,e.shouldReduceMotion&&zi.has(d)?{type:!1}:m,e,y));const E=f.animation;E&&l.push(E)}return s&&Promise.all(l).then(()=>{Ge.update(()=>{s&&YL(e,s)})}),l}function Ng(e,t,n={}){var r;const i=yd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(GE(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=a;return KL(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[l,c]=u==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function KL(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>s-l*r;return Array.from(e.variantChildren).sort(XL).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(Ng(l,t,{...a,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function XL(e,t){return e.sortNodePosition(t)}function QL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Ng(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Ng(e,t,n);else{const i=typeof t=="function"?yd(e,t,n.custom):t;r=Promise.all(GE(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ZL=Xm.length;function qE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ZL;n++){const r=Xm[n],i=e.props[r];(Iu(i)||i===!1)&&(t[r]=i)}return t}const JL=[...Km].reverse(),e4=Km.length;function t4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>QL(e,n,r)))}function n4(e){let t=t4(e),n=KE(),r=!0;const i=u=>(l,c)=>{var d;const f=yd(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:m,...y}=f;l={...l,...y,...m}}return l};function a(u){t=u(e)}function o(u){const{props:l}=e,c=qE(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let E=0;E<e4;E++){const g=JL[E],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=Iu(w),C=g===u?x.isActive:null;C===!1&&(m=E);let _=w===c[g]&&w!==l[g]&&T;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),x.protectedKeys={...h},!x.isActive&&C===null||!w&&!x.prevProp||Ru(w)||typeof w=="boolean")continue;const A=r4(x.prevProp,w);let P=A||g===u&&x.isActive&&!_&&T||E>m&&T,H=!1;const I=Array.isArray(w)?w:[w];let V=I.reduce(i(g),{});C===!1&&(V={});const{prevResolvedValues:z={}}=x,K={...z,...V},W=J=>{P=!0,f.has(J)&&(H=!0,f.delete(J)),x.needsAnimating[J]=!0;const F=e.getValue(J);F&&(F.liveStyle=!1)};for(const J in K){const F=V[J],B=z[J];if(h.hasOwnProperty(J))continue;let k=!1;Gm(F)&&Gm(B)?k=!Vb(F,B):k=F!==B,k?F!=null?W(J):f.add(J):F!==void 0&&f.has(J)?W(J):x.protectedKeys[J]=!0}x.prevProp=w,x.prevResolvedValues=V,x.isActive&&(h={...h,...V}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(_&&A)||H)&&d.push(...I.map(J=>({animation:J,options:{type:g}})))}if(f.size){const E={};f.forEach(g=>{const x=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),E[g]=x??null}),d.push({animation:E})}let y=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function s(u,l){var c;if(n[u].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(u,l)}),n[u].isActive=l;const d=o(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=KE(),r=!0}}}function r4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vb(t,e):!1}function Ha(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function KE(){return{animate:Ha(!0),whileInView:Ha(),whileHover:Ha(),whileTap:Ha(),whileDrag:Ha(),whileFocus:Ha(),exit:Ha()}}class Yi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class i4 extends Yi{constructor(t){super(t),t.animationState||(t.animationState=n4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ru(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 a4=0;class o4 extends Yi{constructor(){super(...arguments),this.id=a4++}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 s4={animation:{Feature:i4},exit:{Feature:o4}},XE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ad(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const u4=e=>t=>XE(t)&&e(t,Ad(t));function ri(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ii(e,t,n,r){return ri(e,t,u4(n),r)}const QE=(e,t)=>Math.abs(e-t);function l4(e,t){const n=QE(e.x,t.x),r=QE(e.y,t.y);return Math.sqrt(n**2+r**2)}class ZE{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!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 d=Ig(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=l4(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:y}=Ut;this.history.push({...m,timestamp:y});const{onStart:E,onMove:g}=this.handlers;f||(E&&E(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Rg(f,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Ig(d.type==="pointercancel"?this.lastMoveEventInfo:Rg(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,E),m&&m(d,E)},!XE(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Ad(t),s=Rg(o,this.transformPagePoint),{point:u}=s,{timestamp:l}=Ut;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Ig(s,this.history)),this.removeListeners=ni(ii(this.contextWindow,"pointermove",this.handlePointerMove),ii(this.contextWindow,"pointerup",this.handlePointerUp),ii(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Hi(this.updatePoint)}}function Rg(e,t){return t?{point:t(e.point)}:e}function JE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ig({point:e},t){return{point:e,delta:JE(e,eT(t)),offset:JE(e,c4(t)),velocity:d4(t,.1)}}function c4(e){return e[0]}function eT(e){return e[e.length-1]}function d4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=eT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ei(t)));)n--;if(!r)return{x:0,y:0};const a=ti(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function tT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const nT=tT("dragHorizontal"),rT=tT("dragVertical");function iT(e){let t=!1;if(e==="y")t=rT();else if(e==="x")t=nT();else{const n=nT(),r=rT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function aT(){const e=iT(!0);return e?(e(),!1):!0}function Wo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const oT=1e-4,f4=1-oT,p4=1+oT,sT=.01,h4=0-sT,m4=0+sT;function In(e){return e.max-e.min}function g4(e,t,n){return Math.abs(e-t)<=n}function uT(e,t,n,r=.5){e.origin=r,e.originPoint=lt(t.min,t.max,e.origin),e.scale=In(n)/In(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=f4&&e.scale<=p4||isNaN(e.scale))&&(e.scale=1),(e.translate>=h4&&e.translate<=m4||isNaN(e.translate))&&(e.translate=0)}function Uu(e,t,n,r){uT(e.x,t.x,n.x,r?r.originX:void 0),uT(e.y,t.y,n.y,r?r.originY:void 0)}function lT(e,t,n){e.min=n.min+t.min,e.max=e.min+In(t)}function v4(e,t,n){lT(e.x,t.x,n.x),lT(e.y,t.y,n.y)}function cT(e,t,n){e.min=t.min-n.min,e.max=e.min+In(t)}function zu(e,t,n){cT(e.x,t.x,n.x),cT(e.y,t.y,n.y)}function y4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?lt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?lt(n,e,r.max):Math.min(e,n)),e}function dT(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 x4(e,{top:t,left:n,bottom:r,right:i}){return{x:dT(e.x,n,i),y:dT(e.y,t,r)}}function fT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function w4(e,t){return{x:fT(e.x,t.x),y:fT(e.y,t.y)}}function b4(e,t){let n=.5;const r=In(e),i=In(t);return i>r?n=$o(t.min,t.max-r,e.min):r>i&&(n=$o(e.min,e.max-i,t.min)),Vi(0,1,n)}function E4(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 Pg=.35;function T4(e=Pg){return e===!1?e=0:e===!0&&(e=Pg),{x:pT(e,"left","right"),y:pT(e,"top","bottom")}}function pT(e,t,n){return{min:hT(e,t),max:hT(e,n)}}function hT(e,t){return typeof e=="number"?e:e[t]||0}const mT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yo=()=>({x:mT(),y:mT()}),gT=()=>({min:0,max:0}),yt=()=>({x:gT(),y:gT()});function qn(e){return[e("x"),e("y")]}function vT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C4(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 Og(e){return e===void 0||e===1}function Dg({scale:e,scaleX:t,scaleY:n}){return!Og(e)||!Og(t)||!Og(n)}function Va(e){return Dg(e)||yT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yT(e){return xT(e.x)||xT(e.y)}function xT(e){return e&&e!=="0%"}function Nd(e,t,n){const r=e-n,i=t*r;return n+i}function wT(e,t,n,r,i){return i!==void 0&&(e=Nd(e,i,r)),Nd(e,n,r)+t}function Lg(e,t=0,n=1,r,i){e.min=wT(e.min,t,n,r,i),e.max=wT(e.max,t,n,r,i)}function bT(e,{x:t,y:n}){Lg(e.x,t.translate,t.scale,t.originPoint),Lg(e.y,n.translate,n.scale,n.originPoint)}const ET=.999999999999,TT=1.0000000000001;function S4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&qo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,bT(e,o)),r&&Va(a.latestValues)&&qo(e,a.latestValues))}t.x<TT&&t.x>ET&&(t.x=1),t.y<TT&&t.y>ET&&(t.y=1)}function Go(e,t){e.min=e.min+t,e.max=e.max+t}function _T(e,t,n,r,i=.5){const a=lt(e.min,e.max,i);Lg(e,t,n,a,r)}function qo(e,t){_T(e.x,t.x,t.scaleX,t.scale,t.originX),_T(e.y,t.y,t.scaleY,t.scale,t.originY)}function CT(e,t){return vT(C4(e.getBoundingClientRect(),t))}function k4(e,t,n){const r=CT(e,n),{scroll:i}=t;return i&&(Go(r.x,i.offset.x),Go(r.y,i.offset.y)),r}const ST=({current:e})=>e?e.ownerDocument.defaultView:null,A4=new WeakMap;class N4{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ad(c,"page").point)},a=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:m}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iT(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qn(E=>{let g=this.getAxisMotionValue(E).get()||0;if(Ar.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[E];w&&(g=In(w)*(parseFloat(g)/100))}}this.originPoint[E]=g}),m&&Ge.postRender(()=>m(c,d)),Ag(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:E}=d;if(h&&this.currentDirection===null){this.currentDirection=R4(E),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,E),this.updateAxis("y",d.point,E),this.visualElement.render(),y&&y(c,d)},s=(c,d)=>this.stop(c,d),u=()=>qn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ZE(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ST(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ge.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Rd(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=y4(o,this.constraints[t],this.elastic[t])),a.set(o)}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,a=this.constraints;n&&Wo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=x4(i.layoutBox,n):this.constraints=!1,this.elastic=T4(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&qn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=E4(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Wo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=k4(r,i.root,this.visualElement.getTransformPagePoint());let o=w4(i.layout.layoutBox,a);if(n){const s=n(_4(o));this.hasMutatedConstraints=!!s,s&&(o=vT(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=qn(c=>{if(!Rd(c,n,this.currentDirection))return;let d=u&&u[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ag(this.visualElement,t),r.start(_g(t,r,0,n,this.visualElement,!1))}stopAnimation(){qn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qn(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){qn(n=>{const{drag:r}=this.getProps();if(!Rd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-lt(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Wo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};qn(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const u=s.get();i[o]=b4({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qn(o=>{if(!Rd(o,t,null))return;const s=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];s.set(lt(u,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;A4.set(this.visualElement,this);const t=this.visualElement.current,n=ii(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Wo(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ge.read(r);const o=ri(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(qn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=Pg,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Rd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function R4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class I4 extends Yi{constructor(t){super(t),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new N4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kT=e=>(t,n)=>{e&&Ge.postRender(()=>e(t,n))};class P4 extends Yi{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(t){this.session=new ZE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ST(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kT(t),onStart:kT(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Ge.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=ii(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 Id=v.createContext(null);function O4(){const e=v.useContext(Id);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();v.useEffect(()=>r(i),[]);const a=v.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,a]:[!0]}const Mg=v.createContext({}),AT=v.createContext({}),Pd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function NT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=NT(e,t.target.x),r=NT(e,t.target.y);return`${n}% ${r}%`}},D4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Wi.parse(e);if(i.length>5)return r;const a=Wi.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=u;const l=lt(s,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),a(i)}},Od={};function L4(e){Object.assign(Od,e)}const{schedule:Fg,cancel:Ote}=Wb(queueMicrotask,!1);class M4 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;L4(F4),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Pd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ge.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Fg.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 RT(e){const[t,n]=O4(),r=v.useContext(Mg);return b.jsx(M4,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(AT),isPresent:t,safeToRemove:n})}const F4={borderRadius:{...Hu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hu,borderTopRightRadius:Hu,borderBottomLeftRadius:Hu,borderBottomRightRadius:Hu,boxShadow:D4},IT=["TopLeft","TopRight","BottomLeft","BottomRight"],B4=IT.length,PT=e=>typeof e=="string"?parseFloat(e):e,OT=e=>typeof e=="number"||me.test(e);function j4(e,t,n,r,i,a){i?(e.opacity=lt(0,n.opacity!==void 0?n.opacity:1,U4(r)),e.opacityExit=lt(t.opacity!==void 0?t.opacity:1,0,z4(r))):a&&(e.opacity=lt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<B4;o++){const s=`border${IT[o]}Radius`;let u=DT(t,s),l=DT(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||OT(u)===OT(l)?(e[s]=Math.max(lt(PT(u),PT(l),r),0),(Ar.test(l)||Ar.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||n.rotate)&&(e.rotate=lt(t.rotate||0,n.rotate||0,r))}function DT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const U4=LT(0,.5,Zb),z4=LT(.5,.95,qt);function LT(e,t,n){return r=>r<e?0:r>t?1:n($o(e,t,r))}function MT(e,t){e.min=t.min,e.max=t.max}function Kn(e,t){MT(e.x,t.x),MT(e.y,t.y)}function FT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function BT(e,t,n,r,i){return e-=t,e=Nd(e,1/n,r),i!==void 0&&(e=Nd(e,1/i,r)),e}function H4(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ar.test(t)&&(t=parseFloat(t),t=lt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=lt(a.min,a.max,r);e===a&&(s-=t),e.min=BT(e.min,t,n,s,i),e.max=BT(e.max,t,n,s,i)}function jT(e,t,[n,r,i],a,o){H4(e,t[n],t[r],t[i],t.scale,a,o)}const V4=["x","scaleX","originX"],$4=["y","scaleY","originY"];function UT(e,t,n,r){jT(e.x,t,V4,n?n.x:void 0,r?r.x:void 0),jT(e.y,t,$4,n?n.y:void 0,r?r.y:void 0)}function zT(e){return e.translate===0&&e.scale===1}function HT(e){return zT(e.x)&&zT(e.y)}function VT(e,t){return e.min===t.min&&e.max===t.max}function W4(e,t){return VT(e.x,t.x)&&VT(e.y,t.y)}function $T(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function WT(e,t){return $T(e.x,t.x)&&$T(e.y,t.y)}function YT(e){return In(e.x)/In(e.y)}function GT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Y4{constructor(){this.members=[]}add(t){Cg(this.members,t),t.scheduleRender()}remove(t){if(Sg(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 a=this.members[i];if(a.isPresent!==!1){r=a;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 G4(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const q4=(e,t)=>e.depth-t.depth;class K4{constructor(){this.children=[],this.isDirty=!1}add(t){Cg(this.children,t),this.isDirty=!0}remove(t){Sg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q4),this.isDirty=!1,this.children.forEach(t)}}function Dd(e){const t=Xt(e)?e.get():e;return zL(t)?t.toValue():t}function X4(e,t){const n=Nr.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Hi(r),e(a-t))};return Ge.read(r,!0),()=>Hi(r)}function Q4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Z4(e,t,n){const r=Xt(e)?e:ju(e);return r.start(_g("",r,t,n)),r.animation}const $a={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vu=typeof window<"u"&&window.MotionDebug!==void 0,Bg=["","X","Y","Z"],J4={visibility:"hidden"},qT=1e3;let eM=0;function jg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function KT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=YE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ge,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&KT(r)}function XT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=eM++,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,Vu&&($a.totalNodes=$a.resolvedTargetDeltas=$a.recalculatedProjection=0),this.nodes.forEach(rM),this.nodes.forEach(uM),this.nodes.forEach(lM),this.nodes.forEach(iM),Vu&&window.MotionDebug.record($a)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new K4)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new kg),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const u=this.eventHandlers.get(o);u&&u.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Q4(o),this.instance=o;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=X4(f,250),Pd.hasAnimatedSinceResize&&(Pd.hasAnimatedSinceResize=!1,this.nodes.forEach(ZT))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||hM,{onLayoutAnimationStart:E,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!WT(this.targetLayout,m)||h,w=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const T={...Qm(y,"layout"),onPlay:E,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||ZT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Hi(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(cM),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&KT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(QT);return}this.isUpdating||this.nodes.forEach(oM),this.isUpdating=!1,this.nodes.forEach(sM),this.nodes.forEach(tM),this.nodes.forEach(nM),this.clearAllSnapshots();const s=Nr.now();Ut.delta=Vi(0,1e3/60,s-Ut.timestamp),Ut.timestamp=s,Ut.isProcessing=!0,Zm.update.process(Ut),Zm.preRender.process(Ut),Zm.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aM),this.sharedNodes.forEach(dM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=yt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!HT(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&(s||Va(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return o&&(u=this.removeTransform(u)),mM(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:s}=this.options;if(!s)return yt();const u=s.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gM))){const{scroll:c}=this.root;c&&(Go(u.x,c.offset.x),Go(u.y,c.offset.y))}return u}removeElementScroll(o){var s;const u=yt();if(Kn(u,o),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return u;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Kn(u,o),Go(u.x,d.offset.x),Go(u.y,d.offset.y))}return u}applyTransform(o,s=!1){const u=yt();Kn(u,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&qo(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Va(c.latestValues)&&qo(u,c.latestValues)}return Va(this.latestValues)&&qo(u,this.latestValues),u}removeTransform(o){const s=yt();Kn(s,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!Va(l.latestValues))continue;Dg(l.latestValues)&&l.updateSnapshot();const c=yt(),d=l.measurePageBox();Kn(c,d),UT(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return Va(this.latestValues)&&UT(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),zu(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=yt(),this.targetWithTransforms=yt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),v4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kn(this.target,this.layout.layoutBox),bT(this.target,this.targetDelta)):Kn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),zu(this.relativeTargetOrigin,this.target,h.target),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vu&&$a.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Dg(this.parent.latestValues)||yT(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Kn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;S4(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=yt());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(FT(this.prevProjectionDelta.x,this.projectionDelta.x),FT(this.prevProjectionDelta.y,this.projectionDelta.y)),Uu(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!GT(this.projectionDelta.x,this.prevProjectionDelta.x)||!GT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Vu&&$a.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yo(),this.projectionDelta=Yo(),this.projectionDeltaWithTransform=Yo()}setAnimationOrigin(o,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=Yo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=yt(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,E=this.getStack(),g=!E||E.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(pM));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const C=T/1e3;JT(d.x,o.x,C),JT(d.y,o.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zu(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fM(this.relativeTarget,this.relativeTargetOrigin,f,C),w&&W4(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=yt()),Kn(w,this.relativeTarget)),y&&(this.animationValues=c,j4(c,l,this.latestValues,C,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Hi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{Pd.hasAnimatedSinceResize=!0,this.currentAnimation=Z4(0,qT,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=o;if(!(!s||!u||!l)){if(this!==o&&this.layout&&l&&i2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||yt();const d=In(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+d;const f=In(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+f}Kn(s,u),qo(s,c),Uu(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Y4),this.sharedNodes.get(o).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;const l={};u.z&&jg("z",o,l,this.animationValues);for(let c=0;c<Bg.length;c++)jg(`rotate${Bg[c]}`,o,l,this.animationValues),jg(`skew${Bg[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}getProjectionStyles(o){var s,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return J4;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Dd(o==null?void 0:o.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Dd(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Va(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=G4(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?l.opacity=d===this?(u=(s=f.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in Od){if(f[y]===void 0)continue;const{correct:E,applyTo:g}=Od[y],x=l.transform==="none"?f[y]:E(f[y],d);if(g){const w=g.length;for(let T=0;T<w;T++)l[g[T]]=x}else l[y]=x}return this.options.layoutId&&(l.pointerEvents=d===this?Dd(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(QT),this.root.sharedNodes.clear()}}}function tM(e){e.updateLayout()}function nM(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:a}=e.options,o=n.source!==e.layout.source;a==="size"?qn(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=In(f);f.min=r[d].min,f.max=f.min+h}):i2(a,n.layoutBox,r)&&qn(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=In(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=Yo();Uu(s,r,n.layoutBox);const u=Yo();o?Uu(u,e.applyTransform(i,!0),n.measuredBox):Uu(u,r,n.layoutBox);const l=!HT(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=yt();zu(m,n.layoutBox,f.layoutBox);const y=yt();zu(y,r,h.layoutBox),WT(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rM(e){Vu&&$a.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 iM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aM(e){e.clearSnapshot()}function QT(e){e.clearMeasurements()}function oM(e){e.isLayoutDirty=!1}function sM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uM(e){e.resolveTargetDelta()}function lM(e){e.calcProjection()}function cM(e){e.resetSkewAndRotation()}function dM(e){e.removeLeadSnapshot()}function JT(e,t,n){e.translate=lt(t.translate,0,n),e.scale=lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function e2(e,t,n,r){e.min=lt(t.min,n.min,r),e.max=lt(t.max,n.max,r)}function fM(e,t,n,r){e2(e.x,t.x,n.x,r),e2(e.y,t.y,n.y,r)}function pM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hM={duration:.45,ease:[.4,0,.1,1]},t2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n2=t2("applewebkit/")&&!t2("chrome/")?Math.round:qt;function r2(e){e.min=n2(e.min),e.max=n2(e.max)}function mM(e){r2(e.x),r2(e.y)}function i2(e,t,n){return e==="position"||e==="preserve-aspect"&&!g4(YT(t),YT(n),.2)}function gM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const vM=XT({attachResizeListener:(e,t)=>ri(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ug={current:void 0},a2=XT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ug.current){const e=new vM({});e.mount(window),e.setOptions({layoutScroll:!0}),Ug.current=e}return Ug.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yM={pan:{Feature:P4},drag:{Feature:I4,ProjectionNode:a2,MeasureLayout:RT}};function o2(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(a,o)=>{if(a.pointerType==="touch"||aT())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const u=s[r];u&&Ge.postRender(()=>u(a,o))};return ii(e.current,n,i,{passive:!e.getProps()[r]})}class xM extends Yi{mount(){this.unmount=ni(o2(this.node,!0),o2(this.node,!1))}unmount(){}}class wM extends Yi{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=ni(ri(this.node.current,"focus",()=>this.onFocus()),ri(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const s2=(e,t)=>t?e===t?!0:s2(e,t.parentElement):!1;function zg(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ad(n))}class bM extends Yi{constructor(){super(...arguments),this.removeStartListeners=qt,this.removeEndListeners=qt,this.removeAccessibleListeners=qt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),a=ii(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!s2(this.node.current,s.target)?c:l;f&&Ge.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),o=ii(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ni(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||zg("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ge.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=ri(this.node.current,"keyup",o),zg("down",(s,u)=>{this.startPress(s,u)})},n=ri(this.node.current,"keydown",t),r=()=>{this.isPressing&&zg("cancel",(a,o)=>this.cancelPress(a,o))},i=ri(this.node.current,"blur",r);this.removeAccessibleListeners=ni(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ge.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!aT()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ge.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ii(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ri(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ni(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Hg=new WeakMap,Vg=new WeakMap,EM=e=>{const t=Hg.get(e.target);t&&t(e)},TM=e=>{e.forEach(EM)};function _M({root:e,...t}){const n=e||document;Vg.has(n)||Vg.set(n,{});const r=Vg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TM,{root:e,...t})),r[i]}function CM(e,t,n){const r=_M(t);return Hg.set(e,n),r.observe(e),()=>{Hg.delete(e),r.unobserve(e)}}const SM={some:0,all:1};class kM extends Yi{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:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:SM[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(u)};return CM(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AM(t,n))&&this.startObserver()}unmount(){}}function AM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const NM={inView:{Feature:kM},tap:{Feature:bM},focus:{Feature:wM},hover:{Feature:xM}},RM={layout:{ProjectionNode:a2,MeasureLayout:RT}},$g=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ld=v.createContext({}),Wg=typeof window<"u",u2=Wg?v.useLayoutEffect:v.useEffect,l2=v.createContext({strict:!1});function IM(e,t,n,r,i){var a,o;const{visualElement:s}=v.useContext(Ld),u=v.useContext(l2),l=v.useContext(Id),c=v.useContext($g).reducedMotion,d=v.useRef();r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=v.useContext(AT);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&PM(d.current,n,i,h),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[WE],y=v.useRef(!!m&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return u2(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),Fg.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)===null||E===void 0||E.call(window,m)}),y.current=!1))}),f}function PM(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:c2(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Wo(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function c2(e){if(e)return e.options.allowProjection!==!1?e.projection:c2(e.parent)}function OM(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Wo(n)&&(n.current=r))},[t])}function Md(e){return Ru(e.animate)||Xm.some(t=>Iu(e[t]))}function d2(e){return!!(Md(e)||e.variants)}function DM(e,t){if(Md(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Iu(n)?n:void 0,animate:Iu(r)?r:void 0}}return e.inherit!==!1?t:{}}function LM(e){const{initial:t,animate:n}=DM(e,v.useContext(Ld));return v.useMemo(()=>({initial:t,animate:n}),[f2(t),f2(n)])}function f2(e){return Array.isArray(e)?e.join(" "):e}const p2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ko={};for(const e in p2)Ko[e]={isEnabled:t=>p2[e].some(n=>!!t[n])};function MM(e){for(const t in e)Ko[t]={...Ko[t],...e[t]}}const FM=Symbol.for("motionComponentSymbol");function BM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&MM(e);function a(s,u){let l;const c={...v.useContext($g),...s,layoutId:jM(s)},{isStatic:d}=c,f=LM(s),h=r(s,d);if(!d&&Wg){UM();const m=zM(c);l=m.MeasureLayout,f.visualElement=IM(i,h,c,t,m.ProjectionNode)}return b.jsxs(Ld.Provider,{value:f,children:[l&&f.visualElement?b.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,OM(h,f.visualElement,u),h,d,f.visualElement)]})}const o=v.forwardRef(a);return o[FM]=i,o}function jM({layoutId:e}){const t=v.useContext(Mg).id;return t&&e!==void 0?t+"-"+e:e}function UM(e,t){v.useContext(l2).strict}function zM(e){const{drag:t,layout:n}=Ko;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 HM=["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 Yg(e){return typeof e!="string"||e.includes("-")?!1:!!(HM.indexOf(e)>-1||/[A-Z]/u.test(e))}function h2(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const m2=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 g2(e,t,n,r){h2(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(m2.has(i)?i:kd(i),t.attrs[i])}function v2(e,{layout:t,layoutId:n}){return zi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Od[e]||e==="opacity")}function Gg(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Xt(i[o])||t.style&&Xt(t.style[o])||v2(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),a}function y2(e,t,n){const r=Gg(e,t,n);for(const i in e)if(Xt(e[i])||Xt(t[i])){const a=Pu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function qg(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function VM(e){if(zi.has(e))return"transform";if(BE.has(e))return kd(e)}function $M({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,a,o,s){const u={latestValues:WM(i,a,o,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const x2=e=>(t,n)=>{const r=v.useContext(Ld),i=v.useContext(Id),a=()=>$M(e,t,r,i,n);return n?a():qg(a)};function w2(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const a=qm(e,r[i]);if(a){const{transitionEnd:o,transition:s,...u}=a;n(u,o)}}}function WM(e,t,n,r,i){var a;const o={},s=new Set,u=r&&((a=e.style)===null||a===void 0?void 0:a.willChange)===void 0,l=i(e,{});for(const E in l)o[E]=Dd(l[E]);let{initial:c,animate:d}=e;const f=Md(e),h=d2(e);t&&h&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const y=m?d:c;return y&&typeof y!="boolean"&&!Ru(y)&&w2(e,y,(E,g)=>{for(const x in E){let w=E[x];if(Array.isArray(w)){const T=m?w.length-1:0;w=w[T]}w!==null&&(o[x]=w)}for(const x in g)o[x]=g[x]}),u&&(d&&c!==!1&&!Ru(d)&&w2(e,d,E=>{for(const g in E){const x=VM(g);x&&s.add(x)}}),s.size&&(o.willChange=Array.from(s).join(","))),o}const Kg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),b2=()=>({...Kg(),attrs:{}}),E2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,YM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GM=Pu.length;function qM(e,t,n){let r="",i=!0;for(let a=0;a<GM;a++){const o=Pu[a],s=e[o];if(s===void 0)continue;let u=!0;if(typeof s=="number"?u=s===(o.startsWith("scale")?1:0):u=parseFloat(s)===0,!u||n){const l=E2(s,dg[o]);if(!u){i=!1;const c=YM[o]||o;r+=`${c}(${l}) `}n&&(t[o]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Xg(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const u in t){const l=t[u];if(zi.has(u)){o=!0;continue}else if(rE(u)){i[u]=l;continue}else{const c=E2(l,dg[u]);u.startsWith("origin")?(s=!0,a[u]=c):r[u]=c}}if(t.transform||(o||n?r.transform=qM(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:u="50%",originY:l="50%",originZ:c=0}=a;r.transformOrigin=`${u} ${l} ${c}`}}function T2(e,t,n){return typeof e=="string"?e:me.transform(t+n*e)}function KM(e,t,n){const r=T2(t,e.x,e.width),i=T2(n,e.y,e.height);return`${r} ${i}`}const XM={offset:"stroke-dashoffset",array:"stroke-dasharray"},QM={offset:"strokeDashoffset",array:"strokeDasharray"};function ZM(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?XM:QM;e[a.offset]=me.transform(-r);const o=me.transform(t),s=me.transform(n);e[a.array]=`${o} ${s}`}function Qg(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(Xg(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(i!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=KM(m,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&ZM(f,o,s,u,!1)}const Zg=e=>typeof e=="string"&&e.toLowerCase()==="svg",JM={useVisualState:x2({scrapeMotionValuesFromProps:y2,createRenderState:b2,onMount:(e,t,{renderState:n,latestValues:r})=>{Ge.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ge.render(()=>{Qg(n,r,Zg(t.tagName),e.transformTemplate),g2(t,n)})}})},e5={useVisualState:x2({applyWillChange:!0,scrapeMotionValuesFromProps:Gg,createRenderState:Kg})};function _2(e,t,n){for(const r in t)!Xt(t[r])&&!v2(r,n)&&(e[r]=t[r])}function t5({transformTemplate:e},t){return v.useMemo(()=>{const n=Kg();return Xg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function n5(e,t){const n=e.style||{},r={};return _2(r,n,e),Object.assign(r,t5(e,t)),r}function r5(e,t){const n={},r=n5(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}const i5=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 Fd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i5.has(e)}let C2=e=>!Fd(e);function a5(e){e&&(C2=t=>t.startsWith("on")?!Fd(t):e(t))}try{a5(require("@emotion/is-prop-valid").default)}catch{}function o5(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(C2(i)||n===!0&&Fd(i)||!t&&!Fd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function s5(e,t,n,r){const i=v.useMemo(()=>{const a=b2();return Qg(a,t,Zg(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};_2(a,e.style,e),i.style={...a,...i.style}}return i}function u5(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=(Yg(n)?s5:r5)(r,a,o,n),l=o5(r,typeof n=="string",e),c=n!==v.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=v.useMemo(()=>Xt(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function l5(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Yg(r)?JM:e5,preloadedFeatures:e,useRender:u5(i),createVisualElement:t,Component:r};return BM(o)}}const Jg={current:null},S2={current:!1};function c5(){if(S2.current=!0,!!Wg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jg.current=e.matches;e.addListener(t),t()}else Jg.current=!1}function d5(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Xt(i))e.addValue(r,i);else if(Xt(a))e.addValue(r,ju(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,ju(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const k2=new WeakMap,f5=[...cE,Kt,Wi],p5=e=>f5.find(lE(e)),A2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class h5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ag,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 f=Nr.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ge.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Md(n),this.isVariantNode=d2(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];u[f]!==void 0&&Xt(h)&&h.set(u[f],!1)}}mount(t){this.current=t,k2.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),S2.current||c5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){k2.delete(this.current),this.projection&&this.projection.unmount(),Hi(this.notifyUpdate),Hi(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=zi.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),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 Ko){const n=Ko[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 a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yt()}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;r<A2.length;r++){const i=A2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=d5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.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=ju(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"&&(tE(i)||eE(i))?i=parseFloat(i):!p5(i)&&Wi.test(n)&&(i=bE(t,n)),this.setBaseTarget(t,Xt(i)?i.get():i)),Xt(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 o=qm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Xt(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new kg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class N2 extends h5{constructor(){super(...arguments),this.KeyframeResolver=EE}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]}}function m5(e){return window.getComputedStyle(e)}class g5 extends N2{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=h2}readValueFromInstance(t,n){if(zi.has(n)){const r=fg(n);return r&&r.default||0}else{const r=m5(t),i=(rE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return CT(t,n)}build(t,n,r){Xg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Gg(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class v5 extends N2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(zi.has(n)){const r=fg(n);return r&&r.default||0}return n=m2.has(n)?n:kd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return y2(t,n,r)}build(t,n,r){Qg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){g2(t,n,r,i)}mount(t){this.isSVGTag=Zg(t.tagName),super.mount(t)}}const y5=(e,t)=>Yg(e)?new v5(t):new g5(t,{allowProjection:e!==v.Fragment}),x5=l5({...s4,...NM,...yM,...RM},y5),Xo=t6(x5);class w5 extends v.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 b5({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=v.useContext($g);return v.useInsertionEffect(()=>{const{width:o,height:s,top:u,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
41
41
  [data-motion-pop-id="${n}"] {
42
42
  position: absolute !important;
43
43
  width: ${o}px !important;