@opencx/widget 3.0.38 → 3.0.39

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 @@ var Cie=Object.defineProperty;var Sie=(Fo,yn,ei)=>yn in Fo?Cie(Fo,yn,{enumerable
37
37
  `+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{_h=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ou(e):""}function oD(e){switch(e.tag){case 5:return ou(e.type);case 16:return ou("Lazy");case 13:return ou("Suspense");case 19:return ou("SuspenseList");case 0:case 2:case 15:return e=Ch(e.type,!1),e;case 11:return e=Ch(e.type.render,!1),e;case 1:return e=Ch(e.type,!0),e;default:return""}}function Sh(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 Ra:return"Fragment";case ka:return"Portal";case vh:return"Profiler";case yh:return"StrictMode";case wh:return"Suspense";case bh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bx:return(e.displayName||"Context")+".Consumer";case wx:return(e._context.displayName||"Context")+".Provider";case xh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eh:return t=e.displayName||null,t!==null?t:Sh(e.type)||"Memo";case Ii:t=e._payload,e=e._init;try{return Sh(e(t))}catch{}}return null}function aD(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 Sh(t);case 8:return t===yh?"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 Oi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _x(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sD(e){var t=_x(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cc(e){e._valueTracker||(e._valueTracker=sD(e))}function Cx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_x(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 Ah(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Oi(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 Ax(e,t){t=t.checked,t!=null&&gh(e,"checked",t,!1)}function kh(e,t){Ax(e,t);var n=Oi(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")?Rh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rh(e,t.type,Oi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kx(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 Rh(e,t,n){(t!=="number"||Sc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var au=Array.isArray;function Na(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=""+Oi(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 Nh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return lt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Rx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Z(92));if(au(n)){if(1<n.length)throw Error(Z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Oi(n)}}function Nx(e,t){var n=Oi(t.value),r=Oi(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 Px(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ix(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 Ph(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ix(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ac,Ox=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(Ac=Ac||document.createElement("div"),Ac.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ac.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function su(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uu={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},uD=["Webkit","ms","Moz","O"];Object.keys(uu).forEach(function(e){uD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uu[t]=uu[e]})});function Dx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uu.hasOwnProperty(e)&&uu[e]?(""+t).trim():t+"px"}function Lx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Dx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var lD=lt({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 Ih(e,t){if(t){if(lD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Oh(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 Dh=null;function Lh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mh=null,Pa=null,Ia=null;function Mx(e){if(e=Nu(e)){if(typeof Mh!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Xc(t),Mh(e.stateNode,e.type,t))}}function Fx(e){Pa?Ia?Ia.push(e):Ia=[e]:Pa=e}function Bx(){if(Pa){var e=Pa,t=Ia;if(Ia=Pa=null,Mx(e),t)for(e=0;e<t.length;e++)Mx(t[e])}}function jx(e,t){return e(t)}function Ux(){}var Fh=!1;function zx(e,t,n){if(Fh)return e(t,n);Fh=!0;try{return jx(e,t,n)}finally{Fh=!1,(Pa!==null||Ia!==null)&&(Ux(),Bx())}}function lu(e,t){var n=e.stateNode;if(n===null)return null;var r=Xc(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(Z(231,t,typeof n));return n}var Bh=!1;if(ti)try{var cu={};Object.defineProperty(cu,"passive",{get:function(){Bh=!0}}),window.addEventListener("test",cu,cu),window.removeEventListener("test",cu,cu)}catch{Bh=!1}function cD(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var du=!1,kc=null,Rc=!1,jh=null,dD={onError:function(e){du=!0,kc=e}};function fD(e,t,n,r,i,o,a,s,u){du=!1,kc=null,cD.apply(dD,arguments)}function pD(e,t,n,r,i,o,a,s,u){if(fD.apply(this,arguments),du){if(du){var l=kc;du=!1,kc=null}else throw Error(Z(198));Rc||(Rc=!0,jh=l)}}function jo(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 Hx(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 Vx(e){if(jo(e)!==e)throw Error(Z(188))}function hD(e){var t=e.alternate;if(!t){if(t=jo(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Vx(i),e;if(o===r)return Vx(i),t;o=o.sibling}throw Error(Z(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Z(189))}}if(n.alternate!==r)throw Error(Z(190))}if(n.tag!==3)throw Error(Z(188));return n.stateNode.current===n?e:t}function $x(e){return e=hD(e),e!==null?Wx(e):null}function Wx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Wx(e);if(t!==null)return t;e=e.sibling}return null}var Yx=In.unstable_scheduleCallback,qx=In.unstable_cancelCallback,mD=In.unstable_shouldYield,gD=In.unstable_requestPaint,wt=In.unstable_now,yD=In.unstable_getCurrentPriorityLevel,Uh=In.unstable_ImmediatePriority,Gx=In.unstable_UserBlockingPriority,Nc=In.unstable_NormalPriority,vD=In.unstable_LowPriority,Kx=In.unstable_IdlePriority,Pc=null,Ir=null;function xD(e){if(Ir&&typeof Ir.onCommitFiberRoot=="function")try{Ir.onCommitFiberRoot(Pc,e,void 0,(e.current.flags&128)===128)}catch{}}var pr=Math.clz32?Math.clz32:ED,wD=Math.log,bD=Math.LN2;function ED(e){return e>>>=0,e===0?32:31-(wD(e)/bD|0)|0}var Ic=64,Oc=4194304;function fu(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 Dc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=fu(s):(o&=a,o!==0&&(r=fu(o)))}else a=n&~i,a!==0?r=fu(a):o!==0&&(r=fu(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pr(t),i=1<<n,r|=e[n],t&=~i;return r}function TD(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 _D(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-pr(o),s=1<<a,u=i[a];u===-1?(!(s&n)||s&r)&&(i[a]=TD(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function zh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Xx(){var e=Ic;return Ic<<=1,!(Ic&4194240)&&(Ic=64),e}function Hh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pr(t),e[t]=n}function CD(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-pr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Vh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var qe=0;function Qx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Zx,$h,Jx,ew,tw,Wh=!1,Lc=[],Di=null,Li=null,Mi=null,hu=new Map,mu=new Map,Fi=[],SD="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 nw(e,t){switch(e){case"focusin":case"focusout":Di=null;break;case"dragenter":case"dragleave":Li=null;break;case"mouseover":case"mouseout":Mi=null;break;case"pointerover":case"pointerout":hu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mu.delete(t.pointerId)}}function gu(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Nu(t),t!==null&&$h(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function AD(e,t,n,r,i){switch(t){case"focusin":return Di=gu(Di,e,t,n,r,i),!0;case"dragenter":return Li=gu(Li,e,t,n,r,i),!0;case"mouseover":return Mi=gu(Mi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return hu.set(o,gu(hu.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,mu.set(o,gu(mu.get(o)||null,e,t,n,r,i)),!0}return!1}function rw(e){var t=Uo(e.target);if(t!==null){var n=jo(t);if(n!==null){if(t=n.tag,t===13){if(t=Hx(n),t!==null){e.blockedOn=t,tw(e.priority,function(){Jx(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 Mc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dh=r,n.target.dispatchEvent(r),Dh=null}else return t=Nu(n),t!==null&&$h(t),e.blockedOn=n,!1;t.shift()}return!0}function iw(e,t,n){Mc(e)&&n.delete(t)}function kD(){Wh=!1,Di!==null&&Mc(Di)&&(Di=null),Li!==null&&Mc(Li)&&(Li=null),Mi!==null&&Mc(Mi)&&(Mi=null),hu.forEach(iw),mu.forEach(iw)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,Wh||(Wh=!0,In.unstable_scheduleCallback(In.unstable_NormalPriority,kD)))}function vu(e){function t(i){return yu(i,e)}if(0<Lc.length){yu(Lc[0],e);for(var n=1;n<Lc.length;n++){var r=Lc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Di!==null&&yu(Di,e),Li!==null&&yu(Li,e),Mi!==null&&yu(Mi,e),hu.forEach(t),mu.forEach(t),n=0;n<Fi.length;n++)r=Fi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fi.length&&(n=Fi[0],n.blockedOn===null);)rw(n),n.blockedOn===null&&Fi.shift()}var Oa=ni.ReactCurrentBatchConfig,Fc=!0;function RD(e,t,n,r){var i=qe,o=Oa.transition;Oa.transition=null;try{qe=1,Yh(e,t,n,r)}finally{qe=i,Oa.transition=o}}function ND(e,t,n,r){var i=qe,o=Oa.transition;Oa.transition=null;try{qe=4,Yh(e,t,n,r)}finally{qe=i,Oa.transition=o}}function Yh(e,t,n,r){if(Fc){var i=qh(e,t,n,r);if(i===null)cm(e,t,r,Bc,n),nw(e,r);else if(AD(i,e,t,n,r))r.stopPropagation();else if(nw(e,r),t&4&&-1<SD.indexOf(e)){for(;i!==null;){var o=Nu(i);if(o!==null&&Zx(o),o=qh(e,t,n,r),o===null&&cm(e,t,r,Bc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else cm(e,t,r,null,n)}}var Bc=null;function qh(e,t,n,r){if(Bc=null,e=Lh(r),e=Uo(e),e!==null)if(t=jo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hx(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 Bc=e,null}function ow(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(yD()){case Uh:return 1;case Gx:return 4;case Nc:case vD:return 16;case Kx:return 536870912;default:return 16}default:return 16}}var Bi=null,Gh=null,jc=null;function aw(){if(jc)return jc;var e,t=Gh,n=t.length,r,i="value"in Bi?Bi.value:Bi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return jc=i.slice(e,1<r?1-r:void 0)}function Uc(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 zc(){return!0}function sw(){return!1}function On(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?zc:sw,this.isPropagationStopped=sw,this}return lt(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=zc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zc)},persist:function(){},isPersistent:zc}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kh=On(Da),xu=lt({},Da,{view:0,detail:0}),PD=On(xu),Xh,Qh,wu,Hc=lt({},xu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jh,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!==wu&&(wu&&e.type==="mousemove"?(Xh=e.screenX-wu.screenX,Qh=e.screenY-wu.screenY):Qh=Xh=0,wu=e),Xh)},movementY:function(e){return"movementY"in e?e.movementY:Qh}}),uw=On(Hc),ID=lt({},Hc,{dataTransfer:0}),OD=On(ID),DD=lt({},xu,{relatedTarget:0}),Zh=On(DD),LD=lt({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),MD=On(LD),FD=lt({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),BD=On(FD),jD=lt({},Da,{data:0}),lw=On(jD),UD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zD={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"},HD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HD[e])?!!t[e]:!1}function Jh(){return VD}var $D=lt({},xu,{key:function(e){if(e.key){var t=UD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jh,charCode:function(e){return e.type==="keypress"?Uc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WD=On($D),YD=lt({},Hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cw=On(YD),qD=lt({},xu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jh}),GD=On(qD),KD=lt({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),XD=On(KD),QD=lt({},Hc,{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}),ZD=On(QD),JD=[9,13,27,32],em=ti&&"CompositionEvent"in window,bu=null;ti&&"documentMode"in document&&(bu=document.documentMode);var e6=ti&&"TextEvent"in window&&!bu,dw=ti&&(!em||bu&&8<bu&&11>=bu),fw=" ",pw=!1;function hw(e,t){switch(e){case"keyup":return JD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var La=!1;function t6(e,t){switch(e){case"compositionend":return mw(t);case"keypress":return t.which!==32?null:(pw=!0,fw);case"textInput":return e=t.data,e===fw&&pw?null:e;default:return null}}function n6(e,t){if(La)return e==="compositionend"||!em&&hw(e,t)?(e=aw(),jc=Gh=Bi=null,La=!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 dw&&t.locale!=="ko"?null:t.data;default:return null}}var r6={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 gw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!r6[e.type]:t==="textarea"}function yw(e,t,n,r){Fx(r),t=qc(t,"onChange"),0<t.length&&(n=new Kh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Eu=null,Tu=null;function i6(e){Lw(e,0)}function Vc(e){var t=Ua(e);if(Cx(t))return e}function o6(e,t){if(e==="change")return t}var vw=!1;if(ti){var tm;if(ti){var nm="oninput"in document;if(!nm){var xw=document.createElement("div");xw.setAttribute("oninput","return;"),nm=typeof xw.oninput=="function"}tm=nm}else tm=!1;vw=tm&&(!document.documentMode||9<document.documentMode)}function ww(){Eu&&(Eu.detachEvent("onpropertychange",bw),Tu=Eu=null)}function bw(e){if(e.propertyName==="value"&&Vc(Tu)){var t=[];yw(t,Tu,e,Lh(e)),zx(i6,t)}}function a6(e,t,n){e==="focusin"?(ww(),Eu=t,Tu=n,Eu.attachEvent("onpropertychange",bw)):e==="focusout"&&ww()}function s6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vc(Tu)}function u6(e,t){if(e==="click")return Vc(t)}function l6(e,t){if(e==="input"||e==="change")return Vc(t)}function c6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hr=typeof Object.is=="function"?Object.is:c6;function _u(e,t){if(hr(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(!ph.call(t,i)||!hr(e[i],t[i]))return!1}return!0}function Ew(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tw(e,t){var n=Ew(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=Ew(n)}}function _w(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_w(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cw(){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 rm(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 d6(e){var t=Cw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_w(n.ownerDocument.documentElement,n)){if(r!==null&&rm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Tw(n,o);var a=Tw(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 f6=ti&&"documentMode"in document&&11>=document.documentMode,Ma=null,im=null,Cu=null,om=!1;function Sw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;om||Ma==null||Ma!==Sc(r)||(r=Ma,"selectionStart"in r&&rm(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}),Cu&&_u(Cu,r)||(Cu=r,r=qc(im,"onSelect"),0<r.length&&(t=new Kh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ma)))}function $c(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fa={animationend:$c("Animation","AnimationEnd"),animationiteration:$c("Animation","AnimationIteration"),animationstart:$c("Animation","AnimationStart"),transitionend:$c("Transition","TransitionEnd")},am={},Aw={};ti&&(Aw=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function Wc(e){if(am[e])return am[e];if(!Fa[e])return e;var t=Fa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Aw)return am[e]=t[n];return e}var kw=Wc("animationend"),Rw=Wc("animationiteration"),Nw=Wc("animationstart"),Pw=Wc("transitionend"),Iw=new Map,Ow="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 ji(e,t){Iw.set(e,t),Bo(t,[e])}for(var sm=0;sm<Ow.length;sm++){var um=Ow[sm],p6=um.toLowerCase(),h6=um[0].toUpperCase()+um.slice(1);ji(p6,"on"+h6)}ji(kw,"onAnimationEnd"),ji(Rw,"onAnimationIteration"),ji(Nw,"onAnimationStart"),ji("dblclick","onDoubleClick"),ji("focusin","onFocus"),ji("focusout","onBlur"),ji(Pw,"onTransitionEnd"),Aa("onMouseEnter",["mouseout","mouseover"]),Aa("onMouseLeave",["mouseout","mouseover"]),Aa("onPointerEnter",["pointerout","pointerover"]),Aa("onPointerLeave",["pointerout","pointerover"]),Bo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),m6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Su));function Dw(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,pD(r,t,void 0,e),e.currentTarget=null}function Lw(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 o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Dw(i,s,l),o=u}else for(a=0;a<r.length;a++){if(s=r[a],u=s.instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Dw(i,s,l),o=u}}}if(Rc)throw e=jh,Rc=!1,jh=null,e}function tt(e,t){var n=t[gm];n===void 0&&(n=t[gm]=new Set);var r=e+"__bubble";n.has(r)||(Mw(t,e,2,!1),n.add(r))}function lm(e,t,n){var r=0;t&&(r|=4),Mw(n,e,r,t)}var Yc="_reactListening"+Math.random().toString(36).slice(2);function Au(e){if(!e[Yc]){e[Yc]=!0,yx.forEach(function(n){n!=="selectionchange"&&(m6.has(n)||lm(n,!1,e),lm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yc]||(t[Yc]=!0,lm("selectionchange",!1,t))}}function Mw(e,t,n,r){switch(ow(t)){case 1:var i=RD;break;case 4:i=ND;break;default:i=Yh}n=i.bind(null,t,n,e),i=void 0,!Bh||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 cm(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Uo(s),a===null)return;if(u=a.tag,u===5||u===6){r=o=a;continue e}s=s.parentNode}}r=r.return}zx(function(){var l=o,c=Lh(n),d=[];e:{var f=Iw.get(e);if(f!==void 0){var p=Kh,m=e;switch(e){case"keypress":if(Uc(n)===0)break e;case"keydown":case"keyup":p=WD;break;case"focusin":m="focus",p=Zh;break;case"focusout":m="blur",p=Zh;break;case"beforeblur":case"afterblur":p=Zh;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":p=uw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=OD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=GD;break;case kw:case Rw:case Nw:p=MD;break;case Pw:p=XD;break;case"scroll":p=PD;break;case"wheel":p=ZD;break;case"copy":case"cut":case"paste":p=BD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=cw}var y=(t&4)!==0,b=!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=lu(x,g),T!=null&&y.push(ku(x,T,w)))),b)break;x=x.return}0<y.length&&(f=new p(f,m,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Dh&&(m=n.relatedTarget||n.fromElement)&&(Uo(m)||m[ri]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=l,m=m?Uo(m):null,m!==null&&(b=jo(m),m!==b||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=l),p!==m)){if(y=uw,T="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=cw,T="onPointerLeave",g="onPointerEnter",x="pointer"),b=p==null?f:Ua(p),w=m==null?f:Ua(m),f=new y(T,x+"leave",p,n,c),f.target=b,f.relatedTarget=w,T=null,Uo(c)===l&&(y=new y(g,x+"enter",m,n,c),y.target=w,y.relatedTarget=b,T=y),b=T,p&&m)t:{for(y=p,g=m,x=0,w=y;w;w=Ba(w))x++;for(w=0,T=g;T;T=Ba(T))w++;for(;0<x-w;)y=Ba(y),x--;for(;0<w-x;)g=Ba(g),w--;for(;x--;){if(y===g||g!==null&&y===g.alternate)break t;y=Ba(y),g=Ba(g)}y=null}else y=null;p!==null&&Fw(d,f,p,y,!1),m!==null&&b!==null&&Fw(d,b,m,y,!0)}}e:{if(f=l?Ua(l):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=o6;else if(gw(f))if(vw)_=l6;else{_=s6;var C=a6}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=u6);if(_&&(_=_(e,l))){yw(d,_,n,c);break e}C&&C(e,f,l),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&Rh(f,"number",f.value)}switch(C=l?Ua(l):window,e){case"focusin":(gw(C)||C.contentEditable==="true")&&(Ma=C,im=l,Cu=null);break;case"focusout":Cu=im=Ma=null;break;case"mousedown":om=!0;break;case"contextmenu":case"mouseup":case"dragend":om=!1,Sw(d,n,c);break;case"selectionchange":if(f6)break;case"keydown":case"keyup":Sw(d,n,c)}var R;if(em)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else La?hw(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(dw&&n.locale!=="ko"&&(La||O!=="onCompositionStart"?O==="onCompositionEnd"&&La&&(R=aw()):(Bi=c,Gh="value"in Bi?Bi.value:Bi.textContent,La=!0)),C=qc(l,O),0<C.length&&(O=new lw(O,e,null,n,c),d.push({event:O,listeners:C}),R?O.data=R:(R=mw(n),R!==null&&(O.data=R)))),(R=e6?t6(e,n):n6(e,n))&&(l=qc(l,"onBeforeInput"),0<l.length&&(c=new lw("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=R))}Lw(d,t)})}function ku(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=lu(e,n),o!=null&&r.unshift(ku(e,o,i)),o=lu(e,t),o!=null&&r.push(ku(e,o,i))),e=e.return}return r}function Ba(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fw(e,t,n,r,i){for(var o=t._reactName,a=[];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=lu(n,o),u!=null&&a.unshift(ku(n,u,s))):i||(u=lu(n,o),u!=null&&a.push(ku(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var g6=/\r\n?/g,y6=/\u0000|\uFFFD/g;function Bw(e){return(typeof e=="string"?e:""+e).replace(g6,`
38
38
  `).replace(y6,"")}function Gc(e,t,n){if(t=Bw(t),Bw(e)!==t&&n)throw Error(Z(425))}function Kc(){}var dm=null,fm=null;function pm(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 hm=typeof setTimeout=="function"?setTimeout:void 0,v6=typeof clearTimeout=="function"?clearTimeout:void 0,jw=typeof Promise=="function"?Promise:void 0,x6=typeof queueMicrotask=="function"?queueMicrotask:typeof jw<"u"?function(e){return jw.resolve(null).then(e).catch(w6)}:hm;function w6(e){setTimeout(function(){throw e})}function mm(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),vu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);vu(t)}function Ui(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 Uw(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 ja=Math.random().toString(36).slice(2),Or="__reactFiber$"+ja,Ru="__reactProps$"+ja,ri="__reactContainer$"+ja,gm="__reactEvents$"+ja,b6="__reactListeners$"+ja,E6="__reactHandles$"+ja;function Uo(e){var t=e[Or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ri]||n[Or]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uw(e);e!==null;){if(n=e[Or])return n;e=Uw(e)}return t}e=n,n=e.parentNode}return null}function Nu(e){return e=e[Or]||e[ri],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ua(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Xc(e){return e[Ru]||null}var ym=[],za=-1;function zi(e){return{current:e}}function nt(e){0>za||(e.current=ym[za],ym[za]=null,za--)}function Je(e,t){za++,ym[za]=e.current,e.current=t}var Hi={},Gt=zi(Hi),vn=zi(!1),zo=Hi;function Ha(e,t){var n=e.type.contextTypes;if(!n)return Hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xn(e){return e=e.childContextTypes,e!=null}function Qc(){nt(vn),nt(Gt)}function zw(e,t,n){if(Gt.current!==Hi)throw Error(Z(168));Je(Gt,t),Je(vn,n)}function Hw(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(Z(108,aD(e)||"Unknown",i));return lt({},n,r)}function Zc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hi,zo=Gt.current,Je(Gt,e),Je(vn,vn.current),!0}function Vw(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=Hw(e,t,zo),r.__reactInternalMemoizedMergedChildContext=e,nt(vn),nt(Gt),Je(Gt,e)):nt(vn),Je(vn,n)}var ii=null,Jc=!1,vm=!1;function $w(e){ii===null?ii=[e]:ii.push(e)}function T6(e){Jc=!0,$w(e)}function Vi(){if(!vm&&ii!==null){vm=!0;var e=0,t=qe;try{var n=ii;for(qe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ii=null,Jc=!1}catch(i){throw ii!==null&&(ii=ii.slice(e+1)),Yx(Uh,Vi),i}finally{qe=t,vm=!1}}return null}var Va=[],$a=0,ed=null,td=0,Xn=[],Qn=0,Ho=null,oi=1,ai="";function Vo(e,t){Va[$a++]=td,Va[$a++]=ed,ed=e,td=t}function Ww(e,t,n){Xn[Qn++]=oi,Xn[Qn++]=ai,Xn[Qn++]=Ho,Ho=e;var r=oi;e=ai;var i=32-pr(r)-1;r&=~(1<<i),n+=1;var o=32-pr(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,oi=1<<32-pr(t)+i|n<<i|r,ai=o+e}else oi=1<<o|n<<i|r,ai=e}function xm(e){e.return!==null&&(Vo(e,1),Ww(e,1,0))}function wm(e){for(;e===ed;)ed=Va[--$a],Va[$a]=null,td=Va[--$a],Va[$a]=null;for(;e===Ho;)Ho=Xn[--Qn],Xn[Qn]=null,ai=Xn[--Qn],Xn[Qn]=null,oi=Xn[--Qn],Xn[Qn]=null}var Dn=null,Ln=null,ot=!1,mr=null;function Yw(e,t){var n=tr(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 qw(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,Dn=e,Ln=Ui(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dn=e,Ln=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ho!==null?{id:oi,overflow:ai}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Dn=e,Ln=null,!0):!1;default:return!1}}function bm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Em(e){if(ot){var t=Ln;if(t){var n=t;if(!qw(e,t)){if(bm(e))throw Error(Z(418));t=Ui(n.nextSibling);var r=Dn;t&&qw(e,t)?Yw(r,n):(e.flags=e.flags&-4097|2,ot=!1,Dn=e)}}else{if(bm(e))throw Error(Z(418));e.flags=e.flags&-4097|2,ot=!1,Dn=e}}}function Gw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dn=e}function nd(e){if(e!==Dn)return!1;if(!ot)return Gw(e),ot=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pm(e.type,e.memoizedProps)),t&&(t=Ln)){if(bm(e))throw Kw(),Error(Z(418));for(;t;)Yw(e,t),t=Ui(t.nextSibling)}if(Gw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ln=Ui(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ln=null}}else Ln=Dn?Ui(e.stateNode.nextSibling):null;return!0}function Kw(){for(var e=Ln;e;)e=Ui(e.nextSibling)}function Wa(){Ln=Dn=null,ot=!1}function Tm(e){mr===null?mr=[e]:mr.push(e)}var _6=ni.ReactCurrentBatchConfig;function Pu(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(Z(309));var r=n.stateNode}if(!r)throw Error(Z(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Z(284));if(!n._owner)throw Error(Z(290,e))}return e}function rd(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xw(e){var t=e._init;return t(e._payload)}function Qw(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=Qi(g,x),g.index=0,g.sibling=null,g}function o(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 a(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,x,w,T){return x===null||x.tag!==6?(x=hg(w,g.mode,T),x.return=g,x):(x=i(x,w),x.return=g,x)}function u(g,x,w,T){var _=w.type;return _===Ra?c(g,x,w.props.children,T,w.key):x!==null&&(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ii&&Xw(_)===x.type)?(T=i(x,w.props),T.ref=Pu(g,x,w),T.return=g,T):(T=Ad(w.type,w.key,w.props,null,g.mode,T),T.ref=Pu(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=mg(w,g.mode,T),x.return=g,x):(x=i(x,w.children||[]),x.return=g,x)}function c(g,x,w,T,_){return x===null||x.tag!==7?(x=Qo(w,g.mode,T,_),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=hg(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case _c:return w=Ad(x.type,x.key,x.props,null,g.mode,w),w.ref=Pu(g,null,x),w.return=g,w;case ka:return x=mg(x,g.mode,w),x.return=g,x;case Ii:var T=x._init;return d(g,T(x._payload),w)}if(au(x)||iu(x))return x=Qo(x,g.mode,w,null),x.return=g,x;rd(g,x)}return null}function f(g,x,w,T){var _=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return _!==null?null:s(g,x,""+w,T);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _c:return w.key===_?u(g,x,w,T):null;case ka:return w.key===_?l(g,x,w,T):null;case Ii:return _=w._init,f(g,x,_(w._payload),T)}if(au(w)||iu(w))return _!==null?null:c(g,x,w,T,null);rd(g,w)}return null}function p(g,x,w,T,_){if(typeof T=="string"&&T!==""||typeof T=="number")return g=g.get(w)||null,s(x,g,""+T,_);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _c:return g=g.get(T.key===null?w:T.key)||null,u(x,g,T,_);case ka:return g=g.get(T.key===null?w:T.key)||null,l(x,g,T,_);case Ii:var C=T._init;return p(g,x,w,C(T._payload),_)}if(au(T)||iu(T))return g=g.get(w)||null,c(x,g,T,_,null);rd(x,T)}return null}function m(g,x,w,T){for(var _=null,C=null,R=x,O=x=0,V=null;R!==null&&O<w.length;O++){R.index>O?(V=R,R=null):V=R.sibling;var P=f(g,R,w[O],T);if(P===null){R===null&&(R=V);break}e&&R&&P.alternate===null&&t(g,R),x=o(P,x,O),C===null?_=P:C.sibling=P,C=P,R=V}if(O===w.length)return n(g,R),ot&&Vo(g,O),_;if(R===null){for(;O<w.length;O++)R=d(g,w[O],T),R!==null&&(x=o(R,x,O),C===null?_=R:C.sibling=R,C=R);return ot&&Vo(g,O),_}for(R=r(g,R);O<w.length;O++)V=p(R,g,O,w[O],T),V!==null&&(e&&V.alternate!==null&&R.delete(V.key===null?O:V.key),x=o(V,x,O),C===null?_=V:C.sibling=V,C=V);return e&&R.forEach(function($){return t(g,$)}),ot&&Vo(g,O),_}function y(g,x,w,T){var _=iu(w);if(typeof _!="function")throw Error(Z(150));if(w=_.call(w),w==null)throw Error(Z(151));for(var C=_=null,R=x,O=x=0,V=null,P=w.next();R!==null&&!P.done;O++,P=w.next()){R.index>O?(V=R,R=null):V=R.sibling;var $=f(g,R,P.value,T);if($===null){R===null&&(R=V);break}e&&R&&$.alternate===null&&t(g,R),x=o($,x,O),C===null?_=$:C.sibling=$,C=$,R=V}if(P.done)return n(g,R),ot&&Vo(g,O),_;if(R===null){for(;!P.done;O++,P=w.next())P=d(g,P.value,T),P!==null&&(x=o(P,x,O),C===null?_=P:C.sibling=P,C=P);return ot&&Vo(g,O),_}for(R=r(g,R);!P.done;O++,P=w.next())P=p(R,g,O,P.value,T),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?O:P.key),x=o(P,x,O),C===null?_=P:C.sibling=P,C=P);return e&&R.forEach(function(z){return t(g,z)}),ot&&Vo(g,O),_}function b(g,x,w,T){if(typeof w=="object"&&w!==null&&w.type===Ra&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case _c:e:{for(var _=w.key,C=x;C!==null;){if(C.key===_){if(_=w.type,_===Ra){if(C.tag===7){n(g,C.sibling),x=i(C,w.props.children),x.return=g,g=x;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ii&&Xw(_)===C.type){n(g,C.sibling),x=i(C,w.props),x.ref=Pu(g,C,w),x.return=g,g=x;break e}n(g,C);break}else t(g,C);C=C.sibling}w.type===Ra?(x=Qo(w.props.children,g.mode,T,w.key),x.return=g,g=x):(T=Ad(w.type,w.key,w.props,null,g.mode,T),T.ref=Pu(g,x,w),T.return=g,g=T)}return a(g);case ka:e:{for(C=w.key;x!==null;){if(x.key===C)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=mg(w,g.mode,T),x.return=g,g=x}return a(g);case Ii:return C=w._init,b(g,x,C(w._payload),T)}if(au(w))return m(g,x,w,T);if(iu(w))return y(g,x,w,T);rd(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=hg(w,g.mode,T),x.return=g,g=x),a(g)):n(g,x)}return b}var Ya=Qw(!0),Zw=Qw(!1),id=zi(null),od=null,qa=null,_m=null;function Cm(){_m=qa=od=null}function Sm(e){var t=id.current;nt(id),e._currentValue=t}function Am(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 Ga(e,t){od=e,_m=qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wn=!0),e.firstContext=null)}function Zn(e){var t=e._currentValue;if(_m!==e)if(e={context:e,memoizedValue:t,next:null},qa===null){if(od===null)throw Error(Z(308));qa=e,od.dependencies={lanes:0,firstContext:e}}else qa=qa.next=e;return t}var $o=null;function km(e){$o===null?$o=[e]:$o.push(e)}function Jw(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,km(t)):(n.next=i.next,i.next=n),t.interleaved=n,si(e,r)}function si(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 $i=!1;function Rm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eb(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 ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,si(e,n)}return i=r.interleaved,i===null?(t.next=t,km(r)):(t.next=i.next,i.next=t),r.interleaved=t,si(e,n)}function ad(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,Vh(e,n)}}function tb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sd(e,t,n,r){var i=e.updateQueue;$i=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,l=u.next;u.next=null,a===null?o=l:a.next=l,a=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var d=i.baseState;a=0,c=l=u=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(f=t,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(p,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(p,d,f):m,f==null)break e;d=lt({},d,f);break e;case 2:$i=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=p,u=d):c=c.next=p,a|=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 a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);qo|=a,e.lanes=a,e.memoizedState=d}}function nb(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(Z(191,i));i.call(r)}}}var Iu={},Dr=zi(Iu),Ou=zi(Iu),Du=zi(Iu);function Wo(e){if(e===Iu)throw Error(Z(174));return e}function Nm(e,t){switch(Je(Du,t),Je(Ou,e),Je(Dr,Iu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ph(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ph(t,e)}nt(Dr),Je(Dr,t)}function Ka(){nt(Dr),nt(Ou),nt(Du)}function rb(e){Wo(Du.current);var t=Wo(Dr.current),n=Ph(t,e.type);t!==n&&(Je(Ou,e),Je(Dr,n))}function Pm(e){Ou.current===e&&(nt(Dr),nt(Ou))}var ct=zi(0);function ud(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 Im=[];function Om(){for(var e=0;e<Im.length;e++)Im[e]._workInProgressVersionPrimary=null;Im.length=0}var ld=ni.ReactCurrentDispatcher,Dm=ni.ReactCurrentBatchConfig,Yo=0,dt=null,Rt=null,Dt=null,cd=!1,Lu=!1,Mu=0,C6=0;function Kt(){throw Error(Z(321))}function Lm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hr(e[n],t[n]))return!1;return!0}function Mm(e,t,n,r,i,o){if(Yo=o,dt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ld.current=e===null||e.memoizedState===null?R6:N6,e=n(r,i),Lu){o=0;do{if(Lu=!1,Mu=0,25<=o)throw Error(Z(301));o+=1,Dt=Rt=null,t.updateQueue=null,ld.current=P6,e=n(r,i)}while(Lu)}if(ld.current=pd,t=Rt!==null&&Rt.next!==null,Yo=0,Dt=Rt=dt=null,cd=!1,t)throw Error(Z(300));return e}function Fm(){var e=Mu!==0;return Mu=0,e}function Lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?dt.memoizedState=Dt=e:Dt=Dt.next=e,Dt}function Jn(){if(Rt===null){var e=dt.alternate;e=e!==null?e.memoizedState:null}else e=Rt.next;var t=Dt===null?dt.memoizedState:Dt.next;if(t!==null)Dt=t,Rt=e;else{if(e===null)throw Error(Z(310));Rt=e,e={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Dt===null?dt.memoizedState=Dt=e:Dt=Dt.next=e}return Dt}function Fu(e,t){return typeof t=="function"?t(e):t}function Bm(e){var t=Jn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=Rt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,u=null,l=o;do{var c=l.lane;if((Yo&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,a=r):u=u.next=d,dt.lanes|=c,qo|=c}l=l.next}while(l!==null&&l!==o);u===null?a=r:u.next=s,hr(r,t.memoizedState)||(wn=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,dt.lanes|=o,qo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jm(e){var t=Jn(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);hr(o,t.memoizedState)||(wn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ib(){}function ob(e,t){var n=dt,r=Jn(),i=t(),o=!hr(r.memoizedState,i);if(o&&(r.memoizedState=i,wn=!0),r=r.queue,Um(ub.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Dt!==null&&Dt.memoizedState.tag&1){if(n.flags|=2048,Bu(9,sb.bind(null,n,r,i,t),void 0,null),Lt===null)throw Error(Z(349));Yo&30||ab(n,t,i)}return i}function ab(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=dt.updateQueue,t===null?(t={lastEffect:null,stores:null},dt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sb(e,t,n,r){t.value=n,t.getSnapshot=r,lb(t)&&cb(e)}function ub(e,t,n){return n(function(){lb(t)&&cb(e)})}function lb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hr(e,n)}catch{return!0}}function cb(e){var t=si(e,1);t!==null&&xr(t,e,1,-1)}function db(e){var t=Lr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fu,lastRenderedState:e},t.queue=e,e=e.dispatch=k6.bind(null,dt,e),[t.memoizedState,e]}function Bu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=dt.updateQueue,t===null?(t={lastEffect:null,stores:null},dt.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 fb(){return Jn().memoizedState}function dd(e,t,n,r){var i=Lr();dt.flags|=e,i.memoizedState=Bu(1|t,n,void 0,r===void 0?null:r)}function fd(e,t,n,r){var i=Jn();r=r===void 0?null:r;var o=void 0;if(Rt!==null){var a=Rt.memoizedState;if(o=a.destroy,r!==null&&Lm(r,a.deps)){i.memoizedState=Bu(t,n,o,r);return}}dt.flags|=e,i.memoizedState=Bu(1|t,n,o,r)}function pb(e,t){return dd(8390656,8,e,t)}function Um(e,t){return fd(2048,8,e,t)}function hb(e,t){return fd(4,2,e,t)}function mb(e,t){return fd(4,4,e,t)}function gb(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 yb(e,t,n){return n=n!=null?n.concat([e]):null,fd(4,4,gb.bind(null,t,e),n)}function zm(){}function vb(e,t){var n=Jn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xb(e,t){var n=Jn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wb(e,t,n){return Yo&21?(hr(n,t)||(n=Xx(),dt.lanes|=n,qo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wn=!0),e.memoizedState=n)}function S6(e,t){var n=qe;qe=n!==0&&4>n?n:4,e(!0);var r=Dm.transition;Dm.transition={};try{e(!1),t()}finally{qe=n,Dm.transition=r}}function bb(){return Jn().memoizedState}function A6(e,t,n){var r=Ki(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eb(e))Tb(t,n);else if(n=Jw(e,t,n,r),n!==null){var i=fn();xr(n,e,r,i),_b(n,t,r)}}function k6(e,t,n){var r=Ki(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eb(e))Tb(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,hr(s,a)){var u=t.interleaved;u===null?(i.next=i,km(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Jw(e,t,i,r),n!==null&&(i=fn(),xr(n,e,r,i),_b(n,t,r))}}function Eb(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function Tb(e,t){Lu=cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _b(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vh(e,n)}}var pd={readContext:Zn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},R6={readContext:Zn,useCallback:function(e,t){return Lr().memoizedState=[e,t===void 0?null:t],e},useContext:Zn,useEffect:pb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dd(4194308,4,gb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dd(4194308,4,e,t)},useInsertionEffect:function(e,t){return dd(4,2,e,t)},useMemo:function(e,t){var n=Lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lr();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=A6.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=Lr();return e={current:e},t.memoizedState=e},useState:db,useDebugValue:zm,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=db(!1),t=e[0];return e=S6.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,i=Lr();if(ot){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),Lt===null)throw Error(Z(349));Yo&30||ab(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,pb(ub.bind(null,r,o,e),[e]),r.flags|=2048,Bu(9,sb.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Lr(),t=Lt.identifierPrefix;if(ot){var n=ai,r=oi;n=(r&~(1<<32-pr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=C6++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},N6={readContext:Zn,useCallback:vb,useContext:Zn,useEffect:Um,useImperativeHandle:yb,useInsertionEffect:hb,useLayoutEffect:mb,useMemo:xb,useReducer:Bm,useRef:fb,useState:function(){return Bm(Fu)},useDebugValue:zm,useDeferredValue:function(e){var t=Jn();return wb(t,Rt.memoizedState,e)},useTransition:function(){var e=Bm(Fu)[0],t=Jn().memoizedState;return[e,t]},useMutableSource:ib,useSyncExternalStore:ob,useId:bb,unstable_isNewReconciler:!1},P6={readContext:Zn,useCallback:vb,useContext:Zn,useEffect:Um,useImperativeHandle:yb,useInsertionEffect:hb,useLayoutEffect:mb,useMemo:xb,useReducer:jm,useRef:fb,useState:function(){return jm(Fu)},useDebugValue:zm,useDeferredValue:function(e){var t=Jn();return Rt===null?t.memoizedState=e:wb(t,Rt.memoizedState,e)},useTransition:function(){var e=jm(Fu)[0],t=Jn().memoizedState;return[e,t]},useMutableSource:ib,useSyncExternalStore:ob,useId:bb,unstable_isNewReconciler:!1};function gr(e,t){if(e&&e.defaultProps){t=lt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Hm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:lt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hd={isMounted:function(e){return(e=e._reactInternals)?jo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fn(),i=Ki(e),o=ui(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wi(e,o,i),t!==null&&(xr(t,e,i,r),ad(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fn(),i=Ki(e),o=ui(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wi(e,o,i),t!==null&&(xr(t,e,i,r),ad(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fn(),r=Ki(e),i=ui(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wi(e,i,r),t!==null&&(xr(t,e,r,n),ad(t,e,r))}};function Cb(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!_u(n,r)||!_u(i,o):!0}function Sb(e,t,n){var r=!1,i=Hi,o=t.contextType;return typeof o=="object"&&o!==null?o=Zn(o):(i=xn(t)?zo:Gt.current,r=t.contextTypes,o=(r=r!=null)?Ha(e,i):Hi),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ab(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&&hd.enqueueReplaceState(t,t.state,null)}function Vm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Rm(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Zn(o):(o=xn(t)?zo:Gt.current,i.context=Ha(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Hm(e,t,o,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&&hd.enqueueReplaceState(i,i.state,null),sd(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Xa(e,t){try{var n="",r=t;do n+=oD(r),r=r.return;while(r);var i=n}catch(o){i=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function $m(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var I6=typeof WeakMap=="function"?WeakMap:Map;function kb(e,t,n){n=ui(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bd||(bd=!0,ag=r),Wm(e,t)},n}function Rb(e,t,n){n=ui(-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(){Wm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Wm(e,t),typeof r!="function"&&(qi===null?qi=new Set([this]):qi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Nb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new I6;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=Y6.bind(null,e,t,n),t.then(e,e))}function Pb(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 Ib(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=ui(-1,1),t.tag=2,Wi(n,t,1))),n.lanes|=1),e)}var O6=ni.ReactCurrentOwner,wn=!1;function dn(e,t,n,r){t.child=e===null?Zw(t,null,n,r):Ya(t,e.child,n,r)}function Ob(e,t,n,r,i){n=n.render;var o=t.ref;return Ga(t,i),r=Mm(e,t,n,r,o,i),n=Fm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,li(e,t,i)):(ot&&n&&xm(t),t.flags|=1,dn(e,t,r,i),t.child)}function Db(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!pg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Lb(e,t,o,r,i)):(e=Ad(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_u,n(a,r)&&e.ref===t.ref)return li(e,t,i)}return t.flags|=1,e=Qi(o,r),e.ref=t.ref,e.return=t,t.child=e}function Lb(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_u(o,r)&&e.ref===t.ref)if(wn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(wn=!0);else return t.lanes=e.lanes,li(e,t,i)}return Ym(e,t,n,r,i)}function Mb(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(Za,Mn),Mn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(Za,Mn),Mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Je(Za,Mn),Mn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Je(Za,Mn),Mn|=r;return dn(e,t,i,n),t.child}function Fb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ym(e,t,n,r,i){var o=xn(n)?zo:Gt.current;return o=Ha(t,o),Ga(t,i),n=Mm(e,t,n,r,o,i),r=Fm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,li(e,t,i)):(ot&&r&&xm(t),t.flags|=1,dn(e,t,n,i),t.child)}function Bb(e,t,n,r,i){if(xn(n)){var o=!0;Zc(t)}else o=!1;if(Ga(t,i),t.stateNode===null)gd(e,t),Sb(t,n,r),Vm(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Zn(l):(l=xn(n)?zo:Gt.current,l=Ha(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Ab(t,a,r,l),$i=!1;var f=t.memoizedState;a.state=f,sd(t,r,a,i),u=t.memoizedState,s!==r||f!==u||vn.current||$i?(typeof c=="function"&&(Hm(t,n,c,r),u=t.memoizedState),(s=$i||Cb(t,n,s,r,f,u,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,eb(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:gr(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Zn(u):(u=xn(n)?zo:Gt.current,u=Ha(t,u));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==u)&&Ab(t,a,r,u),$i=!1,f=t.memoizedState,a.state=f,sd(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||vn.current||$i?(typeof p=="function"&&(Hm(t,n,p,r),m=t.memoizedState),(l=$i||Cb(t,n,l,r,f,m,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return qm(e,t,n,r,o,i)}function qm(e,t,n,r,i,o){Fb(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Vw(t,n,!1),li(e,t,o);r=t.stateNode,O6.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ya(t,e.child,null,o),t.child=Ya(t,null,s,o)):dn(e,t,s,o),t.memoizedState=r.state,i&&Vw(t,n,!0),t.child}function jb(e){var t=e.stateNode;t.pendingContext?zw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zw(e,t.context,!1),Nm(e,t.containerInfo)}function Ub(e,t,n,r,i){return Wa(),Tm(i),t.flags|=256,dn(e,t,n,r),t.child}var Gm={dehydrated:null,treeContext:null,retryLane:0};function Km(e){return{baseLanes:e,cachePool:null,transitions:null}}function zb(e,t,n){var r=t.pendingProps,i=ct.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Je(ct,i&1),e===null)return Em(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):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=kd(a,r,0,null),e=Qo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Km(n),t.memoizedState=Gm,e):Xm(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return D6(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Qi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Qi(s,o):(o=Qo(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Km(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Gm,r}return o=e.child,e=o.sibling,r=Qi(o,{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 Xm(e,t){return t=kd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function md(e,t,n,r){return r!==null&&Tm(r),Ya(t,e.child,null,n),e=Xm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D6(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=$m(Error(Z(422))),md(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=kd({mode:"visible",children:r.children},i,0,null),o=Qo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ya(t,e.child,null,a),t.child.memoizedState=Km(a),t.memoizedState=Gm,o);if(!(t.mode&1))return md(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Z(419)),r=$m(o,r,void 0),md(e,t,a,r)}if(s=(a&e.childLanes)!==0,wn||s){if(r=Lt,r!==null){switch(a&-a){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|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,si(e,i),xr(r,e,i,-1))}return fg(),r=$m(Error(Z(421))),md(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=q6.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ln=Ui(i.nextSibling),Dn=t,ot=!0,mr=null,e!==null&&(Xn[Qn++]=oi,Xn[Qn++]=ai,Xn[Qn++]=Ho,oi=e.id,ai=e.overflow,Ho=t),t=Xm(t,r.children),t.flags|=4096,t)}function Hb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Am(e.return,t,n)}function Qm(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vb(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(dn(e,t,r.children,n),r=ct.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&&Hb(e,n,t);else if(e.tag===19)Hb(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(Je(ct,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&&ud(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qm(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ud(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qm(t,!0,n,null,o);break;case"together":Qm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function li(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=Qi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function L6(e,t,n){switch(t.tag){case 3:jb(t),Wa();break;case 5:rb(t);break;case 1:xn(t.type)&&Zc(t);break;case 4:Nm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Je(id,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ct,ct.current&1),t.flags|=128,null):n&t.child.childLanes?zb(e,t,n):(Je(ct,ct.current&1),e=li(e,t,n),e!==null?e.sibling:null);Je(ct,ct.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Je(ct,ct.current),r)break;return null;case 22:case 23:return t.lanes=0,Mb(e,t,n)}return li(e,t,n)}var $b,Zm,Wb,Yb;$b=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}},Zm=function(){},Wb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wo(Dr.current);var o=null;switch(n){case"input":i=Ah(e,i),r=Ah(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=Nh(e,i),r=Nh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kc)}Ih(n,r);var a;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ru.hasOwnProperty(l)?o||(o=[]):(o=o||[]).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(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(ru.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&tt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}},Yb=function(e,t,n,r){n!==r&&(t.flags|=4)};function ju(e,t){if(!ot)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 Xt(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 M6(e,t,n){var r=t.pendingProps;switch(wm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return xn(t.type)&&Qc(),Xt(t),null;case 3:return r=t.stateNode,Ka(),nt(vn),nt(Gt),Om(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(nd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mr!==null&&(lg(mr),mr=null))),Zm(e,t),Xt(t),null;case 5:Pm(t);var i=Wo(Du.current);if(n=t.type,e!==null&&t.stateNode!=null)Wb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return Xt(t),null}if(e=Wo(Dr.current),nd(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[Ru]=o,e=(t.mode&1)!==0,n){case"dialog":tt("cancel",r),tt("close",r);break;case"iframe":case"object":case"embed":tt("load",r);break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],r);break;case"source":tt("error",r);break;case"img":case"image":case"link":tt("error",r),tt("load",r);break;case"details":tt("toggle",r);break;case"input":Sx(r,o),tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tt("invalid",r);break;case"textarea":Rx(r,o),tt("invalid",r)}Ih(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",""+s]):ru.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&tt("scroll",r)}switch(n){case"input":Cc(r),kx(r,o,!0);break;case"textarea":Cc(r),Px(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Kc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ix(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Or]=t,e[Ru]=r,$b(e,t,!1,!1),t.stateNode=e;e:{switch(a=Oh(n,r),n){case"dialog":tt("cancel",e),tt("close",e),i=r;break;case"iframe":case"object":case"embed":tt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],e);i=r;break;case"source":tt("error",e),i=r;break;case"img":case"image":case"link":tt("error",e),tt("load",e),i=r;break;case"details":tt("toggle",e),i=r;break;case"input":Sx(e,r),i=Ah(e,r),tt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=lt({},r,{value:void 0}),tt("invalid",e);break;case"textarea":Rx(e,r),i=Nh(e,r),tt("invalid",e);break;default:i=r}Ih(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?Lx(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ox(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&su(e,u):typeof u=="number"&&su(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ru.hasOwnProperty(o)?u!=null&&o==="onScroll"&&tt("scroll",e):u!=null&&gh(e,o,u,a))}switch(n){case"input":Cc(e),kx(e,r,!1);break;case"textarea":Cc(e),Px(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Oi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Na(e,!!r.multiple,o,!1):r.defaultValue!=null&&Na(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Kc)}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 Xt(t),null;case 6:if(e&&t.stateNode!=null)Yb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=Wo(Du.current),Wo(Dr.current),nd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=Dn,e!==null))switch(e.tag){case 3:Gc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gc(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Or]=t,t.stateNode=r}return Xt(t),null;case 13:if(nt(ct),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ot&&Ln!==null&&t.mode&1&&!(t.flags&128))Kw(),Wa(),t.flags|=98560,o=!1;else if(o=nd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Z(317));o[Or]=t}else Wa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xt(t),o=!1}else mr!==null&&(lg(mr),mr=null),o=!0;if(!o)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||ct.current&1?Nt===0&&(Nt=3):fg())),t.updateQueue!==null&&(t.flags|=4),Xt(t),null);case 4:return Ka(),Zm(e,t),e===null&&Au(t.stateNode.containerInfo),Xt(t),null;case 10:return Sm(t.type._context),Xt(t),null;case 17:return xn(t.type)&&Qc(),Xt(t),null;case 19:if(nt(ct),o=t.memoizedState,o===null)return Xt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ju(o,!1);else{if(Nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ud(e),a!==null){for(t.flags|=128,ju(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Je(ct,ct.current&1|2),t.child}e=e.sibling}o.tail!==null&&wt()>Ja&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304)}else{if(!r)if(e=ud(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ju(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Xt(t),null}else 2*wt()-o.renderingStartTime>Ja&&n!==1073741824&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=wt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Xt(t),null);case 22:case 23:return dg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mn&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function F6(e,t){switch(wm(t),t.tag){case 1:return xn(t.type)&&Qc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),nt(vn),nt(Gt),Om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pm(t),null;case 13:if(nt(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ct),null;case 4:return Ka(),null;case 10:return Sm(t.type._context),null;case 22:case 23:return dg(),null;case 24:return null;default:return null}}var yd=!1,Qt=!1,B6=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Jm(e,t,n){try{n()}catch(r){gt(e,t,r)}}var qb=!1;function j6(e,t){if(dm=Fc,e=Cw(),rm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(u=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++l===i&&(s=a),f===o&&++c===r&&(u=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(fm={focusedElem:e,selectionRange:n},Fc=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;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,b=m.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:gr(t.type,y),b);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(Z(163))}}catch(T){gt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return m=qb,qb=!1,m}function Uu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Jm(t,n,o)}i=i.next}while(i!==r)}}function vd(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 eg(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 Gb(e){var t=e.alternate;t!==null&&(e.alternate=null,Gb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[Ru],delete t[gm],delete t[b6],delete t[E6])),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 Kb(e){return e.tag===5||e.tag===3||e.tag===4}function Xb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kb(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 tg(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=Kc));else if(r!==4&&(e=e.child,e!==null))for(tg(e,t,n),e=e.sibling;e!==null;)tg(e,t,n),e=e.sibling}function ng(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(ng(e,t,n),e=e.sibling;e!==null;)ng(e,t,n),e=e.sibling}var Ht=null,yr=!1;function Yi(e,t,n){for(n=n.child;n!==null;)Qb(e,t,n),n=n.sibling}function Qb(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 5:Qt||Qa(n,t);case 6:var r=Ht,i=yr;Ht=null,Yi(e,t,n),Ht=r,yr=i,Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ht.removeChild(n.stateNode));break;case 18:Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?mm(e.parentNode,n):e.nodeType===1&&mm(e,n),vu(e)):mm(Ht,n.stateNode));break;case 4:r=Ht,i=yr,Ht=n.stateNode.containerInfo,yr=!0,Yi(e,t,n),Ht=r,yr=i;break;case 0:case 11:case 14:case 15:if(!Qt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Jm(n,t,a),i=i.next}while(i!==r)}Yi(e,t,n);break;case 1:if(!Qt&&(Qa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Yi(e,t,n);break;case 21:Yi(e,t,n);break;case 22:n.mode&1?(Qt=(r=Qt)||n.memoizedState!==null,Yi(e,t,n),Qt=r):Yi(e,t,n);break;default:Yi(e,t,n)}}function Zb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new B6),t.forEach(function(r){var i=G6.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Ht=s.stateNode,yr=!1;break e;case 3:Ht=s.stateNode.containerInfo,yr=!0;break e;case 4:Ht=s.stateNode.containerInfo,yr=!0;break e}s=s.return}if(Ht===null)throw Error(Z(160));Qb(o,a,i),Ht=null,yr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){gt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Jb(t,e),t=t.sibling}function Jb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vr(t,e),Mr(e),r&4){try{Uu(3,e,e.return),vd(3,e)}catch(y){gt(e,e.return,y)}try{Uu(5,e,e.return)}catch(y){gt(e,e.return,y)}}break;case 1:vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return);break;case 5:if(vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return),e.flags&32){var i=e.stateNode;try{su(i,"")}catch(y){gt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Ax(i,o),Oh(s,a);var l=Oh(s,o);for(a=0;a<u.length;a+=2){var c=u[a],d=u[a+1];c==="style"?Lx(i,d):c==="dangerouslySetInnerHTML"?Ox(i,d):c==="children"?su(i,d):gh(i,c,d,l)}switch(s){case"input":kh(i,o);break;case"textarea":Nx(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Na(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Na(i,!!o.multiple,o.defaultValue,!0):Na(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ru]=o}catch(y){gt(e,e.return,y)}}break;case 6:if(vr(t,e),Mr(e),r&4){if(e.stateNode===null)throw Error(Z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){gt(e,e.return,y)}}break;case 3:if(vr(t,e),Mr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vu(t.containerInfo)}catch(y){gt(e,e.return,y)}break;case 4:vr(t,e),Mr(e);break;case 13:vr(t,e),Mr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(og=wt())),r&4&&Zb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qt=(l=Qt)||c,vr(t,e),Qt=l):vr(t,e),Mr(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(ue=e,c=e.child;c!==null;){for(d=ue=c;ue!==null;){switch(f=ue,p=f.child,f.tag){case 0:case 11:case 14:case 15:Uu(4,f,f.return);break;case 1:Qa(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){gt(r,n,y)}}break;case 5:Qa(f,f.return);break;case 22:if(f.memoizedState!==null){nE(d);continue}}p!==null?(p.return=f,ue=p):nE(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,u=d.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Dx("display",a))}catch(y){gt(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){gt(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:vr(t,e),Mr(e),r&4&&Zb(e);break;case 21:break;default:vr(t,e),Mr(e)}}function Mr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Kb(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(su(i,""),r.flags&=-33);var o=Xb(e);ng(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Xb(e);tg(e,s,a);break;default:throw Error(Z(161))}}catch(u){gt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U6(e,t,n){ue=e,eE(e)}function eE(e,t,n){for(var r=(e.mode&1)!==0;ue!==null;){var i=ue,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||yd;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Qt;s=yd;var l=Qt;if(yd=a,(Qt=u)&&!l)for(ue=i;ue!==null;)a=ue,u=a.child,a.tag===22&&a.memoizedState!==null?rE(i):u!==null?(u.return=a,ue=u):rE(i);for(;o!==null;)ue=o,eE(o),o=o.sibling;ue=i,yd=s,Qt=l}tE(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ue=o):tE(e)}}function tE(e){for(;ue!==null;){var t=ue;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Qt||vd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&nb(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nb(t,a,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&&vu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}Qt||t.flags&512&&eg(t)}catch(f){gt(t,t.return,f)}}if(t===e){ue=null;break}if(n=t.sibling,n!==null){n.return=t.return,ue=n;break}ue=t.return}}function nE(e){for(;ue!==null;){var t=ue;if(t===e){ue=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ue=n;break}ue=t.return}}function rE(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vd(4,t)}catch(u){gt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){gt(t,i,u)}}var o=t.return;try{eg(t)}catch(u){gt(t,o,u)}break;case 5:var a=t.return;try{eg(t)}catch(u){gt(t,a,u)}}}catch(u){gt(t,t.return,u)}if(t===e){ue=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ue=s;break}ue=t.return}}var z6=Math.ceil,xd=ni.ReactCurrentDispatcher,rg=ni.ReactCurrentOwner,er=ni.ReactCurrentBatchConfig,Ue=0,Lt=null,Ct=null,Vt=0,Mn=0,Za=zi(0),Nt=0,zu=null,qo=0,wd=0,ig=0,Hu=null,bn=null,og=0,Ja=1/0,ci=null,bd=!1,ag=null,qi=null,Ed=!1,Gi=null,Td=0,Vu=0,sg=null,_d=-1,Cd=0;function fn(){return Ue&6?wt():_d!==-1?_d:_d=wt()}function Ki(e){return e.mode&1?Ue&2&&Vt!==0?Vt&-Vt:_6.transition!==null?(Cd===0&&(Cd=Xx()),Cd):(e=qe,e!==0||(e=window.event,e=e===void 0?16:ow(e.type)),e):1}function xr(e,t,n,r){if(50<Vu)throw Vu=0,sg=null,Error(Z(185));pu(e,n,r),(!(Ue&2)||e!==Lt)&&(e===Lt&&(!(Ue&2)&&(wd|=n),Nt===4&&Xi(e,Vt)),En(e,r),n===1&&Ue===0&&!(t.mode&1)&&(Ja=wt()+500,Jc&&Vi()))}function En(e,t){var n=e.callbackNode;_D(e,t);var r=Dc(e,e===Lt?Vt:0);if(r===0)n!==null&&qx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qx(n),t===1)e.tag===0?T6(oE.bind(null,e)):$w(oE.bind(null,e)),x6(function(){!(Ue&6)&&Vi()}),n=null;else{switch(Qx(r)){case 1:n=Uh;break;case 4:n=Gx;break;case 16:n=Nc;break;case 536870912:n=Kx;break;default:n=Nc}n=pE(n,iE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iE(e,t){if(_d=-1,Cd=0,Ue&6)throw Error(Z(327));var n=e.callbackNode;if(es()&&e.callbackNode!==n)return null;var r=Dc(e,e===Lt?Vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Sd(e,r);else{t=r;var i=Ue;Ue|=2;var o=sE();(Lt!==e||Vt!==t)&&(ci=null,Ja=wt()+500,Ko(e,t));do try{$6();break}catch(s){aE(e,s)}while(!0);Cm(),xd.current=o,Ue=i,Ct!==null?t=0:(Lt=null,Vt=0,t=Nt)}if(t!==0){if(t===2&&(i=zh(e),i!==0&&(r=i,t=ug(e,i))),t===1)throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;if(t===6)Xi(e,r);else{if(i=e.current.alternate,!(r&30)&&!H6(i)&&(t=Sd(e,r),t===2&&(o=zh(e),o!==0&&(r=o,t=ug(e,o))),t===1))throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:Xo(e,bn,ci);break;case 3:if(Xi(e,r),(r&130023424)===r&&(t=og+500-wt(),10<t)){if(Dc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hm(Xo.bind(null,e,bn,ci),t);break}Xo(e,bn,ci);break;case 4:if(Xi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-pr(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*z6(r/1960))-r,10<r){e.timeoutHandle=hm(Xo.bind(null,e,bn,ci),r);break}Xo(e,bn,ci);break;case 5:Xo(e,bn,ci);break;default:throw Error(Z(329))}}}return En(e,wt()),e.callbackNode===n?iE.bind(null,e):null}function ug(e,t){var n=Hu;return e.current.memoizedState.isDehydrated&&(Ko(e,t).flags|=256),e=Sd(e,t),e!==2&&(t=bn,bn=n,t!==null&&lg(t)),e}function lg(e){bn===null?bn=e:bn.push.apply(bn,e)}function H6(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],o=i.getSnapshot;i=i.value;try{if(!hr(o(),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 Xi(e,t){for(t&=~ig,t&=~wd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pr(t),r=1<<n;e[n]=-1,t&=~r}}function oE(e){if(Ue&6)throw Error(Z(327));es();var t=Dc(e,0);if(!(t&1))return En(e,wt()),null;var n=Sd(e,t);if(e.tag!==0&&n===2){var r=zh(e);r!==0&&(t=r,n=ug(e,r))}if(n===1)throw n=zu,Ko(e,0),Xi(e,t),En(e,wt()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xo(e,bn,ci),En(e,wt()),null}function cg(e,t){var n=Ue;Ue|=1;try{return e(t)}finally{Ue=n,Ue===0&&(Ja=wt()+500,Jc&&Vi())}}function Go(e){Gi!==null&&Gi.tag===0&&!(Ue&6)&&es();var t=Ue;Ue|=1;var n=er.transition,r=qe;try{if(er.transition=null,qe=1,e)return e()}finally{qe=r,er.transition=n,Ue=t,!(Ue&6)&&Vi()}}function dg(){Mn=Za.current,nt(Za)}function Ko(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,v6(n)),Ct!==null)for(n=Ct.return;n!==null;){var r=n;switch(wm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qc();break;case 3:Ka(),nt(vn),nt(Gt),Om();break;case 5:Pm(r);break;case 4:Ka();break;case 13:nt(ct);break;case 19:nt(ct);break;case 10:Sm(r.type._context);break;case 22:case 23:dg()}n=n.return}if(Lt=e,Ct=e=Qi(e.current,null),Vt=Mn=t,Nt=0,zu=null,ig=wd=qo=0,bn=Hu=null,$o!==null){for(t=0;t<$o.length;t++)if(n=$o[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}$o=null}return e}function aE(e,t){do{var n=Ct;try{if(Cm(),ld.current=pd,cd){for(var r=dt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cd=!1}if(Yo=0,Dt=Rt=dt=null,Lu=!1,Mu=0,rg.current=null,n===null||n.return===null){Nt=1,zu=t,Ct=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=Vt,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 p=Pb(a);if(p!==null){p.flags&=-257,Ib(p,a,s,o,t),p.mode&1&&Nb(o,l,t),t=p,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)){Nb(o,l,t),fg();break e}u=Error(Z(426))}}else if(ot&&s.mode&1){var b=Pb(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Ib(b,a,s,o,t),Tm(Xa(u,s));break e}}o=u=Xa(u,s),Nt!==4&&(Nt=2),Hu===null?Hu=[o]:Hu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=kb(o,u,t);tb(o,g);break e;case 1:s=u;var x=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(qi===null||!qi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=Rb(o,s,t);tb(o,T);break e}}o=o.return}while(o!==null)}lE(n)}catch(_){t=_,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function sE(){var e=xd.current;return xd.current=pd,e===null?pd:e}function fg(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Lt===null||!(qo&268435455)&&!(wd&268435455)||Xi(Lt,Vt)}function Sd(e,t){var n=Ue;Ue|=2;var r=sE();(Lt!==e||Vt!==t)&&(ci=null,Ko(e,t));do try{V6();break}catch(i){aE(e,i)}while(!0);if(Cm(),Ue=n,xd.current=r,Ct!==null)throw Error(Z(261));return Lt=null,Vt=0,Nt}function V6(){for(;Ct!==null;)uE(Ct)}function $6(){for(;Ct!==null&&!mD();)uE(Ct)}function uE(e){var t=fE(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?lE(e):Ct=t,rg.current=null}function lE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=F6(n,t),n!==null){n.flags&=32767,Ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nt=6,Ct=null;return}}else if(n=M6(n,t,Mn),n!==null){Ct=n;return}if(t=t.sibling,t!==null){Ct=t;return}Ct=t=e}while(t!==null);Nt===0&&(Nt=5)}function Xo(e,t,n){var r=qe,i=er.transition;try{er.transition=null,qe=1,W6(e,t,n,r)}finally{er.transition=i,qe=r}return null}function W6(e,t,n,r){do es();while(Gi!==null);if(Ue&6)throw Error(Z(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(Z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(CD(e,o),e===Lt&&(Ct=Lt=null,Vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ed||(Ed=!0,pE(Nc,function(){return es(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=er.transition,er.transition=null;var a=qe;qe=1;var s=Ue;Ue|=4,rg.current=null,j6(e,n),Jb(n,e),d6(fm),Fc=!!dm,fm=dm=null,e.current=n,U6(n),gD(),Ue=s,qe=a,er.transition=o}else e.current=n;if(Ed&&(Ed=!1,Gi=e,Td=i),o=e.pendingLanes,o===0&&(qi=null),xD(n.stateNode),En(e,wt()),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(bd)throw bd=!1,e=ag,ag=null,e;return Td&1&&e.tag!==0&&es(),o=e.pendingLanes,o&1?e===sg?Vu++:(Vu=0,sg=e):Vu=0,Vi(),null}function es(){if(Gi!==null){var e=Qx(Td),t=er.transition,n=qe;try{if(er.transition=null,qe=16>e?16:e,Gi===null)var r=!1;else{if(e=Gi,Gi=null,Td=0,Ue&6)throw Error(Z(331));var i=Ue;for(Ue|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(ue=l;ue!==null;){var c=ue;switch(c.tag){case 0:case 11:case 15:Uu(8,c,o)}var d=c.child;if(d!==null)d.return=c,ue=d;else for(;ue!==null;){c=ue;var f=c.sibling,p=c.return;if(Gb(c),c===l){ue=null;break}if(f!==null){f.return=p,ue=f;break}ue=p}}}var m=o.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}ue=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ue=a;else e:for(;ue!==null;){if(o=ue,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Uu(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,ue=g;break e}ue=o.return}}var x=e.current;for(ue=x;ue!==null;){a=ue;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,ue=w;else e:for(a=x;ue!==null;){if(s=ue,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:vd(9,s)}}catch(_){gt(s,s.return,_)}if(s===a){ue=null;break e}var T=s.sibling;if(T!==null){T.return=s.return,ue=T;break e}ue=s.return}}if(Ue=i,Vi(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(Pc,e)}catch{}r=!0}return r}finally{qe=n,er.transition=t}}return!1}function cE(e,t,n){t=Xa(n,t),t=kb(e,t,1),e=Wi(e,t,1),t=fn(),e!==null&&(pu(e,1,t),En(e,t))}function gt(e,t,n){if(e.tag===3)cE(e,e,n);else for(;t!==null;){if(t.tag===3){cE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qi===null||!qi.has(r))){e=Xa(n,e),e=Rb(t,e,1),t=Wi(t,e,1),e=fn(),t!==null&&(pu(t,1,e),En(t,e));break}}t=t.return}}function Y6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fn(),e.pingedLanes|=e.suspendedLanes&n,Lt===e&&(Vt&n)===n&&(Nt===4||Nt===3&&(Vt&130023424)===Vt&&500>wt()-og?Ko(e,0):ig|=n),En(e,t)}function dE(e,t){t===0&&(e.mode&1?(t=Oc,Oc<<=1,!(Oc&130023424)&&(Oc=4194304)):t=1);var n=fn();e=si(e,t),e!==null&&(pu(e,t,n),En(e,n))}function q6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dE(e,n)}function G6(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(Z(314))}r!==null&&r.delete(t),dE(e,n)}var fE;fE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)wn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wn=!1,L6(e,t,n);wn=!!(e.flags&131072)}else wn=!1,ot&&t.flags&1048576&&Ww(t,td,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gd(e,t),e=t.pendingProps;var i=Ha(t,Gt.current);Ga(t,n),i=Mm(null,t,r,e,i,n);var o=Fm();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,xn(r)?(o=!0,Zc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Rm(t),i.updater=hd,t.stateNode=i,i._reactInternals=t,Vm(t,r,e,n),t=qm(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&xm(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=X6(r),e=gr(r,e),i){case 0:t=Ym(null,t,r,e,n);break e;case 1:t=Bb(null,t,r,e,n);break e;case 11:t=Ob(null,t,r,e,n);break e;case 14:t=Db(null,t,r,gr(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Ym(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Bb(e,t,r,i,n);case 3:e:{if(jb(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,eb(e,t),sd(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xa(Error(Z(423)),t),t=Ub(e,t,r,n,i);break e}else if(r!==i){i=Xa(Error(Z(424)),t),t=Ub(e,t,r,n,i);break e}else for(Ln=Ui(t.stateNode.containerInfo.firstChild),Dn=t,ot=!0,mr=null,n=Zw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wa(),r===i){t=li(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return rb(t),e===null&&Em(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,pm(r,i)?a=null:o!==null&&pm(r,o)&&(t.flags|=32),Fb(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&Em(t),null;case 13:return zb(e,t,n);case 4:return Nm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Ob(e,t,r,i,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Je(id,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!vn.current){t=li(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=ui(-1,n&-n),u.tag=2;var l=o.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}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Am(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Z(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Am(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ga(t,n),i=Zn(i),r=r(i),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,i=gr(r,t.pendingProps),i=gr(r.type,i),Db(e,t,r,i,n);case 15:return Lb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),gd(e,t),t.tag=1,xn(r)?(e=!0,Zc(t)):e=!1,Ga(t,n),Sb(t,r,i),Vm(t,r,i,n),qm(null,t,r,!0,e,n);case 19:return Vb(e,t,n);case 22:return Mb(e,t,n)}throw Error(Z(156,t.tag))};function pE(e,t){return Yx(e,t)}function K6(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 tr(e,t,n,r){return new K6(e,t,n,r)}function pg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X6(e){if(typeof e=="function")return pg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xh)return 11;if(e===Eh)return 14}return 2}function Qi(e,t){var n=e.alternate;return n===null?(n=tr(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 Ad(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")pg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ra:return Qo(n.children,i,o,t);case yh:a=8,i|=8;break;case vh:return e=tr(12,n,t,i|2),e.elementType=vh,e.lanes=o,e;case wh:return e=tr(13,n,t,i),e.elementType=wh,e.lanes=o,e;case bh:return e=tr(19,n,t,i),e.elementType=bh,e.lanes=o,e;case Ex:return kd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wx:a=10;break e;case bx:a=9;break e;case xh:a=11;break e;case Eh:a=14;break e;case Ii:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=tr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qo(e,t,n,r){return e=tr(7,e,r,t),e.lanes=n,e}function kd(e,t,n,r){return e=tr(22,e,r,t),e.elementType=Ex,e.lanes=n,e.stateNode={isHidden:!1},e}function hg(e,t,n){return e=tr(6,e,null,t),e.lanes=n,e}function mg(e,t,n){return t=tr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q6(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=Hh(0),this.expirationTimes=Hh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gg(e,t,n,r,i,o,a,s,u){return e=new Q6(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=tr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rm(o),e}function Z6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ka,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function hE(e){if(!e)return Hi;e=e._reactInternals;e:{if(jo(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(xn(n))return Hw(e,n,t)}return t}function mE(e,t,n,r,i,o,a,s,u){return e=gg(n,r,!0,e,i,o,a,s,u),e.context=hE(null),n=e.current,r=fn(),i=Ki(n),o=ui(r,i),o.callback=t??null,Wi(n,o,i),e.current.lanes=i,pu(e,i,r),En(e,r),e}function Rd(e,t,n,r){var i=t.current,o=fn(),a=Ki(i);return n=hE(n),t.context===null?t.context=n:t.pendingContext=n,t=ui(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wi(i,t,a),e!==null&&(xr(e,i,a,o),ad(e,i,a)),a}function Nd(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 gE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yg(e,t){gE(e,t),(e=e.alternate)&&gE(e,t)}function J6(){return null}var yE=typeof reportError=="function"?reportError:function(e){console.error(e)};function vg(e){this._internalRoot=e}Pd.prototype.render=vg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));Rd(e,t,null,null)},Pd.prototype.unmount=vg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Go(function(){Rd(null,e,null,null)}),t[ri]=null}};function Pd(e){this._internalRoot=e}Pd.prototype.unstable_scheduleHydration=function(e){if(e){var t=ew();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fi.length&&t!==0&&t<Fi[n].priority;n++);Fi.splice(n,0,e),n===0&&rw(e)}};function xg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Id(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vE(){}function eL(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=Nd(a);o.call(l)}}var a=mE(t,r,e,0,null,!1,!1,"",vE);return e._reactRootContainer=a,e[ri]=a.current,Au(e.nodeType===8?e.parentNode:e),Go(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=Nd(u);s.call(l)}}var u=gg(e,0,!1,null,null,!1,!1,"",vE);return e._reactRootContainer=u,e[ri]=u.current,Au(e.nodeType===8?e.parentNode:e),Go(function(){Rd(t,u,n,r)}),u}function Od(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var u=Nd(a);s.call(u)}}Rd(t,a,e,i)}else a=eL(n,t,e,i,r);return Nd(a)}Zx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fu(t.pendingLanes);n!==0&&(Vh(t,n|1),En(t,wt()),!(Ue&6)&&(Ja=wt()+500,Vi()))}break;case 13:Go(function(){var r=si(e,1);if(r!==null){var i=fn();xr(r,e,1,i)}}),yg(e,1)}},$h=function(e){if(e.tag===13){var t=si(e,134217728);if(t!==null){var n=fn();xr(t,e,134217728,n)}yg(e,134217728)}},Jx=function(e){if(e.tag===13){var t=Ki(e),n=si(e,t);if(n!==null){var r=fn();xr(n,e,t,r)}yg(e,t)}},ew=function(){return qe},tw=function(e,t){var n=qe;try{return qe=e,t()}finally{qe=n}},Mh=function(e,t,n){switch(t){case"input":if(kh(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=Xc(r);if(!i)throw Error(Z(90));Cx(r),kh(r,i)}}}break;case"textarea":Nx(e,n);break;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}},jx=cg,Ux=Go;var tL={usingClientEntryPoint:!1,Events:[Nu,Ua,Xc,Fx,Bx,cg]},$u={findFiberByHostInstance:Uo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nL={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ni.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$x(e),e===null?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||J6,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 Dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dd.isDisabled&&Dd.supportsFiber)try{Pc=Dd.inject(nL),Ir=Dd}catch{}}Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tL,Pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xg(t))throw Error(Z(200));return Z6(e,t,null,n)},Pn.createRoot=function(e,t){if(!xg(e))throw Error(Z(299));var n=!1,r="",i=yE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=gg(e,1,!1,null,null,n,!1,r,i),e[ri]=t.current,Au(e.nodeType===8?e.parentNode:e),new vg(t)},Pn.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(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=$x(t),e=e===null?null:e.stateNode,e},Pn.flushSync=function(e){return Go(e)},Pn.hydrate=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!0,n)},Pn.hydrateRoot=function(e,t,n){if(!xg(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=yE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=mE(t,null,e,1,n??null,i,!1,o,a),e[ri]=t.current,Au(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 Pd(t)},Pn.render=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!1,n)},Pn.unmountComponentAtNode=function(e){if(!Id(e))throw Error(Z(40));return e._reactRootContainer?(Go(function(){Od(null,null,e,!1,function(){e._reactRootContainer=null,e[ri]=null})}),!0):!1},Pn.unstable_batchedUpdates=cg,Pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Id(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return Od(e,t,n,!1,r)},Pn.version="18.3.1-next-f1338f8080-20240426";function xE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xE)}catch(e){console.error(e)}}xE(),hx.exports=Pn;var Zo=hx.exports,wE,bE=Zo;wE=bE.createRoot,bE.hydrateRoot;const EE="3.0.38";function Ld(e){"@babel/helpers - typeof";return Ld=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},Ld(e)}var rL=/^\s+/,iL=/\s+$/;function fe(e,t){if(e=e||"",t=t||{},e instanceof fe)return e;if(!(this instanceof fe))return new fe(e,t);var n=oL(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}fe.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,o,a,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=kE(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=_E(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=_E(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=TE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=TE(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 CE(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return lL(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(at(this._r,255)*100)+"%",g:Math.round(at(this._g,255)*100)+"%",b:Math.round(at(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%)":"rgba("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:bL[CE(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+SE(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=fe(t);r="#"+SE(o._r,o._g,o._b,o._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,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?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 fe(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(pL,arguments)},brighten:function(){return this._applyModification(hL,arguments)},darken:function(){return this._applyModification(mL,arguments)},desaturate:function(){return this._applyModification(cL,arguments)},saturate:function(){return this._applyModification(dL,arguments)},greyscale:function(){return this._applyModification(fL,arguments)},spin:function(){return this._applyModification(gL,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(xL,arguments)},complement:function(){return this._applyCombination(yL,arguments)},monochromatic:function(){return this._applyCombination(wL,arguments)},splitcomplement:function(){return this._applyCombination(vL,arguments)},triad:function(){return this._applyCombination(AE,[3])},tetrad:function(){return this._applyCombination(AE,[4])}},fe.fromRatio=function(e,t){if(Ld(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Wu(e[r]));e=n}return fe(e,t)};function oL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=CL(e)),Ld(e)=="object"&&(di(e.r)&&di(e.g)&&di(e.b)?(t=aL(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):di(e.h)&&di(e.s)&&di(e.v)?(r=Wu(e.s),i=Wu(e.v),t=uL(e.h,r,i),a=!0,s="hsv"):di(e.h)&&di(e.s)&&di(e.l)&&(r=Wu(e.s),o=Wu(e.l),t=sL(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=kE(n),{ok:a,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 aL(e,t,n){return{r:at(e,255)*255,g:at(t,255)*255,b:at(n,255)*255}}function TE(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=(r+i)/2;if(r==i)o=a=0;else{var u=r-i;switch(a=s>.5?u/(2-r-i):u/(r+i),r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function sL(e,t,n){var r,i,o;e=at(e,360),t=at(t,100),n=at(n,100);function a(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=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function _E(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=r,u=r-i;if(a=r===0?0:u/r,r==i)o=0;else{switch(r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function uL(e,t,n){e=at(e,360)*6,t=at(t,100),n=at(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],d=[o,o,s,n,n,a][u];return{r:l*255,g:c*255,b:d*255}}function CE(e,t,n,r){var i=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(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 lL(e,t,n,r,i){var o=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16)),wr(RE(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function SE(e,t,n,r){var i=[wr(RE(r)),wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16))];return i.join("")}fe.equals=function(e,t){return!e||!t?!1:fe(e).toRgbString()==fe(t).toRgbString()},fe.random=function(){return fe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function cL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s-=t/100,n.s=Md(n.s),fe(n)}function dL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s+=t/100,n.s=Md(n.s),fe(n)}function fL(e){return fe(e).desaturate(100)}function pL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l+=t/100,n.l=Md(n.l),fe(n)}function hL(e,t){t=t===0?0:t||10;var n=fe(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)))),fe(n)}function mL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l-=t/100,n.l=Md(n.l),fe(n)}function gL(e,t){var n=fe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,fe(n)}function yL(e){var t=fe(e).toHsl();return t.h=(t.h+180)%360,fe(t)}function AE(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=fe(e).toHsl(),r=[fe(e)],i=360/t,o=1;o<t;o++)r.push(fe({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function vL(e){var t=fe(e).toHsl(),n=t.h;return[fe(e),fe({h:(n+72)%360,s:t.s,l:t.l}),fe({h:(n+216)%360,s:t.s,l:t.l})]}function xL(e,t,n){t=t||6,n=n||30;var r=fe(e).toHsl(),i=360/n,o=[fe(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(fe(r));return o}function wL(e,t){t=t||6;for(var n=fe(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(fe({h:r,s:i,v:o})),o=(o+s)%1;return a}fe.mix=function(e,t,n){n=n===0?0:n||50;var r=fe(e).toRgb(),i=fe(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return fe(a)},fe.readability=function(e,t){var n=fe(e),r=fe(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},fe.isReadable=function(e,t,n){var r=fe.readability(e,t),i,o;switch(o=!1,i=SL(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},fe.mostReadable=function(e,t,n){var r=null,i=0,o,a,s,u;n=n||{},a=n.includeFallbackColors,s=n.level,u=n.size;for(var l=0;l<t.length;l++)o=fe.readability(e,t[l]),o>i&&(i=o,r=fe(t[l]));return fe.isReadable(e,r,{level:s,size:u})||!a?r:(n.includeFallbackColors=!1,fe.mostReadable(e,["#fff","#000"],n))};var wg=fe.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"},bL=fe.hexNames=EL(wg);function EL(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function kE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function at(e,t){TL(e)&&(e="100%");var n=_L(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 Md(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function TL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function _L(e){return typeof e=="string"&&e.indexOf("%")!=-1}function wr(e){return e.length==1?"0"+e:""+e}function Wu(e){return e<=1&&(e=e*100+"%"),e}function RE(e){return Math.round(parseFloat(e)*255).toString(16)}function NE(e){return Fn(e)/255}var br=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 di(e){return!!br.CSS_UNIT.exec(e)}function CL(e){e=e.replace(rL,"").replace(iL,"").toLowerCase();var t=!1;if(wg[e])e=wg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:NE(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:NE(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function SL(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 AL=350,PE=400,IE=600,bg={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},OE=({primary:e="hsl(0, 0%, 0%)"})=>{const t=fe(e).toHsl(),n=fe(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 kL(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 Yu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Eg=e=>Array.isArray(e);function DE(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 qu(e){return typeof e=="string"||Array.isArray(e)}function LE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tg(e,t,n,r){if(typeof t=="function"){const[i,o]=LE(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=LE(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Fd(e,t,n){const r=e.getProps();return Tg(r,t,n!==void 0?n:r.custom,e)}const _g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cg=["initial",..._g],Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zi=new Set(Gu),fi=e=>e*1e3,pi=e=>e/1e3,RL={type:"spring",stiffness:500,damping:25,restSpeed:10},NL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PL={type:"keyframes",duration:.8},IL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OL=(e,{keyframes:t})=>t.length>2?PL:Zi.has(e)?e.startsWith("scale")?NL(t[1]):RL:IL;function Sg(e,t){return e?e[t]||e.default||e:void 0}const DL={skipAnimations:!1,useManualTiming:!1},LL=e=>e!==null;function Bd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(LL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Zt=e=>e;function ML(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(l){o.has(l)&&(u.schedule(l),e()),l(a)}const u={schedule:(l,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(a=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 jd=["read","resolveKeyframes","update","preRender","render","postRender"],FL=40;function ME(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=jd.reduce((g,x)=>(g[x]=ML(o),g),{}),{read:s,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=a,p=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,FL),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(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:jd.reduce((g,x)=>{const w=a[x];return g[x]=(T,_=!1,C=!1)=>(n||m(),w.schedule(T,_,C)),g},{}),cancel:g=>{for(let x=0;x<jd.length;x++)a[jd[x]].cancel(g)},state:i,steps:a}}const{schedule:Xe,cancel:Ji,state:$t,steps:Ag}=ME(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zt,!0),FE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BL=1e-7,jL=12;function UL(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=FE(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>BL&&++s<jL);return a}function Ku(e,t,n,r){if(e===t&&n===r)return Zt;const i=o=>UL(o,0,1,e,n);return o=>o===0||o===1?o:FE(i(o),t,r)}const BE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jE=e=>t=>1-e(1-t),UE=Ku(.33,1.53,.69,.99),kg=jE(UE),zE=BE(kg),HE=e=>(e*=2)<1?.5*kg(e):.5*(2-Math.pow(2,-10*(e-1))),Rg=e=>1-Math.sin(Math.acos(e)),VE=jE(Rg),$E=BE(Rg),WE=e=>/^0[^.\s]+$/u.test(e);function zL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WE(e):!0}let Ng=Zt;const YE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qE=e=>t=>typeof t=="string"&&t.startsWith(e),GE=qE("--"),HL=qE("var(--"),Pg=e=>HL(e)?VL.test(e.split("/*")[0].trim()):!1,VL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$L=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WL(e){const t=$L.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function KE(e,t,n=1){const[r,i]=WL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return YE(a)?parseFloat(a):a}return Pg(i)?KE(i,t,n+1):i}const eo=(e,t,n)=>n>t?t:n<e?e:n,ts={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xu={...ts,transform:e=>eo(0,1,e)},Ud={...ts,default:1},Qu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),to=Qu("deg"),Fr=Qu("%"),ye=Qu("px"),YL=Qu("vh"),qL=Qu("vw"),XE={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},GL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),QE=e=>e===ts||e===ye,ZE=(e,t)=>parseFloat(e.split(", ")[t]),JE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return ZE(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?ZE(o[1],e):0}},KL=new Set(["x","y","z"]),XL=Gu.filter(e=>!KL.has(e));function QL(e){const t=[];return XL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ns={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:JE(4,13),y:JE(5,14)};ns.translateX=ns.x,ns.translateY=ns.y;const eT=e=>t=>t.test(e),tT=[ts,ye,Fr,to,qL,YL,{test:e=>e==="auto",parse:e=>e}],nT=e=>tT.find(eT(e)),Jo=new Set;let Ig=!1,Og=!1;function rT(){if(Og){const e=Array.from(Jo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=QL(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var s;(s=r.getValue(o))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Og=!1,Ig=!1,Jo.forEach(e=>e.complete()),Jo.clear()}function iT(){Jo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Og=!0)})}function ZL(){iT(),rT()}class Dg{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Jo.add(this),Ig||(Ig=!0,Xe.read(iT),Xe.resolveKeyframes(rT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Jo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Jo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Zu=e=>Math.round(e*1e5)/1e5,Lg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function JL(e){return e==null}const e4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mg=(e,t)=>n=>!!(typeof n=="string"&&e4.test(n)&&n.startsWith(e)||t&&!JL(n)&&Object.prototype.hasOwnProperty.call(n,t)),oT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Lg);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},t4=e=>eo(0,255,e),Fg={...ts,transform:e=>Math.round(t4(e))},ea={test:Mg("rgb","red"),parse:oT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fg.transform(e)+", "+Fg.transform(t)+", "+Fg.transform(n)+", "+Zu(Xu.transform(r))+")"};function n4(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 Bg={test:Mg("#"),parse:n4,transform:ea.transform},rs={test:Mg("hsl","hue"),parse:oT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Zu(t))+", "+Fr.transform(Zu(n))+", "+Zu(Xu.transform(r))+")"},Jt={test:e=>ea.test(e)||Bg.test(e)||rs.test(e),parse:e=>ea.test(e)?ea.parse(e):rs.test(e)?rs.parse(e):Bg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ea.transform(e):rs.transform(e)},r4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r4))===null||n===void 0?void 0:n.length)||0)>0}const aT="number",sT="color",o4="var",a4="var(",uT="${}",s4=/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 Ju(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(s4,u=>(Jt.test(u)?(r.color.push(o),i.push(sT),n.push(Jt.parse(u))):u.startsWith(a4)?(r.var.push(o),i.push(o4),n.push(u)):(r.number.push(o),i.push(aT),n.push(parseFloat(u))),++o,uT)).split(uT);return{values:n,split:s,indexes:r,types:i}}function lT(e){return Ju(e).values}function cT(e){const{split:t,types:n}=Ju(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const s=n[a];s===aT?o+=Zu(i[a]):s===sT?o+=Jt.transform(i[a]):o+=i[a]}return o}}const u4=e=>typeof e=="number"?0:e;function l4(e){const t=lT(e);return cT(e)(t.map(u4))}const no={test:i4,parse:lT,createTransformer:cT,getAnimatableNone:l4},c4=new Set(["brightness","contrast","saturate","opacity"]);function d4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lg)||[];if(!r)return e;const i=n.replace(r,"");let o=c4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const f4=/\b([a-z-]*)\(.*?\)/gu,jg={...no,getAnimatableNone:e=>{const t=e.match(f4);return t?t.map(d4).join(" "):e}},p4={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye},h4={rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:Ud,scaleX:Ud,scaleY:Ud,scaleZ:Ud,skew:to,skewX:to,skewY:to,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Xu,originX:XE,originY:XE,originZ:ye},dT={...ts,transform:Math.round},Ug={...p4,...h4,zIndex:dT,size:ye,fillOpacity:Xu,strokeOpacity:Xu,numOctaves:dT},m4={...Ug,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:jg,WebkitFilter:jg},zg=e=>m4[e];function fT(e,t){let n=zg(e);return n!==jg&&(n=no),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const g4=new Set(["auto","none","0"]);function y4(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!g4.has(o)&&Ju(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=fT(n,i)}class pT extends Dg{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),Pg(l))){const c=KE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!GL.has(r)||t.length!==2)return;const[i,o]=t,a=nT(i),s=nT(o);if(a!==s)if(QE(a)&&QE(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++)zL(t[i])&&r.push(i);r.length&&y4(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=ns[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 o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,s=i[a];i[a]=ns[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 Hg(e){return typeof e=="function"}let zd;function v4(){zd=void 0}const Br={now:()=>(zd===void 0&&Br.set($t.isProcessing||DL.useManualTiming?$t.timestamp:performance.now()),zd),set:e=>{zd=e,queueMicrotask(v4)}},hT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(no.test(e)||e==="0")&&!e.startsWith("url("));function x4(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 w4(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=hT(i,t),s=hT(o,t);return!a||!s?!1:x4(e)||(n==="spring"||Hg(n))&&r}const b4=40;class mT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>b4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ZL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:s,onUpdate:u,isGenerator:l}=this.options;if(!l&&!w4(t,r,i,o))if(a)this.options.duration=0;else{u==null||u(Bd(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 gT(e,t){return t?e*(1e3/t):0}const E4=5;function yT(e,t,n){const r=Math.max(t-E4,0);return gT(n-e(r),t-r)}const Vg=.001,T4=.01,_4=10,C4=.05,S4=1;function A4({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=eo(C4,S4,a),e=eo(T4,_4,pi(e)),a<1?(i=l=>{const c=l*a,d=c*e,f=c-n,p=$g(l,a),m=Math.exp(-d);return Vg-f/p*m},o=l=>{const d=l*a*e,f=d*n+n,p=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-d),y=$g(Math.pow(l,2),a);return(-i(l)+Vg>0?-1:1)*((f-p)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Vg+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=R4(i,o,s);if(e=fi(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:a*2*Math.sqrt(r*l),duration:e}}}const k4=12;function R4(e,t,n){let r=n;for(let i=1;i<k4;i++)r=r-e(r)/t(r);return r}function $g(e,t){return e*Math.sqrt(1-t*t)}const N4=["duration","bounce"],P4=["stiffness","damping","mass"];function vT(e,t){return t.some(n=>e[n]!==void 0)}function I4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!vT(e,P4)&&vT(e,N4)){const n=A4(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function xT({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=I4({...r,velocity:-pi(r.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(s*l)),y=o-i,b=pi(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=$g(b,m);x=T=>{const _=Math.exp(-m*b*T);return o-_*((p+m*b*y)/w*Math.sin(w*T)+y*Math.cos(w*T))}}else if(m===1)x=w=>o-Math.exp(-b*w)*(y+(p+b*y)*w);else{const w=b*Math.sqrt(m*m-1);x=T=>{const _=Math.exp(-m*b*T),C=Math.min(w*T,300);return o-_*((p+m*b*y)*Math.sinh(C)+w*y*Math.cosh(C))/w}}return{calculatedDuration:f&&c||null,next:w=>{const T=x(w);if(f)a.done=w>=c;else{let _=0;m<1&&(_=w===0?fi(p):yT(x,w,T));const C=Math.abs(_)<=n,R=Math.abs(o-T)<=t;a.done=C&&R}return a.value=a.done?o:T,a}}}function wT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=O=>s!==void 0&&O<s||u!==void 0&&O>u,m=O=>s===void 0?u:u===void 0||Math.abs(s-O)<Math.abs(u-O)?s:u;let y=n*t;const b=d+y,g=a===void 0?b:a(b);g!==b&&(y=g-d);const x=O=>-y*Math.exp(-O/r),w=O=>g+x(O),T=O=>{const V=x(O),P=w(O);f.done=Math.abs(V)<=l,f.value=f.done?g:P};let _,C;const R=O=>{p(f.value)&&(_=O,C=xT({keyframes:[f.value,m(f.value)],velocity:yT(w,O,f.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return R(0),{calculatedDuration:null,next:O=>{let V=!1;return!C&&_===void 0&&(V=!0,T(O),R(O)),_!==void 0&&O>=_?C.next(O-_):(!V&&T(O),f)}}}const O4=Ku(.42,0,1,1),D4=Ku(0,0,.58,1),bT=Ku(.42,0,.58,1),L4=e=>Array.isArray(e)&&typeof e[0]!="number",Wg=e=>Array.isArray(e)&&typeof e[0]=="number",ET={linear:Zt,easeIn:O4,easeInOut:bT,easeOut:D4,circIn:Rg,circInOut:$E,circOut:VE,backIn:kg,backInOut:zE,backOut:UE,anticipate:HE},TT=e=>{if(Wg(e)){Ng(e.length===4);const[t,n,r,i]=e;return Ku(t,n,r,i)}else if(typeof e=="string")return Ng(ET[e]!==void 0),ET[e];return e},M4=(e,t)=>n=>t(e(n)),hi=(...e)=>e.reduce(M4),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ft=(e,t,n)=>e+(t-e)*n;function Yg(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 F4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=Yg(u,s,e+1/3),o=Yg(u,s,e),a=Yg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Hd(e,t){return n=>n>0?t:e}const qg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},B4=[Bg,ea,rs],j4=e=>B4.find(t=>t.test(e));function _T(e){const t=j4(e);if(!t)return!1;let n=t.parse(e);return t===rs&&(n=F4(n)),n}const CT=(e,t)=>{const n=_T(e),r=_T(t);if(!n||!r)return Hd(e,t);const i={...n};return o=>(i.red=qg(n.red,r.red,o),i.green=qg(n.green,r.green,o),i.blue=qg(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),ea.transform(i))},Gg=new Set(["none","hidden"]);function U4(e,t){return Gg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function z4(e,t){return n=>ft(e,t,n)}function Kg(e){return typeof e=="number"?z4:typeof e=="string"?Pg(e)?Hd:Jt.test(e)?CT:$4:Array.isArray(e)?ST:typeof e=="object"?Jt.test(e)?CT:H4:Hd}function ST(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Kg(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function H4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Kg(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function V4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][i[a]],u=(n=e.values[s])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const $4=(e,t)=>{const n=no.createTransformer(t),r=Ju(e),i=Ju(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?Gg.has(e)&&!i.values.length||Gg.has(t)&&!r.values.length?U4(e,t):hi(ST(V4(r,i),i.values),n):Hd(e,t)};function AT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):Kg(e)(e,t)}function W4(e,t,n){const r=[],i=n||AT,o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Zt:t;s=hi(u,s)}r.push(s)}return r}function Y4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ng(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=W4(t,r,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=is(e[c],e[c+1],l);return a[c](d)};return n?l=>u(eo(e[0],e[o-1],l)):u}function q4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(ft(n,1,i))}}function G4(e){const t=[0];return q4(t,e.length-1),t}function K4(e,t){return e.map(n=>n*t)}function X4(e,t){return e.map(()=>t||bT).splice(0,e.length-1)}function Vd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=L4(r)?r.map(TT):TT(r),o={done:!1,value:t[0]},a=K4(n&&n.length===t.length?n:G4(t),e),s=Y4(a,t,{ease:Array.isArray(i)?i:X4(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}const kT=2e4;function Q4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<kT;)t+=n,r=e.next(t);return t>=kT?1/0:t}const Z4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xe.update(t,!0),stop:()=>Ji(t),now:()=>$t.isProcessing?$t.timestamp:Br.now()}},J4={decay:wT,inertia:wT,tween:Vd,keyframes:Vd,spring:xT},eM=e=>e/100;class Xg extends mT{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:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Dg,s=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new a(o,s,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=Hg(n)?n:J4[n]||Vd;let u,l;s!==Vd&&typeof t[0]!="number"&&(u=hi(eM,AT(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Q4(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}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:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:y,onUpdate:b}=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=o;if(p){const O=Math.min(this.currentTime,c)/d;let V=Math.floor(O),P=O%1;!P&&O>=1&&(P=1),P===1&&V--,V=Math.min(V,p+1),!!(V%2)&&(m==="reverse"?(P=1-P,y&&(P-=y/d)):m==="mirror"&&(T=a)),w=eo(0,1,P)*d}const _=x?{done:!1,value:u[0]}:T.next(w);s&&(_.value=s(_.value));let{done:C}=_;!x&&l!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return R&&i!==void 0&&(_.value=Bd(u,this.options,i)),b&&b(_.value),R&&this.finish(),_}get duration(){const{resolved:t}=this;return t?pi(t.calculatedDuration):0}get time(){return pi(this.currentTime)}set time(t){t=fi(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=pi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Z4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const RT=new Set(["opacity","clipPath","filter","transform"]),tM=10,nM=(e,t)=>{let n="";const r=Math.max(Math.round(t/tM),2);for(let i=0;i<r;i++)n+=e(is(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Qg(e){let t;return()=>(t===void 0&&(t=e()),t)}const rM={linearEasing:void 0};function iM(e,t){const n=Qg(e);return()=>{var r;return(r=rM[t])!==null&&r!==void 0?r:n()}}const $d=iM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function NT(e){return!!(typeof e=="function"&&$d()||!e||typeof e=="string"&&(e in Zg||$d())||Wg(e)||Array.isArray(e)&&e.every(NT))}const el=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Zg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function PT(e,t){if(e)return typeof e=="function"&&$d()?nM(e,t):Wg(e)?el(e):Array.isArray(e)?e.map(n=>PT(n,t)||Zg.easeOut):Zg[e]}function oM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=PT(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:o+1,direction:a==="reverse"?"alternate":"normal"})}function IT(e,t){e.timeline=t,e.onfinish=null}const aM=Qg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wd=10,sM=2e4;function uM(e){return Hg(e.type)||e.type==="spring"||!NT(e.ease)}function lM(e,t){const n=new Xg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<sM;)r=n.sample(o),i.push(r.value),o+=Wd;return{times:void 0,keyframes:i,duration:o-Wd,ease:"linear"}}const OT={anticipate:HE,backInOut:zE,circInOut:$E};function cM(e){return e in OT}class DT extends mT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new pT(o,(a,s)=>this.onKeyframesResolved(a,s),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&$d()&&cM(a)&&(a=OT[a]),uM(this.options)){const{onComplete:f,onUpdate:p,motionValue:m,element:y,...b}=this.options,g=lM(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,o=g.times,a=g.ease,s="keyframes"}const d=oM(u.owner.current,l,t,{...this.options,duration:i,times:o,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(IT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Bd(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return pi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return pi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=fi(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 Zt;const{animation:r}=n;IT(r,t)}return Zt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...p}=this.options,m=new Xg({...p,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),y=fi(this.time);l.setWithVelocity(m.sample(y-Wd).value,m.sample(y).value,Wd)}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:o,damping:a,type:s}=t;return aM()&&r&&RT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const dM=Qg(()=>window.ScrollTimeline!==void 0);class fM{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=>dM()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;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 pM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const Jg=(e,t,n,r={},i,o)=>a=>{const s=Sg(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-fi(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:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};pM(s)||(c={...c,...OL(e,c)}),c.duration&&(c.duration=fi(c.duration)),c.repeatDelay&&(c.repeatDelay=fi(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&&!o&&t.get()!==void 0){const f=Bd(c.keyframes,s);if(f!==void 0)return Xe.update(()=>{c.onUpdate(f),c.onComplete()}),new fM([])}return!o&&DT.supports(c)?new DT(c):new Xg(c)},hM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mM=e=>Eg(e)?e[e.length-1]||0:e;function e0(e,t){e.indexOf(t)===-1&&e.push(t)}function t0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class n0{constructor(){this.subscriptions=[]}add(t){return e0(this.subscriptions,t),()=>t0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const LT=30,gM=e=>!isNaN(parseFloat(e));class yM{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Br.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gM(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 n0);const r=this.events[t].add(n);return t==="change"?()=>{r(),Xe.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=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>LT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,LT);return gT(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 tl(e,t){return new yM(e,t)}function vM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tl(n))}function xM(e,t){const n=Fd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=mM(o[a]);vM(e,a,s)}}const Yd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),MT="data-"+Yd("framerAppearId");function FT(e){return e.props[MT]}const en=e=>!!(e&&e.getVelocity);function wM(e){return!!(en(e)&&e.add)}function r0(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(wM(n))return n.add(t)}function bM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function BT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=u[d];if(p===void 0||c&&bM(c,d))continue;const m={delay:n,...Sg(a||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=FT(e);if(g){const x=window.MotionHandoffAnimation(g,d,Xe);x!==null&&(m.startTime=x,y=!0)}}r0(e,d),f.start(Jg(d,f,p,e.shouldReduceMotion&&Zi.has(d)?{type:!1}:m,e,y));const b=f.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{Xe.update(()=>{s&&xM(e,s)})}),l}function i0(e,t,n={}){var r;const i=Fd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(BT(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return EM(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[l,c]=u==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function EM(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>s-l*r;return Array.from(e.variantChildren).sort(TM).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(i0(l,t,{...o,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function TM(e,t){return e.sortNodePosition(t)}function _M(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>i0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=i0(e,t,n);else{const i=typeof t=="function"?Fd(e,t,n.custom):t;r=Promise.all(BT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CM=Cg.length;function jT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<CM;n++){const r=Cg[n],i=e.props[r];(qu(i)||i===!1)&&(t[r]=i)}return t}const SM=[..._g].reverse(),AM=_g.length;function kM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_M(e,n,r)))}function RM(e){let t=kM(e),n=UT(),r=!0;const i=u=>(l,c)=>{var d;const f=Fd(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...y}=f;l={...l,...y,...m}}return l};function o(u){t=u(e)}function a(u){const{props:l}=e,c=jT(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let b=0;b<AM;b++){const g=SM[b],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=qu(w),_=g===u?x.isActive:null;_===!1&&(m=b);let C=w===c[g]&&w!==l[g]&&T;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...p},!x.isActive&&_===null||!w&&!x.prevProp||Yu(w)||typeof w=="boolean")continue;const R=NM(x.prevProp,w);let O=R||g===u&&x.isActive&&!C&&T||b>m&&T,V=!1;const P=Array.isArray(w)?w:[w];let $=P.reduce(i(g),{});_===!1&&($={});const{prevResolvedValues:z={}}=x,X={...z,...$},Y=te=>{O=!0,f.has(te)&&(V=!0,f.delete(te)),x.needsAnimating[te]=!0;const F=e.getValue(te);F&&(F.liveStyle=!1)};for(const te in X){const F=$[te],B=z[te];if(p.hasOwnProperty(te))continue;let A=!1;Eg(F)&&Eg(B)?A=!DE(F,B):A=F!==B,A?F!=null?Y(te):f.add(te):F!==void 0&&f.has(te)?Y(te):x.protectedKeys[te]=!0}x.prevProp=w,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(C&&R)||V)&&d.push(...P.map(te=>({animation:te,options:{type:g}})))}if(f.size){const b={};f.forEach(g=>{const x=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),b[g]=x??null}),d.push({animation:b})}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 p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(u,l)}),n[u].isActive=l;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n,reset:()=>{n=UT(),r=!0}}}function NM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!DE(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UT(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}class ro{constructor(t){this.isMounted=!1,this.node=t}update(){}}class PM extends ro{constructor(t){super(t),t.animationState||(t.animationState=RM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yu(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 IM=0;class OM extends ro{constructor(){super(...arguments),this.id=IM++}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 DM={animation:{Feature:PM},exit:{Feature:OM}},zT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qd(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const LM=e=>t=>zT(t)&&e(t,qd(t));function mi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e,t,n,r){return mi(e,t,LM(n),r)}const HT=(e,t)=>Math.abs(e-t);function MM(e,t){const n=HT(e.x,t.x),r=HT(e.y,t.y);return Math.sqrt(n**2+r**2)}class VT{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=a0(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=MM(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=d,{timestamp:y}=$t;this.history.push({...m,timestamp:y});const{onStart:b,onMove:g}=this.handlers;f||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=o0(f,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=a0(d.type==="pointercancel"?this.lastMoveEventInfo:o0(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),m&&m(d,b)},!zT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qd(t),s=o0(a,this.transformPagePoint),{point:u}=s,{timestamp:l}=$t;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,a0(s,this.history)),this.removeListeners=hi(gi(this.contextWindow,"pointermove",this.handlePointerMove),gi(this.contextWindow,"pointerup",this.handlePointerUp),gi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ji(this.updatePoint)}}function o0(e,t){return t?{point:t(e.point)}:e}function $T(e,t){return{x:e.x-t.x,y:e.y-t.y}}function a0({point:e},t){return{point:e,delta:$T(e,WT(t)),offset:$T(e,FM(t)),velocity:BM(t,.1)}}function FM(e){return e[0]}function WT(e){return e[e.length-1]}function BM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=WT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>fi(t)));)n--;if(!r)return{x:0,y:0};const o=pi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function YT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const qT=YT("dragHorizontal"),GT=YT("dragVertical");function KT(e){let t=!1;if(e==="y")t=GT();else if(e==="x")t=qT();else{const n=qT(),r=GT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function XT(){const e=KT(!0);return e?(e(),!1):!0}function os(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const QT=1e-4,jM=1-QT,UM=1+QT,ZT=.01,zM=0-ZT,HM=0+ZT;function Bn(e){return e.max-e.min}function VM(e,t,n){return Math.abs(e-t)<=n}function JT(e,t,n,r=.5){e.origin=r,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jM&&e.scale<=UM||isNaN(e.scale))&&(e.scale=1),(e.translate>=zM&&e.translate<=HM||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,n,r){JT(e.x,t.x,n.x,r?r.originX:void 0),JT(e.y,t.y,n.y,r?r.originY:void 0)}function e2(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function $M(e,t,n){e2(e.x,t.x,n.x),e2(e.y,t.y,n.y)}function t2(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function rl(e,t,n){t2(e.x,t.x,n.x),t2(e.y,t.y,n.y)}function WM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ft(n,e,r.max):Math.min(e,n)),e}function n2(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 YM(e,{top:t,left:n,bottom:r,right:i}){return{x:n2(e.x,n,i),y:n2(e.y,t,r)}}function r2(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 qM(e,t){return{x:r2(e.x,t.x),y:r2(e.y,t.y)}}function GM(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),eo(0,1,n)}function KM(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 s0=.35;function XM(e=s0){return e===!1?e=0:e===!0&&(e=s0),{x:i2(e,"left","right"),y:i2(e,"top","bottom")}}function i2(e,t,n){return{min:o2(e,t),max:o2(e,n)}}function o2(e,t){return typeof e=="number"?e:e[t]||0}const a2=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:a2(),y:a2()}),s2=()=>({min:0,max:0}),bt=()=>({x:s2(),y:s2()});function nr(e){return[e("x"),e("y")]}function u2({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function QM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZM(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 u0(e){return e===void 0||e===1}function l0({scale:e,scaleX:t,scaleY:n}){return!u0(e)||!u0(t)||!u0(n)}function na(e){return l0(e)||l2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function l2(e){return c2(e.x)||c2(e.y)}function c2(e){return e&&e!=="0%"}function Gd(e,t,n){const r=e-n,i=t*r;return n+i}function d2(e,t,n,r,i){return i!==void 0&&(e=Gd(e,i,r)),Gd(e,n,r)+t}function c0(e,t=0,n=1,r,i){e.min=d2(e.min,t,n,r,i),e.max=d2(e.max,t,n,r,i)}function f2(e,{x:t,y:n}){c0(e.x,t.translate,t.scale,t.originPoint),c0(e.y,n.translate,n.scale,n.originPoint)}const p2=.999999999999,h2=1.0000000000001;function JM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=n[s],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&us(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,f2(e,a)),r&&na(o.latestValues)&&us(e,o.latestValues))}t.x<h2&&t.x>p2&&(t.x=1),t.y<h2&&t.y>p2&&(t.y=1)}function ss(e,t){e.min=e.min+t,e.max=e.max+t}function m2(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);c0(e,t,n,o,r)}function us(e,t){m2(e.x,t.x,t.scaleX,t.scale,t.originX),m2(e.y,t.y,t.scaleY,t.scale,t.originY)}function g2(e,t){return u2(ZM(e.getBoundingClientRect(),t))}function e5(e,t,n){const r=g2(e,n),{scroll:i}=t;return i&&(ss(r.x,i.offset.x),ss(r.y,i.offset.y)),r}const y2=({current:e})=>e?e.ownerDocument.defaultView:null,t5=new WeakMap;class n5{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=bt(),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(qd(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=KT(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),nr(b=>{let g=this.getAxisMotionValue(b).get()||0;if(Fr.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[b];w&&(g=Bn(w)*(parseFloat(g)/100))}}this.originPoint[b]=g}),m&&Xe.postRender(()=>m(c,d)),r0(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:b}=d;if(p&&this.currentDirection===null){this.currentDirection=r5(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},s=(c,d)=>this.stop(c,d),u=()=>nr(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 VT(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:y2(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Xe.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=WM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&os(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=YM(i.layoutBox,n):this.constraints=!1,this.elastic=XM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=KM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!os(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=e5(r,i.root,this.visualElement.getTransformPagePoint());let a=qM(i.layout.layoutBox,o);if(n){const s=n(QM(a));this.hasMutatedConstraints=!!s,s&&(a=u2(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=nr(c=>{if(!Kd(c,n,this.currentDirection))return;let d=u&&u[c]||{};a&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r0(this.visualElement,t),r.start(Jg(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(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){nr(n=>{const{drag:r}=this.getProps();if(!Kd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-ft(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!os(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const u=s.get();i[a]=GM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!Kd(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(ft(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;t5.set(this.visualElement,this);const t=this.visualElement.current,n=gi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();os(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Xe.read(r);const a=mi(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(nr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=s0,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Kd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function r5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class i5 extends ro{constructor(t){super(t),this.removeGroupControls=Zt,this.removeListeners=Zt,this.controls=new n5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zt}unmount(){this.removeGroupControls(),this.removeListeners()}}const v2=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};class o5 extends ro{constructor(){super(...arguments),this.removePointerDownListener=Zt}onPointerDown(t){this.session=new VT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:y2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:v2(t),onStart:v2(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Xe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=gi(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 Xd=v.createContext(null);function a5(){const e=v.useContext(Xd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();v.useEffect(()=>r(i),[]);const o=v.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const d0=v.createContext({}),x2=v.createContext({}),Qd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function w2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const il={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=w2(e,t.target.x),r=w2(e,t.target.y);return`${n}% ${r}%`}},s5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=no.parse(e);if(i.length>5)return r;const o=no.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=ft(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}},Zd={};function u5(e){Object.assign(Zd,e)}const{schedule:f0,cancel:Rie}=ME(queueMicrotask,!1);class l5 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;u5(c5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Xe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),f0.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 b2(e){const[t,n]=a5(),r=v.useContext(d0);return E.jsx(l5,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(x2),isPresent:t,safeToRemove:n})}const c5={borderRadius:{...il,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomLeftRadius:il,borderBottomRightRadius:il,boxShadow:s5},E2=["TopLeft","TopRight","BottomLeft","BottomRight"],d5=E2.length,T2=e=>typeof e=="string"?parseFloat(e):e,_2=e=>typeof e=="number"||ye.test(e);function f5(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,p5(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,h5(r))):o&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<d5;a++){const s=`border${E2[a]}Radius`;let u=C2(t,s),l=C2(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||_2(u)===_2(l)?(e[s]=Math.max(ft(T2(u),T2(l),r),0),(Fr.test(l)||Fr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||n.rotate)&&(e.rotate=ft(t.rotate||0,n.rotate||0,r))}function C2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const p5=S2(0,.5,VE),h5=S2(.5,.95,Zt);function S2(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function A2(e,t){e.min=t.min,e.max=t.max}function rr(e,t){A2(e.x,t.x),A2(e.y,t.y)}function k2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function R2(e,t,n,r,i){return e-=t,e=Gd(e,1/n,r),i!==void 0&&(e=Gd(e,1/i,r)),e}function m5(e,t=0,n=1,r=.5,i,o=e,a=e){if(Fr.test(t)&&(t=parseFloat(t),t=ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ft(o.min,o.max,r);e===o&&(s-=t),e.min=R2(e.min,t,n,s,i),e.max=R2(e.max,t,n,s,i)}function N2(e,t,[n,r,i],o,a){m5(e,t[n],t[r],t[i],t.scale,o,a)}const g5=["x","scaleX","originX"],y5=["y","scaleY","originY"];function P2(e,t,n,r){N2(e.x,t,g5,n?n.x:void 0,r?r.x:void 0),N2(e.y,t,y5,n?n.y:void 0,r?r.y:void 0)}function I2(e){return e.translate===0&&e.scale===1}function O2(e){return I2(e.x)&&I2(e.y)}function D2(e,t){return e.min===t.min&&e.max===t.max}function v5(e,t){return D2(e.x,t.x)&&D2(e.y,t.y)}function L2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function M2(e,t){return L2(e.x,t.x)&&L2(e.y,t.y)}function F2(e){return Bn(e.x)/Bn(e.y)}function B2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class x5{constructor(){this.members=[]}add(t){e0(this.members,t),t.scheduleRender()}remove(t){if(t0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function w5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}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:p,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}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 b5=(e,t)=>e.depth-t.depth;class E5{constructor(){this.children=[],this.isDirty=!1}add(t){e0(this.children,t),this.isDirty=!0}remove(t){t0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b5),this.isDirty=!1,this.children.forEach(t)}}function Jd(e){const t=en(e)?e.get():e;return hM(t)?t.toValue():t}function T5(e,t){const n=Br.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ji(r),e(o-t))};return Xe.read(r,!0),()=>Ji(r)}function _5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function C5(e,t,n){const r=en(e)?e:tl(e);return r.start(Jg("",r,t,n)),r.animation}const ra={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ol=typeof window<"u"&&window.MotionDebug!==void 0,p0=["","X","Y","Z"],S5={visibility:"hidden"},j2=1e3;let A5=0;function h0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function U2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=FT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Xe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&U2(r)}function z2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=A5++,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,ol&&(ra.totalNodes=ra.resolvedTargetDeltas=ra.recalculatedProjection=0),this.nodes.forEach(N5),this.nodes.forEach(L5),this.nodes.forEach(M5),this.nodes.forEach(P5),ol&&window.MotionDebug.record(ra)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 E5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new n0),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),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(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=T5(f,250),Qd.hasAnimatedSinceResize&&(Qd.hasAnimatedSinceResize=!1,this.nodes.forEach(V2))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||z5,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!M2(this.targetLayout,m)||p,w=!f&&p;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={...Sg(y,"layout"),onPlay:b,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||V2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ji(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(F5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&U2(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(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(H2);return}this.isUpdating||this.nodes.forEach(O5),this.isUpdating=!1,this.nodes.forEach(D5),this.nodes.forEach(k5),this.nodes.forEach(R5),this.clearAllSnapshots();const s=Br.now();$t.delta=eo(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,Ag.update.process($t),Ag.preRender.process($t),Ag.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,f0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(I5),this.sharedNodes.forEach(B5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=bt(),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!O2(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||na(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),H5(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:s}=this.options;if(!s)return bt();const u=s.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(V5))){const{scroll:c}=this.root;c&&(ss(u.x,c.offset.x),ss(u.y,c.offset.y))}return u}removeElementScroll(a){var s;const u=bt();if(rr(u,a),!((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&&rr(u,a),ss(u.x,d.offset.x),ss(u.y,d.offset.y))}return u}applyTransform(a,s=!1){const u=bt();rr(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&us(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),na(c.latestValues)&&us(u,c.latestValues)}return na(this.latestValues)&&us(u,this.latestValues),u}removeTransform(a){const s=bt();rr(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!na(l.latestValues))continue;l0(l.latestValues)&&l.updateSnapshot();const c=bt(),d=l.measurePageBox();rr(c,d),P2(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return na(this.latestValues)&&P2(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!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(!(a||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=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$M(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),f2(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ol&&ra.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||l0(this.parent.latestValues)||l2(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 a;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===$t.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;rr(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;JM(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=bt());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(k2(this.prevProjectionDelta.x,this.projectionDelta.x),k2(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!B2(this.projectionDelta.x,this.prevProjectionDelta.x)||!B2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ol&&ra.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=bt(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,b=this.getStack(),g=!b||b.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(U5));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const _=T/1e3;$2(d.x,a.x,_),$2(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),j5(this.relativeTarget,this.relativeTargetOrigin,f,_),w&&v5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=bt()),rr(w,this.relativeTarget)),y&&(this.animationValues=c,f5(c,l,this.latestValues,_,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ji(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Qd.hasAnimatedSinceResize=!0,this.currentAnimation=C5(0,j2,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(j2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&K2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||bt();const d=Bn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+d;const f=Bn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+f}rr(s,u),us(s,c),nl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new x5),this.sharedNodes.get(a).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 a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;const l={};u.z&&h0("z",a,l,this.animationValues);for(let c=0;c<p0.length;c++)h0(`rotate${p0[c]}`,a,l,this.animationValues),h0(`skew${p0[c]}`,a,l,this.animationValues);a.render();for(const c in l)a.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);a.scheduleRender()}getProjectionStyles(a){var s,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return S5;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Jd(a==null?void 0:a.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=Jd(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!na(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=w5(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:m}=this.projectionDelta;l.transformOrigin=`${p.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 Zd){if(f[y]===void 0)continue;const{correct:b,applyTo:g}=Zd[y],x=l.transform==="none"?f[y]:b(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?Jd(a==null?void 0:a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(H2),this.root.sharedNodes.clear()}}}function k5(e){e.updateLayout()}function R5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(f);f.min=r[d].min,f.max=f.min+p}):K2(o,n.layoutBox,r)&&nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=as();nl(s,r,n.layoutBox);const u=as();a?nl(u,e.applyTransform(i,!0),n.measuredBox):nl(u,r,n.layoutBox);const l=!O2(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=bt();rl(m,n.layoutBox,f.layoutBox);const y=bt();rl(y,r,p.layoutBox),M2(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 N5(e){ol&&ra.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 P5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I5(e){e.clearSnapshot()}function H2(e){e.clearMeasurements()}function O5(e){e.isLayoutDirty=!1}function D5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function V2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function L5(e){e.resolveTargetDelta()}function M5(e){e.calcProjection()}function F5(e){e.resetSkewAndRotation()}function B5(e){e.removeLeadSnapshot()}function $2(e,t,n){e.translate=ft(t.translate,0,n),e.scale=ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function W2(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function j5(e,t,n,r){W2(e.x,t.x,n.x,r),W2(e.y,t.y,n.y,r)}function U5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const z5={duration:.45,ease:[.4,0,.1,1]},Y2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),q2=Y2("applewebkit/")&&!Y2("chrome/")?Math.round:Zt;function G2(e){e.min=q2(e.min),e.max=q2(e.max)}function H5(e){G2(e.x),G2(e.y)}function K2(e,t,n){return e==="position"||e==="preserve-aspect"&&!VM(F2(t),F2(n),.2)}function V5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $5=z2({attachResizeListener:(e,t)=>mi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),m0={current:void 0},X2=z2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!m0.current){const e=new $5({});e.mount(window),e.setOptions({layoutScroll:!0}),m0.current=e}return m0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),W5={pan:{Feature:o5},drag:{Feature:i5,ProjectionNode:X2,MeasureLayout:b2}};function Q2(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,a)=>{if(o.pointerType==="touch"||XT())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const u=s[r];u&&Xe.postRender(()=>u(o,a))};return gi(e.current,n,i,{passive:!e.getProps()[r]})}class Y5 extends ro{mount(){this.unmount=hi(Q2(this.node,!0),Q2(this.node,!1))}unmount(){}}class q5 extends ro{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=hi(mi(this.node.current,"focus",()=>this.onFocus()),mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Z2=(e,t)=>t?e===t?!0:Z2(e,t.parentElement):!1;function g0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,qd(n))}class G5 extends ro{constructor(){super(...arguments),this.removeStartListeners=Zt,this.removeEndListeners=Zt,this.removeAccessibleListeners=Zt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=gi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Z2(this.node.current,s.target)?c:l;f&&Xe.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),a=gi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hi(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||g0("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Xe.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=mi(this.node.current,"keyup",a),g0("down",(s,u)=>{this.startPress(s,u)})},n=mi(this.node.current,"keydown",t),r=()=>{this.isPressing&&g0("cancel",(o,a)=>this.cancelPress(o,a))},i=mi(this.node.current,"blur",r);this.removeAccessibleListeners=hi(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&&Xe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!XT()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Xe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=gi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=mi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const y0=new WeakMap,v0=new WeakMap,K5=e=>{const t=y0.get(e.target);t&&t(e)},X5=e=>{e.forEach(K5)};function Q5({root:e,...t}){const n=e||document;v0.has(n)||v0.set(n,{});const r=v0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(X5,{root:e,...t})),r[i]}function Z5(e,t,n){const r=Q5(t);return y0.set(e,n),r.observe(e),()=>{y0.delete(e),r.unobserve(e)}}const J5={some:0,all:1};class e8 extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:J5[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!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 Z5(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(t8(t,n))&&this.startObserver()}unmount(){}}function t8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const n8={inView:{Feature:e8},tap:{Feature:G5},focus:{Feature:q5},hover:{Feature:Y5}},r8={layout:{ProjectionNode:X2,MeasureLayout:b2}},x0=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ef=v.createContext({}),w0=typeof window<"u",J2=w0?v.useLayoutEffect:v.useEffect,e_=v.createContext({strict:!1});function i8(e,t,n,r,i){var o,a;const{visualElement:s}=v.useContext(ef),u=v.useContext(e_),l=v.useContext(Xd),c=v.useContext(x0).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,p=v.useContext(x2);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&o8(d.current,n,i,p),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[MT],y=v.useRef(!!m&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,m))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,m)));return J2(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),f0.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,m)}),y.current=!1))}),f}function o8(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:t_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&os(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function t_(e){if(e)return e.options.allowProjection!==!1?e.projection:t_(e.parent)}function a8(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):os(n)&&(n.current=r))},[t])}function tf(e){return Yu(e.animate)||Cg.some(t=>qu(e[t]))}function n_(e){return!!(tf(e)||e.variants)}function s8(e,t){if(tf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qu(n)?n:void 0,animate:qu(r)?r:void 0}}return e.inherit!==!1?t:{}}function u8(e){const{initial:t,animate:n}=s8(e,v.useContext(ef));return v.useMemo(()=>({initial:t,animate:n}),[r_(t),r_(n)])}function r_(e){return Array.isArray(e)?e.join(" "):e}const i_={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"]},ls={};for(const e in i_)ls[e]={isEnabled:t=>i_[e].some(n=>!!t[n])};function l8(e){for(const t in e)ls[t]={...ls[t],...e[t]}}const c8=Symbol.for("motionComponentSymbol");function d8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&l8(e);function o(s,u){let l;const c={...v.useContext(x0),...s,layoutId:f8(s)},{isStatic:d}=c,f=u8(s),p=r(s,d);if(!d&&w0){p8();const m=h8(c);l=m.MeasureLayout,f.visualElement=i8(i,p,c,t,m.ProjectionNode)}return E.jsxs(ef.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,a8(p,f.visualElement,u),p,d,f.visualElement)]})}const a=v.forwardRef(o);return a[c8]=i,a}function f8({layoutId:e}){const t=v.useContext(d0).id;return t&&e!==void 0?t+"-"+e:e}function p8(e,t){v.useContext(e_).strict}function h8(e){const{drag:t,layout:n}=ls;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 m8=["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 b0(e){return typeof e!="string"||e.includes("-")?!1:!!(m8.indexOf(e)>-1||/[A-Z]/u.test(e))}function o_(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const a_=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 s_(e,t,n,r){o_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(a_.has(i)?i:Yd(i),t.attrs[i])}function u_(e,{layout:t,layoutId:n}){return Zi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zd[e]||e==="opacity")}function E0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(en(i[a])||t.style&&en(t.style[a])||u_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function l_(e,t,n){const r=E0(e,t,n);for(const i in e)if(en(e[i])||en(t[i])){const o=Gu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function T0(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function g8(e){if(Zi.has(e))return"transform";if(RT.has(e))return Yd(e)}function y8({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,a,s){const u={latestValues:v8(i,o,a,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const c_=e=>(t,n)=>{const r=v.useContext(ef),i=v.useContext(Xd),o=()=>y8(e,t,r,i,n);return n?o():T0(o)};function d_(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const o=Tg(e,r[i]);if(o){const{transitionEnd:a,transition:s,...u}=o;n(u,a)}}}function v8(e,t,n,r,i){var o;const a={},s=new Set,u=r&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=i(e,{});for(const b in l)a[b]=Jd(l[b]);let{initial:c,animate:d}=e;const f=tf(e),p=n_(e);t&&p&&!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"&&!Yu(y)&&d_(e,y,(b,g)=>{for(const x in b){let w=b[x];if(Array.isArray(w)){const T=m?w.length-1:0;w=w[T]}w!==null&&(a[x]=w)}for(const x in g)a[x]=g[x]}),u&&(d&&c!==!1&&!Yu(d)&&d_(e,d,b=>{for(const g in b){const x=g8(g);x&&s.add(x)}}),s.size&&(a.willChange=Array.from(s).join(","))),a}const _0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),f_=()=>({..._0(),attrs:{}}),p_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,x8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w8=Gu.length;function b8(e,t,n){let r="",i=!0;for(let o=0;o<w8;o++){const a=Gu[o],s=e[a];if(s===void 0)continue;let u=!0;if(typeof s=="number"?u=s===(a.startsWith("scale")?1:0):u=parseFloat(s)===0,!u||n){const l=p_(s,Ug[a]);if(!u){i=!1;const c=x8[a]||a;r+=`${c}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function C0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const u in t){const l=t[u];if(Zi.has(u)){a=!0;continue}else if(GE(u)){i[u]=l;continue}else{const c=p_(l,Ug[u]);u.startsWith("origin")?(s=!0,o[u]=c):r[u]=c}}if(t.transform||(a||n?r.transform=b8(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:u="50%",originY:l="50%",originZ:c=0}=o;r.transformOrigin=`${u} ${l} ${c}`}}function h_(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function E8(e,t,n){const r=h_(t,e.x,e.width),i=h_(n,e.y,e.height);return`${r} ${i}`}const T8={offset:"stroke-dashoffset",array:"stroke-dasharray"},_8={offset:"strokeDashoffset",array:"strokeDasharray"};function C8(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?T8:_8;e[o.offset]=ye.transform(-r);const a=ye.transform(t),s=ye.transform(n);e[o.array]=`${a} ${s}`}function S0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(C0(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=E8(m,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),a!==void 0&&C8(f,a,s,u,!1)}const A0=e=>typeof e=="string"&&e.toLowerCase()==="svg",S8={useVisualState:c_({scrapeMotionValuesFromProps:l_,createRenderState:f_,onMount:(e,t,{renderState:n,latestValues:r})=>{Xe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Xe.render(()=>{S0(n,r,A0(t.tagName),e.transformTemplate),s_(t,n)})}})},A8={useVisualState:c_({applyWillChange:!0,scrapeMotionValuesFromProps:E0,createRenderState:_0})};function m_(e,t,n){for(const r in t)!en(t[r])&&!u_(r,n)&&(e[r]=t[r])}function k8({transformTemplate:e},t){return v.useMemo(()=>{const n=_0();return C0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R8(e,t){const n=e.style||{},r={};return m_(r,n,e),Object.assign(r,k8(e,t)),r}function N8(e,t){const n={},r=R8(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 P8=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 nf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||P8.has(e)}let g_=e=>!nf(e);function I8(e){e&&(g_=t=>t.startsWith("on")?!nf(t):e(t))}try{I8(require("@emotion/is-prop-valid").default)}catch{}function O8(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(g_(i)||n===!0&&nf(i)||!t&&!nf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function D8(e,t,n,r){const i=v.useMemo(()=>{const o=f_();return S0(o,t,A0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};m_(o,e.style,e),i.style={...o,...i.style}}return i}function L8(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(b0(n)?D8:N8)(r,o,a,n),l=O8(r,typeof n=="string",e),c=n!==v.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=v.useMemo(()=>en(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function M8(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...b0(r)?S8:A8,preloadedFeatures:e,useRender:L8(i),createVisualElement:t,Component:r};return d8(a)}}const k0={current:null},y_={current:!1};function F8(){if(y_.current=!0,!!w0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>k0.current=e.matches;e.addListener(t),t()}else k0.current=!1}function B8(e,t,n){for(const r in t){const i=t[r],o=n[r];if(en(i))e.addValue(r,i);else if(en(o))e.addValue(r,tl(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,tl(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const v_=new WeakMap,j8=[...tT,Jt,no],U8=e=>j8.find(eT(e)),x_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class z8{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},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=Dg,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=Br.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Xe.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;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=!!o,this.isControllingVariants=tf(n),this.isVariantNode=n_(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 p=d[f];u[f]!==void 0&&en(p)&&p.set(u[f],!1)}}mount(t){this.current=t,v_.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)),y_.current||F8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:k0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){v_.delete(this.current),this.projection&&this.projection.unmount(),Ji(this.notifyUpdate),Ji(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&&Xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 ls){const n=ls[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}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<x_.length;r++){const i=x_[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=B8(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=tl(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"&&(YE(i)||WE(i))?i=parseFloat(i):!U8(i)&&no.test(n)&&(i=fT(t,n)),this.setBaseTarget(t,en(i)?i.get():i)),en(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 a=Tg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!en(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new n0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class w_ extends z8{constructor(){super(...arguments),this.KeyframeResolver=pT}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 H8(e){return window.getComputedStyle(e)}class V8 extends w_{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=o_}readValueFromInstance(t,n){if(Zi.has(n)){const r=zg(n);return r&&r.default||0}else{const r=H8(t),i=(GE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return g2(t,n)}build(t,n,r){C0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return E0(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;en(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class $8 extends w_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zi.has(n)){const r=zg(n);return r&&r.default||0}return n=a_.has(n)?n:Yd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return l_(t,n,r)}build(t,n,r){S0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){s_(t,n,r,i)}mount(t){this.isSVGTag=A0(t.tagName),super.mount(t)}}const W8=(e,t)=>b0(e)?new $8(t):new V8(t,{allowProjection:e!==v.Fragment}),Y8=M8({...DM,...n8,...W5,...r8},W8),cs=kL(Y8);class q8 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 G8({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=v.useContext(x0);return v.useInsertionEffect(()=>{const{width:a,height:s,top:u,left:l}=i.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
40
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function $m(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var I6=typeof WeakMap=="function"?WeakMap:Map;function kb(e,t,n){n=ui(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bd||(bd=!0,ag=r),Wm(e,t)},n}function Rb(e,t,n){n=ui(-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(){Wm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Wm(e,t),typeof r!="function"&&(qi===null?qi=new Set([this]):qi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Nb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new I6;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=Y6.bind(null,e,t,n),t.then(e,e))}function Pb(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 Ib(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=ui(-1,1),t.tag=2,Wi(n,t,1))),n.lanes|=1),e)}var O6=ni.ReactCurrentOwner,wn=!1;function dn(e,t,n,r){t.child=e===null?Zw(t,null,n,r):Ya(t,e.child,n,r)}function Ob(e,t,n,r,i){n=n.render;var o=t.ref;return Ga(t,i),r=Mm(e,t,n,r,o,i),n=Fm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,li(e,t,i)):(ot&&n&&xm(t),t.flags|=1,dn(e,t,r,i),t.child)}function Db(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!pg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Lb(e,t,o,r,i)):(e=Ad(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_u,n(a,r)&&e.ref===t.ref)return li(e,t,i)}return t.flags|=1,e=Qi(o,r),e.ref=t.ref,e.return=t,t.child=e}function Lb(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_u(o,r)&&e.ref===t.ref)if(wn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(wn=!0);else return t.lanes=e.lanes,li(e,t,i)}return Ym(e,t,n,r,i)}function Mb(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(Za,Mn),Mn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(Za,Mn),Mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Je(Za,Mn),Mn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Je(Za,Mn),Mn|=r;return dn(e,t,i,n),t.child}function Fb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ym(e,t,n,r,i){var o=xn(n)?zo:Gt.current;return o=Ha(t,o),Ga(t,i),n=Mm(e,t,n,r,o,i),r=Fm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,li(e,t,i)):(ot&&r&&xm(t),t.flags|=1,dn(e,t,n,i),t.child)}function Bb(e,t,n,r,i){if(xn(n)){var o=!0;Zc(t)}else o=!1;if(Ga(t,i),t.stateNode===null)gd(e,t),Sb(t,n,r),Vm(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Zn(l):(l=xn(n)?zo:Gt.current,l=Ha(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Ab(t,a,r,l),$i=!1;var f=t.memoizedState;a.state=f,sd(t,r,a,i),u=t.memoizedState,s!==r||f!==u||vn.current||$i?(typeof c=="function"&&(Hm(t,n,c,r),u=t.memoizedState),(s=$i||Cb(t,n,s,r,f,u,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,eb(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:gr(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Zn(u):(u=xn(n)?zo:Gt.current,u=Ha(t,u));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==u)&&Ab(t,a,r,u),$i=!1,f=t.memoizedState,a.state=f,sd(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||vn.current||$i?(typeof p=="function"&&(Hm(t,n,p,r),m=t.memoizedState),(l=$i||Cb(t,n,l,r,f,m,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return qm(e,t,n,r,o,i)}function qm(e,t,n,r,i,o){Fb(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Vw(t,n,!1),li(e,t,o);r=t.stateNode,O6.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ya(t,e.child,null,o),t.child=Ya(t,null,s,o)):dn(e,t,s,o),t.memoizedState=r.state,i&&Vw(t,n,!0),t.child}function jb(e){var t=e.stateNode;t.pendingContext?zw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zw(e,t.context,!1),Nm(e,t.containerInfo)}function Ub(e,t,n,r,i){return Wa(),Tm(i),t.flags|=256,dn(e,t,n,r),t.child}var Gm={dehydrated:null,treeContext:null,retryLane:0};function Km(e){return{baseLanes:e,cachePool:null,transitions:null}}function zb(e,t,n){var r=t.pendingProps,i=ct.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Je(ct,i&1),e===null)return Em(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):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=kd(a,r,0,null),e=Qo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Km(n),t.memoizedState=Gm,e):Xm(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return D6(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Qi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Qi(s,o):(o=Qo(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Km(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Gm,r}return o=e.child,e=o.sibling,r=Qi(o,{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 Xm(e,t){return t=kd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function md(e,t,n,r){return r!==null&&Tm(r),Ya(t,e.child,null,n),e=Xm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D6(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=$m(Error(Z(422))),md(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=kd({mode:"visible",children:r.children},i,0,null),o=Qo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ya(t,e.child,null,a),t.child.memoizedState=Km(a),t.memoizedState=Gm,o);if(!(t.mode&1))return md(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Z(419)),r=$m(o,r,void 0),md(e,t,a,r)}if(s=(a&e.childLanes)!==0,wn||s){if(r=Lt,r!==null){switch(a&-a){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|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,si(e,i),xr(r,e,i,-1))}return fg(),r=$m(Error(Z(421))),md(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=q6.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ln=Ui(i.nextSibling),Dn=t,ot=!0,mr=null,e!==null&&(Xn[Qn++]=oi,Xn[Qn++]=ai,Xn[Qn++]=Ho,oi=e.id,ai=e.overflow,Ho=t),t=Xm(t,r.children),t.flags|=4096,t)}function Hb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Am(e.return,t,n)}function Qm(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vb(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(dn(e,t,r.children,n),r=ct.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&&Hb(e,n,t);else if(e.tag===19)Hb(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(Je(ct,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&&ud(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qm(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ud(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qm(t,!0,n,null,o);break;case"together":Qm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function li(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=Qi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function L6(e,t,n){switch(t.tag){case 3:jb(t),Wa();break;case 5:rb(t);break;case 1:xn(t.type)&&Zc(t);break;case 4:Nm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Je(id,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ct,ct.current&1),t.flags|=128,null):n&t.child.childLanes?zb(e,t,n):(Je(ct,ct.current&1),e=li(e,t,n),e!==null?e.sibling:null);Je(ct,ct.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Je(ct,ct.current),r)break;return null;case 22:case 23:return t.lanes=0,Mb(e,t,n)}return li(e,t,n)}var $b,Zm,Wb,Yb;$b=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}},Zm=function(){},Wb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wo(Dr.current);var o=null;switch(n){case"input":i=Ah(e,i),r=Ah(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=Nh(e,i),r=Nh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kc)}Ih(n,r);var a;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ru.hasOwnProperty(l)?o||(o=[]):(o=o||[]).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(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(ru.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&tt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}},Yb=function(e,t,n,r){n!==r&&(t.flags|=4)};function ju(e,t){if(!ot)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 Xt(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 M6(e,t,n){var r=t.pendingProps;switch(wm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return xn(t.type)&&Qc(),Xt(t),null;case 3:return r=t.stateNode,Ka(),nt(vn),nt(Gt),Om(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(nd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mr!==null&&(lg(mr),mr=null))),Zm(e,t),Xt(t),null;case 5:Pm(t);var i=Wo(Du.current);if(n=t.type,e!==null&&t.stateNode!=null)Wb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return Xt(t),null}if(e=Wo(Dr.current),nd(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[Ru]=o,e=(t.mode&1)!==0,n){case"dialog":tt("cancel",r),tt("close",r);break;case"iframe":case"object":case"embed":tt("load",r);break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],r);break;case"source":tt("error",r);break;case"img":case"image":case"link":tt("error",r),tt("load",r);break;case"details":tt("toggle",r);break;case"input":Sx(r,o),tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tt("invalid",r);break;case"textarea":Rx(r,o),tt("invalid",r)}Ih(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Gc(r.textContent,s,e),i=["children",""+s]):ru.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&tt("scroll",r)}switch(n){case"input":Cc(r),kx(r,o,!0);break;case"textarea":Cc(r),Px(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Kc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ix(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Or]=t,e[Ru]=r,$b(e,t,!1,!1),t.stateNode=e;e:{switch(a=Oh(n,r),n){case"dialog":tt("cancel",e),tt("close",e),i=r;break;case"iframe":case"object":case"embed":tt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Su.length;i++)tt(Su[i],e);i=r;break;case"source":tt("error",e),i=r;break;case"img":case"image":case"link":tt("error",e),tt("load",e),i=r;break;case"details":tt("toggle",e),i=r;break;case"input":Sx(e,r),i=Ah(e,r),tt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=lt({},r,{value:void 0}),tt("invalid",e);break;case"textarea":Rx(e,r),i=Nh(e,r),tt("invalid",e);break;default:i=r}Ih(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?Lx(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ox(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&su(e,u):typeof u=="number"&&su(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ru.hasOwnProperty(o)?u!=null&&o==="onScroll"&&tt("scroll",e):u!=null&&gh(e,o,u,a))}switch(n){case"input":Cc(e),kx(e,r,!1);break;case"textarea":Cc(e),Px(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Oi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Na(e,!!r.multiple,o,!1):r.defaultValue!=null&&Na(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Kc)}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 Xt(t),null;case 6:if(e&&t.stateNode!=null)Yb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=Wo(Du.current),Wo(Dr.current),nd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=Dn,e!==null))switch(e.tag){case 3:Gc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gc(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Or]=t,t.stateNode=r}return Xt(t),null;case 13:if(nt(ct),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ot&&Ln!==null&&t.mode&1&&!(t.flags&128))Kw(),Wa(),t.flags|=98560,o=!1;else if(o=nd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Z(317));o[Or]=t}else Wa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xt(t),o=!1}else mr!==null&&(lg(mr),mr=null),o=!0;if(!o)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||ct.current&1?Nt===0&&(Nt=3):fg())),t.updateQueue!==null&&(t.flags|=4),Xt(t),null);case 4:return Ka(),Zm(e,t),e===null&&Au(t.stateNode.containerInfo),Xt(t),null;case 10:return Sm(t.type._context),Xt(t),null;case 17:return xn(t.type)&&Qc(),Xt(t),null;case 19:if(nt(ct),o=t.memoizedState,o===null)return Xt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ju(o,!1);else{if(Nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ud(e),a!==null){for(t.flags|=128,ju(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Je(ct,ct.current&1|2),t.child}e=e.sibling}o.tail!==null&&wt()>Ja&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304)}else{if(!r)if(e=ud(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ju(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Xt(t),null}else 2*wt()-o.renderingStartTime>Ja&&n!==1073741824&&(t.flags|=128,r=!0,ju(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=wt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Xt(t),null);case 22:case 23:return dg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mn&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function F6(e,t){switch(wm(t),t.tag){case 1:return xn(t.type)&&Qc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),nt(vn),nt(Gt),Om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pm(t),null;case 13:if(nt(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ct),null;case 4:return Ka(),null;case 10:return Sm(t.type._context),null;case 22:case 23:return dg(),null;case 24:return null;default:return null}}var yd=!1,Qt=!1,B6=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Jm(e,t,n){try{n()}catch(r){gt(e,t,r)}}var qb=!1;function j6(e,t){if(dm=Fc,e=Cw(),rm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(u=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++l===i&&(s=a),f===o&&++c===r&&(u=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(fm={focusedElem:e,selectionRange:n},Fc=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;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,b=m.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:gr(t.type,y),b);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(Z(163))}}catch(T){gt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return m=qb,qb=!1,m}function Uu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Jm(t,n,o)}i=i.next}while(i!==r)}}function vd(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 eg(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 Gb(e){var t=e.alternate;t!==null&&(e.alternate=null,Gb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[Ru],delete t[gm],delete t[b6],delete t[E6])),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 Kb(e){return e.tag===5||e.tag===3||e.tag===4}function Xb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kb(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 tg(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=Kc));else if(r!==4&&(e=e.child,e!==null))for(tg(e,t,n),e=e.sibling;e!==null;)tg(e,t,n),e=e.sibling}function ng(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(ng(e,t,n),e=e.sibling;e!==null;)ng(e,t,n),e=e.sibling}var Ht=null,yr=!1;function Yi(e,t,n){for(n=n.child;n!==null;)Qb(e,t,n),n=n.sibling}function Qb(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 5:Qt||Qa(n,t);case 6:var r=Ht,i=yr;Ht=null,Yi(e,t,n),Ht=r,yr=i,Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ht.removeChild(n.stateNode));break;case 18:Ht!==null&&(yr?(e=Ht,n=n.stateNode,e.nodeType===8?mm(e.parentNode,n):e.nodeType===1&&mm(e,n),vu(e)):mm(Ht,n.stateNode));break;case 4:r=Ht,i=yr,Ht=n.stateNode.containerInfo,yr=!0,Yi(e,t,n),Ht=r,yr=i;break;case 0:case 11:case 14:case 15:if(!Qt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Jm(n,t,a),i=i.next}while(i!==r)}Yi(e,t,n);break;case 1:if(!Qt&&(Qa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Yi(e,t,n);break;case 21:Yi(e,t,n);break;case 22:n.mode&1?(Qt=(r=Qt)||n.memoizedState!==null,Yi(e,t,n),Qt=r):Yi(e,t,n);break;default:Yi(e,t,n)}}function Zb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new B6),t.forEach(function(r){var i=G6.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Ht=s.stateNode,yr=!1;break e;case 3:Ht=s.stateNode.containerInfo,yr=!0;break e;case 4:Ht=s.stateNode.containerInfo,yr=!0;break e}s=s.return}if(Ht===null)throw Error(Z(160));Qb(o,a,i),Ht=null,yr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){gt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Jb(t,e),t=t.sibling}function Jb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vr(t,e),Mr(e),r&4){try{Uu(3,e,e.return),vd(3,e)}catch(y){gt(e,e.return,y)}try{Uu(5,e,e.return)}catch(y){gt(e,e.return,y)}}break;case 1:vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return);break;case 5:if(vr(t,e),Mr(e),r&512&&n!==null&&Qa(n,n.return),e.flags&32){var i=e.stateNode;try{su(i,"")}catch(y){gt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Ax(i,o),Oh(s,a);var l=Oh(s,o);for(a=0;a<u.length;a+=2){var c=u[a],d=u[a+1];c==="style"?Lx(i,d):c==="dangerouslySetInnerHTML"?Ox(i,d):c==="children"?su(i,d):gh(i,c,d,l)}switch(s){case"input":kh(i,o);break;case"textarea":Nx(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Na(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Na(i,!!o.multiple,o.defaultValue,!0):Na(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ru]=o}catch(y){gt(e,e.return,y)}}break;case 6:if(vr(t,e),Mr(e),r&4){if(e.stateNode===null)throw Error(Z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){gt(e,e.return,y)}}break;case 3:if(vr(t,e),Mr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vu(t.containerInfo)}catch(y){gt(e,e.return,y)}break;case 4:vr(t,e),Mr(e);break;case 13:vr(t,e),Mr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(og=wt())),r&4&&Zb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qt=(l=Qt)||c,vr(t,e),Qt=l):vr(t,e),Mr(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(ue=e,c=e.child;c!==null;){for(d=ue=c;ue!==null;){switch(f=ue,p=f.child,f.tag){case 0:case 11:case 14:case 15:Uu(4,f,f.return);break;case 1:Qa(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){gt(r,n,y)}}break;case 5:Qa(f,f.return);break;case 22:if(f.memoizedState!==null){nE(d);continue}}p!==null?(p.return=f,ue=p):nE(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,u=d.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Dx("display",a))}catch(y){gt(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){gt(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:vr(t,e),Mr(e),r&4&&Zb(e);break;case 21:break;default:vr(t,e),Mr(e)}}function Mr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Kb(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(su(i,""),r.flags&=-33);var o=Xb(e);ng(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Xb(e);tg(e,s,a);break;default:throw Error(Z(161))}}catch(u){gt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U6(e,t,n){ue=e,eE(e)}function eE(e,t,n){for(var r=(e.mode&1)!==0;ue!==null;){var i=ue,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||yd;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Qt;s=yd;var l=Qt;if(yd=a,(Qt=u)&&!l)for(ue=i;ue!==null;)a=ue,u=a.child,a.tag===22&&a.memoizedState!==null?rE(i):u!==null?(u.return=a,ue=u):rE(i);for(;o!==null;)ue=o,eE(o),o=o.sibling;ue=i,yd=s,Qt=l}tE(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ue=o):tE(e)}}function tE(e){for(;ue!==null;){var t=ue;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Qt||vd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&nb(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nb(t,a,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&&vu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}Qt||t.flags&512&&eg(t)}catch(f){gt(t,t.return,f)}}if(t===e){ue=null;break}if(n=t.sibling,n!==null){n.return=t.return,ue=n;break}ue=t.return}}function nE(e){for(;ue!==null;){var t=ue;if(t===e){ue=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ue=n;break}ue=t.return}}function rE(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vd(4,t)}catch(u){gt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){gt(t,i,u)}}var o=t.return;try{eg(t)}catch(u){gt(t,o,u)}break;case 5:var a=t.return;try{eg(t)}catch(u){gt(t,a,u)}}}catch(u){gt(t,t.return,u)}if(t===e){ue=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ue=s;break}ue=t.return}}var z6=Math.ceil,xd=ni.ReactCurrentDispatcher,rg=ni.ReactCurrentOwner,er=ni.ReactCurrentBatchConfig,Ue=0,Lt=null,Ct=null,Vt=0,Mn=0,Za=zi(0),Nt=0,zu=null,qo=0,wd=0,ig=0,Hu=null,bn=null,og=0,Ja=1/0,ci=null,bd=!1,ag=null,qi=null,Ed=!1,Gi=null,Td=0,Vu=0,sg=null,_d=-1,Cd=0;function fn(){return Ue&6?wt():_d!==-1?_d:_d=wt()}function Ki(e){return e.mode&1?Ue&2&&Vt!==0?Vt&-Vt:_6.transition!==null?(Cd===0&&(Cd=Xx()),Cd):(e=qe,e!==0||(e=window.event,e=e===void 0?16:ow(e.type)),e):1}function xr(e,t,n,r){if(50<Vu)throw Vu=0,sg=null,Error(Z(185));pu(e,n,r),(!(Ue&2)||e!==Lt)&&(e===Lt&&(!(Ue&2)&&(wd|=n),Nt===4&&Xi(e,Vt)),En(e,r),n===1&&Ue===0&&!(t.mode&1)&&(Ja=wt()+500,Jc&&Vi()))}function En(e,t){var n=e.callbackNode;_D(e,t);var r=Dc(e,e===Lt?Vt:0);if(r===0)n!==null&&qx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qx(n),t===1)e.tag===0?T6(oE.bind(null,e)):$w(oE.bind(null,e)),x6(function(){!(Ue&6)&&Vi()}),n=null;else{switch(Qx(r)){case 1:n=Uh;break;case 4:n=Gx;break;case 16:n=Nc;break;case 536870912:n=Kx;break;default:n=Nc}n=pE(n,iE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iE(e,t){if(_d=-1,Cd=0,Ue&6)throw Error(Z(327));var n=e.callbackNode;if(es()&&e.callbackNode!==n)return null;var r=Dc(e,e===Lt?Vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Sd(e,r);else{t=r;var i=Ue;Ue|=2;var o=sE();(Lt!==e||Vt!==t)&&(ci=null,Ja=wt()+500,Ko(e,t));do try{$6();break}catch(s){aE(e,s)}while(!0);Cm(),xd.current=o,Ue=i,Ct!==null?t=0:(Lt=null,Vt=0,t=Nt)}if(t!==0){if(t===2&&(i=zh(e),i!==0&&(r=i,t=ug(e,i))),t===1)throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;if(t===6)Xi(e,r);else{if(i=e.current.alternate,!(r&30)&&!H6(i)&&(t=Sd(e,r),t===2&&(o=zh(e),o!==0&&(r=o,t=ug(e,o))),t===1))throw n=zu,Ko(e,0),Xi(e,r),En(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:Xo(e,bn,ci);break;case 3:if(Xi(e,r),(r&130023424)===r&&(t=og+500-wt(),10<t)){if(Dc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hm(Xo.bind(null,e,bn,ci),t);break}Xo(e,bn,ci);break;case 4:if(Xi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-pr(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*z6(r/1960))-r,10<r){e.timeoutHandle=hm(Xo.bind(null,e,bn,ci),r);break}Xo(e,bn,ci);break;case 5:Xo(e,bn,ci);break;default:throw Error(Z(329))}}}return En(e,wt()),e.callbackNode===n?iE.bind(null,e):null}function ug(e,t){var n=Hu;return e.current.memoizedState.isDehydrated&&(Ko(e,t).flags|=256),e=Sd(e,t),e!==2&&(t=bn,bn=n,t!==null&&lg(t)),e}function lg(e){bn===null?bn=e:bn.push.apply(bn,e)}function H6(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],o=i.getSnapshot;i=i.value;try{if(!hr(o(),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 Xi(e,t){for(t&=~ig,t&=~wd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pr(t),r=1<<n;e[n]=-1,t&=~r}}function oE(e){if(Ue&6)throw Error(Z(327));es();var t=Dc(e,0);if(!(t&1))return En(e,wt()),null;var n=Sd(e,t);if(e.tag!==0&&n===2){var r=zh(e);r!==0&&(t=r,n=ug(e,r))}if(n===1)throw n=zu,Ko(e,0),Xi(e,t),En(e,wt()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xo(e,bn,ci),En(e,wt()),null}function cg(e,t){var n=Ue;Ue|=1;try{return e(t)}finally{Ue=n,Ue===0&&(Ja=wt()+500,Jc&&Vi())}}function Go(e){Gi!==null&&Gi.tag===0&&!(Ue&6)&&es();var t=Ue;Ue|=1;var n=er.transition,r=qe;try{if(er.transition=null,qe=1,e)return e()}finally{qe=r,er.transition=n,Ue=t,!(Ue&6)&&Vi()}}function dg(){Mn=Za.current,nt(Za)}function Ko(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,v6(n)),Ct!==null)for(n=Ct.return;n!==null;){var r=n;switch(wm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qc();break;case 3:Ka(),nt(vn),nt(Gt),Om();break;case 5:Pm(r);break;case 4:Ka();break;case 13:nt(ct);break;case 19:nt(ct);break;case 10:Sm(r.type._context);break;case 22:case 23:dg()}n=n.return}if(Lt=e,Ct=e=Qi(e.current,null),Vt=Mn=t,Nt=0,zu=null,ig=wd=qo=0,bn=Hu=null,$o!==null){for(t=0;t<$o.length;t++)if(n=$o[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}$o=null}return e}function aE(e,t){do{var n=Ct;try{if(Cm(),ld.current=pd,cd){for(var r=dt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cd=!1}if(Yo=0,Dt=Rt=dt=null,Lu=!1,Mu=0,rg.current=null,n===null||n.return===null){Nt=1,zu=t,Ct=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=Vt,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 p=Pb(a);if(p!==null){p.flags&=-257,Ib(p,a,s,o,t),p.mode&1&&Nb(o,l,t),t=p,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)){Nb(o,l,t),fg();break e}u=Error(Z(426))}}else if(ot&&s.mode&1){var b=Pb(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Ib(b,a,s,o,t),Tm(Xa(u,s));break e}}o=u=Xa(u,s),Nt!==4&&(Nt=2),Hu===null?Hu=[o]:Hu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=kb(o,u,t);tb(o,g);break e;case 1:s=u;var x=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(qi===null||!qi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=Rb(o,s,t);tb(o,T);break e}}o=o.return}while(o!==null)}lE(n)}catch(_){t=_,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function sE(){var e=xd.current;return xd.current=pd,e===null?pd:e}function fg(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Lt===null||!(qo&268435455)&&!(wd&268435455)||Xi(Lt,Vt)}function Sd(e,t){var n=Ue;Ue|=2;var r=sE();(Lt!==e||Vt!==t)&&(ci=null,Ko(e,t));do try{V6();break}catch(i){aE(e,i)}while(!0);if(Cm(),Ue=n,xd.current=r,Ct!==null)throw Error(Z(261));return Lt=null,Vt=0,Nt}function V6(){for(;Ct!==null;)uE(Ct)}function $6(){for(;Ct!==null&&!mD();)uE(Ct)}function uE(e){var t=fE(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?lE(e):Ct=t,rg.current=null}function lE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=F6(n,t),n!==null){n.flags&=32767,Ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nt=6,Ct=null;return}}else if(n=M6(n,t,Mn),n!==null){Ct=n;return}if(t=t.sibling,t!==null){Ct=t;return}Ct=t=e}while(t!==null);Nt===0&&(Nt=5)}function Xo(e,t,n){var r=qe,i=er.transition;try{er.transition=null,qe=1,W6(e,t,n,r)}finally{er.transition=i,qe=r}return null}function W6(e,t,n,r){do es();while(Gi!==null);if(Ue&6)throw Error(Z(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(Z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(CD(e,o),e===Lt&&(Ct=Lt=null,Vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ed||(Ed=!0,pE(Nc,function(){return es(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=er.transition,er.transition=null;var a=qe;qe=1;var s=Ue;Ue|=4,rg.current=null,j6(e,n),Jb(n,e),d6(fm),Fc=!!dm,fm=dm=null,e.current=n,U6(n),gD(),Ue=s,qe=a,er.transition=o}else e.current=n;if(Ed&&(Ed=!1,Gi=e,Td=i),o=e.pendingLanes,o===0&&(qi=null),xD(n.stateNode),En(e,wt()),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(bd)throw bd=!1,e=ag,ag=null,e;return Td&1&&e.tag!==0&&es(),o=e.pendingLanes,o&1?e===sg?Vu++:(Vu=0,sg=e):Vu=0,Vi(),null}function es(){if(Gi!==null){var e=Qx(Td),t=er.transition,n=qe;try{if(er.transition=null,qe=16>e?16:e,Gi===null)var r=!1;else{if(e=Gi,Gi=null,Td=0,Ue&6)throw Error(Z(331));var i=Ue;for(Ue|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(ue=l;ue!==null;){var c=ue;switch(c.tag){case 0:case 11:case 15:Uu(8,c,o)}var d=c.child;if(d!==null)d.return=c,ue=d;else for(;ue!==null;){c=ue;var f=c.sibling,p=c.return;if(Gb(c),c===l){ue=null;break}if(f!==null){f.return=p,ue=f;break}ue=p}}}var m=o.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}ue=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ue=a;else e:for(;ue!==null;){if(o=ue,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Uu(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,ue=g;break e}ue=o.return}}var x=e.current;for(ue=x;ue!==null;){a=ue;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,ue=w;else e:for(a=x;ue!==null;){if(s=ue,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:vd(9,s)}}catch(_){gt(s,s.return,_)}if(s===a){ue=null;break e}var T=s.sibling;if(T!==null){T.return=s.return,ue=T;break e}ue=s.return}}if(Ue=i,Vi(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(Pc,e)}catch{}r=!0}return r}finally{qe=n,er.transition=t}}return!1}function cE(e,t,n){t=Xa(n,t),t=kb(e,t,1),e=Wi(e,t,1),t=fn(),e!==null&&(pu(e,1,t),En(e,t))}function gt(e,t,n){if(e.tag===3)cE(e,e,n);else for(;t!==null;){if(t.tag===3){cE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qi===null||!qi.has(r))){e=Xa(n,e),e=Rb(t,e,1),t=Wi(t,e,1),e=fn(),t!==null&&(pu(t,1,e),En(t,e));break}}t=t.return}}function Y6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fn(),e.pingedLanes|=e.suspendedLanes&n,Lt===e&&(Vt&n)===n&&(Nt===4||Nt===3&&(Vt&130023424)===Vt&&500>wt()-og?Ko(e,0):ig|=n),En(e,t)}function dE(e,t){t===0&&(e.mode&1?(t=Oc,Oc<<=1,!(Oc&130023424)&&(Oc=4194304)):t=1);var n=fn();e=si(e,t),e!==null&&(pu(e,t,n),En(e,n))}function q6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dE(e,n)}function G6(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(Z(314))}r!==null&&r.delete(t),dE(e,n)}var fE;fE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)wn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wn=!1,L6(e,t,n);wn=!!(e.flags&131072)}else wn=!1,ot&&t.flags&1048576&&Ww(t,td,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gd(e,t),e=t.pendingProps;var i=Ha(t,Gt.current);Ga(t,n),i=Mm(null,t,r,e,i,n);var o=Fm();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,xn(r)?(o=!0,Zc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Rm(t),i.updater=hd,t.stateNode=i,i._reactInternals=t,Vm(t,r,e,n),t=qm(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&xm(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=X6(r),e=gr(r,e),i){case 0:t=Ym(null,t,r,e,n);break e;case 1:t=Bb(null,t,r,e,n);break e;case 11:t=Ob(null,t,r,e,n);break e;case 14:t=Db(null,t,r,gr(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Ym(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Bb(e,t,r,i,n);case 3:e:{if(jb(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,eb(e,t),sd(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xa(Error(Z(423)),t),t=Ub(e,t,r,n,i);break e}else if(r!==i){i=Xa(Error(Z(424)),t),t=Ub(e,t,r,n,i);break e}else for(Ln=Ui(t.stateNode.containerInfo.firstChild),Dn=t,ot=!0,mr=null,n=Zw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wa(),r===i){t=li(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return rb(t),e===null&&Em(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,pm(r,i)?a=null:o!==null&&pm(r,o)&&(t.flags|=32),Fb(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&Em(t),null;case 13:return zb(e,t,n);case 4:return Nm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Ob(e,t,r,i,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Je(id,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!vn.current){t=li(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=ui(-1,n&-n),u.tag=2;var l=o.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}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Am(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Z(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Am(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ga(t,n),i=Zn(i),r=r(i),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,i=gr(r,t.pendingProps),i=gr(r.type,i),Db(e,t,r,i,n);case 15:return Lb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),gd(e,t),t.tag=1,xn(r)?(e=!0,Zc(t)):e=!1,Ga(t,n),Sb(t,r,i),Vm(t,r,i,n),qm(null,t,r,!0,e,n);case 19:return Vb(e,t,n);case 22:return Mb(e,t,n)}throw Error(Z(156,t.tag))};function pE(e,t){return Yx(e,t)}function K6(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 tr(e,t,n,r){return new K6(e,t,n,r)}function pg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X6(e){if(typeof e=="function")return pg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xh)return 11;if(e===Eh)return 14}return 2}function Qi(e,t){var n=e.alternate;return n===null?(n=tr(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 Ad(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")pg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ra:return Qo(n.children,i,o,t);case yh:a=8,i|=8;break;case vh:return e=tr(12,n,t,i|2),e.elementType=vh,e.lanes=o,e;case wh:return e=tr(13,n,t,i),e.elementType=wh,e.lanes=o,e;case bh:return e=tr(19,n,t,i),e.elementType=bh,e.lanes=o,e;case Ex:return kd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wx:a=10;break e;case bx:a=9;break e;case xh:a=11;break e;case Eh:a=14;break e;case Ii:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=tr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qo(e,t,n,r){return e=tr(7,e,r,t),e.lanes=n,e}function kd(e,t,n,r){return e=tr(22,e,r,t),e.elementType=Ex,e.lanes=n,e.stateNode={isHidden:!1},e}function hg(e,t,n){return e=tr(6,e,null,t),e.lanes=n,e}function mg(e,t,n){return t=tr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q6(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=Hh(0),this.expirationTimes=Hh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gg(e,t,n,r,i,o,a,s,u){return e=new Q6(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=tr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rm(o),e}function Z6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ka,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function hE(e){if(!e)return Hi;e=e._reactInternals;e:{if(jo(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(xn(n))return Hw(e,n,t)}return t}function mE(e,t,n,r,i,o,a,s,u){return e=gg(n,r,!0,e,i,o,a,s,u),e.context=hE(null),n=e.current,r=fn(),i=Ki(n),o=ui(r,i),o.callback=t??null,Wi(n,o,i),e.current.lanes=i,pu(e,i,r),En(e,r),e}function Rd(e,t,n,r){var i=t.current,o=fn(),a=Ki(i);return n=hE(n),t.context===null?t.context=n:t.pendingContext=n,t=ui(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wi(i,t,a),e!==null&&(xr(e,i,a,o),ad(e,i,a)),a}function Nd(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 gE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yg(e,t){gE(e,t),(e=e.alternate)&&gE(e,t)}function J6(){return null}var yE=typeof reportError=="function"?reportError:function(e){console.error(e)};function vg(e){this._internalRoot=e}Pd.prototype.render=vg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));Rd(e,t,null,null)},Pd.prototype.unmount=vg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Go(function(){Rd(null,e,null,null)}),t[ri]=null}};function Pd(e){this._internalRoot=e}Pd.prototype.unstable_scheduleHydration=function(e){if(e){var t=ew();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fi.length&&t!==0&&t<Fi[n].priority;n++);Fi.splice(n,0,e),n===0&&rw(e)}};function xg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Id(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vE(){}function eL(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=Nd(a);o.call(l)}}var a=mE(t,r,e,0,null,!1,!1,"",vE);return e._reactRootContainer=a,e[ri]=a.current,Au(e.nodeType===8?e.parentNode:e),Go(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=Nd(u);s.call(l)}}var u=gg(e,0,!1,null,null,!1,!1,"",vE);return e._reactRootContainer=u,e[ri]=u.current,Au(e.nodeType===8?e.parentNode:e),Go(function(){Rd(t,u,n,r)}),u}function Od(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var u=Nd(a);s.call(u)}}Rd(t,a,e,i)}else a=eL(n,t,e,i,r);return Nd(a)}Zx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fu(t.pendingLanes);n!==0&&(Vh(t,n|1),En(t,wt()),!(Ue&6)&&(Ja=wt()+500,Vi()))}break;case 13:Go(function(){var r=si(e,1);if(r!==null){var i=fn();xr(r,e,1,i)}}),yg(e,1)}},$h=function(e){if(e.tag===13){var t=si(e,134217728);if(t!==null){var n=fn();xr(t,e,134217728,n)}yg(e,134217728)}},Jx=function(e){if(e.tag===13){var t=Ki(e),n=si(e,t);if(n!==null){var r=fn();xr(n,e,t,r)}yg(e,t)}},ew=function(){return qe},tw=function(e,t){var n=qe;try{return qe=e,t()}finally{qe=n}},Mh=function(e,t,n){switch(t){case"input":if(kh(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=Xc(r);if(!i)throw Error(Z(90));Cx(r),kh(r,i)}}}break;case"textarea":Nx(e,n);break;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}},jx=cg,Ux=Go;var tL={usingClientEntryPoint:!1,Events:[Nu,Ua,Xc,Fx,Bx,cg]},$u={findFiberByHostInstance:Uo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nL={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ni.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$x(e),e===null?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||J6,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 Dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dd.isDisabled&&Dd.supportsFiber)try{Pc=Dd.inject(nL),Ir=Dd}catch{}}Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tL,Pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xg(t))throw Error(Z(200));return Z6(e,t,null,n)},Pn.createRoot=function(e,t){if(!xg(e))throw Error(Z(299));var n=!1,r="",i=yE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=gg(e,1,!1,null,null,n,!1,r,i),e[ri]=t.current,Au(e.nodeType===8?e.parentNode:e),new vg(t)},Pn.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(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=$x(t),e=e===null?null:e.stateNode,e},Pn.flushSync=function(e){return Go(e)},Pn.hydrate=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!0,n)},Pn.hydrateRoot=function(e,t,n){if(!xg(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=yE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=mE(t,null,e,1,n??null,i,!1,o,a),e[ri]=t.current,Au(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 Pd(t)},Pn.render=function(e,t,n){if(!Id(t))throw Error(Z(200));return Od(null,e,t,!1,n)},Pn.unmountComponentAtNode=function(e){if(!Id(e))throw Error(Z(40));return e._reactRootContainer?(Go(function(){Od(null,null,e,!1,function(){e._reactRootContainer=null,e[ri]=null})}),!0):!1},Pn.unstable_batchedUpdates=cg,Pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Id(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return Od(e,t,n,!1,r)},Pn.version="18.3.1-next-f1338f8080-20240426";function xE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xE)}catch(e){console.error(e)}}xE(),hx.exports=Pn;var Zo=hx.exports,wE,bE=Zo;wE=bE.createRoot,bE.hydrateRoot;const EE="3.0.39";function Ld(e){"@babel/helpers - typeof";return Ld=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},Ld(e)}var rL=/^\s+/,iL=/\s+$/;function fe(e,t){if(e=e||"",t=t||{},e instanceof fe)return e;if(!(this instanceof fe))return new fe(e,t);var n=oL(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}fe.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,o,a,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=kE(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=_E(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=_E(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=TE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=TE(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 CE(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return lL(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(at(this._r,255)*100)+"%",g:Math.round(at(this._g,255)*100)+"%",b:Math.round(at(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%)":"rgba("+Math.round(at(this._r,255)*100)+"%, "+Math.round(at(this._g,255)*100)+"%, "+Math.round(at(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:bL[CE(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+SE(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=fe(t);r="#"+SE(o._r,o._g,o._b,o._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,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?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 fe(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(pL,arguments)},brighten:function(){return this._applyModification(hL,arguments)},darken:function(){return this._applyModification(mL,arguments)},desaturate:function(){return this._applyModification(cL,arguments)},saturate:function(){return this._applyModification(dL,arguments)},greyscale:function(){return this._applyModification(fL,arguments)},spin:function(){return this._applyModification(gL,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(xL,arguments)},complement:function(){return this._applyCombination(yL,arguments)},monochromatic:function(){return this._applyCombination(wL,arguments)},splitcomplement:function(){return this._applyCombination(vL,arguments)},triad:function(){return this._applyCombination(AE,[3])},tetrad:function(){return this._applyCombination(AE,[4])}},fe.fromRatio=function(e,t){if(Ld(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Wu(e[r]));e=n}return fe(e,t)};function oL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=CL(e)),Ld(e)=="object"&&(di(e.r)&&di(e.g)&&di(e.b)?(t=aL(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):di(e.h)&&di(e.s)&&di(e.v)?(r=Wu(e.s),i=Wu(e.v),t=uL(e.h,r,i),a=!0,s="hsv"):di(e.h)&&di(e.s)&&di(e.l)&&(r=Wu(e.s),o=Wu(e.l),t=sL(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=kE(n),{ok:a,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 aL(e,t,n){return{r:at(e,255)*255,g:at(t,255)*255,b:at(n,255)*255}}function TE(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=(r+i)/2;if(r==i)o=a=0;else{var u=r-i;switch(a=s>.5?u/(2-r-i):u/(r+i),r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function sL(e,t,n){var r,i,o;e=at(e,360),t=at(t,100),n=at(n,100);function a(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=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function _E(e,t,n){e=at(e,255),t=at(t,255),n=at(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=r,u=r-i;if(a=r===0?0:u/r,r==i)o=0;else{switch(r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function uL(e,t,n){e=at(e,360)*6,t=at(t,100),n=at(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],d=[o,o,s,n,n,a][u];return{r:l*255,g:c*255,b:d*255}}function CE(e,t,n,r){var i=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(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 lL(e,t,n,r,i){var o=[wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16)),wr(RE(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function SE(e,t,n,r){var i=[wr(RE(r)),wr(Math.round(e).toString(16)),wr(Math.round(t).toString(16)),wr(Math.round(n).toString(16))];return i.join("")}fe.equals=function(e,t){return!e||!t?!1:fe(e).toRgbString()==fe(t).toRgbString()},fe.random=function(){return fe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function cL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s-=t/100,n.s=Md(n.s),fe(n)}function dL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s+=t/100,n.s=Md(n.s),fe(n)}function fL(e){return fe(e).desaturate(100)}function pL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l+=t/100,n.l=Md(n.l),fe(n)}function hL(e,t){t=t===0?0:t||10;var n=fe(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)))),fe(n)}function mL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l-=t/100,n.l=Md(n.l),fe(n)}function gL(e,t){var n=fe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,fe(n)}function yL(e){var t=fe(e).toHsl();return t.h=(t.h+180)%360,fe(t)}function AE(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=fe(e).toHsl(),r=[fe(e)],i=360/t,o=1;o<t;o++)r.push(fe({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function vL(e){var t=fe(e).toHsl(),n=t.h;return[fe(e),fe({h:(n+72)%360,s:t.s,l:t.l}),fe({h:(n+216)%360,s:t.s,l:t.l})]}function xL(e,t,n){t=t||6,n=n||30;var r=fe(e).toHsl(),i=360/n,o=[fe(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(fe(r));return o}function wL(e,t){t=t||6;for(var n=fe(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(fe({h:r,s:i,v:o})),o=(o+s)%1;return a}fe.mix=function(e,t,n){n=n===0?0:n||50;var r=fe(e).toRgb(),i=fe(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return fe(a)},fe.readability=function(e,t){var n=fe(e),r=fe(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},fe.isReadable=function(e,t,n){var r=fe.readability(e,t),i,o;switch(o=!1,i=SL(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},fe.mostReadable=function(e,t,n){var r=null,i=0,o,a,s,u;n=n||{},a=n.includeFallbackColors,s=n.level,u=n.size;for(var l=0;l<t.length;l++)o=fe.readability(e,t[l]),o>i&&(i=o,r=fe(t[l]));return fe.isReadable(e,r,{level:s,size:u})||!a?r:(n.includeFallbackColors=!1,fe.mostReadable(e,["#fff","#000"],n))};var wg=fe.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"},bL=fe.hexNames=EL(wg);function EL(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function kE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function at(e,t){TL(e)&&(e="100%");var n=_L(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 Md(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function TL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function _L(e){return typeof e=="string"&&e.indexOf("%")!=-1}function wr(e){return e.length==1?"0"+e:""+e}function Wu(e){return e<=1&&(e=e*100+"%"),e}function RE(e){return Math.round(parseFloat(e)*255).toString(16)}function NE(e){return Fn(e)/255}var br=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 di(e){return!!br.CSS_UNIT.exec(e)}function CL(e){e=e.replace(rL,"").replace(iL,"").toLowerCase();var t=!1;if(wg[e])e=wg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:NE(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:NE(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function SL(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 AL=350,PE=400,IE=600,bg={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},OE=({primary:e="hsl(0, 0%, 0%)"})=>{const t=fe(e).toHsl(),n=fe(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 kL(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 Yu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Eg=e=>Array.isArray(e);function DE(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 qu(e){return typeof e=="string"||Array.isArray(e)}function LE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tg(e,t,n,r){if(typeof t=="function"){const[i,o]=LE(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=LE(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Fd(e,t,n){const r=e.getProps();return Tg(r,t,n!==void 0?n:r.custom,e)}const _g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cg=["initial",..._g],Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zi=new Set(Gu),fi=e=>e*1e3,pi=e=>e/1e3,RL={type:"spring",stiffness:500,damping:25,restSpeed:10},NL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PL={type:"keyframes",duration:.8},IL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OL=(e,{keyframes:t})=>t.length>2?PL:Zi.has(e)?e.startsWith("scale")?NL(t[1]):RL:IL;function Sg(e,t){return e?e[t]||e.default||e:void 0}const DL={skipAnimations:!1,useManualTiming:!1},LL=e=>e!==null;function Bd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(LL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Zt=e=>e;function ML(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(l){o.has(l)&&(u.schedule(l),e()),l(a)}const u={schedule:(l,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(a=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 jd=["read","resolveKeyframes","update","preRender","render","postRender"],FL=40;function ME(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=jd.reduce((g,x)=>(g[x]=ML(o),g),{}),{read:s,resolveKeyframes:u,update:l,preRender:c,render:d,postRender:f}=a,p=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,FL),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(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:jd.reduce((g,x)=>{const w=a[x];return g[x]=(T,_=!1,C=!1)=>(n||m(),w.schedule(T,_,C)),g},{}),cancel:g=>{for(let x=0;x<jd.length;x++)a[jd[x]].cancel(g)},state:i,steps:a}}const{schedule:Xe,cancel:Ji,state:$t,steps:Ag}=ME(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zt,!0),FE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BL=1e-7,jL=12;function UL(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=FE(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>BL&&++s<jL);return a}function Ku(e,t,n,r){if(e===t&&n===r)return Zt;const i=o=>UL(o,0,1,e,n);return o=>o===0||o===1?o:FE(i(o),t,r)}const BE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jE=e=>t=>1-e(1-t),UE=Ku(.33,1.53,.69,.99),kg=jE(UE),zE=BE(kg),HE=e=>(e*=2)<1?.5*kg(e):.5*(2-Math.pow(2,-10*(e-1))),Rg=e=>1-Math.sin(Math.acos(e)),VE=jE(Rg),$E=BE(Rg),WE=e=>/^0[^.\s]+$/u.test(e);function zL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WE(e):!0}let Ng=Zt;const YE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qE=e=>t=>typeof t=="string"&&t.startsWith(e),GE=qE("--"),HL=qE("var(--"),Pg=e=>HL(e)?VL.test(e.split("/*")[0].trim()):!1,VL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$L=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WL(e){const t=$L.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function KE(e,t,n=1){const[r,i]=WL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return YE(a)?parseFloat(a):a}return Pg(i)?KE(i,t,n+1):i}const eo=(e,t,n)=>n>t?t:n<e?e:n,ts={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xu={...ts,transform:e=>eo(0,1,e)},Ud={...ts,default:1},Qu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),to=Qu("deg"),Fr=Qu("%"),ye=Qu("px"),YL=Qu("vh"),qL=Qu("vw"),XE={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},GL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),QE=e=>e===ts||e===ye,ZE=(e,t)=>parseFloat(e.split(", ")[t]),JE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return ZE(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?ZE(o[1],e):0}},KL=new Set(["x","y","z"]),XL=Gu.filter(e=>!KL.has(e));function QL(e){const t=[];return XL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ns={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:JE(4,13),y:JE(5,14)};ns.translateX=ns.x,ns.translateY=ns.y;const eT=e=>t=>t.test(e),tT=[ts,ye,Fr,to,qL,YL,{test:e=>e==="auto",parse:e=>e}],nT=e=>tT.find(eT(e)),Jo=new Set;let Ig=!1,Og=!1;function rT(){if(Og){const e=Array.from(Jo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=QL(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var s;(s=r.getValue(o))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Og=!1,Ig=!1,Jo.forEach(e=>e.complete()),Jo.clear()}function iT(){Jo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Og=!0)})}function ZL(){iT(),rT()}class Dg{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Jo.add(this),Ig||(Ig=!0,Xe.read(iT),Xe.resolveKeyframes(rT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Jo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Jo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Zu=e=>Math.round(e*1e5)/1e5,Lg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function JL(e){return e==null}const e4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mg=(e,t)=>n=>!!(typeof n=="string"&&e4.test(n)&&n.startsWith(e)||t&&!JL(n)&&Object.prototype.hasOwnProperty.call(n,t)),oT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Lg);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},t4=e=>eo(0,255,e),Fg={...ts,transform:e=>Math.round(t4(e))},ea={test:Mg("rgb","red"),parse:oT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fg.transform(e)+", "+Fg.transform(t)+", "+Fg.transform(n)+", "+Zu(Xu.transform(r))+")"};function n4(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 Bg={test:Mg("#"),parse:n4,transform:ea.transform},rs={test:Mg("hsl","hue"),parse:oT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Zu(t))+", "+Fr.transform(Zu(n))+", "+Zu(Xu.transform(r))+")"},Jt={test:e=>ea.test(e)||Bg.test(e)||rs.test(e),parse:e=>ea.test(e)?ea.parse(e):rs.test(e)?rs.parse(e):Bg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ea.transform(e):rs.transform(e)},r4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r4))===null||n===void 0?void 0:n.length)||0)>0}const aT="number",sT="color",o4="var",a4="var(",uT="${}",s4=/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 Ju(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(s4,u=>(Jt.test(u)?(r.color.push(o),i.push(sT),n.push(Jt.parse(u))):u.startsWith(a4)?(r.var.push(o),i.push(o4),n.push(u)):(r.number.push(o),i.push(aT),n.push(parseFloat(u))),++o,uT)).split(uT);return{values:n,split:s,indexes:r,types:i}}function lT(e){return Ju(e).values}function cT(e){const{split:t,types:n}=Ju(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const s=n[a];s===aT?o+=Zu(i[a]):s===sT?o+=Jt.transform(i[a]):o+=i[a]}return o}}const u4=e=>typeof e=="number"?0:e;function l4(e){const t=lT(e);return cT(e)(t.map(u4))}const no={test:i4,parse:lT,createTransformer:cT,getAnimatableNone:l4},c4=new Set(["brightness","contrast","saturate","opacity"]);function d4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lg)||[];if(!r)return e;const i=n.replace(r,"");let o=c4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const f4=/\b([a-z-]*)\(.*?\)/gu,jg={...no,getAnimatableNone:e=>{const t=e.match(f4);return t?t.map(d4).join(" "):e}},p4={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye},h4={rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:Ud,scaleX:Ud,scaleY:Ud,scaleZ:Ud,skew:to,skewX:to,skewY:to,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Xu,originX:XE,originY:XE,originZ:ye},dT={...ts,transform:Math.round},Ug={...p4,...h4,zIndex:dT,size:ye,fillOpacity:Xu,strokeOpacity:Xu,numOctaves:dT},m4={...Ug,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:jg,WebkitFilter:jg},zg=e=>m4[e];function fT(e,t){let n=zg(e);return n!==jg&&(n=no),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const g4=new Set(["auto","none","0"]);function y4(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!g4.has(o)&&Ju(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=fT(n,i)}class pT extends Dg{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let l=t[u];if(typeof l=="string"&&(l=l.trim(),Pg(l))){const c=KE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!GL.has(r)||t.length!==2)return;const[i,o]=t,a=nT(i),s=nT(o);if(a!==s)if(QE(a)&&QE(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++)zL(t[i])&&r.push(i);r.length&&y4(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=ns[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 o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,s=i[a];i[a]=ns[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 Hg(e){return typeof e=="function"}let zd;function v4(){zd=void 0}const Br={now:()=>(zd===void 0&&Br.set($t.isProcessing||DL.useManualTiming?$t.timestamp:performance.now()),zd),set:e=>{zd=e,queueMicrotask(v4)}},hT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(no.test(e)||e==="0")&&!e.startsWith("url("));function x4(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 w4(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=hT(i,t),s=hT(o,t);return!a||!s?!1:x4(e)||(n==="spring"||Hg(n))&&r}const b4=40;class mT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>b4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ZL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:s,onUpdate:u,isGenerator:l}=this.options;if(!l&&!w4(t,r,i,o))if(a)this.options.duration=0;else{u==null||u(Bd(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 gT(e,t){return t?e*(1e3/t):0}const E4=5;function yT(e,t,n){const r=Math.max(t-E4,0);return gT(n-e(r),t-r)}const Vg=.001,T4=.01,_4=10,C4=.05,S4=1;function A4({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=eo(C4,S4,a),e=eo(T4,_4,pi(e)),a<1?(i=l=>{const c=l*a,d=c*e,f=c-n,p=$g(l,a),m=Math.exp(-d);return Vg-f/p*m},o=l=>{const d=l*a*e,f=d*n+n,p=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-d),y=$g(Math.pow(l,2),a);return(-i(l)+Vg>0?-1:1)*((f-p)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Vg+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=R4(i,o,s);if(e=fi(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:a*2*Math.sqrt(r*l),duration:e}}}const k4=12;function R4(e,t,n){let r=n;for(let i=1;i<k4;i++)r=r-e(r)/t(r);return r}function $g(e,t){return e*Math.sqrt(1-t*t)}const N4=["duration","bounce"],P4=["stiffness","damping","mass"];function vT(e,t){return t.some(n=>e[n]!==void 0)}function I4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!vT(e,P4)&&vT(e,N4)){const n=A4(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function xT({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=I4({...r,velocity:-pi(r.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(s*l)),y=o-i,b=pi(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=$g(b,m);x=T=>{const _=Math.exp(-m*b*T);return o-_*((p+m*b*y)/w*Math.sin(w*T)+y*Math.cos(w*T))}}else if(m===1)x=w=>o-Math.exp(-b*w)*(y+(p+b*y)*w);else{const w=b*Math.sqrt(m*m-1);x=T=>{const _=Math.exp(-m*b*T),C=Math.min(w*T,300);return o-_*((p+m*b*y)*Math.sinh(C)+w*y*Math.cosh(C))/w}}return{calculatedDuration:f&&c||null,next:w=>{const T=x(w);if(f)a.done=w>=c;else{let _=0;m<1&&(_=w===0?fi(p):yT(x,w,T));const C=Math.abs(_)<=n,R=Math.abs(o-T)<=t;a.done=C&&R}return a.value=a.done?o:T,a}}}function wT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=O=>s!==void 0&&O<s||u!==void 0&&O>u,m=O=>s===void 0?u:u===void 0||Math.abs(s-O)<Math.abs(u-O)?s:u;let y=n*t;const b=d+y,g=a===void 0?b:a(b);g!==b&&(y=g-d);const x=O=>-y*Math.exp(-O/r),w=O=>g+x(O),T=O=>{const V=x(O),P=w(O);f.done=Math.abs(V)<=l,f.value=f.done?g:P};let _,C;const R=O=>{p(f.value)&&(_=O,C=xT({keyframes:[f.value,m(f.value)],velocity:yT(w,O,f.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return R(0),{calculatedDuration:null,next:O=>{let V=!1;return!C&&_===void 0&&(V=!0,T(O),R(O)),_!==void 0&&O>=_?C.next(O-_):(!V&&T(O),f)}}}const O4=Ku(.42,0,1,1),D4=Ku(0,0,.58,1),bT=Ku(.42,0,.58,1),L4=e=>Array.isArray(e)&&typeof e[0]!="number",Wg=e=>Array.isArray(e)&&typeof e[0]=="number",ET={linear:Zt,easeIn:O4,easeInOut:bT,easeOut:D4,circIn:Rg,circInOut:$E,circOut:VE,backIn:kg,backInOut:zE,backOut:UE,anticipate:HE},TT=e=>{if(Wg(e)){Ng(e.length===4);const[t,n,r,i]=e;return Ku(t,n,r,i)}else if(typeof e=="string")return Ng(ET[e]!==void 0),ET[e];return e},M4=(e,t)=>n=>t(e(n)),hi=(...e)=>e.reduce(M4),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ft=(e,t,n)=>e+(t-e)*n;function Yg(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 F4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=Yg(u,s,e+1/3),o=Yg(u,s,e),a=Yg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Hd(e,t){return n=>n>0?t:e}const qg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},B4=[Bg,ea,rs],j4=e=>B4.find(t=>t.test(e));function _T(e){const t=j4(e);if(!t)return!1;let n=t.parse(e);return t===rs&&(n=F4(n)),n}const CT=(e,t)=>{const n=_T(e),r=_T(t);if(!n||!r)return Hd(e,t);const i={...n};return o=>(i.red=qg(n.red,r.red,o),i.green=qg(n.green,r.green,o),i.blue=qg(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),ea.transform(i))},Gg=new Set(["none","hidden"]);function U4(e,t){return Gg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function z4(e,t){return n=>ft(e,t,n)}function Kg(e){return typeof e=="number"?z4:typeof e=="string"?Pg(e)?Hd:Jt.test(e)?CT:$4:Array.isArray(e)?ST:typeof e=="object"?Jt.test(e)?CT:H4:Hd}function ST(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Kg(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function H4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Kg(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function V4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][i[a]],u=(n=e.values[s])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const $4=(e,t)=>{const n=no.createTransformer(t),r=Ju(e),i=Ju(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?Gg.has(e)&&!i.values.length||Gg.has(t)&&!r.values.length?U4(e,t):hi(ST(V4(r,i),i.values),n):Hd(e,t)};function AT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):Kg(e)(e,t)}function W4(e,t,n){const r=[],i=n||AT,o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Zt:t;s=hi(u,s)}r.push(s)}return r}function Y4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ng(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=W4(t,r,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=is(e[c],e[c+1],l);return a[c](d)};return n?l=>u(eo(e[0],e[o-1],l)):u}function q4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(ft(n,1,i))}}function G4(e){const t=[0];return q4(t,e.length-1),t}function K4(e,t){return e.map(n=>n*t)}function X4(e,t){return e.map(()=>t||bT).splice(0,e.length-1)}function Vd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=L4(r)?r.map(TT):TT(r),o={done:!1,value:t[0]},a=K4(n&&n.length===t.length?n:G4(t),e),s=Y4(a,t,{ease:Array.isArray(i)?i:X4(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}const kT=2e4;function Q4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<kT;)t+=n,r=e.next(t);return t>=kT?1/0:t}const Z4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xe.update(t,!0),stop:()=>Ji(t),now:()=>$t.isProcessing?$t.timestamp:Br.now()}},J4={decay:wT,inertia:wT,tween:Vd,keyframes:Vd,spring:xT},eM=e=>e/100;class Xg extends mT{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:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Dg,s=(u,l)=>this.onKeyframesResolved(u,l);this.resolver=new a(o,s,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=Hg(n)?n:J4[n]||Vd;let u,l;s!==Vd&&typeof t[0]!="number"&&(u=hi(eM,AT(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Q4(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}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:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:y,onUpdate:b}=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=o;if(p){const O=Math.min(this.currentTime,c)/d;let V=Math.floor(O),P=O%1;!P&&O>=1&&(P=1),P===1&&V--,V=Math.min(V,p+1),!!(V%2)&&(m==="reverse"?(P=1-P,y&&(P-=y/d)):m==="mirror"&&(T=a)),w=eo(0,1,P)*d}const _=x?{done:!1,value:u[0]}:T.next(w);s&&(_.value=s(_.value));let{done:C}=_;!x&&l!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return R&&i!==void 0&&(_.value=Bd(u,this.options,i)),b&&b(_.value),R&&this.finish(),_}get duration(){const{resolved:t}=this;return t?pi(t.calculatedDuration):0}get time(){return pi(this.currentTime)}set time(t){t=fi(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=pi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Z4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const RT=new Set(["opacity","clipPath","filter","transform"]),tM=10,nM=(e,t)=>{let n="";const r=Math.max(Math.round(t/tM),2);for(let i=0;i<r;i++)n+=e(is(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Qg(e){let t;return()=>(t===void 0&&(t=e()),t)}const rM={linearEasing:void 0};function iM(e,t){const n=Qg(e);return()=>{var r;return(r=rM[t])!==null&&r!==void 0?r:n()}}const $d=iM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function NT(e){return!!(typeof e=="function"&&$d()||!e||typeof e=="string"&&(e in Zg||$d())||Wg(e)||Array.isArray(e)&&e.every(NT))}const el=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Zg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function PT(e,t){if(e)return typeof e=="function"&&$d()?nM(e,t):Wg(e)?el(e):Array.isArray(e)?e.map(n=>PT(n,t)||Zg.easeOut):Zg[e]}function oM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:n};u&&(l.offset=u);const c=PT(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:o+1,direction:a==="reverse"?"alternate":"normal"})}function IT(e,t){e.timeline=t,e.onfinish=null}const aM=Qg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wd=10,sM=2e4;function uM(e){return Hg(e.type)||e.type==="spring"||!NT(e.ease)}function lM(e,t){const n=new Xg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<sM;)r=n.sample(o),i.push(r.value),o+=Wd;return{times:void 0,keyframes:i,duration:o-Wd,ease:"linear"}}const OT={anticipate:HE,backInOut:zE,circInOut:$E};function cM(e){return e in OT}class DT extends mT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new pT(o,(a,s)=>this.onKeyframesResolved(a,s),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:u,name:l,startTime:c}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&$d()&&cM(a)&&(a=OT[a]),uM(this.options)){const{onComplete:f,onUpdate:p,motionValue:m,element:y,...b}=this.options,g=lM(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,o=g.times,a=g.ease,s="keyframes"}const d=oM(u.owner.current,l,t,{...this.options,duration:i,times:o,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(IT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Bd(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return pi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return pi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=fi(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 Zt;const{animation:r}=n;IT(r,t)}return Zt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...p}=this.options,m=new Xg({...p,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),y=fi(this.time);l.setWithVelocity(m.sample(y-Wd).value,m.sample(y).value,Wd)}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:o,damping:a,type:s}=t;return aM()&&r&&RT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const dM=Qg(()=>window.ScrollTimeline!==void 0);class fM{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=>dM()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;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 pM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const Jg=(e,t,n,r={},i,o)=>a=>{const s=Sg(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-fi(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:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};pM(s)||(c={...c,...OL(e,c)}),c.duration&&(c.duration=fi(c.duration)),c.repeatDelay&&(c.repeatDelay=fi(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&&!o&&t.get()!==void 0){const f=Bd(c.keyframes,s);if(f!==void 0)return Xe.update(()=>{c.onUpdate(f),c.onComplete()}),new fM([])}return!o&&DT.supports(c)?new DT(c):new Xg(c)},hM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mM=e=>Eg(e)?e[e.length-1]||0:e;function e0(e,t){e.indexOf(t)===-1&&e.push(t)}function t0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class n0{constructor(){this.subscriptions=[]}add(t){return e0(this.subscriptions,t),()=>t0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const LT=30,gM=e=>!isNaN(parseFloat(e));class yM{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Br.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gM(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 n0);const r=this.events[t].add(n);return t==="change"?()=>{r(),Xe.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=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>LT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,LT);return gT(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 tl(e,t){return new yM(e,t)}function vM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tl(n))}function xM(e,t){const n=Fd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=mM(o[a]);vM(e,a,s)}}const Yd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),MT="data-"+Yd("framerAppearId");function FT(e){return e.props[MT]}const en=e=>!!(e&&e.getVelocity);function wM(e){return!!(en(e)&&e.add)}function r0(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(wM(n))return n.add(t)}function bM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function BT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=u[d];if(p===void 0||c&&bM(c,d))continue;const m={delay:n,...Sg(a||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=FT(e);if(g){const x=window.MotionHandoffAnimation(g,d,Xe);x!==null&&(m.startTime=x,y=!0)}}r0(e,d),f.start(Jg(d,f,p,e.shouldReduceMotion&&Zi.has(d)?{type:!1}:m,e,y));const b=f.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{Xe.update(()=>{s&&xM(e,s)})}),l}function i0(e,t,n={}){var r;const i=Fd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(BT(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return EM(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[l,c]=u==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function EM(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,u=i===1?(l=0)=>l*r:(l=0)=>s-l*r;return Array.from(e.variantChildren).sort(TM).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(i0(l,t,{...o,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function TM(e,t){return e.sortNodePosition(t)}function _M(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>i0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=i0(e,t,n);else{const i=typeof t=="function"?Fd(e,t,n.custom):t;r=Promise.all(BT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CM=Cg.length;function jT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<CM;n++){const r=Cg[n],i=e.props[r];(qu(i)||i===!1)&&(t[r]=i)}return t}const SM=[..._g].reverse(),AM=_g.length;function kM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_M(e,n,r)))}function RM(e){let t=kM(e),n=UT(),r=!0;const i=u=>(l,c)=>{var d;const f=Fd(e,c,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...y}=f;l={...l,...y,...m}}return l};function o(u){t=u(e)}function a(u){const{props:l}=e,c=jT(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let b=0;b<AM;b++){const g=SM[b],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=qu(w),_=g===u?x.isActive:null;_===!1&&(m=b);let C=w===c[g]&&w!==l[g]&&T;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...p},!x.isActive&&_===null||!w&&!x.prevProp||Yu(w)||typeof w=="boolean")continue;const R=NM(x.prevProp,w);let O=R||g===u&&x.isActive&&!C&&T||b>m&&T,V=!1;const P=Array.isArray(w)?w:[w];let $=P.reduce(i(g),{});_===!1&&($={});const{prevResolvedValues:z={}}=x,X={...z,...$},Y=te=>{O=!0,f.has(te)&&(V=!0,f.delete(te)),x.needsAnimating[te]=!0;const F=e.getValue(te);F&&(F.liveStyle=!1)};for(const te in X){const F=$[te],B=z[te];if(p.hasOwnProperty(te))continue;let A=!1;Eg(F)&&Eg(B)?A=!DE(F,B):A=F!==B,A?F!=null?Y(te):f.add(te):F!==void 0&&f.has(te)?Y(te):x.protectedKeys[te]=!0}x.prevProp=w,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(C&&R)||V)&&d.push(...P.map(te=>({animation:te,options:{type:g}})))}if(f.size){const b={};f.forEach(g=>{const x=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),b[g]=x??null}),d.push({animation:b})}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 p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(u,l)}),n[u].isActive=l;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n,reset:()=>{n=UT(),r=!0}}}function NM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!DE(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UT(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}class ro{constructor(t){this.isMounted=!1,this.node=t}update(){}}class PM extends ro{constructor(t){super(t),t.animationState||(t.animationState=RM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yu(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 IM=0;class OM extends ro{constructor(){super(...arguments),this.id=IM++}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 DM={animation:{Feature:PM},exit:{Feature:OM}},zT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qd(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const LM=e=>t=>zT(t)&&e(t,qd(t));function mi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e,t,n,r){return mi(e,t,LM(n),r)}const HT=(e,t)=>Math.abs(e-t);function MM(e,t){const n=HT(e.x,t.x),r=HT(e.y,t.y);return Math.sqrt(n**2+r**2)}class VT{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=a0(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=MM(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=d,{timestamp:y}=$t;this.history.push({...m,timestamp:y});const{onStart:b,onMove:g}=this.handlers;f||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=o0(f,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=a0(d.type==="pointercancel"?this.lastMoveEventInfo:o0(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),m&&m(d,b)},!zT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qd(t),s=o0(a,this.transformPagePoint),{point:u}=s,{timestamp:l}=$t;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,a0(s,this.history)),this.removeListeners=hi(gi(this.contextWindow,"pointermove",this.handlePointerMove),gi(this.contextWindow,"pointerup",this.handlePointerUp),gi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ji(this.updatePoint)}}function o0(e,t){return t?{point:t(e.point)}:e}function $T(e,t){return{x:e.x-t.x,y:e.y-t.y}}function a0({point:e},t){return{point:e,delta:$T(e,WT(t)),offset:$T(e,FM(t)),velocity:BM(t,.1)}}function FM(e){return e[0]}function WT(e){return e[e.length-1]}function BM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=WT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>fi(t)));)n--;if(!r)return{x:0,y:0};const o=pi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function YT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const qT=YT("dragHorizontal"),GT=YT("dragVertical");function KT(e){let t=!1;if(e==="y")t=GT();else if(e==="x")t=qT();else{const n=qT(),r=GT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function XT(){const e=KT(!0);return e?(e(),!1):!0}function os(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const QT=1e-4,jM=1-QT,UM=1+QT,ZT=.01,zM=0-ZT,HM=0+ZT;function Bn(e){return e.max-e.min}function VM(e,t,n){return Math.abs(e-t)<=n}function JT(e,t,n,r=.5){e.origin=r,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jM&&e.scale<=UM||isNaN(e.scale))&&(e.scale=1),(e.translate>=zM&&e.translate<=HM||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,n,r){JT(e.x,t.x,n.x,r?r.originX:void 0),JT(e.y,t.y,n.y,r?r.originY:void 0)}function e2(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function $M(e,t,n){e2(e.x,t.x,n.x),e2(e.y,t.y,n.y)}function t2(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function rl(e,t,n){t2(e.x,t.x,n.x),t2(e.y,t.y,n.y)}function WM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ft(n,e,r.max):Math.min(e,n)),e}function n2(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 YM(e,{top:t,left:n,bottom:r,right:i}){return{x:n2(e.x,n,i),y:n2(e.y,t,r)}}function r2(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 qM(e,t){return{x:r2(e.x,t.x),y:r2(e.y,t.y)}}function GM(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),eo(0,1,n)}function KM(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 s0=.35;function XM(e=s0){return e===!1?e=0:e===!0&&(e=s0),{x:i2(e,"left","right"),y:i2(e,"top","bottom")}}function i2(e,t,n){return{min:o2(e,t),max:o2(e,n)}}function o2(e,t){return typeof e=="number"?e:e[t]||0}const a2=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:a2(),y:a2()}),s2=()=>({min:0,max:0}),bt=()=>({x:s2(),y:s2()});function nr(e){return[e("x"),e("y")]}function u2({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function QM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZM(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 u0(e){return e===void 0||e===1}function l0({scale:e,scaleX:t,scaleY:n}){return!u0(e)||!u0(t)||!u0(n)}function na(e){return l0(e)||l2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function l2(e){return c2(e.x)||c2(e.y)}function c2(e){return e&&e!=="0%"}function Gd(e,t,n){const r=e-n,i=t*r;return n+i}function d2(e,t,n,r,i){return i!==void 0&&(e=Gd(e,i,r)),Gd(e,n,r)+t}function c0(e,t=0,n=1,r,i){e.min=d2(e.min,t,n,r,i),e.max=d2(e.max,t,n,r,i)}function f2(e,{x:t,y:n}){c0(e.x,t.translate,t.scale,t.originPoint),c0(e.y,n.translate,n.scale,n.originPoint)}const p2=.999999999999,h2=1.0000000000001;function JM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=n[s],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&us(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,f2(e,a)),r&&na(o.latestValues)&&us(e,o.latestValues))}t.x<h2&&t.x>p2&&(t.x=1),t.y<h2&&t.y>p2&&(t.y=1)}function ss(e,t){e.min=e.min+t,e.max=e.max+t}function m2(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);c0(e,t,n,o,r)}function us(e,t){m2(e.x,t.x,t.scaleX,t.scale,t.originX),m2(e.y,t.y,t.scaleY,t.scale,t.originY)}function g2(e,t){return u2(ZM(e.getBoundingClientRect(),t))}function e5(e,t,n){const r=g2(e,n),{scroll:i}=t;return i&&(ss(r.x,i.offset.x),ss(r.y,i.offset.y)),r}const y2=({current:e})=>e?e.ownerDocument.defaultView:null,t5=new WeakMap;class n5{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=bt(),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(qd(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=KT(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),nr(b=>{let g=this.getAxisMotionValue(b).get()||0;if(Fr.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[b];w&&(g=Bn(w)*(parseFloat(g)/100))}}this.originPoint[b]=g}),m&&Xe.postRender(()=>m(c,d)),r0(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:b}=d;if(p&&this.currentDirection===null){this.currentDirection=r5(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},s=(c,d)=>this.stop(c,d),u=()=>nr(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 VT(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:y2(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Xe.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=WM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&os(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=YM(i.layoutBox,n):this.constraints=!1,this.elastic=XM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=KM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!os(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=e5(r,i.root,this.visualElement.getTransformPagePoint());let a=qM(i.layout.layoutBox,o);if(n){const s=n(QM(a));this.hasMutatedConstraints=!!s,s&&(a=u2(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=nr(c=>{if(!Kd(c,n,this.currentDirection))return;let d=u&&u[c]||{};a&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r0(this.visualElement,t),r.start(Jg(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(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){nr(n=>{const{drag:r}=this.getProps();if(!Kd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-ft(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!os(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const u=s.get();i[a]=GM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!Kd(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(ft(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;t5.set(this.visualElement,this);const t=this.visualElement.current,n=gi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();os(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Xe.read(r);const a=mi(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(nr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=s0,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Kd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function r5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class i5 extends ro{constructor(t){super(t),this.removeGroupControls=Zt,this.removeListeners=Zt,this.controls=new n5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zt}unmount(){this.removeGroupControls(),this.removeListeners()}}const v2=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};class o5 extends ro{constructor(){super(...arguments),this.removePointerDownListener=Zt}onPointerDown(t){this.session=new VT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:y2(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:v2(t),onStart:v2(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Xe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=gi(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 Xd=v.createContext(null);function a5(){const e=v.useContext(Xd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();v.useEffect(()=>r(i),[]);const o=v.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const d0=v.createContext({}),x2=v.createContext({}),Qd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function w2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const il={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=w2(e,t.target.x),r=w2(e,t.target.y);return`${n}% ${r}%`}},s5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=no.parse(e);if(i.length>5)return r;const o=no.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=ft(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}},Zd={};function u5(e){Object.assign(Zd,e)}const{schedule:f0,cancel:Rie}=ME(queueMicrotask,!1);class l5 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;u5(c5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Xe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),f0.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 b2(e){const[t,n]=a5(),r=v.useContext(d0);return E.jsx(l5,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(x2),isPresent:t,safeToRemove:n})}const c5={borderRadius:{...il,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomLeftRadius:il,borderBottomRightRadius:il,boxShadow:s5},E2=["TopLeft","TopRight","BottomLeft","BottomRight"],d5=E2.length,T2=e=>typeof e=="string"?parseFloat(e):e,_2=e=>typeof e=="number"||ye.test(e);function f5(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,p5(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,h5(r))):o&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<d5;a++){const s=`border${E2[a]}Radius`;let u=C2(t,s),l=C2(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||_2(u)===_2(l)?(e[s]=Math.max(ft(T2(u),T2(l),r),0),(Fr.test(l)||Fr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||n.rotate)&&(e.rotate=ft(t.rotate||0,n.rotate||0,r))}function C2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const p5=S2(0,.5,VE),h5=S2(.5,.95,Zt);function S2(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function A2(e,t){e.min=t.min,e.max=t.max}function rr(e,t){A2(e.x,t.x),A2(e.y,t.y)}function k2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function R2(e,t,n,r,i){return e-=t,e=Gd(e,1/n,r),i!==void 0&&(e=Gd(e,1/i,r)),e}function m5(e,t=0,n=1,r=.5,i,o=e,a=e){if(Fr.test(t)&&(t=parseFloat(t),t=ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ft(o.min,o.max,r);e===o&&(s-=t),e.min=R2(e.min,t,n,s,i),e.max=R2(e.max,t,n,s,i)}function N2(e,t,[n,r,i],o,a){m5(e,t[n],t[r],t[i],t.scale,o,a)}const g5=["x","scaleX","originX"],y5=["y","scaleY","originY"];function P2(e,t,n,r){N2(e.x,t,g5,n?n.x:void 0,r?r.x:void 0),N2(e.y,t,y5,n?n.y:void 0,r?r.y:void 0)}function I2(e){return e.translate===0&&e.scale===1}function O2(e){return I2(e.x)&&I2(e.y)}function D2(e,t){return e.min===t.min&&e.max===t.max}function v5(e,t){return D2(e.x,t.x)&&D2(e.y,t.y)}function L2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function M2(e,t){return L2(e.x,t.x)&&L2(e.y,t.y)}function F2(e){return Bn(e.x)/Bn(e.y)}function B2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class x5{constructor(){this.members=[]}add(t){e0(this.members,t),t.scheduleRender()}remove(t){if(t0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function w5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}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:p,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}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 b5=(e,t)=>e.depth-t.depth;class E5{constructor(){this.children=[],this.isDirty=!1}add(t){e0(this.children,t),this.isDirty=!0}remove(t){t0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b5),this.isDirty=!1,this.children.forEach(t)}}function Jd(e){const t=en(e)?e.get():e;return hM(t)?t.toValue():t}function T5(e,t){const n=Br.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ji(r),e(o-t))};return Xe.read(r,!0),()=>Ji(r)}function _5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function C5(e,t,n){const r=en(e)?e:tl(e);return r.start(Jg("",r,t,n)),r.animation}const ra={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ol=typeof window<"u"&&window.MotionDebug!==void 0,p0=["","X","Y","Z"],S5={visibility:"hidden"},j2=1e3;let A5=0;function h0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function U2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=FT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Xe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&U2(r)}function z2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=A5++,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,ol&&(ra.totalNodes=ra.resolvedTargetDeltas=ra.recalculatedProjection=0),this.nodes.forEach(N5),this.nodes.forEach(L5),this.nodes.forEach(M5),this.nodes.forEach(P5),ol&&window.MotionDebug.record(ra)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 E5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new n0),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),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(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=T5(f,250),Qd.hasAnimatedSinceResize&&(Qd.hasAnimatedSinceResize=!1,this.nodes.forEach(V2))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||z5,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!M2(this.targetLayout,m)||p,w=!f&&p;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={...Sg(y,"layout"),onPlay:b,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||V2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ji(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(F5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&U2(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(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(H2);return}this.isUpdating||this.nodes.forEach(O5),this.isUpdating=!1,this.nodes.forEach(D5),this.nodes.forEach(k5),this.nodes.forEach(R5),this.clearAllSnapshots();const s=Br.now();$t.delta=eo(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,Ag.update.process($t),Ag.preRender.process($t),Ag.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,f0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(I5),this.sharedNodes.forEach(B5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=bt(),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!O2(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||na(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),H5(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:s}=this.options;if(!s)return bt();const u=s.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(V5))){const{scroll:c}=this.root;c&&(ss(u.x,c.offset.x),ss(u.y,c.offset.y))}return u}removeElementScroll(a){var s;const u=bt();if(rr(u,a),!((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&&rr(u,a),ss(u.x,d.offset.x),ss(u.y,d.offset.y))}return u}applyTransform(a,s=!1){const u=bt();rr(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&us(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),na(c.latestValues)&&us(u,c.latestValues)}return na(this.latestValues)&&us(u,this.latestValues),u}removeTransform(a){const s=bt();rr(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!na(l.latestValues))continue;l0(l.latestValues)&&l.updateSnapshot();const c=bt(),d=l.measurePageBox();rr(c,d),P2(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return na(this.latestValues)&&P2(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!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(!(a||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=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$M(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),f2(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),rl(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ol&&ra.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||l0(this.parent.latestValues)||l2(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 a;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===$t.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;rr(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;JM(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=bt());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(k2(this.prevProjectionDelta.x,this.projectionDelta.x),k2(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!B2(this.projectionDelta.x,this.prevProjectionDelta.x)||!B2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ol&&ra.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=bt(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,b=this.getStack(),g=!b||b.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(U5));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const _=T/1e3;$2(d.x,a.x,_),$2(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),j5(this.relativeTarget,this.relativeTargetOrigin,f,_),w&&v5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=bt()),rr(w,this.relativeTarget)),y&&(this.animationValues=c,f5(c,l,this.latestValues,_,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ji(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Qd.hasAnimatedSinceResize=!0,this.currentAnimation=C5(0,j2,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(j2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&K2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||bt();const d=Bn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+d;const f=Bn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+f}rr(s,u),us(s,c),nl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new x5),this.sharedNodes.get(a).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 a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;const l={};u.z&&h0("z",a,l,this.animationValues);for(let c=0;c<p0.length;c++)h0(`rotate${p0[c]}`,a,l,this.animationValues),h0(`skew${p0[c]}`,a,l,this.animationValues);a.render();for(const c in l)a.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);a.scheduleRender()}getProjectionStyles(a){var s,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return S5;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Jd(a==null?void 0:a.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=Jd(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!na(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=w5(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:m}=this.projectionDelta;l.transformOrigin=`${p.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 Zd){if(f[y]===void 0)continue;const{correct:b,applyTo:g}=Zd[y],x=l.transform==="none"?f[y]:b(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?Jd(a==null?void 0:a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(H2),this.root.sharedNodes.clear()}}}function k5(e){e.updateLayout()}function R5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(f);f.min=r[d].min,f.max=f.min+p}):K2(o,n.layoutBox,r)&&nr(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],p=Bn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=as();nl(s,r,n.layoutBox);const u=as();a?nl(u,e.applyTransform(i,!0),n.measuredBox):nl(u,r,n.layoutBox);const l=!O2(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=bt();rl(m,n.layoutBox,f.layoutBox);const y=bt();rl(y,r,p.layoutBox),M2(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 N5(e){ol&&ra.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 P5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I5(e){e.clearSnapshot()}function H2(e){e.clearMeasurements()}function O5(e){e.isLayoutDirty=!1}function D5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function V2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function L5(e){e.resolveTargetDelta()}function M5(e){e.calcProjection()}function F5(e){e.resetSkewAndRotation()}function B5(e){e.removeLeadSnapshot()}function $2(e,t,n){e.translate=ft(t.translate,0,n),e.scale=ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function W2(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function j5(e,t,n,r){W2(e.x,t.x,n.x,r),W2(e.y,t.y,n.y,r)}function U5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const z5={duration:.45,ease:[.4,0,.1,1]},Y2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),q2=Y2("applewebkit/")&&!Y2("chrome/")?Math.round:Zt;function G2(e){e.min=q2(e.min),e.max=q2(e.max)}function H5(e){G2(e.x),G2(e.y)}function K2(e,t,n){return e==="position"||e==="preserve-aspect"&&!VM(F2(t),F2(n),.2)}function V5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $5=z2({attachResizeListener:(e,t)=>mi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),m0={current:void 0},X2=z2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!m0.current){const e=new $5({});e.mount(window),e.setOptions({layoutScroll:!0}),m0.current=e}return m0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),W5={pan:{Feature:o5},drag:{Feature:i5,ProjectionNode:X2,MeasureLayout:b2}};function Q2(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,a)=>{if(o.pointerType==="touch"||XT())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const u=s[r];u&&Xe.postRender(()=>u(o,a))};return gi(e.current,n,i,{passive:!e.getProps()[r]})}class Y5 extends ro{mount(){this.unmount=hi(Q2(this.node,!0),Q2(this.node,!1))}unmount(){}}class q5 extends ro{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=hi(mi(this.node.current,"focus",()=>this.onFocus()),mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Z2=(e,t)=>t?e===t?!0:Z2(e,t.parentElement):!1;function g0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,qd(n))}class G5 extends ro{constructor(){super(...arguments),this.removeStartListeners=Zt,this.removeEndListeners=Zt,this.removeAccessibleListeners=Zt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=gi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Z2(this.node.current,s.target)?c:l;f&&Xe.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),a=gi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hi(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||g0("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Xe.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=mi(this.node.current,"keyup",a),g0("down",(s,u)=>{this.startPress(s,u)})},n=mi(this.node.current,"keydown",t),r=()=>{this.isPressing&&g0("cancel",(o,a)=>this.cancelPress(o,a))},i=mi(this.node.current,"blur",r);this.removeAccessibleListeners=hi(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&&Xe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!XT()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Xe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=gi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=mi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const y0=new WeakMap,v0=new WeakMap,K5=e=>{const t=y0.get(e.target);t&&t(e)},X5=e=>{e.forEach(K5)};function Q5({root:e,...t}){const n=e||document;v0.has(n)||v0.set(n,{});const r=v0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(X5,{root:e,...t})),r[i]}function Z5(e,t,n){const r=Q5(t);return y0.set(e,n),r.observe(e),()=>{y0.delete(e),r.unobserve(e)}}const J5={some:0,all:1};class e8 extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:J5[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!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 Z5(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(t8(t,n))&&this.startObserver()}unmount(){}}function t8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const n8={inView:{Feature:e8},tap:{Feature:G5},focus:{Feature:q5},hover:{Feature:Y5}},r8={layout:{ProjectionNode:X2,MeasureLayout:b2}},x0=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ef=v.createContext({}),w0=typeof window<"u",J2=w0?v.useLayoutEffect:v.useEffect,e_=v.createContext({strict:!1});function i8(e,t,n,r,i){var o,a;const{visualElement:s}=v.useContext(ef),u=v.useContext(e_),l=v.useContext(Xd),c=v.useContext(x0).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,p=v.useContext(x2);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&o8(d.current,n,i,p),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[MT],y=v.useRef(!!m&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,m))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,m)));return J2(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),f0.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,m)}),y.current=!1))}),f}function o8(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:u,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:t_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&os(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function t_(e){if(e)return e.options.allowProjection!==!1?e.projection:t_(e.parent)}function a8(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):os(n)&&(n.current=r))},[t])}function tf(e){return Yu(e.animate)||Cg.some(t=>qu(e[t]))}function n_(e){return!!(tf(e)||e.variants)}function s8(e,t){if(tf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qu(n)?n:void 0,animate:qu(r)?r:void 0}}return e.inherit!==!1?t:{}}function u8(e){const{initial:t,animate:n}=s8(e,v.useContext(ef));return v.useMemo(()=>({initial:t,animate:n}),[r_(t),r_(n)])}function r_(e){return Array.isArray(e)?e.join(" "):e}const i_={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"]},ls={};for(const e in i_)ls[e]={isEnabled:t=>i_[e].some(n=>!!t[n])};function l8(e){for(const t in e)ls[t]={...ls[t],...e[t]}}const c8=Symbol.for("motionComponentSymbol");function d8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&l8(e);function o(s,u){let l;const c={...v.useContext(x0),...s,layoutId:f8(s)},{isStatic:d}=c,f=u8(s),p=r(s,d);if(!d&&w0){p8();const m=h8(c);l=m.MeasureLayout,f.visualElement=i8(i,p,c,t,m.ProjectionNode)}return E.jsxs(ef.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,a8(p,f.visualElement,u),p,d,f.visualElement)]})}const a=v.forwardRef(o);return a[c8]=i,a}function f8({layoutId:e}){const t=v.useContext(d0).id;return t&&e!==void 0?t+"-"+e:e}function p8(e,t){v.useContext(e_).strict}function h8(e){const{drag:t,layout:n}=ls;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 m8=["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 b0(e){return typeof e!="string"||e.includes("-")?!1:!!(m8.indexOf(e)>-1||/[A-Z]/u.test(e))}function o_(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const a_=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 s_(e,t,n,r){o_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(a_.has(i)?i:Yd(i),t.attrs[i])}function u_(e,{layout:t,layoutId:n}){return Zi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zd[e]||e==="opacity")}function E0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(en(i[a])||t.style&&en(t.style[a])||u_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function l_(e,t,n){const r=E0(e,t,n);for(const i in e)if(en(e[i])||en(t[i])){const o=Gu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function T0(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function g8(e){if(Zi.has(e))return"transform";if(RT.has(e))return Yd(e)}function y8({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,a,s){const u={latestValues:v8(i,o,a,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const c_=e=>(t,n)=>{const r=v.useContext(ef),i=v.useContext(Xd),o=()=>y8(e,t,r,i,n);return n?o():T0(o)};function d_(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const o=Tg(e,r[i]);if(o){const{transitionEnd:a,transition:s,...u}=o;n(u,a)}}}function v8(e,t,n,r,i){var o;const a={},s=new Set,u=r&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=i(e,{});for(const b in l)a[b]=Jd(l[b]);let{initial:c,animate:d}=e;const f=tf(e),p=n_(e);t&&p&&!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"&&!Yu(y)&&d_(e,y,(b,g)=>{for(const x in b){let w=b[x];if(Array.isArray(w)){const T=m?w.length-1:0;w=w[T]}w!==null&&(a[x]=w)}for(const x in g)a[x]=g[x]}),u&&(d&&c!==!1&&!Yu(d)&&d_(e,d,b=>{for(const g in b){const x=g8(g);x&&s.add(x)}}),s.size&&(a.willChange=Array.from(s).join(","))),a}const _0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),f_=()=>({..._0(),attrs:{}}),p_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,x8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w8=Gu.length;function b8(e,t,n){let r="",i=!0;for(let o=0;o<w8;o++){const a=Gu[o],s=e[a];if(s===void 0)continue;let u=!0;if(typeof s=="number"?u=s===(a.startsWith("scale")?1:0):u=parseFloat(s)===0,!u||n){const l=p_(s,Ug[a]);if(!u){i=!1;const c=x8[a]||a;r+=`${c}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function C0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const u in t){const l=t[u];if(Zi.has(u)){a=!0;continue}else if(GE(u)){i[u]=l;continue}else{const c=p_(l,Ug[u]);u.startsWith("origin")?(s=!0,o[u]=c):r[u]=c}}if(t.transform||(a||n?r.transform=b8(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:u="50%",originY:l="50%",originZ:c=0}=o;r.transformOrigin=`${u} ${l} ${c}`}}function h_(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function E8(e,t,n){const r=h_(t,e.x,e.width),i=h_(n,e.y,e.height);return`${r} ${i}`}const T8={offset:"stroke-dashoffset",array:"stroke-dasharray"},_8={offset:"strokeDashoffset",array:"strokeDasharray"};function C8(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?T8:_8;e[o.offset]=ye.transform(-r);const a=ye.transform(t),s=ye.transform(n);e[o.array]=`${a} ${s}`}function S0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(C0(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=E8(m,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),a!==void 0&&C8(f,a,s,u,!1)}const A0=e=>typeof e=="string"&&e.toLowerCase()==="svg",S8={useVisualState:c_({scrapeMotionValuesFromProps:l_,createRenderState:f_,onMount:(e,t,{renderState:n,latestValues:r})=>{Xe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Xe.render(()=>{S0(n,r,A0(t.tagName),e.transformTemplate),s_(t,n)})}})},A8={useVisualState:c_({applyWillChange:!0,scrapeMotionValuesFromProps:E0,createRenderState:_0})};function m_(e,t,n){for(const r in t)!en(t[r])&&!u_(r,n)&&(e[r]=t[r])}function k8({transformTemplate:e},t){return v.useMemo(()=>{const n=_0();return C0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R8(e,t){const n=e.style||{},r={};return m_(r,n,e),Object.assign(r,k8(e,t)),r}function N8(e,t){const n={},r=R8(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 P8=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 nf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||P8.has(e)}let g_=e=>!nf(e);function I8(e){e&&(g_=t=>t.startsWith("on")?!nf(t):e(t))}try{I8(require("@emotion/is-prop-valid").default)}catch{}function O8(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(g_(i)||n===!0&&nf(i)||!t&&!nf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function D8(e,t,n,r){const i=v.useMemo(()=>{const o=f_();return S0(o,t,A0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};m_(o,e.style,e),i.style={...o,...i.style}}return i}function L8(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(b0(n)?D8:N8)(r,o,a,n),l=O8(r,typeof n=="string",e),c=n!==v.Fragment?{...l,...u,ref:i}:{},{children:d}=r,f=v.useMemo(()=>en(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function M8(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...b0(r)?S8:A8,preloadedFeatures:e,useRender:L8(i),createVisualElement:t,Component:r};return d8(a)}}const k0={current:null},y_={current:!1};function F8(){if(y_.current=!0,!!w0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>k0.current=e.matches;e.addListener(t),t()}else k0.current=!1}function B8(e,t,n){for(const r in t){const i=t[r],o=n[r];if(en(i))e.addValue(r,i);else if(en(o))e.addValue(r,tl(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,tl(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const v_=new WeakMap,j8=[...tT,Jt,no],U8=e=>j8.find(eT(e)),x_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class z8{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},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=Dg,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=Br.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Xe.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;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=!!o,this.isControllingVariants=tf(n),this.isVariantNode=n_(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 p=d[f];u[f]!==void 0&&en(p)&&p.set(u[f],!1)}}mount(t){this.current=t,v_.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)),y_.current||F8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:k0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){v_.delete(this.current),this.projection&&this.projection.unmount(),Ji(this.notifyUpdate),Ji(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&&Xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 ls){const n=ls[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}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<x_.length;r++){const i=x_[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=B8(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=tl(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"&&(YE(i)||WE(i))?i=parseFloat(i):!U8(i)&&no.test(n)&&(i=fT(t,n)),this.setBaseTarget(t,en(i)?i.get():i)),en(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 a=Tg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!en(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new n0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class w_ extends z8{constructor(){super(...arguments),this.KeyframeResolver=pT}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 H8(e){return window.getComputedStyle(e)}class V8 extends w_{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=o_}readValueFromInstance(t,n){if(Zi.has(n)){const r=zg(n);return r&&r.default||0}else{const r=H8(t),i=(GE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return g2(t,n)}build(t,n,r){C0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return E0(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;en(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class $8 extends w_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zi.has(n)){const r=zg(n);return r&&r.default||0}return n=a_.has(n)?n:Yd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return l_(t,n,r)}build(t,n,r){S0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){s_(t,n,r,i)}mount(t){this.isSVGTag=A0(t.tagName),super.mount(t)}}const W8=(e,t)=>b0(e)?new $8(t):new V8(t,{allowProjection:e!==v.Fragment}),Y8=M8({...DM,...n8,...W5,...r8},W8),cs=kL(Y8);class q8 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 G8({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=v.useContext(x0);return v.useInsertionEffect(()=>{const{width:a,height:s,top:u,left:l}=i.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
41
41
  [data-motion-pop-id="${n}"] {
42
42
  position: absolute !important;
43
43
  width: ${a}px !important;