@opencx/widget 3.0.34 → 3.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -16
- package/dist/designs.cjs +1 -1
- package/dist/designs.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +2 -2
- package/dist/{useUploadFiles-DkWg1-Gg.js → useUploadFiles-CPnrB5Dm.js} +2 -2
- package/dist/{useUploadFiles-DkWg1-Gg.js.map → useUploadFiles-CPnrB5Dm.js.map} +1 -1
- package/dist/{useUploadFiles-C0y6HEB6.cjs → useUploadFiles-GT7QUmAC.cjs} +2 -2
- package/dist/{useUploadFiles-C0y6HEB6.cjs.map → useUploadFiles-GT7QUmAC.cjs.map} +1 -1
- package/dist-embed/script.js +1 -1
- package/package.json +1 -1
package/dist-embed/script.js
CHANGED
|
@@ -37,7 +37,7 @@ var _ie=Object.defineProperty;var Cie=(Mo,yn,Jr)=>yn in Mo?_ie(Mo,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{Th=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?iu(e):""}function nD(e){switch(e.tag){case 5:return iu(e.type);case 16:return iu("Lazy");case 13:return iu("Suspense");case 19:return iu("SuspenseList");case 0:case 2:case 15:return e=_h(e.type,!1),e;case 11:return e=_h(e.type.render,!1),e;case 1:return e=_h(e.type,!0),e;default:return""}}function Ch(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 ka:return"Fragment";case Aa:return"Portal";case yh:return"Profiler";case gh:return"StrictMode";case xh:return"Suspense";case wh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xx:return(e.displayName||"Context")+".Consumer";case vx:return(e._context.displayName||"Context")+".Provider";case vh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bh:return t=e.displayName||null,t!==null?t:Ch(e.type)||"Memo";case Pi:t=e._payload,e=e._init;try{return Ch(e(t))}catch{}}return null}function rD(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 Ch(t);case 8:return t===gh?"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 Ii(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ex(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iD(e){var t=Ex(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 _c(e){e._valueTracker||(e._valueTracker=iD(e))}function Tx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ex(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cc(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 Sh(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _x(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ii(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 Cx(e,t){t=t.checked,t!=null&&mh(e,"checked",t,!1)}function Ah(e,t){Cx(e,t);var n=Ii(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")?kh(e,t.type,n):t.hasOwnProperty("defaultValue")&&kh(e,t.type,Ii(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sx(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 kh(e,t,n){(t!=="number"||Cc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ou=Array.isArray;function Ra(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=""+Ii(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 Rh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return lt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ax(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Q(92));if(ou(n)){if(1<n.length)throw Error(Q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ii(n)}}function kx(e,t){var n=Ii(t.value),r=Ii(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 Rx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Sc,Px=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(Sc=Sc||document.createElement("div"),Sc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Sc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function au(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var su={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},oD=["Webkit","ms","Moz","O"];Object.keys(su).forEach(function(e){oD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),su[t]=su[e]})});function Ix(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||su.hasOwnProperty(e)&&su[e]?(""+t).trim():t+"px"}function Ox(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ix(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var aD=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 Ph(e,t){if(t){if(aD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Ih(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oh=null;function Dh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lh=null,Na=null,Pa=null;function Dx(e){if(e=Ru(e)){if(typeof Lh!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=Kc(t),Lh(e.stateNode,e.type,t))}}function Lx(e){Na?Pa?Pa.push(e):Pa=[e]:Na=e}function Mx(){if(Na){var e=Na,t=Pa;if(Pa=Na=null,Dx(e),t)for(e=0;e<t.length;e++)Dx(t[e])}}function Fx(e,t){return e(t)}function Bx(){}var Mh=!1;function jx(e,t,n){if(Mh)return e(t,n);Mh=!0;try{return Fx(e,t,n)}finally{Mh=!1,(Na!==null||Pa!==null)&&(Bx(),Mx())}}function uu(e,t){var n=e.stateNode;if(n===null)return null;var r=Kc(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(Q(231,t,typeof n));return n}var Fh=!1;if(ei)try{var lu={};Object.defineProperty(lu,"passive",{get:function(){Fh=!0}}),window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,lu)}catch{Fh=!1}function sD(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 cu=!1,Ac=null,kc=!1,Bh=null,uD={onError:function(e){cu=!0,Ac=e}};function lD(e,t,n,r,i,o,a,s,u){cu=!1,Ac=null,sD.apply(uD,arguments)}function cD(e,t,n,r,i,o,a,s,u){if(lD.apply(this,arguments),cu){if(cu){var l=Ac;cu=!1,Ac=null}else throw Error(Q(198));kc||(kc=!0,Bh=l)}}function Bo(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 Ux(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 zx(e){if(Bo(e)!==e)throw Error(Q(188))}function dD(e){var t=e.alternate;if(!t){if(t=Bo(e),t===null)throw Error(Q(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 zx(i),e;if(o===r)return zx(i),t;o=o.sibling}throw Error(Q(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(Q(189))}}if(n.alternate!==r)throw Error(Q(190))}if(n.tag!==3)throw Error(Q(188));return n.stateNode.current===n?e:t}function Hx(e){return e=dD(e),e!==null?Vx(e):null}function Vx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Vx(e);if(t!==null)return t;e=e.sibling}return null}var $x=In.unstable_scheduleCallback,Wx=In.unstable_cancelCallback,fD=In.unstable_shouldYield,pD=In.unstable_requestPaint,wt=In.unstable_now,hD=In.unstable_getCurrentPriorityLevel,jh=In.unstable_ImmediatePriority,Yx=In.unstable_UserBlockingPriority,Rc=In.unstable_NormalPriority,mD=In.unstable_LowPriority,qx=In.unstable_IdlePriority,Nc=null,Ir=null;function gD(e){if(Ir&&typeof Ir.onCommitFiberRoot=="function")try{Ir.onCommitFiberRoot(Nc,e,void 0,(e.current.flags&128)===128)}catch{}}var pr=Math.clz32?Math.clz32:xD,yD=Math.log,vD=Math.LN2;function xD(e){return e>>>=0,e===0?32:31-(yD(e)/vD|0)|0}var Pc=64,Ic=4194304;function du(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 Oc(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=du(s):(o&=a,o!==0&&(r=du(o)))}else a=n&~i,a!==0?r=du(a):o!==0&&(r=du(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 wD(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 bD(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]=wD(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function Uh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gx(){var e=Pc;return Pc<<=1,!(Pc&4194240)&&(Pc=64),e}function zh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fu(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 ED(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 Hh(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 Kx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Xx,Vh,Qx,Zx,Jx,$h=!1,Dc=[],Oi=null,Di=null,Li=null,pu=new Map,hu=new Map,Mi=[],TD="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 ew(e,t){switch(e){case"focusin":case"focusout":Oi=null;break;case"dragenter":case"dragleave":Di=null;break;case"mouseover":case"mouseout":Li=null;break;case"pointerover":case"pointerout":pu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hu.delete(t.pointerId)}}function mu(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=Ru(t),t!==null&&Vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _D(e,t,n,r,i){switch(t){case"focusin":return Oi=mu(Oi,e,t,n,r,i),!0;case"dragenter":return Di=mu(Di,e,t,n,r,i),!0;case"mouseover":return Li=mu(Li,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return pu.set(o,mu(pu.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,hu.set(o,mu(hu.get(o)||null,e,t,n,r,i)),!0}return!1}function tw(e){var t=jo(e.target);if(t!==null){var n=Bo(t);if(n!==null){if(t=n.tag,t===13){if(t=Ux(n),t!==null){e.blockedOn=t,Jx(e.priority,function(){Qx(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 Lc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Oh=r,n.target.dispatchEvent(r),Oh=null}else return t=Ru(n),t!==null&&Vh(t),e.blockedOn=n,!1;t.shift()}return!0}function nw(e,t,n){Lc(e)&&n.delete(t)}function CD(){$h=!1,Oi!==null&&Lc(Oi)&&(Oi=null),Di!==null&&Lc(Di)&&(Di=null),Li!==null&&Lc(Li)&&(Li=null),pu.forEach(nw),hu.forEach(nw)}function gu(e,t){e.blockedOn===t&&(e.blockedOn=null,$h||($h=!0,In.unstable_scheduleCallback(In.unstable_NormalPriority,CD)))}function yu(e){function t(i){return gu(i,e)}if(0<Dc.length){gu(Dc[0],e);for(var n=1;n<Dc.length;n++){var r=Dc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Oi!==null&&gu(Oi,e),Di!==null&&gu(Di,e),Li!==null&&gu(Li,e),pu.forEach(t),hu.forEach(t),n=0;n<Mi.length;n++)r=Mi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mi.length&&(n=Mi[0],n.blockedOn===null);)tw(n),n.blockedOn===null&&Mi.shift()}var Ia=ti.ReactCurrentBatchConfig,Mc=!0;function SD(e,t,n,r){var i=qe,o=Ia.transition;Ia.transition=null;try{qe=1,Wh(e,t,n,r)}finally{qe=i,Ia.transition=o}}function AD(e,t,n,r){var i=qe,o=Ia.transition;Ia.transition=null;try{qe=4,Wh(e,t,n,r)}finally{qe=i,Ia.transition=o}}function Wh(e,t,n,r){if(Mc){var i=Yh(e,t,n,r);if(i===null)lm(e,t,r,Fc,n),ew(e,r);else if(_D(i,e,t,n,r))r.stopPropagation();else if(ew(e,r),t&4&&-1<TD.indexOf(e)){for(;i!==null;){var o=Ru(i);if(o!==null&&Xx(o),o=Yh(e,t,n,r),o===null&&lm(e,t,r,Fc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else lm(e,t,r,null,n)}}var Fc=null;function Yh(e,t,n,r){if(Fc=null,e=Dh(r),e=jo(e),e!==null)if(t=Bo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ux(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 Fc=e,null}function rw(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(hD()){case jh:return 1;case Yx:return 4;case Rc:case mD:return 16;case qx:return 536870912;default:return 16}default:return 16}}var Fi=null,qh=null,Bc=null;function iw(){if(Bc)return Bc;var e,t=qh,n=t.length,r,i="value"in Fi?Fi.value:Fi.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 Bc=i.slice(e,1<r?1-r:void 0)}function jc(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 Uc(){return!0}function ow(){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)?Uc:ow,this.isPropagationStopped=ow,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=Uc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Uc)},persist:function(){},isPersistent:Uc}),t}var Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gh=On(Oa),vu=lt({},Oa,{view:0,detail:0}),kD=On(vu),Kh,Xh,xu,zc=lt({},vu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zh,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!==xu&&(xu&&e.type==="mousemove"?(Kh=e.screenX-xu.screenX,Xh=e.screenY-xu.screenY):Xh=Kh=0,xu=e),Kh)},movementY:function(e){return"movementY"in e?e.movementY:Xh}}),aw=On(zc),RD=lt({},zc,{dataTransfer:0}),ND=On(RD),PD=lt({},vu,{relatedTarget:0}),Qh=On(PD),ID=lt({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),OD=On(ID),DD=lt({},Oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LD=On(DD),MD=lt({},Oa,{data:0}),sw=On(MD),FD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BD={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"},jD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jD[e])?!!t[e]:!1}function Zh(){return UD}var zD=lt({},vu,{key:function(e){if(e.key){var t=FD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?BD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zh,charCode:function(e){return e.type==="keypress"?jc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),HD=On(zD),VD=lt({},zc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uw=On(VD),$D=lt({},vu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zh}),WD=On($D),YD=lt({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),qD=On(YD),GD=lt({},zc,{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}),KD=On(GD),XD=[9,13,27,32],Jh=ei&&"CompositionEvent"in window,wu=null;ei&&"documentMode"in document&&(wu=document.documentMode);var QD=ei&&"TextEvent"in window&&!wu,lw=ei&&(!Jh||wu&&8<wu&&11>=wu),cw=" ",dw=!1;function fw(e,t){switch(e){case"keyup":return XD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Da=!1;function ZD(e,t){switch(e){case"compositionend":return pw(t);case"keypress":return t.which!==32?null:(dw=!0,cw);case"textInput":return e=t.data,e===cw&&dw?null:e;default:return null}}function JD(e,t){if(Da)return e==="compositionend"||!Jh&&fw(e,t)?(e=iw(),Bc=qh=Fi=null,Da=!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 lw&&t.locale!=="ko"?null:t.data;default:return null}}var e6={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 hw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e6[e.type]:t==="textarea"}function mw(e,t,n,r){Lx(r),t=Yc(t,"onChange"),0<t.length&&(n=new Gh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bu=null,Eu=null;function t6(e){Ow(e,0)}function Hc(e){var t=ja(e);if(Tx(t))return e}function n6(e,t){if(e==="change")return t}var gw=!1;if(ei){var em;if(ei){var tm="oninput"in document;if(!tm){var yw=document.createElement("div");yw.setAttribute("oninput","return;"),tm=typeof yw.oninput=="function"}em=tm}else em=!1;gw=em&&(!document.documentMode||9<document.documentMode)}function vw(){bu&&(bu.detachEvent("onpropertychange",xw),Eu=bu=null)}function xw(e){if(e.propertyName==="value"&&Hc(Eu)){var t=[];mw(t,Eu,e,Dh(e)),jx(t6,t)}}function r6(e,t,n){e==="focusin"?(vw(),bu=t,Eu=n,bu.attachEvent("onpropertychange",xw)):e==="focusout"&&vw()}function i6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hc(Eu)}function o6(e,t){if(e==="click")return Hc(t)}function a6(e,t){if(e==="input"||e==="change")return Hc(t)}function s6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hr=typeof Object.is=="function"?Object.is:s6;function Tu(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(!fh.call(t,i)||!hr(e[i],t[i]))return!1}return!0}function ww(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bw(e,t){var n=ww(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=ww(n)}}function Ew(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ew(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tw(){for(var e=window,t=Cc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cc(e.document)}return t}function nm(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 u6(e){var t=Tw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ew(n.ownerDocument.documentElement,n)){if(r!==null&&nm(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=bw(n,o);var a=bw(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 l6=ei&&"documentMode"in document&&11>=document.documentMode,La=null,rm=null,_u=null,im=!1;function _w(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;im||La==null||La!==Cc(r)||(r=La,"selectionStart"in r&&nm(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}),_u&&Tu(_u,r)||(_u=r,r=Yc(rm,"onSelect"),0<r.length&&(t=new Gh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=La)))}function Vc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ma={animationend:Vc("Animation","AnimationEnd"),animationiteration:Vc("Animation","AnimationIteration"),animationstart:Vc("Animation","AnimationStart"),transitionend:Vc("Transition","TransitionEnd")},om={},Cw={};ei&&(Cw=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function $c(e){if(om[e])return om[e];if(!Ma[e])return e;var t=Ma[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cw)return om[e]=t[n];return e}var Sw=$c("animationend"),Aw=$c("animationiteration"),kw=$c("animationstart"),Rw=$c("transitionend"),Nw=new Map,Pw="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 Bi(e,t){Nw.set(e,t),Fo(t,[e])}for(var am=0;am<Pw.length;am++){var sm=Pw[am],c6=sm.toLowerCase(),d6=sm[0].toUpperCase()+sm.slice(1);Bi(c6,"on"+d6)}Bi(Sw,"onAnimationEnd"),Bi(Aw,"onAnimationIteration"),Bi(kw,"onAnimationStart"),Bi("dblclick","onDoubleClick"),Bi("focusin","onFocus"),Bi("focusout","onBlur"),Bi(Rw,"onTransitionEnd"),Sa("onMouseEnter",["mouseout","mouseover"]),Sa("onMouseLeave",["mouseout","mouseover"]),Sa("onPointerEnter",["pointerout","pointerover"]),Sa("onPointerLeave",["pointerout","pointerover"]),Fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),f6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cu));function Iw(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,cD(r,t,void 0,e),e.currentTarget=null}function Ow(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;Iw(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;Iw(i,s,l),o=u}}}if(kc)throw e=Bh,kc=!1,Bh=null,e}function tt(e,t){var n=t[mm];n===void 0&&(n=t[mm]=new Set);var r=e+"__bubble";n.has(r)||(Dw(t,e,2,!1),n.add(r))}function um(e,t,n){var r=0;t&&(r|=4),Dw(n,e,r,t)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function Su(e){if(!e[Wc]){e[Wc]=!0,mx.forEach(function(n){n!=="selectionchange"&&(f6.has(n)||um(n,!1,e),um(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wc]||(t[Wc]=!0,um("selectionchange",!1,t))}}function Dw(e,t,n,r){switch(rw(t)){case 1:var i=SD;break;case 4:i=AD;break;default:i=Wh}n=i.bind(null,t,n,e),i=void 0,!Fh||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 lm(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=jo(s),a===null)return;if(u=a.tag,u===5||u===6){r=o=a;continue e}s=s.parentNode}}r=r.return}jx(function(){var l=o,c=Dh(n),d=[];e:{var f=Nw.get(e);if(f!==void 0){var p=Gh,m=e;switch(e){case"keypress":if(jc(n)===0)break e;case"keydown":case"keyup":p=HD;break;case"focusin":m="focus",p=Qh;break;case"focusout":m="blur",p=Qh;break;case"beforeblur":case"afterblur":p=Qh;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=aw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ND;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=WD;break;case Sw:case Aw:case kw:p=OD;break;case Rw:p=qD;break;case"scroll":p=kD;break;case"wheel":p=KD;break;case"copy":case"cut":case"paste":p=LD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=uw}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=uu(x,g),T!=null&&y.push(Au(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!==Oh&&(m=n.relatedTarget||n.fromElement)&&(jo(m)||m[ni]))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?jo(m):null,m!==null&&(b=Bo(m),m!==b||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=l),p!==m)){if(y=aw,T="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=uw,T="onPointerLeave",g="onPointerEnter",x="pointer"),b=p==null?f:ja(p),w=m==null?f:ja(m),f=new y(T,x+"leave",p,n,c),f.target=b,f.relatedTarget=w,T=null,jo(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=Fa(w))x++;for(w=0,T=g;T;T=Fa(T))w++;for(;0<x-w;)y=Fa(y),x--;for(;0<w-x;)g=Fa(g),w--;for(;x--;){if(y===g||g!==null&&y===g.alternate)break t;y=Fa(y),g=Fa(g)}y=null}else y=null;p!==null&&Lw(d,f,p,y,!1),m!==null&&b!==null&&Lw(d,b,m,y,!0)}}e:{if(f=l?ja(l):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=n6;else if(hw(f))if(gw)_=a6;else{_=i6;var C=r6}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=o6);if(_&&(_=_(e,l))){mw(d,_,n,c);break e}C&&C(e,f,l),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&kh(f,"number",f.value)}switch(C=l?ja(l):window,e){case"focusin":(hw(C)||C.contentEditable==="true")&&(La=C,rm=l,_u=null);break;case"focusout":_u=rm=La=null;break;case"mousedown":im=!0;break;case"contextmenu":case"mouseup":case"dragend":im=!1,_w(d,n,c);break;case"selectionchange":if(l6)break;case"keydown":case"keyup":_w(d,n,c)}var R;if(Jh)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 Da?fw(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(lw&&n.locale!=="ko"&&(Da||O!=="onCompositionStart"?O==="onCompositionEnd"&&Da&&(R=iw()):(Fi=c,qh="value"in Fi?Fi.value:Fi.textContent,Da=!0)),C=Yc(l,O),0<C.length&&(O=new sw(O,e,null,n,c),d.push({event:O,listeners:C}),R?O.data=R:(R=pw(n),R!==null&&(O.data=R)))),(R=QD?ZD(e,n):JD(e,n))&&(l=Yc(l,"onBeforeInput"),0<l.length&&(c=new sw("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=R))}Ow(d,t)})}function Au(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=uu(e,n),o!=null&&r.unshift(Au(e,o,i)),o=uu(e,t),o!=null&&r.push(Au(e,o,i))),e=e.return}return r}function Fa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lw(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=uu(n,o),u!=null&&a.unshift(Au(n,u,s))):i||(u=uu(n,o),u!=null&&a.push(Au(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var p6=/\r\n?/g,h6=/\u0000|\uFFFD/g;function Mw(e){return(typeof e=="string"?e:""+e).replace(p6,`
|
|
38
38
|
`).replace(h6,"")}function qc(e,t,n){if(t=Mw(t),Mw(e)!==t&&n)throw Error(Q(425))}function Gc(){}var cm=null,dm=null;function fm(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 pm=typeof setTimeout=="function"?setTimeout:void 0,m6=typeof clearTimeout=="function"?clearTimeout:void 0,Fw=typeof Promise=="function"?Promise:void 0,g6=typeof queueMicrotask=="function"?queueMicrotask:typeof Fw<"u"?function(e){return Fw.resolve(null).then(e).catch(y6)}:pm;function y6(e){setTimeout(function(){throw e})}function hm(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),yu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);yu(t)}function ji(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 Bw(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 Ba=Math.random().toString(36).slice(2),Or="__reactFiber$"+Ba,ku="__reactProps$"+Ba,ni="__reactContainer$"+Ba,mm="__reactEvents$"+Ba,v6="__reactListeners$"+Ba,x6="__reactHandles$"+Ba;function jo(e){var t=e[Or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ni]||n[Or]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bw(e);e!==null;){if(n=e[Or])return n;e=Bw(e)}return t}e=n,n=e.parentNode}return null}function Ru(e){return e=e[Or]||e[ni],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ja(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function Kc(e){return e[ku]||null}var gm=[],Ua=-1;function Ui(e){return{current:e}}function nt(e){0>Ua||(e.current=gm[Ua],gm[Ua]=null,Ua--)}function Je(e,t){Ua++,gm[Ua]=e.current,e.current=t}var zi={},Gt=Ui(zi),vn=Ui(!1),Uo=zi;function za(e,t){var n=e.type.contextTypes;if(!n)return zi;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 Xc(){nt(vn),nt(Gt)}function jw(e,t,n){if(Gt.current!==zi)throw Error(Q(168));Je(Gt,t),Je(vn,n)}function Uw(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(Q(108,rD(e)||"Unknown",i));return lt({},n,r)}function Qc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zi,Uo=Gt.current,Je(Gt,e),Je(vn,vn.current),!0}function zw(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=Uw(e,t,Uo),r.__reactInternalMemoizedMergedChildContext=e,nt(vn),nt(Gt),Je(Gt,e)):nt(vn),Je(vn,n)}var ri=null,Zc=!1,ym=!1;function Hw(e){ri===null?ri=[e]:ri.push(e)}function w6(e){Zc=!0,Hw(e)}function Hi(){if(!ym&&ri!==null){ym=!0;var e=0,t=qe;try{var n=ri;for(qe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ri=null,Zc=!1}catch(i){throw ri!==null&&(ri=ri.slice(e+1)),$x(jh,Hi),i}finally{qe=t,ym=!1}}return null}var Ha=[],Va=0,Jc=null,ed=0,Xn=[],Qn=0,zo=null,ii=1,oi="";function Ho(e,t){Ha[Va++]=ed,Ha[Va++]=Jc,Jc=e,ed=t}function Vw(e,t,n){Xn[Qn++]=ii,Xn[Qn++]=oi,Xn[Qn++]=zo,zo=e;var r=ii;e=oi;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,ii=1<<32-pr(t)+i|n<<i|r,oi=o+e}else ii=1<<o|n<<i|r,oi=e}function vm(e){e.return!==null&&(Ho(e,1),Vw(e,1,0))}function xm(e){for(;e===Jc;)Jc=Ha[--Va],Ha[Va]=null,ed=Ha[--Va],Ha[Va]=null;for(;e===zo;)zo=Xn[--Qn],Xn[Qn]=null,oi=Xn[--Qn],Xn[Qn]=null,ii=Xn[--Qn],Xn[Qn]=null}var Dn=null,Ln=null,ot=!1,mr=null;function $w(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 Ww(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=ji(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=zo!==null?{id:ii,overflow:oi}: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 wm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bm(e){if(ot){var t=Ln;if(t){var n=t;if(!Ww(e,t)){if(wm(e))throw Error(Q(418));t=ji(n.nextSibling);var r=Dn;t&&Ww(e,t)?$w(r,n):(e.flags=e.flags&-4097|2,ot=!1,Dn=e)}}else{if(wm(e))throw Error(Q(418));e.flags=e.flags&-4097|2,ot=!1,Dn=e}}}function Yw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dn=e}function td(e){if(e!==Dn)return!1;if(!ot)return Yw(e),ot=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fm(e.type,e.memoizedProps)),t&&(t=Ln)){if(wm(e))throw qw(),Error(Q(418));for(;t;)$w(e,t),t=ji(t.nextSibling)}if(Yw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ln=ji(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ln=null}}else Ln=Dn?ji(e.stateNode.nextSibling):null;return!0}function qw(){for(var e=Ln;e;)e=ji(e.nextSibling)}function $a(){Ln=Dn=null,ot=!1}function Em(e){mr===null?mr=[e]:mr.push(e)}var b6=ti.ReactCurrentBatchConfig;function Nu(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(Q(309));var r=n.stateNode}if(!r)throw Error(Q(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(Q(284));if(!n._owner)throw Error(Q(290,e))}return e}function nd(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gw(e){var t=e._init;return t(e._payload)}function Kw(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=Xi(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=pg(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 _===ka?c(g,x,w.props.children,T,w.key):x!==null&&(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Pi&&Gw(_)===x.type)?(T=i(x,w.props),T.ref=Nu(g,x,w),T.return=g,T):(T=Sd(w.type,w.key,w.props,null,g.mode,T),T.ref=Nu(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=hg(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=Xo(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=pg(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Tc:return w=Sd(x.type,x.key,x.props,null,g.mode,w),w.ref=Nu(g,null,x),w.return=g,w;case Aa:return x=hg(x,g.mode,w),x.return=g,x;case Pi:var T=x._init;return d(g,T(x._payload),w)}if(ou(x)||ru(x))return x=Xo(x,g.mode,w,null),x.return=g,x;nd(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 Tc:return w.key===_?u(g,x,w,T):null;case Aa:return w.key===_?l(g,x,w,T):null;case Pi:return _=w._init,f(g,x,_(w._payload),T)}if(ou(w)||ru(w))return _!==null?null:c(g,x,w,T,null);nd(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 Tc:return g=g.get(T.key===null?w:T.key)||null,u(x,g,T,_);case Aa:return g=g.get(T.key===null?w:T.key)||null,l(x,g,T,_);case Pi:var C=T._init;return p(g,x,w,C(T._payload),_)}if(ou(T)||ru(T))return g=g.get(w)||null,c(x,g,T,_,null);nd(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&&Ho(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&&Ho(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&&Ho(g,O),_}function y(g,x,w,T){var _=ru(w);if(typeof _!="function")throw Error(Q(150));if(w=_.call(w),w==null)throw Error(Q(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&&Ho(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&&Ho(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&&Ho(g,O),_}function b(g,x,w,T){if(typeof w=="object"&&w!==null&&w.type===ka&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Tc:e:{for(var _=w.key,C=x;C!==null;){if(C.key===_){if(_=w.type,_===ka){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===Pi&&Gw(_)===C.type){n(g,C.sibling),x=i(C,w.props),x.ref=Nu(g,C,w),x.return=g,g=x;break e}n(g,C);break}else t(g,C);C=C.sibling}w.type===ka?(x=Xo(w.props.children,g.mode,T,w.key),x.return=g,g=x):(T=Sd(w.type,w.key,w.props,null,g.mode,T),T.ref=Nu(g,x,w),T.return=g,g=T)}return a(g);case Aa: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=hg(w,g.mode,T),x.return=g,g=x}return a(g);case Pi:return C=w._init,b(g,x,C(w._payload),T)}if(ou(w))return m(g,x,w,T);if(ru(w))return y(g,x,w,T);nd(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=pg(w,g.mode,T),x.return=g,g=x),a(g)):n(g,x)}return b}var Wa=Kw(!0),Xw=Kw(!1),rd=Ui(null),id=null,Ya=null,Tm=null;function _m(){Tm=Ya=id=null}function Cm(e){var t=rd.current;nt(rd),e._currentValue=t}function Sm(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 qa(e,t){id=e,Tm=Ya=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(Tm!==e)if(e={context:e,memoizedValue:t,next:null},Ya===null){if(id===null)throw Error(Q(308));Ya=e,id.dependencies={lanes:0,firstContext:e}}else Ya=Ya.next=e;return t}var Vo=null;function Am(e){Vo===null?Vo=[e]:Vo.push(e)}function Qw(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Am(t)):(n.next=i.next,i.next=n),t.interleaved=n,ai(e,r)}function ai(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 Vi=!1;function km(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zw(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 si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(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,ai(e,n)}return i=r.interleaved,i===null?(t.next=t,Am(r)):(t.next=i.next,i.next=t),r.interleaved=t,ai(e,n)}function od(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hh(e,n)}}function Jw(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 ad(e,t,n,r){var i=e.updateQueue;Vi=!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:Vi=!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);Yo|=a,e.lanes=a,e.memoizedState=d}}function eb(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(Q(191,i));i.call(r)}}}var Pu={},Dr=Ui(Pu),Iu=Ui(Pu),Ou=Ui(Pu);function $o(e){if(e===Pu)throw Error(Q(174));return e}function Rm(e,t){switch(Je(Ou,t),Je(Iu,e),Je(Dr,Pu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nh(t,e)}nt(Dr),Je(Dr,t)}function Ga(){nt(Dr),nt(Iu),nt(Ou)}function tb(e){$o(Ou.current);var t=$o(Dr.current),n=Nh(t,e.type);t!==n&&(Je(Iu,e),Je(Dr,n))}function Nm(e){Iu.current===e&&(nt(Dr),nt(Iu))}var ct=Ui(0);function sd(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 Pm=[];function Im(){for(var e=0;e<Pm.length;e++)Pm[e]._workInProgressVersionPrimary=null;Pm.length=0}var ud=ti.ReactCurrentDispatcher,Om=ti.ReactCurrentBatchConfig,Wo=0,dt=null,Rt=null,Dt=null,ld=!1,Du=!1,Lu=0,E6=0;function Kt(){throw Error(Q(321))}function Dm(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 Lm(e,t,n,r,i,o){if(Wo=o,dt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ud.current=e===null||e.memoizedState===null?S6:A6,e=n(r,i),Du){o=0;do{if(Du=!1,Lu=0,25<=o)throw Error(Q(301));o+=1,Dt=Rt=null,t.updateQueue=null,ud.current=k6,e=n(r,i)}while(Du)}if(ud.current=fd,t=Rt!==null&&Rt.next!==null,Wo=0,Dt=Rt=dt=null,ld=!1,t)throw Error(Q(300));return e}function Mm(){var e=Lu!==0;return Lu=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(Q(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 Mu(e,t){return typeof t=="function"?t(e):t}function Fm(e){var t=Jn(),n=t.queue;if(n===null)throw Error(Q(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((Wo&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,Yo|=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,Yo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bm(e){var t=Jn(),n=t.queue;if(n===null)throw Error(Q(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 nb(){}function rb(e,t){var n=dt,r=Jn(),i=t(),o=!hr(r.memoizedState,i);if(o&&(r.memoizedState=i,wn=!0),r=r.queue,jm(ab.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Dt!==null&&Dt.memoizedState.tag&1){if(n.flags|=2048,Fu(9,ob.bind(null,n,r,i,t),void 0,null),Lt===null)throw Error(Q(349));Wo&30||ib(n,t,i)}return i}function ib(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 ob(e,t,n,r){t.value=n,t.getSnapshot=r,sb(t)&&ub(e)}function ab(e,t,n){return n(function(){sb(t)&&ub(e)})}function sb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hr(e,n)}catch{return!0}}function ub(e){var t=ai(e,1);t!==null&&xr(t,e,1,-1)}function lb(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:Mu,lastRenderedState:e},t.queue=e,e=e.dispatch=C6.bind(null,dt,e),[t.memoizedState,e]}function Fu(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 cb(){return Jn().memoizedState}function cd(e,t,n,r){var i=Lr();dt.flags|=e,i.memoizedState=Fu(1|t,n,void 0,r===void 0?null:r)}function dd(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&&Dm(r,a.deps)){i.memoizedState=Fu(t,n,o,r);return}}dt.flags|=e,i.memoizedState=Fu(1|t,n,o,r)}function db(e,t){return cd(8390656,8,e,t)}function jm(e,t){return dd(2048,8,e,t)}function fb(e,t){return dd(4,2,e,t)}function pb(e,t){return dd(4,4,e,t)}function hb(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 mb(e,t,n){return n=n!=null?n.concat([e]):null,dd(4,4,hb.bind(null,t,e),n)}function Um(){}function gb(e,t){var n=Jn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Dm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function yb(e,t){var n=Jn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Dm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vb(e,t,n){return Wo&21?(hr(n,t)||(n=Gx(),dt.lanes|=n,Yo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wn=!0),e.memoizedState=n)}function T6(e,t){var n=qe;qe=n!==0&&4>n?n:4,e(!0);var r=Om.transition;Om.transition={};try{e(!1),t()}finally{qe=n,Om.transition=r}}function xb(){return Jn().memoizedState}function _6(e,t,n){var r=Gi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wb(e))bb(t,n);else if(n=Qw(e,t,n,r),n!==null){var i=fn();xr(n,e,r,i),Eb(n,t,r)}}function C6(e,t,n){var r=Gi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wb(e))bb(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,Am(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Qw(e,t,i,r),n!==null&&(i=fn(),xr(n,e,r,i),Eb(n,t,r))}}function wb(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function bb(e,t){Du=ld=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Eb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hh(e,n)}}var fd={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},S6={readContext:Zn,useCallback:function(e,t){return Lr().memoizedState=[e,t===void 0?null:t],e},useContext:Zn,useEffect:db,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cd(4194308,4,hb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cd(4194308,4,e,t)},useInsertionEffect:function(e,t){return cd(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=_6.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=Lr();return e={current:e},t.memoizedState=e},useState:lb,useDebugValue:Um,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=lb(!1),t=e[0];return e=T6.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(Q(407));n=n()}else{if(n=t(),Lt===null)throw Error(Q(349));Wo&30||ib(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,db(ab.bind(null,r,o,e),[e]),r.flags|=2048,Fu(9,ob.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Lr(),t=Lt.identifierPrefix;if(ot){var n=oi,r=ii;n=(r&~(1<<32-pr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Lu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=E6++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},A6={readContext:Zn,useCallback:gb,useContext:Zn,useEffect:jm,useImperativeHandle:mb,useInsertionEffect:fb,useLayoutEffect:pb,useMemo:yb,useReducer:Fm,useRef:cb,useState:function(){return Fm(Mu)},useDebugValue:Um,useDeferredValue:function(e){var t=Jn();return vb(t,Rt.memoizedState,e)},useTransition:function(){var e=Fm(Mu)[0],t=Jn().memoizedState;return[e,t]},useMutableSource:nb,useSyncExternalStore:rb,useId:xb,unstable_isNewReconciler:!1},k6={readContext:Zn,useCallback:gb,useContext:Zn,useEffect:jm,useImperativeHandle:mb,useInsertionEffect:fb,useLayoutEffect:pb,useMemo:yb,useReducer:Bm,useRef:cb,useState:function(){return Bm(Mu)},useDebugValue:Um,useDeferredValue:function(e){var t=Jn();return Rt===null?t.memoizedState=e:vb(t,Rt.memoizedState,e)},useTransition:function(){var e=Bm(Mu)[0],t=Jn().memoizedState;return[e,t]},useMutableSource:nb,useSyncExternalStore:rb,useId:xb,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 zm(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 pd={isMounted:function(e){return(e=e._reactInternals)?Bo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fn(),i=Gi(e),o=si(r,i);o.payload=t,n!=null&&(o.callback=n),t=$i(e,o,i),t!==null&&(xr(t,e,i,r),od(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fn(),i=Gi(e),o=si(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=$i(e,o,i),t!==null&&(xr(t,e,i,r),od(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fn(),r=Gi(e),i=si(n,r);i.tag=2,t!=null&&(i.callback=t),t=$i(e,i,r),t!==null&&(xr(t,e,r,n),od(t,e,r))}};function Tb(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?!Tu(n,r)||!Tu(i,o):!0}function _b(e,t,n){var r=!1,i=zi,o=t.contextType;return typeof o=="object"&&o!==null?o=Zn(o):(i=xn(t)?Uo:Gt.current,r=t.contextTypes,o=(r=r!=null)?za(e,i):zi),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=pd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Cb(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&&pd.enqueueReplaceState(t,t.state,null)}function Hm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},km(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Zn(o):(o=xn(t)?Uo:Gt.current,i.context=za(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(zm(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&&pd.enqueueReplaceState(i,i.state,null),ad(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ka(e,t){try{var n="",r=t;do n+=nD(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 Vm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $m(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var R6=typeof WeakMap=="function"?WeakMap:Map;function Sb(e,t,n){n=si(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){wd||(wd=!0,og=r),$m(e,t)},n}function Ab(e,t,n){n=si(-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(){$m(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){$m(e,t),typeof r!="function"&&(Yi===null?Yi=new Set([this]):Yi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function kb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new R6;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=V6.bind(null,e,t,n),t.then(e,e))}function Rb(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 Nb(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=si(-1,1),t.tag=2,$i(n,t,1))),n.lanes|=1),e)}var N6=ti.ReactCurrentOwner,wn=!1;function dn(e,t,n,r){t.child=e===null?Xw(t,null,n,r):Wa(t,e.child,n,r)}function Pb(e,t,n,r,i){n=n.render;var o=t.ref;return qa(t,i),r=Lm(e,t,n,r,o,i),n=Mm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&n&&vm(t),t.flags|=1,dn(e,t,r,i),t.child)}function Ib(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ob(e,t,o,r,i)):(e=Sd(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:Tu,n(a,r)&&e.ref===t.ref)return ui(e,t,i)}return t.flags|=1,e=Xi(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ob(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Tu(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,ui(e,t,i)}return Wm(e,t,n,r,i)}function Db(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(Qa,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(Qa,Mn),Mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Je(Qa,Mn),Mn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Je(Qa,Mn),Mn|=r;return dn(e,t,i,n),t.child}function Lb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wm(e,t,n,r,i){var o=xn(n)?Uo:Gt.current;return o=za(t,o),qa(t,i),n=Lm(e,t,n,r,o,i),r=Mm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&r&&vm(t),t.flags|=1,dn(e,t,n,i),t.child)}function Mb(e,t,n,r,i){if(xn(n)){var o=!0;Qc(t)}else o=!1;if(qa(t,i),t.stateNode===null)md(e,t),_b(t,n,r),Hm(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)?Uo:Gt.current,l=za(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)&&Cb(t,a,r,l),Vi=!1;var f=t.memoizedState;a.state=f,ad(t,r,a,i),u=t.memoizedState,s!==r||f!==u||vn.current||Vi?(typeof c=="function"&&(zm(t,n,c,r),u=t.memoizedState),(s=Vi||Tb(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,Zw(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)?Uo:Gt.current,u=za(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)&&Cb(t,a,r,u),Vi=!1,f=t.memoizedState,a.state=f,ad(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||vn.current||Vi?(typeof p=="function"&&(zm(t,n,p,r),m=t.memoizedState),(l=Vi||Tb(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 Ym(e,t,n,r,o,i)}function Ym(e,t,n,r,i,o){Lb(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&zw(t,n,!1),ui(e,t,o);r=t.stateNode,N6.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Wa(t,e.child,null,o),t.child=Wa(t,null,s,o)):dn(e,t,s,o),t.memoizedState=r.state,i&&zw(t,n,!0),t.child}function Fb(e){var t=e.stateNode;t.pendingContext?jw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jw(e,t.context,!1),Rm(e,t.containerInfo)}function Bb(e,t,n,r,i){return $a(),Em(i),t.flags|=256,dn(e,t,n,r),t.child}var qm={dehydrated:null,treeContext:null,retryLane:0};function Gm(e){return{baseLanes:e,cachePool:null,transitions:null}}function jb(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 bm(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=Ad(a,r,0,null),e=Xo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Gm(n),t.memoizedState=qm,e):Km(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return P6(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=Xi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Xi(s,o):(o=Xo(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?Gm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=qm,r}return o=e.child,e=o.sibling,r=Xi(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 Km(e,t){return t=Ad({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hd(e,t,n,r){return r!==null&&Em(r),Wa(t,e.child,null,n),e=Km(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P6(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Vm(Error(Q(422))),hd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ad({mode:"visible",children:r.children},i,0,null),o=Xo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Wa(t,e.child,null,a),t.child.memoizedState=Gm(a),t.memoizedState=qm,o);if(!(t.mode&1))return hd(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Q(419)),r=Vm(o,r,void 0),hd(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,ai(e,i),xr(r,e,i,-1))}return dg(),r=Vm(Error(Q(421))),hd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$6.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ln=ji(i.nextSibling),Dn=t,ot=!0,mr=null,e!==null&&(Xn[Qn++]=ii,Xn[Qn++]=oi,Xn[Qn++]=zo,ii=e.id,oi=e.overflow,zo=t),t=Km(t,r.children),t.flags|=4096,t)}function Ub(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sm(e.return,t,n)}function Xm(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 zb(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&&Ub(e,n,t);else if(e.tag===19)Ub(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&&sd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xm(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&&sd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xm(t,!0,n,null,o);break;case"together":Xm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function md(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ui(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=Xi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function I6(e,t,n){switch(t.tag){case 3:Fb(t),$a();break;case 5:tb(t);break;case 1:xn(t.type)&&Qc(t);break;case 4:Rm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Je(rd,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?jb(e,t,n):(Je(ct,ct.current&1),e=ui(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 zb(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,Db(e,t,n)}return ui(e,t,n)}var Hb,Qm,Vb,$b;Hb=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}},Qm=function(){},Vb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$o(Dr.current);var o=null;switch(n){case"input":i=Sh(e,i),r=Sh(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=Rh(e,i),r=Rh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gc)}Ph(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"&&(nu.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"&&(nu.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)}},$b=function(e,t,n,r){n!==r&&(t.flags|=4)};function Bu(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 O6(e,t,n){var r=t.pendingProps;switch(xm(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)&&Xc(),Xt(t),null;case 3:return r=t.stateNode,Ga(),nt(vn),nt(Gt),Im(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(td(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mr!==null&&(ug(mr),mr=null))),Qm(e,t),Xt(t),null;case 5:Nm(t);var i=$o(Ou.current);if(n=t.type,e!==null&&t.stateNode!=null)Vb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Q(166));return Xt(t),null}if(e=$o(Dr.current),td(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[ku]=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<Cu.length;i++)tt(Cu[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":_x(r,o),tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tt("invalid",r);break;case"textarea":Ax(r,o),tt("invalid",r)}Ph(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&&qc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&qc(r.textContent,s,e),i=["children",""+s]):nu.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&tt("scroll",r)}switch(n){case"input":_c(r),Sx(r,o,!0);break;case"textarea":_c(r),Rx(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Gc)}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=Nx(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[ku]=r,Hb(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ih(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<Cu.length;i++)tt(Cu[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":_x(e,r),i=Sh(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":Ax(e,r),i=Rh(e,r),tt("invalid",e);break;default:i=r}Ph(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?Ox(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Px(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&au(e,u):typeof u=="number"&&au(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(nu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&tt("scroll",e):u!=null&&mh(e,o,u,a))}switch(n){case"input":_c(e),Sx(e,r,!1);break;case"textarea":_c(e),Rx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ii(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ra(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ra(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Gc)}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)$b(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Q(166));if(n=$o(Ou.current),$o(Dr.current),td(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=Dn,e!==null))switch(e.tag){case 3:qc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qc(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))qw(),$a(),t.flags|=98560,o=!1;else if(o=td(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Q(317));o[Or]=t}else $a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xt(t),o=!1}else mr!==null&&(ug(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):dg())),t.updateQueue!==null&&(t.flags|=4),Xt(t),null);case 4:return Ga(),Qm(e,t),e===null&&Su(t.stateNode.containerInfo),Xt(t),null;case 10:return Cm(t.type._context),Xt(t),null;case 17:return xn(t.type)&&Xc(),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)Bu(o,!1);else{if(Nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=sd(e),a!==null){for(t.flags|=128,Bu(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()>Za&&(t.flags|=128,r=!0,Bu(o,!1),t.lanes=4194304)}else{if(!r)if(e=sd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Xt(t),null}else 2*wt()-o.renderingStartTime>Za&&n!==1073741824&&(t.flags|=128,r=!0,Bu(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 cg(),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(Q(156,t.tag))}function D6(e,t){switch(xm(t),t.tag){case 1:return xn(t.type)&&Xc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ga(),nt(vn),nt(Gt),Im(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nm(t),null;case 13:if(nt(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ct),null;case 4:return Ga(),null;case 10:return Cm(t.type._context),null;case 22:case 23:return cg(),null;case 24:return null;default:return null}}var gd=!1,Qt=!1,L6=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Xa(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 Zm(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Wb=!1;function M6(e,t){if(cm=Mc,e=Tw(),nm(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(dm={focusedElem:e,selectionRange:n},Mc=!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(Q(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=Wb,Wb=!1,m}function ju(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&&Zm(t,n,o)}i=i.next}while(i!==r)}}function yd(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 Jm(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 Yb(e){var t=e.alternate;t!==null&&(e.alternate=null,Yb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[ku],delete t[mm],delete t[v6],delete t[x6])),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 qb(e){return e.tag===5||e.tag===3||e.tag===4}function Gb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qb(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 eg(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=Gc));else if(r!==4&&(e=e.child,e!==null))for(eg(e,t,n),e=e.sibling;e!==null;)eg(e,t,n),e=e.sibling}function tg(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(tg(e,t,n),e=e.sibling;e!==null;)tg(e,t,n),e=e.sibling}var Ht=null,yr=!1;function Wi(e,t,n){for(n=n.child;n!==null;)Kb(e,t,n),n=n.sibling}function Kb(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(Nc,n)}catch{}switch(n.tag){case 5:Qt||Xa(n,t);case 6:var r=Ht,i=yr;Ht=null,Wi(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?hm(e.parentNode,n):e.nodeType===1&&hm(e,n),yu(e)):hm(Ht,n.stateNode));break;case 4:r=Ht,i=yr,Ht=n.stateNode.containerInfo,yr=!0,Wi(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)&&Zm(n,t,a),i=i.next}while(i!==r)}Wi(e,t,n);break;case 1:if(!Qt&&(Xa(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)}Wi(e,t,n);break;case 21:Wi(e,t,n);break;case 22:n.mode&1?(Qt=(r=Qt)||n.memoizedState!==null,Wi(e,t,n),Qt=r):Wi(e,t,n);break;default:Wi(e,t,n)}}function Xb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new L6),t.forEach(function(r){var i=W6.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(Q(160));Kb(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;)Qb(t,e),t=t.sibling}function Qb(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{ju(3,e,e.return),yd(3,e)}catch(y){gt(e,e.return,y)}try{ju(5,e,e.return)}catch(y){gt(e,e.return,y)}}break;case 1:vr(t,e),Mr(e),r&512&&n!==null&&Xa(n,n.return);break;case 5:if(vr(t,e),Mr(e),r&512&&n!==null&&Xa(n,n.return),e.flags&32){var i=e.stateNode;try{au(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&&Cx(i,o),Ih(s,a);var l=Ih(s,o);for(a=0;a<u.length;a+=2){var c=u[a],d=u[a+1];c==="style"?Ox(i,d):c==="dangerouslySetInnerHTML"?Px(i,d):c==="children"?au(i,d):mh(i,c,d,l)}switch(s){case"input":Ah(i,o);break;case"textarea":kx(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Ra(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Ra(i,!!o.multiple,o.defaultValue,!0):Ra(i,!!o.multiple,o.multiple?[]:"",!1))}i[ku]=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(Q(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{yu(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||(ig=wt())),r&4&&Xb(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:ju(4,f,f.return);break;case 1:Xa(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:Xa(f,f.return);break;case 22:if(f.memoizedState!==null){eE(d);continue}}p!==null?(p.return=f,ue=p):eE(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=Ix("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&&Xb(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(qb(n)){var r=n;break e}n=n.return}throw Error(Q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(au(i,""),r.flags&=-33);var o=Gb(e);tg(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Gb(e);eg(e,s,a);break;default:throw Error(Q(161))}}catch(u){gt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function F6(e,t,n){ue=e,Zb(e)}function Zb(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||gd;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Qt;s=gd;var l=Qt;if(gd=a,(Qt=u)&&!l)for(ue=i;ue!==null;)a=ue,u=a.child,a.tag===22&&a.memoizedState!==null?tE(i):u!==null?(u.return=a,ue=u):tE(i);for(;o!==null;)ue=o,Zb(o),o=o.sibling;ue=i,gd=s,Qt=l}Jb(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ue=o):Jb(e)}}function Jb(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||yd(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&&eb(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}eb(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&&yu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}Qt||t.flags&512&&Jm(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 eE(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 tE(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yd(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{Jm(t)}catch(u){gt(t,o,u)}break;case 5:var a=t.return;try{Jm(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 B6=Math.ceil,vd=ti.ReactCurrentDispatcher,ng=ti.ReactCurrentOwner,er=ti.ReactCurrentBatchConfig,Ue=0,Lt=null,Ct=null,Vt=0,Mn=0,Qa=Ui(0),Nt=0,Uu=null,Yo=0,xd=0,rg=0,zu=null,bn=null,ig=0,Za=1/0,li=null,wd=!1,og=null,Yi=null,bd=!1,qi=null,Ed=0,Hu=0,ag=null,Td=-1,_d=0;function fn(){return Ue&6?wt():Td!==-1?Td:Td=wt()}function Gi(e){return e.mode&1?Ue&2&&Vt!==0?Vt&-Vt:b6.transition!==null?(_d===0&&(_d=Gx()),_d):(e=qe,e!==0||(e=window.event,e=e===void 0?16:rw(e.type)),e):1}function xr(e,t,n,r){if(50<Hu)throw Hu=0,ag=null,Error(Q(185));fu(e,n,r),(!(Ue&2)||e!==Lt)&&(e===Lt&&(!(Ue&2)&&(xd|=n),Nt===4&&Ki(e,Vt)),En(e,r),n===1&&Ue===0&&!(t.mode&1)&&(Za=wt()+500,Zc&&Hi()))}function En(e,t){var n=e.callbackNode;bD(e,t);var r=Oc(e,e===Lt?Vt:0);if(r===0)n!==null&&Wx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wx(n),t===1)e.tag===0?w6(rE.bind(null,e)):Hw(rE.bind(null,e)),g6(function(){!(Ue&6)&&Hi()}),n=null;else{switch(Kx(r)){case 1:n=jh;break;case 4:n=Yx;break;case 16:n=Rc;break;case 536870912:n=qx;break;default:n=Rc}n=dE(n,nE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nE(e,t){if(Td=-1,_d=0,Ue&6)throw Error(Q(327));var n=e.callbackNode;if(Ja()&&e.callbackNode!==n)return null;var r=Oc(e,e===Lt?Vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cd(e,r);else{t=r;var i=Ue;Ue|=2;var o=oE();(Lt!==e||Vt!==t)&&(li=null,Za=wt()+500,Go(e,t));do try{z6();break}catch(s){iE(e,s)}while(!0);_m(),vd.current=o,Ue=i,Ct!==null?t=0:(Lt=null,Vt=0,t=Nt)}if(t!==0){if(t===2&&(i=Uh(e),i!==0&&(r=i,t=sg(e,i))),t===1)throw n=Uu,Go(e,0),Ki(e,r),En(e,wt()),n;if(t===6)Ki(e,r);else{if(i=e.current.alternate,!(r&30)&&!j6(i)&&(t=Cd(e,r),t===2&&(o=Uh(e),o!==0&&(r=o,t=sg(e,o))),t===1))throw n=Uu,Go(e,0),Ki(e,r),En(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Q(345));case 2:Ko(e,bn,li);break;case 3:if(Ki(e,r),(r&130023424)===r&&(t=ig+500-wt(),10<t)){if(Oc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=pm(Ko.bind(null,e,bn,li),t);break}Ko(e,bn,li);break;case 4:if(Ki(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*B6(r/1960))-r,10<r){e.timeoutHandle=pm(Ko.bind(null,e,bn,li),r);break}Ko(e,bn,li);break;case 5:Ko(e,bn,li);break;default:throw Error(Q(329))}}}return En(e,wt()),e.callbackNode===n?nE.bind(null,e):null}function sg(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(Go(e,t).flags|=256),e=Cd(e,t),e!==2&&(t=bn,bn=n,t!==null&&ug(t)),e}function ug(e){bn===null?bn=e:bn.push.apply(bn,e)}function j6(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 Ki(e,t){for(t&=~rg,t&=~xd,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 rE(e){if(Ue&6)throw Error(Q(327));Ja();var t=Oc(e,0);if(!(t&1))return En(e,wt()),null;var n=Cd(e,t);if(e.tag!==0&&n===2){var r=Uh(e);r!==0&&(t=r,n=sg(e,r))}if(n===1)throw n=Uu,Go(e,0),Ki(e,t),En(e,wt()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ko(e,bn,li),En(e,wt()),null}function lg(e,t){var n=Ue;Ue|=1;try{return e(t)}finally{Ue=n,Ue===0&&(Za=wt()+500,Zc&&Hi())}}function qo(e){qi!==null&&qi.tag===0&&!(Ue&6)&&Ja();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)&&Hi()}}function cg(){Mn=Qa.current,nt(Qa)}function Go(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,m6(n)),Ct!==null)for(n=Ct.return;n!==null;){var r=n;switch(xm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xc();break;case 3:Ga(),nt(vn),nt(Gt),Im();break;case 5:Nm(r);break;case 4:Ga();break;case 13:nt(ct);break;case 19:nt(ct);break;case 10:Cm(r.type._context);break;case 22:case 23:cg()}n=n.return}if(Lt=e,Ct=e=Xi(e.current,null),Vt=Mn=t,Nt=0,Uu=null,rg=xd=Yo=0,bn=zu=null,Vo!==null){for(t=0;t<Vo.length;t++)if(n=Vo[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}Vo=null}return e}function iE(e,t){do{var n=Ct;try{if(_m(),ud.current=fd,ld){for(var r=dt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ld=!1}if(Wo=0,Dt=Rt=dt=null,Du=!1,Lu=0,ng.current=null,n===null||n.return===null){Nt=1,Uu=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=Rb(a);if(p!==null){p.flags&=-257,Nb(p,a,s,o,t),p.mode&1&&kb(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)){kb(o,l,t),dg();break e}u=Error(Q(426))}}else if(ot&&s.mode&1){var b=Rb(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Nb(b,a,s,o,t),Em(Ka(u,s));break e}}o=u=Ka(u,s),Nt!==4&&(Nt=2),zu===null?zu=[o]:zu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Sb(o,u,t);Jw(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"&&(Yi===null||!Yi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=Ab(o,s,t);Jw(o,T);break e}}o=o.return}while(o!==null)}sE(n)}catch(_){t=_,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function oE(){var e=vd.current;return vd.current=fd,e===null?fd:e}function dg(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Lt===null||!(Yo&268435455)&&!(xd&268435455)||Ki(Lt,Vt)}function Cd(e,t){var n=Ue;Ue|=2;var r=oE();(Lt!==e||Vt!==t)&&(li=null,Go(e,t));do try{U6();break}catch(i){iE(e,i)}while(!0);if(_m(),Ue=n,vd.current=r,Ct!==null)throw Error(Q(261));return Lt=null,Vt=0,Nt}function U6(){for(;Ct!==null;)aE(Ct)}function z6(){for(;Ct!==null&&!fD();)aE(Ct)}function aE(e){var t=cE(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?sE(e):Ct=t,ng.current=null}function sE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=D6(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=O6(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 Ko(e,t,n){var r=qe,i=er.transition;try{er.transition=null,qe=1,H6(e,t,n,r)}finally{er.transition=i,qe=r}return null}function H6(e,t,n,r){do Ja();while(qi!==null);if(Ue&6)throw Error(Q(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(Q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ED(e,o),e===Lt&&(Ct=Lt=null,Vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bd||(bd=!0,dE(Rc,function(){return Ja(),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,ng.current=null,M6(e,n),Qb(n,e),u6(dm),Mc=!!cm,dm=cm=null,e.current=n,F6(n),pD(),Ue=s,qe=a,er.transition=o}else e.current=n;if(bd&&(bd=!1,qi=e,Ed=i),o=e.pendingLanes,o===0&&(Yi=null),gD(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(wd)throw wd=!1,e=og,og=null,e;return Ed&1&&e.tag!==0&&Ja(),o=e.pendingLanes,o&1?e===ag?Hu++:(Hu=0,ag=e):Hu=0,Hi(),null}function Ja(){if(qi!==null){var e=Kx(Ed),t=er.transition,n=qe;try{if(er.transition=null,qe=16>e?16:e,qi===null)var r=!1;else{if(e=qi,qi=null,Ed=0,Ue&6)throw Error(Q(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:ju(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(Yb(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:ju(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:yd(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,Hi(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(Nc,e)}catch{}r=!0}return r}finally{qe=n,er.transition=t}}return!1}function uE(e,t,n){t=Ka(n,t),t=Sb(e,t,1),e=$i(e,t,1),t=fn(),e!==null&&(fu(e,1,t),En(e,t))}function gt(e,t,n){if(e.tag===3)uE(e,e,n);else for(;t!==null;){if(t.tag===3){uE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Yi===null||!Yi.has(r))){e=Ka(n,e),e=Ab(t,e,1),t=$i(t,e,1),e=fn(),t!==null&&(fu(t,1,e),En(t,e));break}}t=t.return}}function V6(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()-ig?Go(e,0):rg|=n),En(e,t)}function lE(e,t){t===0&&(e.mode&1?(t=Ic,Ic<<=1,!(Ic&130023424)&&(Ic=4194304)):t=1);var n=fn();e=ai(e,t),e!==null&&(fu(e,t,n),En(e,n))}function $6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lE(e,n)}function W6(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(Q(314))}r!==null&&r.delete(t),lE(e,n)}var cE;cE=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,I6(e,t,n);wn=!!(e.flags&131072)}else wn=!1,ot&&t.flags&1048576&&Vw(t,ed,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;md(e,t),e=t.pendingProps;var i=za(t,Gt.current);qa(t,n),i=Lm(null,t,r,e,i,n);var o=Mm();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,Qc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,km(t),i.updater=pd,t.stateNode=i,i._reactInternals=t,Hm(t,r,e,n),t=Ym(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&vm(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(md(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=q6(r),e=gr(r,e),i){case 0:t=Wm(null,t,r,e,n);break e;case 1:t=Mb(null,t,r,e,n);break e;case 11:t=Pb(null,t,r,e,n);break e;case 14:t=Ib(null,t,r,gr(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Wm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Mb(e,t,r,i,n);case 3:e:{if(Fb(t),e===null)throw Error(Q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Zw(e,t),ad(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=Ka(Error(Q(423)),t),t=Bb(e,t,r,n,i);break e}else if(r!==i){i=Ka(Error(Q(424)),t),t=Bb(e,t,r,n,i);break e}else for(Ln=ji(t.stateNode.containerInfo.firstChild),Dn=t,ot=!0,mr=null,n=Xw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($a(),r===i){t=ui(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return tb(t),e===null&&bm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,fm(r,i)?a=null:o!==null&&fm(r,o)&&(t.flags|=32),Lb(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&bm(t),null;case 13:return jb(e,t,n);case 4:return Rm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wa(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),Pb(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(rd,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!vn.current){t=ui(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=si(-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),Sm(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(Q(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Sm(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,qa(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),Ib(e,t,r,i,n);case 15:return Ob(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),md(e,t),t.tag=1,xn(r)?(e=!0,Qc(t)):e=!1,qa(t,n),_b(t,r,i),Hm(t,r,i,n),Ym(null,t,r,!0,e,n);case 19:return zb(e,t,n);case 22:return Db(e,t,n)}throw Error(Q(156,t.tag))};function dE(e,t){return $x(e,t)}function Y6(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 Y6(e,t,n,r)}function fg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function q6(e){if(typeof e=="function")return fg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vh)return 11;if(e===bh)return 14}return 2}function Xi(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 Sd(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")fg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ka:return Xo(n.children,i,o,t);case gh:a=8,i|=8;break;case yh:return e=tr(12,n,t,i|2),e.elementType=yh,e.lanes=o,e;case xh:return e=tr(13,n,t,i),e.elementType=xh,e.lanes=o,e;case wh:return e=tr(19,n,t,i),e.elementType=wh,e.lanes=o,e;case wx:return Ad(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vx:a=10;break e;case xx:a=9;break e;case vh:a=11;break e;case bh:a=14;break e;case Pi:a=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=tr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Xo(e,t,n,r){return e=tr(7,e,r,t),e.lanes=n,e}function Ad(e,t,n,r){return e=tr(22,e,r,t),e.elementType=wx,e.lanes=n,e.stateNode={isHidden:!1},e}function pg(e,t,n){return e=tr(6,e,null,t),e.lanes=n,e}function hg(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 G6(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=zh(0),this.expirationTimes=zh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mg(e,t,n,r,i,o,a,s,u){return e=new G6(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},km(o),e}function K6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Aa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fE(e){if(!e)return zi;e=e._reactInternals;e:{if(Bo(e)!==e||e.tag!==1)throw Error(Q(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(Q(171))}if(e.tag===1){var n=e.type;if(xn(n))return Uw(e,n,t)}return t}function pE(e,t,n,r,i,o,a,s,u){return e=mg(n,r,!0,e,i,o,a,s,u),e.context=fE(null),n=e.current,r=fn(),i=Gi(n),o=si(r,i),o.callback=t??null,$i(n,o,i),e.current.lanes=i,fu(e,i,r),En(e,r),e}function kd(e,t,n,r){var i=t.current,o=fn(),a=Gi(i);return n=fE(n),t.context===null?t.context=n:t.pendingContext=n,t=si(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$i(i,t,a),e!==null&&(xr(e,i,a,o),od(e,i,a)),a}function Rd(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 hE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gg(e,t){hE(e,t),(e=e.alternate)&&hE(e,t)}function X6(){return null}var mE=typeof reportError=="function"?reportError:function(e){console.error(e)};function yg(e){this._internalRoot=e}Nd.prototype.render=yg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));kd(e,t,null,null)},Nd.prototype.unmount=yg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qo(function(){kd(null,e,null,null)}),t[ni]=null}};function Nd(e){this._internalRoot=e}Nd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mi.length&&t!==0&&t<Mi[n].priority;n++);Mi.splice(n,0,e),n===0&&tw(e)}};function vg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gE(){}function Q6(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=Rd(a);o.call(l)}}var a=pE(t,r,e,0,null,!1,!1,"",gE);return e._reactRootContainer=a,e[ni]=a.current,Su(e.nodeType===8?e.parentNode:e),qo(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=Rd(u);s.call(l)}}var u=mg(e,0,!1,null,null,!1,!1,"",gE);return e._reactRootContainer=u,e[ni]=u.current,Su(e.nodeType===8?e.parentNode:e),qo(function(){kd(t,u,n,r)}),u}function Id(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=Rd(a);s.call(u)}}kd(t,a,e,i)}else a=Q6(n,t,e,i,r);return Rd(a)}Xx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=du(t.pendingLanes);n!==0&&(Hh(t,n|1),En(t,wt()),!(Ue&6)&&(Za=wt()+500,Hi()))}break;case 13:qo(function(){var r=ai(e,1);if(r!==null){var i=fn();xr(r,e,1,i)}}),gg(e,1)}},Vh=function(e){if(e.tag===13){var t=ai(e,134217728);if(t!==null){var n=fn();xr(t,e,134217728,n)}gg(e,134217728)}},Qx=function(e){if(e.tag===13){var t=Gi(e),n=ai(e,t);if(n!==null){var r=fn();xr(n,e,t,r)}gg(e,t)}},Zx=function(){return qe},Jx=function(e,t){var n=qe;try{return qe=e,t()}finally{qe=n}},Lh=function(e,t,n){switch(t){case"input":if(Ah(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=Kc(r);if(!i)throw Error(Q(90));Tx(r),Ah(r,i)}}}break;case"textarea":kx(e,n);break;case"select":t=n.value,t!=null&&Ra(e,!!n.multiple,t,!1)}},Fx=lg,Bx=qo;var Z6={usingClientEntryPoint:!1,Events:[Ru,ja,Kc,Lx,Mx,lg]},Vu={findFiberByHostInstance:jo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},J6={bundleType:Vu.bundleType,version:Vu.version,rendererPackageName:Vu.rendererPackageName,rendererConfig:Vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ti.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Hx(e),e===null?null:e.stateNode},findFiberByHostInstance:Vu.findFiberByHostInstance||X6,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 Od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Od.isDisabled&&Od.supportsFiber)try{Nc=Od.inject(J6),Ir=Od}catch{}}Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z6,Pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vg(t))throw Error(Q(200));return K6(e,t,null,n)},Pn.createRoot=function(e,t){if(!vg(e))throw Error(Q(299));var n=!1,r="",i=mE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=mg(e,1,!1,null,null,n,!1,r,i),e[ni]=t.current,Su(e.nodeType===8?e.parentNode:e),new yg(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(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=Hx(t),e=e===null?null:e.stateNode,e},Pn.flushSync=function(e){return qo(e)},Pn.hydrate=function(e,t,n){if(!Pd(t))throw Error(Q(200));return Id(null,e,t,!0,n)},Pn.hydrateRoot=function(e,t,n){if(!vg(e))throw Error(Q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=mE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=pE(t,null,e,1,n??null,i,!1,o,a),e[ni]=t.current,Su(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 Nd(t)},Pn.render=function(e,t,n){if(!Pd(t))throw Error(Q(200));return Id(null,e,t,!1,n)},Pn.unmountComponentAtNode=function(e){if(!Pd(e))throw Error(Q(40));return e._reactRootContainer?(qo(function(){Id(null,null,e,!1,function(){e._reactRootContainer=null,e[ni]=null})}),!0):!1},Pn.unstable_batchedUpdates=lg,Pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pd(n))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return Id(e,t,n,!1,r)},Pn.version="18.3.1-next-f1338f8080-20240426";function yE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yE)}catch(e){console.error(e)}}yE(),fx.exports=Pn;var Qo=fx.exports,vE,xE=Qo;vE=xE.createRoot,xE.hydrateRoot;const wE="3.0.34";function Dd(e){"@babel/helpers - typeof";return Dd=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},Dd(e)}var eL=/^\s+/,tL=/\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=nL(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=SE(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=EE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=EE(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=bE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=bE(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 TE(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return aL(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:vL[TE(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+_E(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=fe(t);r="#"+_E(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(cL,arguments)},brighten:function(){return this._applyModification(dL,arguments)},darken:function(){return this._applyModification(fL,arguments)},desaturate:function(){return this._applyModification(sL,arguments)},saturate:function(){return this._applyModification(uL,arguments)},greyscale:function(){return this._applyModification(lL,arguments)},spin:function(){return this._applyModification(pL,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(gL,arguments)},complement:function(){return this._applyCombination(hL,arguments)},monochromatic:function(){return this._applyCombination(yL,arguments)},splitcomplement:function(){return this._applyCombination(mL,arguments)},triad:function(){return this._applyCombination(CE,[3])},tetrad:function(){return this._applyCombination(CE,[4])}},fe.fromRatio=function(e,t){if(Dd(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=$u(e[r]));e=n}return fe(e,t)};function nL(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=EL(e)),Dd(e)=="object"&&(ci(e.r)&&ci(e.g)&&ci(e.b)?(t=rL(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ci(e.h)&&ci(e.s)&&ci(e.v)?(r=$u(e.s),i=$u(e.v),t=oL(e.h,r,i),a=!0,s="hsv"):ci(e.h)&&ci(e.s)&&ci(e.l)&&(r=$u(e.s),o=$u(e.l),t=iL(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=SE(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 rL(e,t,n){return{r:at(e,255)*255,g:at(t,255)*255,b:at(n,255)*255}}function bE(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 iL(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 EE(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 oL(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 TE(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 aL(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(AE(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 _E(e,t,n,r){var i=[wr(AE(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 sL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s-=t/100,n.s=Ld(n.s),fe(n)}function uL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s+=t/100,n.s=Ld(n.s),fe(n)}function lL(e){return fe(e).desaturate(100)}function cL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l+=t/100,n.l=Ld(n.l),fe(n)}function dL(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 fL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l-=t/100,n.l=Ld(n.l),fe(n)}function pL(e,t){var n=fe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,fe(n)}function hL(e){var t=fe(e).toHsl();return t.h=(t.h+180)%360,fe(t)}function CE(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 mL(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 gL(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 yL(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=TL(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 xg=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"},vL=fe.hexNames=xL(xg);function xL(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function SE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function at(e,t){wL(e)&&(e="100%");var n=bL(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 Ld(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function wL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function bL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function wr(e){return e.length==1?"0"+e:""+e}function $u(e){return e<=1&&(e=e*100+"%"),e}function AE(e){return Math.round(parseFloat(e)*255).toString(16)}function kE(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 ci(e){return!!br.CSS_UNIT.exec(e)}function EL(e){e=e.replace(eL,"").replace(tL,"").toLowerCase();var t=!1;if(xg[e])e=xg[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:kE(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:kE(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 TL(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 _L=350,RE=400,NE=600,wg={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},PE=({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 CL(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 Wu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const bg=e=>Array.isArray(e);function IE(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 Yu(e){return typeof e=="string"||Array.isArray(e)}function OE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Eg(e,t,n,r){if(typeof t=="function"){const[i,o]=OE(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]=OE(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Md(e,t,n){const r=e.getProps();return Eg(r,t,n!==void 0?n:r.custom,e)}const Tg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_g=["initial",...Tg],qu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qi=new Set(qu),di=e=>e*1e3,fi=e=>e/1e3,SL={type:"spring",stiffness:500,damping:25,restSpeed:10},AL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kL={type:"keyframes",duration:.8},RL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NL=(e,{keyframes:t})=>t.length>2?kL:Qi.has(e)?e.startsWith("scale")?AL(t[1]):SL:RL;function Cg(e,t){return e?e[t]||e.default||e:void 0}const PL={skipAnimations:!1,useManualTiming:!1},IL=e=>e!==null;function Fd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(IL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Zt=e=>e;function OL(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 Bd=["read","resolveKeyframes","update","preRender","render","postRender"],DL=40;function DE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Bd.reduce((g,x)=>(g[x]=OL(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,DL),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:Bd.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<Bd.length;x++)a[Bd[x]].cancel(g)},state:i,steps:a}}const{schedule:Xe,cancel:Zi,state:$t,steps:Sg}=DE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zt,!0),LE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,LL=1e-7,ML=12;function FL(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=LE(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>LL&&++s<ML);return a}function Gu(e,t,n,r){if(e===t&&n===r)return Zt;const i=o=>FL(o,0,1,e,n);return o=>o===0||o===1?o:LE(i(o),t,r)}const ME=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FE=e=>t=>1-e(1-t),BE=Gu(.33,1.53,.69,.99),Ag=FE(BE),jE=ME(Ag),UE=e=>(e*=2)<1?.5*Ag(e):.5*(2-Math.pow(2,-10*(e-1))),kg=e=>1-Math.sin(Math.acos(e)),zE=FE(kg),HE=ME(kg),VE=e=>/^0[^.\s]+$/u.test(e);function BL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||VE(e):!0}let Rg=Zt;const $E=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),WE=e=>t=>typeof t=="string"&&t.startsWith(e),YE=WE("--"),jL=WE("var(--"),Ng=e=>jL(e)?UL.test(e.split("/*")[0].trim()):!1,UL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function HL(e){const t=zL.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function qE(e,t,n=1){const[r,i]=HL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return $E(a)?parseFloat(a):a}return Ng(i)?qE(i,t,n+1):i}const Ji=(e,t,n)=>n>t?t:n<e?e:n,es={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ku={...es,transform:e=>Ji(0,1,e)},jd={...es,default:1},Xu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),eo=Xu("deg"),Fr=Xu("%"),ye=Xu("px"),VL=Xu("vh"),$L=Xu("vw"),GE={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},WL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),KE=e=>e===es||e===ye,XE=(e,t)=>parseFloat(e.split(", ")[t]),QE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return XE(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?XE(o[1],e):0}},YL=new Set(["x","y","z"]),qL=qu.filter(e=>!YL.has(e));function GL(e){const t=[];return qL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ts={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:QE(4,13),y:QE(5,14)};ts.translateX=ts.x,ts.translateY=ts.y;const ZE=e=>t=>t.test(e),JE=[es,ye,Fr,eo,$L,VL,{test:e=>e==="auto",parse:e=>e}],eT=e=>JE.find(ZE(e)),Zo=new Set;let Pg=!1,Ig=!1;function tT(){if(Ig){const e=Array.from(Zo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=GL(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)})}Ig=!1,Pg=!1,Zo.forEach(e=>e.complete()),Zo.clear()}function nT(){Zo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ig=!0)})}function KL(){nT(),tT()}class Og{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?(Zo.add(this),Pg||(Pg=!0,Xe.read(nT),Xe.resolveKeyframes(tT))):(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),Zo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Qu=e=>Math.round(e*1e5)/1e5,Dg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XL(e){return e==null}const QL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lg=(e,t)=>n=>!!(typeof n=="string"&&QL.test(n)&&n.startsWith(e)||t&&!XL(n)&&Object.prototype.hasOwnProperty.call(n,t)),rT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Dg);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},ZL=e=>Ji(0,255,e),Mg={...es,transform:e=>Math.round(ZL(e))},Jo={test:Lg("rgb","red"),parse:rT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Mg.transform(e)+", "+Mg.transform(t)+", "+Mg.transform(n)+", "+Qu(Ku.transform(r))+")"};function JL(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 Fg={test:Lg("#"),parse:JL,transform:Jo.transform},ns={test:Lg("hsl","hue"),parse:rT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Qu(t))+", "+Fr.transform(Qu(n))+", "+Qu(Ku.transform(r))+")"},Jt={test:e=>Jo.test(e)||Fg.test(e)||ns.test(e),parse:e=>Jo.test(e)?Jo.parse(e):ns.test(e)?ns.parse(e):Fg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jo.transform(e):ns.transform(e)},e4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function t4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(e4))===null||n===void 0?void 0:n.length)||0)>0}const iT="number",oT="color",n4="var",r4="var(",aT="${}",i4=/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 Zu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(i4,u=>(Jt.test(u)?(r.color.push(o),i.push(oT),n.push(Jt.parse(u))):u.startsWith(r4)?(r.var.push(o),i.push(n4),n.push(u)):(r.number.push(o),i.push(iT),n.push(parseFloat(u))),++o,aT)).split(aT);return{values:n,split:s,indexes:r,types:i}}function sT(e){return Zu(e).values}function uT(e){const{split:t,types:n}=Zu(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===iT?o+=Qu(i[a]):s===oT?o+=Jt.transform(i[a]):o+=i[a]}return o}}const o4=e=>typeof e=="number"?0:e;function a4(e){const t=sT(e);return uT(e)(t.map(o4))}const to={test:t4,parse:sT,createTransformer:uT,getAnimatableNone:a4},s4=new Set(["brightness","contrast","saturate","opacity"]);function u4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dg)||[];if(!r)return e;const i=n.replace(r,"");let o=s4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const l4=/\b([a-z-]*)\(.*?\)/gu,Bg={...to,getAnimatableNone:e=>{const t=e.match(l4);return t?t.map(u4).join(" "):e}},c4={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},d4={rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scale:jd,scaleX:jd,scaleY:jd,scaleZ:jd,skew:eo,skewX:eo,skewY:eo,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Ku,originX:GE,originY:GE,originZ:ye},lT={...es,transform:Math.round},jg={...c4,...d4,zIndex:lT,size:ye,fillOpacity:Ku,strokeOpacity:Ku,numOctaves:lT},f4={...jg,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:Bg,WebkitFilter:Bg},Ug=e=>f4[e];function cT(e,t){let n=Ug(e);return n!==Bg&&(n=to),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const p4=new Set(["auto","none","0"]);function h4(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!p4.has(o)&&Zu(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=cT(n,i)}class dT extends Og{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(),Ng(l))){const c=qE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!WL.has(r)||t.length!==2)return;const[i,o]=t,a=eT(i),s=eT(o);if(a!==s)if(KE(a)&&KE(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++)BL(t[i])&&r.push(i);r.length&&h4(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=ts[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]=ts[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 zg(e){return typeof e=="function"}let Ud;function m4(){Ud=void 0}const Br={now:()=>(Ud===void 0&&Br.set($t.isProcessing||PL.useManualTiming?$t.timestamp:performance.now()),Ud),set:e=>{Ud=e,queueMicrotask(m4)}},fT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function g4(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 y4(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=fT(i,t),s=fT(o,t);return!a||!s?!1:g4(e)||(n==="spring"||zg(n))&&r}const v4=40;class pT{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>v4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&KL(),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&&!y4(t,r,i,o))if(a)this.options.duration=0;else{u==null||u(Fd(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 hT(e,t){return t?e*(1e3/t):0}const x4=5;function mT(e,t,n){const r=Math.max(t-x4,0);return hT(n-e(r),t-r)}const Hg=.001,w4=.01,b4=10,E4=.05,T4=1;function _4({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=Ji(E4,T4,a),e=Ji(w4,b4,fi(e)),a<1?(i=l=>{const c=l*a,d=c*e,f=c-n,p=Vg(l,a),m=Math.exp(-d);return Hg-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=Vg(Math.pow(l,2),a);return(-i(l)+Hg>0?-1:1)*((f-p)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Hg+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=S4(i,o,s);if(e=di(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 C4=12;function S4(e,t,n){let r=n;for(let i=1;i<C4;i++)r=r-e(r)/t(r);return r}function Vg(e,t){return e*Math.sqrt(1-t*t)}const A4=["duration","bounce"],k4=["stiffness","damping","mass"];function gT(e,t){return t.some(n=>e[n]!==void 0)}function R4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!gT(e,k4)&&gT(e,A4)){const n=_4(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function yT({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}=R4({...r,velocity:-fi(r.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(s*l)),y=o-i,b=fi(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=Vg(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?di(p):mT(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 vT({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=yT({keyframes:[f.value,m(f.value)],velocity:mT(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 N4=Gu(.42,0,1,1),P4=Gu(0,0,.58,1),xT=Gu(.42,0,.58,1),I4=e=>Array.isArray(e)&&typeof e[0]!="number",$g=e=>Array.isArray(e)&&typeof e[0]=="number",wT={linear:Zt,easeIn:N4,easeInOut:xT,easeOut:P4,circIn:kg,circInOut:HE,circOut:zE,backIn:Ag,backInOut:jE,backOut:BE,anticipate:UE},bT=e=>{if($g(e)){Rg(e.length===4);const[t,n,r,i]=e;return Gu(t,n,r,i)}else if(typeof e=="string")return Rg(wT[e]!==void 0),wT[e];return e},O4=(e,t)=>n=>t(e(n)),pi=(...e)=>e.reduce(O4),rs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ft=(e,t,n)=>e+(t-e)*n;function Wg(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 D4({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=Wg(u,s,e+1/3),o=Wg(u,s,e),a=Wg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function zd(e,t){return n=>n>0?t:e}const Yg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},L4=[Fg,Jo,ns],M4=e=>L4.find(t=>t.test(e));function ET(e){const t=M4(e);if(!t)return!1;let n=t.parse(e);return t===ns&&(n=D4(n)),n}const TT=(e,t)=>{const n=ET(e),r=ET(t);if(!n||!r)return zd(e,t);const i={...n};return o=>(i.red=Yg(n.red,r.red,o),i.green=Yg(n.green,r.green,o),i.blue=Yg(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),Jo.transform(i))},qg=new Set(["none","hidden"]);function F4(e,t){return qg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function B4(e,t){return n=>ft(e,t,n)}function Gg(e){return typeof e=="number"?B4:typeof e=="string"?Ng(e)?zd:Jt.test(e)?TT:z4:Array.isArray(e)?_T:typeof e=="object"?Jt.test(e)?TT:j4:zd}function _T(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Gg(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function j4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Gg(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function U4(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 z4=(e,t)=>{const n=to.createTransformer(t),r=Zu(e),i=Zu(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?qg.has(e)&&!i.values.length||qg.has(t)&&!r.values.length?F4(e,t):pi(_T(U4(r,i),i.values),n):zd(e,t)};function CT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):Gg(e)(e,t)}function H4(e,t,n){const r=[],i=n||CT,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=pi(u,s)}r.push(s)}return r}function V4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Rg(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=H4(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=rs(e[c],e[c+1],l);return a[c](d)};return n?l=>u(Ji(e[0],e[o-1],l)):u}function $4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=rs(0,t,r);e.push(ft(n,1,i))}}function W4(e){const t=[0];return $4(t,e.length-1),t}function Y4(e,t){return e.map(n=>n*t)}function q4(e,t){return e.map(()=>t||xT).splice(0,e.length-1)}function Hd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=I4(r)?r.map(bT):bT(r),o={done:!1,value:t[0]},a=Y4(n&&n.length===t.length?n:W4(t),e),s=V4(a,t,{ease:Array.isArray(i)?i:q4(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}const ST=2e4;function G4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ST;)t+=n,r=e.next(t);return t>=ST?1/0:t}const K4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xe.update(t,!0),stop:()=>Zi(t),now:()=>$t.isProcessing?$t.timestamp:Br.now()}},X4={decay:vT,inertia:vT,tween:Hd,keyframes:Hd,spring:yT},Q4=e=>e/100;class Kg extends pT{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)||Og,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=zg(n)?n:X4[n]||Hd;let u,l;s!==Hd&&typeof t[0]!="number"&&(u=pi(Q4,CT(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=G4(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=Ji(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=Fd(u,this.options,i)),b&&b(_.value),R&&this.finish(),_}get duration(){const{resolved:t}=this;return t?fi(t.calculatedDuration):0}get time(){return fi(this.currentTime)}set time(t){t=di(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=fi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=K4,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 AT=new Set(["opacity","clipPath","filter","transform"]),Z4=10,J4=(e,t)=>{let n="";const r=Math.max(Math.round(t/Z4),2);for(let i=0;i<r;i++)n+=e(rs(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Xg(e){let t;return()=>(t===void 0&&(t=e()),t)}const eM={linearEasing:void 0};function tM(e,t){const n=Xg(e);return()=>{var r;return(r=eM[t])!==null&&r!==void 0?r:n()}}const Vd=tM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function kT(e){return!!(typeof e=="function"&&Vd()||!e||typeof e=="string"&&(e in Qg||Vd())||$g(e)||Array.isArray(e)&&e.every(kT))}const Ju=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ju([0,.65,.55,1]),circOut:Ju([.55,0,1,.45]),backIn:Ju([.31,.01,.66,-.59]),backOut:Ju([.33,1.53,.69,.99])};function RT(e,t){if(e)return typeof e=="function"&&Vd()?J4(e,t):$g(e)?Ju(e):Array.isArray(e)?e.map(n=>RT(n,t)||Qg.easeOut):Qg[e]}function nM(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=RT(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 NT(e,t){e.timeline=t,e.onfinish=null}const rM=Xg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$d=10,iM=2e4;function oM(e){return zg(e.type)||e.type==="spring"||!kT(e.ease)}function aM(e,t){const n=new Kg({...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<iM;)r=n.sample(o),i.push(r.value),o+=$d;return{times:void 0,keyframes:i,duration:o-$d,ease:"linear"}}const PT={anticipate:UE,backInOut:jE,circInOut:HE};function sM(e){return e in PT}class IT extends pT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new dT(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"&&Vd()&&sM(a)&&(a=PT[a]),oM(this.options)){const{onComplete:f,onUpdate:p,motionValue:m,element:y,...b}=this.options,g=aM(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=nM(u.owner.current,l,t,{...this.options,duration:i,times:o,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(NT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Fd(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 fi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=di(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;NT(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 Kg({...p,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),y=di(this.time);l.setWithVelocity(m.sample(y-$d).value,m.sample(y).value,$d)}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 rM()&&r&&AT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const uM=Xg(()=>window.ScrollTimeline!==void 0);class lM{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=>uM()&&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 cM({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 Zg=(e,t,n,r={},i,o)=>a=>{const s=Cg(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-di(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};cM(s)||(c={...c,...NL(e,c)}),c.duration&&(c.duration=di(c.duration)),c.repeatDelay&&(c.repeatDelay=di(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=Fd(c.keyframes,s);if(f!==void 0)return Xe.update(()=>{c.onUpdate(f),c.onComplete()}),new lM([])}return!o&&IT.supports(c)?new IT(c):new Kg(c)},dM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fM=e=>bg(e)?e[e.length-1]||0:e;function Jg(e,t){e.indexOf(t)===-1&&e.push(t)}function e0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class t0{constructor(){this.subscriptions=[]}add(t){return Jg(this.subscriptions,t),()=>e0(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 OT=30,pM=e=>!isNaN(parseFloat(e));class hM{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=pM(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 t0);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>OT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,OT);return hT(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 el(e,t){return new hM(e,t)}function mM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,el(n))}function gM(e,t){const n=Md(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=fM(o[a]);mM(e,a,s)}}const Wd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),DT="data-"+Wd("framerAppearId");function LT(e){return e.props[DT]}const en=e=>!!(e&&e.getVelocity);function yM(e){return!!(en(e)&&e.add)}function n0(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(yM(n))return n.add(t)}function vM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function MT(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&&vM(c,d))continue;const m={delay:n,...Cg(a||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=LT(e);if(g){const x=window.MotionHandoffAnimation(g,d,Xe);x!==null&&(m.startTime=x,y=!0)}}n0(e,d),f.start(Zg(d,f,p,e.shouldReduceMotion&&Qi.has(d)?{type:!1}:m,e,y));const b=f.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{Xe.update(()=>{s&&gM(e,s)})}),l}function r0(e,t,n={}){var r;const i=Md(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(MT(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return xM(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 xM(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(wM).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(r0(l,t,{...o,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function wM(e,t){return e.sortNodePosition(t)}function bM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>r0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=r0(e,t,n);else{const i=typeof t=="function"?Md(e,t,n.custom):t;r=Promise.all(MT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const EM=_g.length;function FT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?FT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<EM;n++){const r=_g[n],i=e.props[r];(Yu(i)||i===!1)&&(t[r]=i)}return t}const TM=[...Tg].reverse(),_M=Tg.length;function CM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>bM(e,n,r)))}function SM(e){let t=CM(e),n=BT(),r=!0;const i=u=>(l,c)=>{var d;const f=Md(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=FT(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let b=0;b<_M;b++){const g=TM[b],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=Yu(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||Wu(w)||typeof w=="boolean")continue;const R=AM(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=ee=>{O=!0,f.has(ee)&&(V=!0,f.delete(ee)),x.needsAnimating[ee]=!0;const F=e.getValue(ee);F&&(F.liveStyle=!1)};for(const ee in X){const F=$[ee],B=z[ee];if(p.hasOwnProperty(ee))continue;let A=!1;bg(F)&&bg(B)?A=!IE(F,B):A=F!==B,A?F!=null?Y(ee):f.add(ee):F!==void 0&&f.has(ee)?Y(ee):x.protectedKeys[ee]=!0}x.prevProp=w,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(C&&R)||V)&&d.push(...P.map(ee=>({animation:ee,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=BT(),r=!0}}}function AM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!IE(t,e):!1}function ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function BT(){return{animate:ea(!0),whileInView:ea(),whileHover:ea(),whileTap:ea(),whileDrag:ea(),whileFocus:ea(),exit:ea()}}class no{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kM extends no{constructor(t){super(t),t.animationState||(t.animationState=SM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wu(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 RM=0;class NM extends no{constructor(){super(...arguments),this.id=RM++}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 PM={animation:{Feature:kM},exit:{Feature:NM}},jT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yd(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const IM=e=>t=>jT(t)&&e(t,Yd(t));function hi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mi(e,t,n,r){return hi(e,t,IM(n),r)}const UT=(e,t)=>Math.abs(e-t);function OM(e,t){const n=UT(e.x,t.x),r=UT(e.y,t.y);return Math.sqrt(n**2+r**2)}class zT{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=o0(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=OM(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=i0(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=o0(d.type==="pointercancel"?this.lastMoveEventInfo:i0(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),m&&m(d,b)},!jT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Yd(t),s=i0(a,this.transformPagePoint),{point:u}=s,{timestamp:l}=$t;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,o0(s,this.history)),this.removeListeners=pi(mi(this.contextWindow,"pointermove",this.handlePointerMove),mi(this.contextWindow,"pointerup",this.handlePointerUp),mi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zi(this.updatePoint)}}function i0(e,t){return t?{point:t(e.point)}:e}function HT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function o0({point:e},t){return{point:e,delta:HT(e,VT(t)),offset:HT(e,DM(t)),velocity:LM(t,.1)}}function DM(e){return e[0]}function VT(e){return e[e.length-1]}function LM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=VT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>di(t)));)n--;if(!r)return{x:0,y:0};const o=fi(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 $T(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const WT=$T("dragHorizontal"),YT=$T("dragVertical");function qT(e){let t=!1;if(e==="y")t=YT();else if(e==="x")t=WT();else{const n=WT(),r=YT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function GT(){const e=qT(!0);return e?(e(),!1):!0}function is(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const KT=1e-4,MM=1-KT,FM=1+KT,XT=.01,BM=0-XT,jM=0+XT;function Bn(e){return e.max-e.min}function UM(e,t,n){return Math.abs(e-t)<=n}function QT(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>=MM&&e.scale<=FM||isNaN(e.scale))&&(e.scale=1),(e.translate>=BM&&e.translate<=jM||isNaN(e.translate))&&(e.translate=0)}function tl(e,t,n,r){QT(e.x,t.x,n.x,r?r.originX:void 0),QT(e.y,t.y,n.y,r?r.originY:void 0)}function ZT(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function zM(e,t,n){ZT(e.x,t.x,n.x),ZT(e.y,t.y,n.y)}function JT(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function nl(e,t,n){JT(e.x,t.x,n.x),JT(e.y,t.y,n.y)}function HM(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 e_(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 VM(e,{top:t,left:n,bottom:r,right:i}){return{x:e_(e.x,n,i),y:e_(e.y,t,r)}}function t_(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 $M(e,t){return{x:t_(e.x,t.x),y:t_(e.y,t.y)}}function WM(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=rs(t.min,t.max-r,e.min):r>i&&(n=rs(e.min,e.max-i,t.min)),Ji(0,1,n)}function YM(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 a0=.35;function qM(e=a0){return e===!1?e=0:e===!0&&(e=a0),{x:n_(e,"left","right"),y:n_(e,"top","bottom")}}function n_(e,t,n){return{min:r_(e,t),max:r_(e,n)}}function r_(e,t){return typeof e=="number"?e:e[t]||0}const i_=()=>({translate:0,scale:1,origin:0,originPoint:0}),os=()=>({x:i_(),y:i_()}),o_=()=>({min:0,max:0}),bt=()=>({x:o_(),y:o_()});function nr(e){return[e("x"),e("y")]}function a_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function GM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function KM(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 s0(e){return e===void 0||e===1}function u0({scale:e,scaleX:t,scaleY:n}){return!s0(e)||!s0(t)||!s0(n)}function ta(e){return u0(e)||s_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s_(e){return u_(e.x)||u_(e.y)}function u_(e){return e&&e!=="0%"}function qd(e,t,n){const r=e-n,i=t*r;return n+i}function l_(e,t,n,r,i){return i!==void 0&&(e=qd(e,i,r)),qd(e,n,r)+t}function l0(e,t=0,n=1,r,i){e.min=l_(e.min,t,n,r,i),e.max=l_(e.max,t,n,r,i)}function c_(e,{x:t,y:n}){l0(e.x,t.translate,t.scale,t.originPoint),l0(e.y,n.translate,n.scale,n.originPoint)}const d_=.999999999999,f_=1.0000000000001;function XM(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&&ss(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,c_(e,a)),r&&ta(o.latestValues)&&ss(e,o.latestValues))}t.x<f_&&t.x>d_&&(t.x=1),t.y<f_&&t.y>d_&&(t.y=1)}function as(e,t){e.min=e.min+t,e.max=e.max+t}function p_(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);l0(e,t,n,o,r)}function ss(e,t){p_(e.x,t.x,t.scaleX,t.scale,t.originX),p_(e.y,t.y,t.scaleY,t.scale,t.originY)}function h_(e,t){return a_(KM(e.getBoundingClientRect(),t))}function QM(e,t,n){const r=h_(e,n),{scroll:i}=t;return i&&(as(r.x,i.offset.x),as(r.y,i.offset.y)),r}const m_=({current:e})=>e?e.ownerDocument.defaultView:null,ZM=new WeakMap;class JM{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(Yd(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=qT(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)),n0(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=e5(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 zT(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:m_(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||!Gd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=HM(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&&is(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=VM(i.layoutBox,n):this.constraints=!1,this.elastic=qM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=YM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!is(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QM(r,i.root,this.visualElement.getTransformPagePoint());let a=$M(i.layout.layoutBox,o);if(n){const s=n(GM(a));this.hasMutatedConstraints=!!s,s&&(a=a_(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(!Gd(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 n0(this.visualElement,t),r.start(Zg(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(!Gd(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(!is(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]=WM({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(!Gd(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;ZM.set(this.visualElement,this);const t=this.visualElement.current,n=mi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();is(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=hi(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=a0,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Gd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function e5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class t5 extends no{constructor(t){super(t),this.removeGroupControls=Zt,this.removeListeners=Zt,this.controls=new JM(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 g_=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};class n5 extends no{constructor(){super(...arguments),this.removePointerDownListener=Zt}onPointerDown(t){this.session=new zT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:g_(t),onStart:g_(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Xe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=mi(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 Kd=v.createContext(null);function r5(){const e=v.useContext(Kd);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 c0=v.createContext({}),y_=v.createContext({}),Xd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function v_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=v_(e,t.target.x),r=v_(e,t.target.y);return`${n}% ${r}%`}},i5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=to.parse(e);if(i.length>5)return r;const o=to.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)}},Qd={};function o5(e){Object.assign(Qd,e)}const{schedule:d0,cancel:kie}=DE(queueMicrotask,!1);class a5 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o5(s5),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()})),Xd.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(),d0.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 x_(e){const[t,n]=r5(),r=v.useContext(c0);return E.jsx(a5,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(y_),isPresent:t,safeToRemove:n})}const s5={borderRadius:{...rl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rl,borderTopRightRadius:rl,borderBottomLeftRadius:rl,borderBottomRightRadius:rl,boxShadow:i5},w_=["TopLeft","TopRight","BottomLeft","BottomRight"],u5=w_.length,b_=e=>typeof e=="string"?parseFloat(e):e,E_=e=>typeof e=="number"||ye.test(e);function l5(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,c5(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,d5(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<u5;a++){const s=`border${w_[a]}Radius`;let u=T_(t,s),l=T_(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||E_(u)===E_(l)?(e[s]=Math.max(ft(b_(u),b_(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 T_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const c5=__(0,.5,zE),d5=__(.5,.95,Zt);function __(e,t,n){return r=>r<e?0:r>t?1:n(rs(e,t,r))}function C_(e,t){e.min=t.min,e.max=t.max}function rr(e,t){C_(e.x,t.x),C_(e.y,t.y)}function S_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function A_(e,t,n,r,i){return e-=t,e=qd(e,1/n,r),i!==void 0&&(e=qd(e,1/i,r)),e}function f5(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=A_(e.min,t,n,s,i),e.max=A_(e.max,t,n,s,i)}function k_(e,t,[n,r,i],o,a){f5(e,t[n],t[r],t[i],t.scale,o,a)}const p5=["x","scaleX","originX"],h5=["y","scaleY","originY"];function R_(e,t,n,r){k_(e.x,t,p5,n?n.x:void 0,r?r.x:void 0),k_(e.y,t,h5,n?n.y:void 0,r?r.y:void 0)}function N_(e){return e.translate===0&&e.scale===1}function P_(e){return N_(e.x)&&N_(e.y)}function I_(e,t){return e.min===t.min&&e.max===t.max}function m5(e,t){return I_(e.x,t.x)&&I_(e.y,t.y)}function O_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function D_(e,t){return O_(e.x,t.x)&&O_(e.y,t.y)}function L_(e){return Bn(e.x)/Bn(e.y)}function M_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class g5{constructor(){this.members=[]}add(t){Jg(this.members,t),t.scheduleRender()}remove(t){if(e0(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 y5(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 v5=(e,t)=>e.depth-t.depth;class x5{constructor(){this.children=[],this.isDirty=!1}add(t){Jg(this.children,t),this.isDirty=!0}remove(t){e0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(v5),this.isDirty=!1,this.children.forEach(t)}}function Zd(e){const t=en(e)?e.get():e;return dM(t)?t.toValue():t}function w5(e,t){const n=Br.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Zi(r),e(o-t))};return Xe.read(r,!0),()=>Zi(r)}function b5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function E5(e,t,n){const r=en(e)?e:el(e);return r.start(Zg("",r,t,n)),r.animation}const na={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},il=typeof window<"u"&&window.MotionDebug!==void 0,f0=["","X","Y","Z"],T5={visibility:"hidden"},F_=1e3;let _5=0;function p0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function B_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=LT(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&&B_(r)}function j_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=_5++,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,il&&(na.totalNodes=na.resolvedTargetDeltas=na.recalculatedProjection=0),this.nodes.forEach(A5),this.nodes.forEach(I5),this.nodes.forEach(O5),this.nodes.forEach(k5),il&&window.MotionDebug.record(na)},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 x5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new t0),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=b5(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=w5(f,250),Xd.hasAnimatedSinceResize&&(Xd.hasAnimatedSinceResize=!1,this.nodes.forEach(z_))})}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()||B5,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!D_(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={...Cg(y,"layout"),onPlay:b,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||z_(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,Zi(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(D5),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&&B_(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(U_);return}this.isUpdating||this.nodes.forEach(N5),this.isUpdating=!1,this.nodes.forEach(P5),this.nodes.forEach(C5),this.nodes.forEach(S5),this.clearAllSnapshots();const s=Br.now();$t.delta=Ji(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,Sg.update.process($t),Sg.preRender.process($t),Sg.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R5),this.sharedNodes.forEach(L5)}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&&!P_(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||ta(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)),j5(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(U5))){const{scroll:c}=this.root;c&&(as(u.x,c.offset.x),as(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),as(u.x,d.offset.x),as(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&&ss(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ta(c.latestValues)&&ss(u,c.latestValues)}return ta(this.latestValues)&&ss(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||!ta(l.latestValues))continue;u0(l.latestValues)&&l.updateSnapshot();const c=bt(),d=l.measurePageBox();rr(c,d),R_(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return ta(this.latestValues)&&R_(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(),nl(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(),zM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),c_(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(),nl(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}il&&na.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||u0(this.parent.latestValues)||s_(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;XM(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():(S_(this.prevProjectionDelta.x,this.projectionDelta.x),S_(this.prevProjectionDelta.y,this.projectionDelta.y)),tl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!M_(this.projectionDelta.x,this.prevProjectionDelta.x)||!M_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),il&&na.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=os(),this.projectionDelta=os(),this.projectionDeltaWithTransform=os()}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=os();(!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(F5));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const _=T/1e3;H_(d.x,a.x,_),H_(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),M5(this.relativeTarget,this.relativeTargetOrigin,f,_),w&&m5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=bt()),rr(w,this.relativeTarget)),y&&(this.animationValues=c,l5(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&&(Zi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Xd.hasAnimatedSinceResize=!0,this.currentAnimation=E5(0,F_,{...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(F_),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&&q_(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),ss(s,c),tl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new g5),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&&p0("z",a,l,this.animationValues);for(let c=0;c<f0.length;c++)p0(`rotate${f0[c]}`,a,l,this.animationValues),p0(`skew${f0[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 T5;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Zd(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=Zd(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ta(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=y5(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 Qd){if(f[y]===void 0)continue;const{correct:b,applyTo:g}=Qd[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?Zd(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(U_),this.root.sharedNodes.clear()}}}function C5(e){e.updateLayout()}function S5(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}):q_(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=os();tl(s,r,n.layoutBox);const u=os();a?tl(u,e.applyTransform(i,!0),n.measuredBox):tl(u,r,n.layoutBox);const l=!P_(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();nl(m,n.layoutBox,f.layoutBox);const y=bt();nl(y,r,p.layoutBox),D_(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 A5(e){il&&na.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 k5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R5(e){e.clearSnapshot()}function U_(e){e.clearMeasurements()}function N5(e){e.isLayoutDirty=!1}function P5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function z_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function I5(e){e.resolveTargetDelta()}function O5(e){e.calcProjection()}function D5(e){e.resetSkewAndRotation()}function L5(e){e.removeLeadSnapshot()}function H_(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 V_(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function M5(e,t,n,r){V_(e.x,t.x,n.x,r),V_(e.y,t.y,n.y,r)}function F5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const B5={duration:.45,ease:[.4,0,.1,1]},$_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),W_=$_("applewebkit/")&&!$_("chrome/")?Math.round:Zt;function Y_(e){e.min=W_(e.min),e.max=W_(e.max)}function j5(e){Y_(e.x),Y_(e.y)}function q_(e,t,n){return e==="position"||e==="preserve-aspect"&&!UM(L_(t),L_(n),.2)}function U5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const z5=j_({attachResizeListener:(e,t)=>hi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),h0={current:void 0},G_=j_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!h0.current){const e=new z5({});e.mount(window),e.setOptions({layoutScroll:!0}),h0.current=e}return h0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),H5={pan:{Feature:n5},drag:{Feature:t5,ProjectionNode:G_,MeasureLayout:x_}};function K_(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,a)=>{if(o.pointerType==="touch"||GT())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 mi(e.current,n,i,{passive:!e.getProps()[r]})}class V5 extends no{mount(){this.unmount=pi(K_(this.node,!0),K_(this.node,!1))}unmount(){}}class $5 extends no{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=pi(hi(this.node.current,"focus",()=>this.onFocus()),hi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const X_=(e,t)=>t?e===t?!0:X_(e,t.parentElement):!1;function m0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Yd(n))}class W5 extends no{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=mi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!X_(this.node.current,s.target)?c:l;f&&Xe.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),a=mi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pi(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()||m0("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Xe.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=hi(this.node.current,"keyup",a),m0("down",(s,u)=>{this.startPress(s,u)})},n=hi(this.node.current,"keydown",t),r=()=>{this.isPressing&&m0("cancel",(o,a)=>this.cancelPress(o,a))},i=hi(this.node.current,"blur",r);this.removeAccessibleListeners=pi(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),!GT()}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=mi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=hi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const g0=new WeakMap,y0=new WeakMap,Y5=e=>{const t=g0.get(e.target);t&&t(e)},q5=e=>{e.forEach(Y5)};function G5({root:e,...t}){const n=e||document;y0.has(n)||y0.set(n,{});const r=y0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(q5,{root:e,...t})),r[i]}function K5(e,t,n){const r=G5(t);return g0.set(e,n),r.observe(e),()=>{g0.delete(e),r.unobserve(e)}}const X5={some:0,all:1};class Q5 extends no{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:X5[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 K5(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(Z5(t,n))&&this.startObserver()}unmount(){}}function Z5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const J5={inView:{Feature:Q5},tap:{Feature:W5},focus:{Feature:$5},hover:{Feature:V5}},e8={layout:{ProjectionNode:G_,MeasureLayout:x_}},v0=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Jd=v.createContext({}),x0=typeof window<"u",Q_=x0?v.useLayoutEffect:v.useEffect,Z_=v.createContext({strict:!1});function t8(e,t,n,r,i){var o,a;const{visualElement:s}=v.useContext(Jd),u=v.useContext(Z_),l=v.useContext(Kd),c=v.useContext(v0).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(y_);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&n8(d.current,n,i,p),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[DT],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 Q_(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),d0.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 n8(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:J_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&is(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function J_(e){if(e)return e.options.allowProjection!==!1?e.projection:J_(e.parent)}function r8(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):is(n)&&(n.current=r))},[t])}function ef(e){return Wu(e.animate)||_g.some(t=>Yu(e[t]))}function e2(e){return!!(ef(e)||e.variants)}function i8(e,t){if(ef(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Yu(n)?n:void 0,animate:Yu(r)?r:void 0}}return e.inherit!==!1?t:{}}function o8(e){const{initial:t,animate:n}=i8(e,v.useContext(Jd));return v.useMemo(()=>({initial:t,animate:n}),[t2(t),t2(n)])}function t2(e){return Array.isArray(e)?e.join(" "):e}const n2={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"]},us={};for(const e in n2)us[e]={isEnabled:t=>n2[e].some(n=>!!t[n])};function a8(e){for(const t in e)us[t]={...us[t],...e[t]}}const s8=Symbol.for("motionComponentSymbol");function u8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&a8(e);function o(s,u){let l;const c={...v.useContext(v0),...s,layoutId:l8(s)},{isStatic:d}=c,f=o8(s),p=r(s,d);if(!d&&x0){c8();const m=d8(c);l=m.MeasureLayout,f.visualElement=t8(i,p,c,t,m.ProjectionNode)}return E.jsxs(Jd.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,r8(p,f.visualElement,u),p,d,f.visualElement)]})}const a=v.forwardRef(o);return a[s8]=i,a}function l8({layoutId:e}){const t=v.useContext(c0).id;return t&&e!==void 0?t+"-"+e:e}function c8(e,t){v.useContext(Z_).strict}function d8(e){const{drag:t,layout:n}=us;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 f8=["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 w0(e){return typeof e!="string"||e.includes("-")?!1:!!(f8.indexOf(e)>-1||/[A-Z]/u.test(e))}function r2(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 i2=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 o2(e,t,n,r){r2(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(i2.has(i)?i:Wd(i),t.attrs[i])}function a2(e,{layout:t,layoutId:n}){return Qi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qd[e]||e==="opacity")}function b0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(en(i[a])||t.style&&en(t.style[a])||a2(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 s2(e,t,n){const r=b0(e,t,n);for(const i in e)if(en(e[i])||en(t[i])){const o=qu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function E0(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function p8(e){if(Qi.has(e))return"transform";if(AT.has(e))return Wd(e)}function h8({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,a,s){const u={latestValues:m8(i,o,a,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const u2=e=>(t,n)=>{const r=v.useContext(Jd),i=v.useContext(Kd),o=()=>h8(e,t,r,i,n);return n?o():E0(o)};function l2(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const o=Eg(e,r[i]);if(o){const{transitionEnd:a,transition:s,...u}=o;n(u,a)}}}function m8(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]=Zd(l[b]);let{initial:c,animate:d}=e;const f=ef(e),p=e2(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"&&!Wu(y)&&l2(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&&!Wu(d)&&l2(e,d,b=>{for(const g in b){const x=p8(g);x&&s.add(x)}}),s.size&&(a.willChange=Array.from(s).join(","))),a}const T0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),c2=()=>({...T0(),attrs:{}}),d2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,g8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},y8=qu.length;function v8(e,t,n){let r="",i=!0;for(let o=0;o<y8;o++){const a=qu[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=d2(s,jg[a]);if(!u){i=!1;const c=g8[a]||a;r+=`${c}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _0(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(Qi.has(u)){a=!0;continue}else if(YE(u)){i[u]=l;continue}else{const c=d2(l,jg[u]);u.startsWith("origin")?(s=!0,o[u]=c):r[u]=c}}if(t.transform||(a||n?r.transform=v8(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 f2(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function x8(e,t,n){const r=f2(t,e.x,e.width),i=f2(n,e.y,e.height);return`${r} ${i}`}const w8={offset:"stroke-dashoffset",array:"stroke-dasharray"},b8={offset:"strokeDashoffset",array:"strokeDasharray"};function E8(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?w8:b8;e[o.offset]=ye.transform(-r);const a=ye.transform(t),s=ye.transform(n);e[o.array]=`${a} ${s}`}function C0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(_0(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=x8(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&&E8(f,a,s,u,!1)}const S0=e=>typeof e=="string"&&e.toLowerCase()==="svg",T8={useVisualState:u2({scrapeMotionValuesFromProps:s2,createRenderState:c2,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(()=>{C0(n,r,S0(t.tagName),e.transformTemplate),o2(t,n)})}})},_8={useVisualState:u2({applyWillChange:!0,scrapeMotionValuesFromProps:b0,createRenderState:T0})};function p2(e,t,n){for(const r in t)!en(t[r])&&!a2(r,n)&&(e[r]=t[r])}function C8({transformTemplate:e},t){return v.useMemo(()=>{const n=T0();return _0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function S8(e,t){const n=e.style||{},r={};return p2(r,n,e),Object.assign(r,C8(e,t)),r}function A8(e,t){const n={},r=S8(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 k8=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 tf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||k8.has(e)}let h2=e=>!tf(e);function R8(e){e&&(h2=t=>t.startsWith("on")?!tf(t):e(t))}try{R8(require("@emotion/is-prop-valid").default)}catch{}function N8(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(h2(i)||n===!0&&tf(i)||!t&&!tf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function P8(e,t,n,r){const i=v.useMemo(()=>{const o=c2();return C0(o,t,S0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};p2(o,e.style,e),i.style={...o,...i.style}}return i}function I8(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(w0(n)?P8:A8)(r,o,a,n),l=N8(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 O8(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...w0(r)?T8:_8,preloadedFeatures:e,useRender:I8(i),createVisualElement:t,Component:r};return u8(a)}}const A0={current:null},m2={current:!1};function D8(){if(m2.current=!0,!!x0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>A0.current=e.matches;e.addListener(t),t()}else A0.current=!1}function L8(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,el(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,el(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const g2=new WeakMap,M8=[...JE,Jt,to],F8=e=>M8.find(ZE(e)),y2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class B8{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=Og,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=ef(n),this.isVariantNode=e2(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,g2.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)),m2.current||D8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:A0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){g2.delete(this.current),this.projection&&this.projection.unmount(),Zi(this.notifyUpdate),Zi(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=Qi.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 us){const n=us[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<y2.length;r++){const i=y2[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=L8(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=el(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"&&($E(i)||VE(i))?i=parseFloat(i):!F8(i)&&to.test(n)&&(i=cT(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=Eg(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 t0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class v2 extends B8{constructor(){super(...arguments),this.KeyframeResolver=dT}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 j8(e){return window.getComputedStyle(e)}class U8 extends v2{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=r2}readValueFromInstance(t,n){if(Qi.has(n)){const r=Ug(n);return r&&r.default||0}else{const r=j8(t),i=(YE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return h_(t,n)}build(t,n,r){_0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return b0(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 z8 extends v2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qi.has(n)){const r=Ug(n);return r&&r.default||0}return n=i2.has(n)?n:Wd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return s2(t,n,r)}build(t,n,r){C0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){o2(t,n,r,i)}mount(t){this.isSVGTag=S0(t.tagName),super.mount(t)}}const H8=(e,t)=>w0(e)?new z8(t):new U8(t,{allowProjection:e!==v.Fragment}),V8=O8({...PM,...J5,...H5,...e8},H8),ls=CL(V8);class $8 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 W8({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(v0);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 Vm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $m(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var R6=typeof WeakMap=="function"?WeakMap:Map;function Sb(e,t,n){n=si(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){wd||(wd=!0,og=r),$m(e,t)},n}function Ab(e,t,n){n=si(-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(){$m(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){$m(e,t),typeof r!="function"&&(Yi===null?Yi=new Set([this]):Yi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function kb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new R6;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=V6.bind(null,e,t,n),t.then(e,e))}function Rb(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 Nb(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=si(-1,1),t.tag=2,$i(n,t,1))),n.lanes|=1),e)}var N6=ti.ReactCurrentOwner,wn=!1;function dn(e,t,n,r){t.child=e===null?Xw(t,null,n,r):Wa(t,e.child,n,r)}function Pb(e,t,n,r,i){n=n.render;var o=t.ref;return qa(t,i),r=Lm(e,t,n,r,o,i),n=Mm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&n&&vm(t),t.flags|=1,dn(e,t,r,i),t.child)}function Ib(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ob(e,t,o,r,i)):(e=Sd(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:Tu,n(a,r)&&e.ref===t.ref)return ui(e,t,i)}return t.flags|=1,e=Xi(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ob(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Tu(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,ui(e,t,i)}return Wm(e,t,n,r,i)}function Db(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(Qa,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(Qa,Mn),Mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Je(Qa,Mn),Mn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Je(Qa,Mn),Mn|=r;return dn(e,t,i,n),t.child}function Lb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wm(e,t,n,r,i){var o=xn(n)?Uo:Gt.current;return o=za(t,o),qa(t,i),n=Lm(e,t,n,r,o,i),r=Mm(),e!==null&&!wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(ot&&r&&vm(t),t.flags|=1,dn(e,t,n,i),t.child)}function Mb(e,t,n,r,i){if(xn(n)){var o=!0;Qc(t)}else o=!1;if(qa(t,i),t.stateNode===null)md(e,t),_b(t,n,r),Hm(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)?Uo:Gt.current,l=za(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)&&Cb(t,a,r,l),Vi=!1;var f=t.memoizedState;a.state=f,ad(t,r,a,i),u=t.memoizedState,s!==r||f!==u||vn.current||Vi?(typeof c=="function"&&(zm(t,n,c,r),u=t.memoizedState),(s=Vi||Tb(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,Zw(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)?Uo:Gt.current,u=za(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)&&Cb(t,a,r,u),Vi=!1,f=t.memoizedState,a.state=f,ad(t,r,a,i);var m=t.memoizedState;s!==d||f!==m||vn.current||Vi?(typeof p=="function"&&(zm(t,n,p,r),m=t.memoizedState),(l=Vi||Tb(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 Ym(e,t,n,r,o,i)}function Ym(e,t,n,r,i,o){Lb(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&zw(t,n,!1),ui(e,t,o);r=t.stateNode,N6.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Wa(t,e.child,null,o),t.child=Wa(t,null,s,o)):dn(e,t,s,o),t.memoizedState=r.state,i&&zw(t,n,!0),t.child}function Fb(e){var t=e.stateNode;t.pendingContext?jw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jw(e,t.context,!1),Rm(e,t.containerInfo)}function Bb(e,t,n,r,i){return $a(),Em(i),t.flags|=256,dn(e,t,n,r),t.child}var qm={dehydrated:null,treeContext:null,retryLane:0};function Gm(e){return{baseLanes:e,cachePool:null,transitions:null}}function jb(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 bm(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=Ad(a,r,0,null),e=Xo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Gm(n),t.memoizedState=qm,e):Km(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return P6(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=Xi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Xi(s,o):(o=Xo(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?Gm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=qm,r}return o=e.child,e=o.sibling,r=Xi(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 Km(e,t){return t=Ad({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hd(e,t,n,r){return r!==null&&Em(r),Wa(t,e.child,null,n),e=Km(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P6(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Vm(Error(Q(422))),hd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ad({mode:"visible",children:r.children},i,0,null),o=Xo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Wa(t,e.child,null,a),t.child.memoizedState=Gm(a),t.memoizedState=qm,o);if(!(t.mode&1))return hd(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Q(419)),r=Vm(o,r,void 0),hd(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,ai(e,i),xr(r,e,i,-1))}return dg(),r=Vm(Error(Q(421))),hd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$6.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ln=ji(i.nextSibling),Dn=t,ot=!0,mr=null,e!==null&&(Xn[Qn++]=ii,Xn[Qn++]=oi,Xn[Qn++]=zo,ii=e.id,oi=e.overflow,zo=t),t=Km(t,r.children),t.flags|=4096,t)}function Ub(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sm(e.return,t,n)}function Xm(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 zb(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&&Ub(e,n,t);else if(e.tag===19)Ub(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&&sd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xm(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&&sd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xm(t,!0,n,null,o);break;case"together":Xm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function md(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ui(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=Xi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function I6(e,t,n){switch(t.tag){case 3:Fb(t),$a();break;case 5:tb(t);break;case 1:xn(t.type)&&Qc(t);break;case 4:Rm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Je(rd,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?jb(e,t,n):(Je(ct,ct.current&1),e=ui(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 zb(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,Db(e,t,n)}return ui(e,t,n)}var Hb,Qm,Vb,$b;Hb=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}},Qm=function(){},Vb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$o(Dr.current);var o=null;switch(n){case"input":i=Sh(e,i),r=Sh(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=Rh(e,i),r=Rh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gc)}Ph(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"&&(nu.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"&&(nu.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)}},$b=function(e,t,n,r){n!==r&&(t.flags|=4)};function Bu(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 O6(e,t,n){var r=t.pendingProps;switch(xm(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)&&Xc(),Xt(t),null;case 3:return r=t.stateNode,Ga(),nt(vn),nt(Gt),Im(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(td(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mr!==null&&(ug(mr),mr=null))),Qm(e,t),Xt(t),null;case 5:Nm(t);var i=$o(Ou.current);if(n=t.type,e!==null&&t.stateNode!=null)Vb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Q(166));return Xt(t),null}if(e=$o(Dr.current),td(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[ku]=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<Cu.length;i++)tt(Cu[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":_x(r,o),tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tt("invalid",r);break;case"textarea":Ax(r,o),tt("invalid",r)}Ph(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&&qc(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&qc(r.textContent,s,e),i=["children",""+s]):nu.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&tt("scroll",r)}switch(n){case"input":_c(r),Sx(r,o,!0);break;case"textarea":_c(r),Rx(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Gc)}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=Nx(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[ku]=r,Hb(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ih(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<Cu.length;i++)tt(Cu[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":_x(e,r),i=Sh(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":Ax(e,r),i=Rh(e,r),tt("invalid",e);break;default:i=r}Ph(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?Ox(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Px(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&au(e,u):typeof u=="number"&&au(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(nu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&tt("scroll",e):u!=null&&mh(e,o,u,a))}switch(n){case"input":_c(e),Sx(e,r,!1);break;case"textarea":_c(e),Rx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ii(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ra(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ra(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Gc)}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)$b(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Q(166));if(n=$o(Ou.current),$o(Dr.current),td(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=Dn,e!==null))switch(e.tag){case 3:qc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qc(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))qw(),$a(),t.flags|=98560,o=!1;else if(o=td(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Q(317));o[Or]=t}else $a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xt(t),o=!1}else mr!==null&&(ug(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):dg())),t.updateQueue!==null&&(t.flags|=4),Xt(t),null);case 4:return Ga(),Qm(e,t),e===null&&Su(t.stateNode.containerInfo),Xt(t),null;case 10:return Cm(t.type._context),Xt(t),null;case 17:return xn(t.type)&&Xc(),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)Bu(o,!1);else{if(Nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=sd(e),a!==null){for(t.flags|=128,Bu(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()>Za&&(t.flags|=128,r=!0,Bu(o,!1),t.lanes=4194304)}else{if(!r)if(e=sd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Xt(t),null}else 2*wt()-o.renderingStartTime>Za&&n!==1073741824&&(t.flags|=128,r=!0,Bu(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 cg(),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(Q(156,t.tag))}function D6(e,t){switch(xm(t),t.tag){case 1:return xn(t.type)&&Xc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ga(),nt(vn),nt(Gt),Im(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nm(t),null;case 13:if(nt(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ct),null;case 4:return Ga(),null;case 10:return Cm(t.type._context),null;case 22:case 23:return cg(),null;case 24:return null;default:return null}}var gd=!1,Qt=!1,L6=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Xa(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 Zm(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Wb=!1;function M6(e,t){if(cm=Mc,e=Tw(),nm(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(dm={focusedElem:e,selectionRange:n},Mc=!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(Q(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=Wb,Wb=!1,m}function ju(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&&Zm(t,n,o)}i=i.next}while(i!==r)}}function yd(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 Jm(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 Yb(e){var t=e.alternate;t!==null&&(e.alternate=null,Yb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[ku],delete t[mm],delete t[v6],delete t[x6])),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 qb(e){return e.tag===5||e.tag===3||e.tag===4}function Gb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qb(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 eg(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=Gc));else if(r!==4&&(e=e.child,e!==null))for(eg(e,t,n),e=e.sibling;e!==null;)eg(e,t,n),e=e.sibling}function tg(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(tg(e,t,n),e=e.sibling;e!==null;)tg(e,t,n),e=e.sibling}var Ht=null,yr=!1;function Wi(e,t,n){for(n=n.child;n!==null;)Kb(e,t,n),n=n.sibling}function Kb(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(Nc,n)}catch{}switch(n.tag){case 5:Qt||Xa(n,t);case 6:var r=Ht,i=yr;Ht=null,Wi(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?hm(e.parentNode,n):e.nodeType===1&&hm(e,n),yu(e)):hm(Ht,n.stateNode));break;case 4:r=Ht,i=yr,Ht=n.stateNode.containerInfo,yr=!0,Wi(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)&&Zm(n,t,a),i=i.next}while(i!==r)}Wi(e,t,n);break;case 1:if(!Qt&&(Xa(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)}Wi(e,t,n);break;case 21:Wi(e,t,n);break;case 22:n.mode&1?(Qt=(r=Qt)||n.memoizedState!==null,Wi(e,t,n),Qt=r):Wi(e,t,n);break;default:Wi(e,t,n)}}function Xb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new L6),t.forEach(function(r){var i=W6.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(Q(160));Kb(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;)Qb(t,e),t=t.sibling}function Qb(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{ju(3,e,e.return),yd(3,e)}catch(y){gt(e,e.return,y)}try{ju(5,e,e.return)}catch(y){gt(e,e.return,y)}}break;case 1:vr(t,e),Mr(e),r&512&&n!==null&&Xa(n,n.return);break;case 5:if(vr(t,e),Mr(e),r&512&&n!==null&&Xa(n,n.return),e.flags&32){var i=e.stateNode;try{au(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&&Cx(i,o),Ih(s,a);var l=Ih(s,o);for(a=0;a<u.length;a+=2){var c=u[a],d=u[a+1];c==="style"?Ox(i,d):c==="dangerouslySetInnerHTML"?Px(i,d):c==="children"?au(i,d):mh(i,c,d,l)}switch(s){case"input":Ah(i,o);break;case"textarea":kx(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Ra(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Ra(i,!!o.multiple,o.defaultValue,!0):Ra(i,!!o.multiple,o.multiple?[]:"",!1))}i[ku]=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(Q(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{yu(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||(ig=wt())),r&4&&Xb(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:ju(4,f,f.return);break;case 1:Xa(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:Xa(f,f.return);break;case 22:if(f.memoizedState!==null){eE(d);continue}}p!==null?(p.return=f,ue=p):eE(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=Ix("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&&Xb(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(qb(n)){var r=n;break e}n=n.return}throw Error(Q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(au(i,""),r.flags&=-33);var o=Gb(e);tg(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Gb(e);eg(e,s,a);break;default:throw Error(Q(161))}}catch(u){gt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function F6(e,t,n){ue=e,Zb(e)}function Zb(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||gd;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Qt;s=gd;var l=Qt;if(gd=a,(Qt=u)&&!l)for(ue=i;ue!==null;)a=ue,u=a.child,a.tag===22&&a.memoizedState!==null?tE(i):u!==null?(u.return=a,ue=u):tE(i);for(;o!==null;)ue=o,Zb(o),o=o.sibling;ue=i,gd=s,Qt=l}Jb(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ue=o):Jb(e)}}function Jb(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||yd(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&&eb(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}eb(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&&yu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}Qt||t.flags&512&&Jm(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 eE(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 tE(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yd(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{Jm(t)}catch(u){gt(t,o,u)}break;case 5:var a=t.return;try{Jm(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 B6=Math.ceil,vd=ti.ReactCurrentDispatcher,ng=ti.ReactCurrentOwner,er=ti.ReactCurrentBatchConfig,Ue=0,Lt=null,Ct=null,Vt=0,Mn=0,Qa=Ui(0),Nt=0,Uu=null,Yo=0,xd=0,rg=0,zu=null,bn=null,ig=0,Za=1/0,li=null,wd=!1,og=null,Yi=null,bd=!1,qi=null,Ed=0,Hu=0,ag=null,Td=-1,_d=0;function fn(){return Ue&6?wt():Td!==-1?Td:Td=wt()}function Gi(e){return e.mode&1?Ue&2&&Vt!==0?Vt&-Vt:b6.transition!==null?(_d===0&&(_d=Gx()),_d):(e=qe,e!==0||(e=window.event,e=e===void 0?16:rw(e.type)),e):1}function xr(e,t,n,r){if(50<Hu)throw Hu=0,ag=null,Error(Q(185));fu(e,n,r),(!(Ue&2)||e!==Lt)&&(e===Lt&&(!(Ue&2)&&(xd|=n),Nt===4&&Ki(e,Vt)),En(e,r),n===1&&Ue===0&&!(t.mode&1)&&(Za=wt()+500,Zc&&Hi()))}function En(e,t){var n=e.callbackNode;bD(e,t);var r=Oc(e,e===Lt?Vt:0);if(r===0)n!==null&&Wx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wx(n),t===1)e.tag===0?w6(rE.bind(null,e)):Hw(rE.bind(null,e)),g6(function(){!(Ue&6)&&Hi()}),n=null;else{switch(Kx(r)){case 1:n=jh;break;case 4:n=Yx;break;case 16:n=Rc;break;case 536870912:n=qx;break;default:n=Rc}n=dE(n,nE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nE(e,t){if(Td=-1,_d=0,Ue&6)throw Error(Q(327));var n=e.callbackNode;if(Ja()&&e.callbackNode!==n)return null;var r=Oc(e,e===Lt?Vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cd(e,r);else{t=r;var i=Ue;Ue|=2;var o=oE();(Lt!==e||Vt!==t)&&(li=null,Za=wt()+500,Go(e,t));do try{z6();break}catch(s){iE(e,s)}while(!0);_m(),vd.current=o,Ue=i,Ct!==null?t=0:(Lt=null,Vt=0,t=Nt)}if(t!==0){if(t===2&&(i=Uh(e),i!==0&&(r=i,t=sg(e,i))),t===1)throw n=Uu,Go(e,0),Ki(e,r),En(e,wt()),n;if(t===6)Ki(e,r);else{if(i=e.current.alternate,!(r&30)&&!j6(i)&&(t=Cd(e,r),t===2&&(o=Uh(e),o!==0&&(r=o,t=sg(e,o))),t===1))throw n=Uu,Go(e,0),Ki(e,r),En(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Q(345));case 2:Ko(e,bn,li);break;case 3:if(Ki(e,r),(r&130023424)===r&&(t=ig+500-wt(),10<t)){if(Oc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=pm(Ko.bind(null,e,bn,li),t);break}Ko(e,bn,li);break;case 4:if(Ki(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*B6(r/1960))-r,10<r){e.timeoutHandle=pm(Ko.bind(null,e,bn,li),r);break}Ko(e,bn,li);break;case 5:Ko(e,bn,li);break;default:throw Error(Q(329))}}}return En(e,wt()),e.callbackNode===n?nE.bind(null,e):null}function sg(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(Go(e,t).flags|=256),e=Cd(e,t),e!==2&&(t=bn,bn=n,t!==null&&ug(t)),e}function ug(e){bn===null?bn=e:bn.push.apply(bn,e)}function j6(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 Ki(e,t){for(t&=~rg,t&=~xd,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 rE(e){if(Ue&6)throw Error(Q(327));Ja();var t=Oc(e,0);if(!(t&1))return En(e,wt()),null;var n=Cd(e,t);if(e.tag!==0&&n===2){var r=Uh(e);r!==0&&(t=r,n=sg(e,r))}if(n===1)throw n=Uu,Go(e,0),Ki(e,t),En(e,wt()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ko(e,bn,li),En(e,wt()),null}function lg(e,t){var n=Ue;Ue|=1;try{return e(t)}finally{Ue=n,Ue===0&&(Za=wt()+500,Zc&&Hi())}}function qo(e){qi!==null&&qi.tag===0&&!(Ue&6)&&Ja();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)&&Hi()}}function cg(){Mn=Qa.current,nt(Qa)}function Go(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,m6(n)),Ct!==null)for(n=Ct.return;n!==null;){var r=n;switch(xm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xc();break;case 3:Ga(),nt(vn),nt(Gt),Im();break;case 5:Nm(r);break;case 4:Ga();break;case 13:nt(ct);break;case 19:nt(ct);break;case 10:Cm(r.type._context);break;case 22:case 23:cg()}n=n.return}if(Lt=e,Ct=e=Xi(e.current,null),Vt=Mn=t,Nt=0,Uu=null,rg=xd=Yo=0,bn=zu=null,Vo!==null){for(t=0;t<Vo.length;t++)if(n=Vo[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}Vo=null}return e}function iE(e,t){do{var n=Ct;try{if(_m(),ud.current=fd,ld){for(var r=dt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ld=!1}if(Wo=0,Dt=Rt=dt=null,Du=!1,Lu=0,ng.current=null,n===null||n.return===null){Nt=1,Uu=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=Rb(a);if(p!==null){p.flags&=-257,Nb(p,a,s,o,t),p.mode&1&&kb(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)){kb(o,l,t),dg();break e}u=Error(Q(426))}}else if(ot&&s.mode&1){var b=Rb(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Nb(b,a,s,o,t),Em(Ka(u,s));break e}}o=u=Ka(u,s),Nt!==4&&(Nt=2),zu===null?zu=[o]:zu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Sb(o,u,t);Jw(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"&&(Yi===null||!Yi.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=Ab(o,s,t);Jw(o,T);break e}}o=o.return}while(o!==null)}sE(n)}catch(_){t=_,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function oE(){var e=vd.current;return vd.current=fd,e===null?fd:e}function dg(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Lt===null||!(Yo&268435455)&&!(xd&268435455)||Ki(Lt,Vt)}function Cd(e,t){var n=Ue;Ue|=2;var r=oE();(Lt!==e||Vt!==t)&&(li=null,Go(e,t));do try{U6();break}catch(i){iE(e,i)}while(!0);if(_m(),Ue=n,vd.current=r,Ct!==null)throw Error(Q(261));return Lt=null,Vt=0,Nt}function U6(){for(;Ct!==null;)aE(Ct)}function z6(){for(;Ct!==null&&!fD();)aE(Ct)}function aE(e){var t=cE(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?sE(e):Ct=t,ng.current=null}function sE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=D6(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=O6(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 Ko(e,t,n){var r=qe,i=er.transition;try{er.transition=null,qe=1,H6(e,t,n,r)}finally{er.transition=i,qe=r}return null}function H6(e,t,n,r){do Ja();while(qi!==null);if(Ue&6)throw Error(Q(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(Q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ED(e,o),e===Lt&&(Ct=Lt=null,Vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bd||(bd=!0,dE(Rc,function(){return Ja(),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,ng.current=null,M6(e,n),Qb(n,e),u6(dm),Mc=!!cm,dm=cm=null,e.current=n,F6(n),pD(),Ue=s,qe=a,er.transition=o}else e.current=n;if(bd&&(bd=!1,qi=e,Ed=i),o=e.pendingLanes,o===0&&(Yi=null),gD(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(wd)throw wd=!1,e=og,og=null,e;return Ed&1&&e.tag!==0&&Ja(),o=e.pendingLanes,o&1?e===ag?Hu++:(Hu=0,ag=e):Hu=0,Hi(),null}function Ja(){if(qi!==null){var e=Kx(Ed),t=er.transition,n=qe;try{if(er.transition=null,qe=16>e?16:e,qi===null)var r=!1;else{if(e=qi,qi=null,Ed=0,Ue&6)throw Error(Q(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:ju(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(Yb(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:ju(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:yd(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,Hi(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(Nc,e)}catch{}r=!0}return r}finally{qe=n,er.transition=t}}return!1}function uE(e,t,n){t=Ka(n,t),t=Sb(e,t,1),e=$i(e,t,1),t=fn(),e!==null&&(fu(e,1,t),En(e,t))}function gt(e,t,n){if(e.tag===3)uE(e,e,n);else for(;t!==null;){if(t.tag===3){uE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Yi===null||!Yi.has(r))){e=Ka(n,e),e=Ab(t,e,1),t=$i(t,e,1),e=fn(),t!==null&&(fu(t,1,e),En(t,e));break}}t=t.return}}function V6(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()-ig?Go(e,0):rg|=n),En(e,t)}function lE(e,t){t===0&&(e.mode&1?(t=Ic,Ic<<=1,!(Ic&130023424)&&(Ic=4194304)):t=1);var n=fn();e=ai(e,t),e!==null&&(fu(e,t,n),En(e,n))}function $6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lE(e,n)}function W6(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(Q(314))}r!==null&&r.delete(t),lE(e,n)}var cE;cE=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,I6(e,t,n);wn=!!(e.flags&131072)}else wn=!1,ot&&t.flags&1048576&&Vw(t,ed,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;md(e,t),e=t.pendingProps;var i=za(t,Gt.current);qa(t,n),i=Lm(null,t,r,e,i,n);var o=Mm();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,Qc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,km(t),i.updater=pd,t.stateNode=i,i._reactInternals=t,Hm(t,r,e,n),t=Ym(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&vm(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(md(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=q6(r),e=gr(r,e),i){case 0:t=Wm(null,t,r,e,n);break e;case 1:t=Mb(null,t,r,e,n);break e;case 11:t=Pb(null,t,r,e,n);break e;case 14:t=Ib(null,t,r,gr(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Wm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),Mb(e,t,r,i,n);case 3:e:{if(Fb(t),e===null)throw Error(Q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Zw(e,t),ad(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=Ka(Error(Q(423)),t),t=Bb(e,t,r,n,i);break e}else if(r!==i){i=Ka(Error(Q(424)),t),t=Bb(e,t,r,n,i);break e}else for(Ln=ji(t.stateNode.containerInfo.firstChild),Dn=t,ot=!0,mr=null,n=Xw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($a(),r===i){t=ui(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return tb(t),e===null&&bm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,fm(r,i)?a=null:o!==null&&fm(r,o)&&(t.flags|=32),Lb(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&bm(t),null;case 13:return jb(e,t,n);case 4:return Rm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wa(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),Pb(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(rd,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!vn.current){t=ui(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=si(-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),Sm(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(Q(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Sm(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,qa(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),Ib(e,t,r,i,n);case 15:return Ob(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),md(e,t),t.tag=1,xn(r)?(e=!0,Qc(t)):e=!1,qa(t,n),_b(t,r,i),Hm(t,r,i,n),Ym(null,t,r,!0,e,n);case 19:return zb(e,t,n);case 22:return Db(e,t,n)}throw Error(Q(156,t.tag))};function dE(e,t){return $x(e,t)}function Y6(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 Y6(e,t,n,r)}function fg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function q6(e){if(typeof e=="function")return fg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vh)return 11;if(e===bh)return 14}return 2}function Xi(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 Sd(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")fg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ka:return Xo(n.children,i,o,t);case gh:a=8,i|=8;break;case yh:return e=tr(12,n,t,i|2),e.elementType=yh,e.lanes=o,e;case xh:return e=tr(13,n,t,i),e.elementType=xh,e.lanes=o,e;case wh:return e=tr(19,n,t,i),e.elementType=wh,e.lanes=o,e;case wx:return Ad(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vx:a=10;break e;case xx:a=9;break e;case vh:a=11;break e;case bh:a=14;break e;case Pi:a=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=tr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Xo(e,t,n,r){return e=tr(7,e,r,t),e.lanes=n,e}function Ad(e,t,n,r){return e=tr(22,e,r,t),e.elementType=wx,e.lanes=n,e.stateNode={isHidden:!1},e}function pg(e,t,n){return e=tr(6,e,null,t),e.lanes=n,e}function hg(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 G6(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=zh(0),this.expirationTimes=zh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mg(e,t,n,r,i,o,a,s,u){return e=new G6(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},km(o),e}function K6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Aa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fE(e){if(!e)return zi;e=e._reactInternals;e:{if(Bo(e)!==e||e.tag!==1)throw Error(Q(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(Q(171))}if(e.tag===1){var n=e.type;if(xn(n))return Uw(e,n,t)}return t}function pE(e,t,n,r,i,o,a,s,u){return e=mg(n,r,!0,e,i,o,a,s,u),e.context=fE(null),n=e.current,r=fn(),i=Gi(n),o=si(r,i),o.callback=t??null,$i(n,o,i),e.current.lanes=i,fu(e,i,r),En(e,r),e}function kd(e,t,n,r){var i=t.current,o=fn(),a=Gi(i);return n=fE(n),t.context===null?t.context=n:t.pendingContext=n,t=si(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$i(i,t,a),e!==null&&(xr(e,i,a,o),od(e,i,a)),a}function Rd(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 hE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gg(e,t){hE(e,t),(e=e.alternate)&&hE(e,t)}function X6(){return null}var mE=typeof reportError=="function"?reportError:function(e){console.error(e)};function yg(e){this._internalRoot=e}Nd.prototype.render=yg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));kd(e,t,null,null)},Nd.prototype.unmount=yg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qo(function(){kd(null,e,null,null)}),t[ni]=null}};function Nd(e){this._internalRoot=e}Nd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mi.length&&t!==0&&t<Mi[n].priority;n++);Mi.splice(n,0,e),n===0&&tw(e)}};function vg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gE(){}function Q6(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=Rd(a);o.call(l)}}var a=pE(t,r,e,0,null,!1,!1,"",gE);return e._reactRootContainer=a,e[ni]=a.current,Su(e.nodeType===8?e.parentNode:e),qo(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=Rd(u);s.call(l)}}var u=mg(e,0,!1,null,null,!1,!1,"",gE);return e._reactRootContainer=u,e[ni]=u.current,Su(e.nodeType===8?e.parentNode:e),qo(function(){kd(t,u,n,r)}),u}function Id(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=Rd(a);s.call(u)}}kd(t,a,e,i)}else a=Q6(n,t,e,i,r);return Rd(a)}Xx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=du(t.pendingLanes);n!==0&&(Hh(t,n|1),En(t,wt()),!(Ue&6)&&(Za=wt()+500,Hi()))}break;case 13:qo(function(){var r=ai(e,1);if(r!==null){var i=fn();xr(r,e,1,i)}}),gg(e,1)}},Vh=function(e){if(e.tag===13){var t=ai(e,134217728);if(t!==null){var n=fn();xr(t,e,134217728,n)}gg(e,134217728)}},Qx=function(e){if(e.tag===13){var t=Gi(e),n=ai(e,t);if(n!==null){var r=fn();xr(n,e,t,r)}gg(e,t)}},Zx=function(){return qe},Jx=function(e,t){var n=qe;try{return qe=e,t()}finally{qe=n}},Lh=function(e,t,n){switch(t){case"input":if(Ah(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=Kc(r);if(!i)throw Error(Q(90));Tx(r),Ah(r,i)}}}break;case"textarea":kx(e,n);break;case"select":t=n.value,t!=null&&Ra(e,!!n.multiple,t,!1)}},Fx=lg,Bx=qo;var Z6={usingClientEntryPoint:!1,Events:[Ru,ja,Kc,Lx,Mx,lg]},Vu={findFiberByHostInstance:jo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},J6={bundleType:Vu.bundleType,version:Vu.version,rendererPackageName:Vu.rendererPackageName,rendererConfig:Vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ti.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Hx(e),e===null?null:e.stateNode},findFiberByHostInstance:Vu.findFiberByHostInstance||X6,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 Od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Od.isDisabled&&Od.supportsFiber)try{Nc=Od.inject(J6),Ir=Od}catch{}}Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z6,Pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vg(t))throw Error(Q(200));return K6(e,t,null,n)},Pn.createRoot=function(e,t){if(!vg(e))throw Error(Q(299));var n=!1,r="",i=mE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=mg(e,1,!1,null,null,n,!1,r,i),e[ni]=t.current,Su(e.nodeType===8?e.parentNode:e),new yg(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(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=Hx(t),e=e===null?null:e.stateNode,e},Pn.flushSync=function(e){return qo(e)},Pn.hydrate=function(e,t,n){if(!Pd(t))throw Error(Q(200));return Id(null,e,t,!0,n)},Pn.hydrateRoot=function(e,t,n){if(!vg(e))throw Error(Q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=mE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=pE(t,null,e,1,n??null,i,!1,o,a),e[ni]=t.current,Su(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 Nd(t)},Pn.render=function(e,t,n){if(!Pd(t))throw Error(Q(200));return Id(null,e,t,!1,n)},Pn.unmountComponentAtNode=function(e){if(!Pd(e))throw Error(Q(40));return e._reactRootContainer?(qo(function(){Id(null,null,e,!1,function(){e._reactRootContainer=null,e[ni]=null})}),!0):!1},Pn.unstable_batchedUpdates=lg,Pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pd(n))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return Id(e,t,n,!1,r)},Pn.version="18.3.1-next-f1338f8080-20240426";function yE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yE)}catch(e){console.error(e)}}yE(),fx.exports=Pn;var Qo=fx.exports,vE,xE=Qo;vE=xE.createRoot,xE.hydrateRoot;const wE="3.0.36";function Dd(e){"@babel/helpers - typeof";return Dd=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},Dd(e)}var eL=/^\s+/,tL=/\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=nL(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=SE(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=EE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=EE(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=bE(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=bE(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 TE(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return aL(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:vL[TE(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+_E(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=fe(t);r="#"+_E(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(cL,arguments)},brighten:function(){return this._applyModification(dL,arguments)},darken:function(){return this._applyModification(fL,arguments)},desaturate:function(){return this._applyModification(sL,arguments)},saturate:function(){return this._applyModification(uL,arguments)},greyscale:function(){return this._applyModification(lL,arguments)},spin:function(){return this._applyModification(pL,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(gL,arguments)},complement:function(){return this._applyCombination(hL,arguments)},monochromatic:function(){return this._applyCombination(yL,arguments)},splitcomplement:function(){return this._applyCombination(mL,arguments)},triad:function(){return this._applyCombination(CE,[3])},tetrad:function(){return this._applyCombination(CE,[4])}},fe.fromRatio=function(e,t){if(Dd(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=$u(e[r]));e=n}return fe(e,t)};function nL(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=EL(e)),Dd(e)=="object"&&(ci(e.r)&&ci(e.g)&&ci(e.b)?(t=rL(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ci(e.h)&&ci(e.s)&&ci(e.v)?(r=$u(e.s),i=$u(e.v),t=oL(e.h,r,i),a=!0,s="hsv"):ci(e.h)&&ci(e.s)&&ci(e.l)&&(r=$u(e.s),o=$u(e.l),t=iL(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=SE(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 rL(e,t,n){return{r:at(e,255)*255,g:at(t,255)*255,b:at(n,255)*255}}function bE(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 iL(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 EE(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 oL(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 TE(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 aL(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(AE(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 _E(e,t,n,r){var i=[wr(AE(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 sL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s-=t/100,n.s=Ld(n.s),fe(n)}function uL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.s+=t/100,n.s=Ld(n.s),fe(n)}function lL(e){return fe(e).desaturate(100)}function cL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l+=t/100,n.l=Ld(n.l),fe(n)}function dL(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 fL(e,t){t=t===0?0:t||10;var n=fe(e).toHsl();return n.l-=t/100,n.l=Ld(n.l),fe(n)}function pL(e,t){var n=fe(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,fe(n)}function hL(e){var t=fe(e).toHsl();return t.h=(t.h+180)%360,fe(t)}function CE(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 mL(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 gL(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 yL(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=TL(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 xg=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"},vL=fe.hexNames=xL(xg);function xL(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function SE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function at(e,t){wL(e)&&(e="100%");var n=bL(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 Ld(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function wL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function bL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function wr(e){return e.length==1?"0"+e:""+e}function $u(e){return e<=1&&(e=e*100+"%"),e}function AE(e){return Math.round(parseFloat(e)*255).toString(16)}function kE(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 ci(e){return!!br.CSS_UNIT.exec(e)}function EL(e){e=e.replace(eL,"").replace(tL,"").toLowerCase();var t=!1;if(xg[e])e=xg[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:kE(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:kE(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 TL(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 _L=350,RE=400,NE=600,wg={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},PE=({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 CL(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 Wu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const bg=e=>Array.isArray(e);function IE(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 Yu(e){return typeof e=="string"||Array.isArray(e)}function OE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Eg(e,t,n,r){if(typeof t=="function"){const[i,o]=OE(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]=OE(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Md(e,t,n){const r=e.getProps();return Eg(r,t,n!==void 0?n:r.custom,e)}const Tg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_g=["initial",...Tg],qu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qi=new Set(qu),di=e=>e*1e3,fi=e=>e/1e3,SL={type:"spring",stiffness:500,damping:25,restSpeed:10},AL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kL={type:"keyframes",duration:.8},RL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NL=(e,{keyframes:t})=>t.length>2?kL:Qi.has(e)?e.startsWith("scale")?AL(t[1]):SL:RL;function Cg(e,t){return e?e[t]||e.default||e:void 0}const PL={skipAnimations:!1,useManualTiming:!1},IL=e=>e!==null;function Fd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(IL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Zt=e=>e;function OL(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 Bd=["read","resolveKeyframes","update","preRender","render","postRender"],DL=40;function DE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Bd.reduce((g,x)=>(g[x]=OL(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,DL),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:Bd.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<Bd.length;x++)a[Bd[x]].cancel(g)},state:i,steps:a}}const{schedule:Xe,cancel:Zi,state:$t,steps:Sg}=DE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zt,!0),LE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,LL=1e-7,ML=12;function FL(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=LE(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>LL&&++s<ML);return a}function Gu(e,t,n,r){if(e===t&&n===r)return Zt;const i=o=>FL(o,0,1,e,n);return o=>o===0||o===1?o:LE(i(o),t,r)}const ME=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FE=e=>t=>1-e(1-t),BE=Gu(.33,1.53,.69,.99),Ag=FE(BE),jE=ME(Ag),UE=e=>(e*=2)<1?.5*Ag(e):.5*(2-Math.pow(2,-10*(e-1))),kg=e=>1-Math.sin(Math.acos(e)),zE=FE(kg),HE=ME(kg),VE=e=>/^0[^.\s]+$/u.test(e);function BL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||VE(e):!0}let Rg=Zt;const $E=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),WE=e=>t=>typeof t=="string"&&t.startsWith(e),YE=WE("--"),jL=WE("var(--"),Ng=e=>jL(e)?UL.test(e.split("/*")[0].trim()):!1,UL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function HL(e){const t=zL.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function qE(e,t,n=1){const[r,i]=HL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return $E(a)?parseFloat(a):a}return Ng(i)?qE(i,t,n+1):i}const Ji=(e,t,n)=>n>t?t:n<e?e:n,es={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ku={...es,transform:e=>Ji(0,1,e)},jd={...es,default:1},Xu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),eo=Xu("deg"),Fr=Xu("%"),ye=Xu("px"),VL=Xu("vh"),$L=Xu("vw"),GE={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},WL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),KE=e=>e===es||e===ye,XE=(e,t)=>parseFloat(e.split(", ")[t]),QE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return XE(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?XE(o[1],e):0}},YL=new Set(["x","y","z"]),qL=qu.filter(e=>!YL.has(e));function GL(e){const t=[];return qL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ts={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:QE(4,13),y:QE(5,14)};ts.translateX=ts.x,ts.translateY=ts.y;const ZE=e=>t=>t.test(e),JE=[es,ye,Fr,eo,$L,VL,{test:e=>e==="auto",parse:e=>e}],eT=e=>JE.find(ZE(e)),Zo=new Set;let Pg=!1,Ig=!1;function tT(){if(Ig){const e=Array.from(Zo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=GL(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)})}Ig=!1,Pg=!1,Zo.forEach(e=>e.complete()),Zo.clear()}function nT(){Zo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ig=!0)})}function KL(){nT(),tT()}class Og{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?(Zo.add(this),Pg||(Pg=!0,Xe.read(nT),Xe.resolveKeyframes(tT))):(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),Zo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Qu=e=>Math.round(e*1e5)/1e5,Dg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XL(e){return e==null}const QL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lg=(e,t)=>n=>!!(typeof n=="string"&&QL.test(n)&&n.startsWith(e)||t&&!XL(n)&&Object.prototype.hasOwnProperty.call(n,t)),rT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(Dg);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},ZL=e=>Ji(0,255,e),Mg={...es,transform:e=>Math.round(ZL(e))},Jo={test:Lg("rgb","red"),parse:rT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Mg.transform(e)+", "+Mg.transform(t)+", "+Mg.transform(n)+", "+Qu(Ku.transform(r))+")"};function JL(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 Fg={test:Lg("#"),parse:JL,transform:Jo.transform},ns={test:Lg("hsl","hue"),parse:rT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Qu(t))+", "+Fr.transform(Qu(n))+", "+Qu(Ku.transform(r))+")"},Jt={test:e=>Jo.test(e)||Fg.test(e)||ns.test(e),parse:e=>Jo.test(e)?Jo.parse(e):ns.test(e)?ns.parse(e):Fg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jo.transform(e):ns.transform(e)},e4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function t4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(e4))===null||n===void 0?void 0:n.length)||0)>0}const iT="number",oT="color",n4="var",r4="var(",aT="${}",i4=/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 Zu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(i4,u=>(Jt.test(u)?(r.color.push(o),i.push(oT),n.push(Jt.parse(u))):u.startsWith(r4)?(r.var.push(o),i.push(n4),n.push(u)):(r.number.push(o),i.push(iT),n.push(parseFloat(u))),++o,aT)).split(aT);return{values:n,split:s,indexes:r,types:i}}function sT(e){return Zu(e).values}function uT(e){const{split:t,types:n}=Zu(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===iT?o+=Qu(i[a]):s===oT?o+=Jt.transform(i[a]):o+=i[a]}return o}}const o4=e=>typeof e=="number"?0:e;function a4(e){const t=sT(e);return uT(e)(t.map(o4))}const to={test:t4,parse:sT,createTransformer:uT,getAnimatableNone:a4},s4=new Set(["brightness","contrast","saturate","opacity"]);function u4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dg)||[];if(!r)return e;const i=n.replace(r,"");let o=s4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const l4=/\b([a-z-]*)\(.*?\)/gu,Bg={...to,getAnimatableNone:e=>{const t=e.match(l4);return t?t.map(u4).join(" "):e}},c4={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},d4={rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scale:jd,scaleX:jd,scaleY:jd,scaleZ:jd,skew:eo,skewX:eo,skewY:eo,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Ku,originX:GE,originY:GE,originZ:ye},lT={...es,transform:Math.round},jg={...c4,...d4,zIndex:lT,size:ye,fillOpacity:Ku,strokeOpacity:Ku,numOctaves:lT},f4={...jg,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:Bg,WebkitFilter:Bg},Ug=e=>f4[e];function cT(e,t){let n=Ug(e);return n!==Bg&&(n=to),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const p4=new Set(["auto","none","0"]);function h4(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!p4.has(o)&&Zu(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=cT(n,i)}class dT extends Og{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(),Ng(l))){const c=qE(l,n.current);c!==void 0&&(t[u]=c),u===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!WL.has(r)||t.length!==2)return;const[i,o]=t,a=eT(i),s=eT(o);if(a!==s)if(KE(a)&&KE(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++)BL(t[i])&&r.push(i);r.length&&h4(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=ts[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]=ts[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 zg(e){return typeof e=="function"}let Ud;function m4(){Ud=void 0}const Br={now:()=>(Ud===void 0&&Br.set($t.isProcessing||PL.useManualTiming?$t.timestamp:performance.now()),Ud),set:e=>{Ud=e,queueMicrotask(m4)}},fT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function g4(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 y4(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=fT(i,t),s=fT(o,t);return!a||!s?!1:g4(e)||(n==="spring"||zg(n))&&r}const v4=40;class pT{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>v4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&KL(),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&&!y4(t,r,i,o))if(a)this.options.duration=0;else{u==null||u(Fd(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 hT(e,t){return t?e*(1e3/t):0}const x4=5;function mT(e,t,n){const r=Math.max(t-x4,0);return hT(n-e(r),t-r)}const Hg=.001,w4=.01,b4=10,E4=.05,T4=1;function _4({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=Ji(E4,T4,a),e=Ji(w4,b4,fi(e)),a<1?(i=l=>{const c=l*a,d=c*e,f=c-n,p=Vg(l,a),m=Math.exp(-d);return Hg-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=Vg(Math.pow(l,2),a);return(-i(l)+Hg>0?-1:1)*((f-p)*m)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Hg+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const s=5/e,u=S4(i,o,s);if(e=di(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 C4=12;function S4(e,t,n){let r=n;for(let i=1;i<C4;i++)r=r-e(r)/t(r);return r}function Vg(e,t){return e*Math.sqrt(1-t*t)}const A4=["duration","bounce"],k4=["stiffness","damping","mass"];function gT(e,t){return t.some(n=>e[n]!==void 0)}function R4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!gT(e,k4)&&gT(e,A4)){const n=_4(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function yT({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}=R4({...r,velocity:-fi(r.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(s*l)),y=o-i,b=fi(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=Vg(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?di(p):mT(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 vT({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=yT({keyframes:[f.value,m(f.value)],velocity:mT(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 N4=Gu(.42,0,1,1),P4=Gu(0,0,.58,1),xT=Gu(.42,0,.58,1),I4=e=>Array.isArray(e)&&typeof e[0]!="number",$g=e=>Array.isArray(e)&&typeof e[0]=="number",wT={linear:Zt,easeIn:N4,easeInOut:xT,easeOut:P4,circIn:kg,circInOut:HE,circOut:zE,backIn:Ag,backInOut:jE,backOut:BE,anticipate:UE},bT=e=>{if($g(e)){Rg(e.length===4);const[t,n,r,i]=e;return Gu(t,n,r,i)}else if(typeof e=="string")return Rg(wT[e]!==void 0),wT[e];return e},O4=(e,t)=>n=>t(e(n)),pi=(...e)=>e.reduce(O4),rs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ft=(e,t,n)=>e+(t-e)*n;function Wg(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 D4({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=Wg(u,s,e+1/3),o=Wg(u,s,e),a=Wg(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function zd(e,t){return n=>n>0?t:e}const Yg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},L4=[Fg,Jo,ns],M4=e=>L4.find(t=>t.test(e));function ET(e){const t=M4(e);if(!t)return!1;let n=t.parse(e);return t===ns&&(n=D4(n)),n}const TT=(e,t)=>{const n=ET(e),r=ET(t);if(!n||!r)return zd(e,t);const i={...n};return o=>(i.red=Yg(n.red,r.red,o),i.green=Yg(n.green,r.green,o),i.blue=Yg(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),Jo.transform(i))},qg=new Set(["none","hidden"]);function F4(e,t){return qg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function B4(e,t){return n=>ft(e,t,n)}function Gg(e){return typeof e=="number"?B4:typeof e=="string"?Ng(e)?zd:Jt.test(e)?TT:z4:Array.isArray(e)?_T:typeof e=="object"?Jt.test(e)?TT:j4:zd}function _T(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Gg(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function j4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Gg(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function U4(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 z4=(e,t)=>{const n=to.createTransformer(t),r=Zu(e),i=Zu(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?qg.has(e)&&!i.values.length||qg.has(t)&&!r.values.length?F4(e,t):pi(_T(U4(r,i),i.values),n):zd(e,t)};function CT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):Gg(e)(e,t)}function H4(e,t,n){const r=[],i=n||CT,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=pi(u,s)}r.push(s)}return r}function V4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Rg(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=H4(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=rs(e[c],e[c+1],l);return a[c](d)};return n?l=>u(Ji(e[0],e[o-1],l)):u}function $4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=rs(0,t,r);e.push(ft(n,1,i))}}function W4(e){const t=[0];return $4(t,e.length-1),t}function Y4(e,t){return e.map(n=>n*t)}function q4(e,t){return e.map(()=>t||xT).splice(0,e.length-1)}function Hd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=I4(r)?r.map(bT):bT(r),o={done:!1,value:t[0]},a=Y4(n&&n.length===t.length?n:W4(t),e),s=V4(a,t,{ease:Array.isArray(i)?i:q4(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}const ST=2e4;function G4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ST;)t+=n,r=e.next(t);return t>=ST?1/0:t}const K4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xe.update(t,!0),stop:()=>Zi(t),now:()=>$t.isProcessing?$t.timestamp:Br.now()}},X4={decay:vT,inertia:vT,tween:Hd,keyframes:Hd,spring:yT},Q4=e=>e/100;class Kg extends pT{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)||Og,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=zg(n)?n:X4[n]||Hd;let u,l;s!==Hd&&typeof t[0]!="number"&&(u=pi(Q4,CT(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=G4(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=Ji(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=Fd(u,this.options,i)),b&&b(_.value),R&&this.finish(),_}get duration(){const{resolved:t}=this;return t?fi(t.calculatedDuration):0}get time(){return fi(this.currentTime)}set time(t){t=di(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=fi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=K4,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 AT=new Set(["opacity","clipPath","filter","transform"]),Z4=10,J4=(e,t)=>{let n="";const r=Math.max(Math.round(t/Z4),2);for(let i=0;i<r;i++)n+=e(rs(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Xg(e){let t;return()=>(t===void 0&&(t=e()),t)}const eM={linearEasing:void 0};function tM(e,t){const n=Xg(e);return()=>{var r;return(r=eM[t])!==null&&r!==void 0?r:n()}}const Vd=tM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function kT(e){return!!(typeof e=="function"&&Vd()||!e||typeof e=="string"&&(e in Qg||Vd())||$g(e)||Array.isArray(e)&&e.every(kT))}const Ju=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ju([0,.65,.55,1]),circOut:Ju([.55,0,1,.45]),backIn:Ju([.31,.01,.66,-.59]),backOut:Ju([.33,1.53,.69,.99])};function RT(e,t){if(e)return typeof e=="function"&&Vd()?J4(e,t):$g(e)?Ju(e):Array.isArray(e)?e.map(n=>RT(n,t)||Qg.easeOut):Qg[e]}function nM(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=RT(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 NT(e,t){e.timeline=t,e.onfinish=null}const rM=Xg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$d=10,iM=2e4;function oM(e){return zg(e.type)||e.type==="spring"||!kT(e.ease)}function aM(e,t){const n=new Kg({...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<iM;)r=n.sample(o),i.push(r.value),o+=$d;return{times:void 0,keyframes:i,duration:o-$d,ease:"linear"}}const PT={anticipate:UE,backInOut:jE,circInOut:HE};function sM(e){return e in PT}class IT extends pT{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new dT(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"&&Vd()&&sM(a)&&(a=PT[a]),oM(this.options)){const{onComplete:f,onUpdate:p,motionValue:m,element:y,...b}=this.options,g=aM(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=nM(u.owner.current,l,t,{...this.options,duration:i,times:o,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(NT(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Fd(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 fi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=di(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;NT(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 Kg({...p,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),y=di(this.time);l.setWithVelocity(m.sample(y-$d).value,m.sample(y).value,$d)}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 rM()&&r&&AT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const uM=Xg(()=>window.ScrollTimeline!==void 0);class lM{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=>uM()&&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 cM({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 Zg=(e,t,n,r={},i,o)=>a=>{const s=Cg(r,e)||{},u=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-di(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};cM(s)||(c={...c,...NL(e,c)}),c.duration&&(c.duration=di(c.duration)),c.repeatDelay&&(c.repeatDelay=di(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=Fd(c.keyframes,s);if(f!==void 0)return Xe.update(()=>{c.onUpdate(f),c.onComplete()}),new lM([])}return!o&&IT.supports(c)?new IT(c):new Kg(c)},dM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fM=e=>bg(e)?e[e.length-1]||0:e;function Jg(e,t){e.indexOf(t)===-1&&e.push(t)}function e0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class t0{constructor(){this.subscriptions=[]}add(t){return Jg(this.subscriptions,t),()=>e0(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 OT=30,pM=e=>!isNaN(parseFloat(e));class hM{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=pM(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 t0);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>OT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,OT);return hT(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 el(e,t){return new hM(e,t)}function mM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,el(n))}function gM(e,t){const n=Md(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=fM(o[a]);mM(e,a,s)}}const Wd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),DT="data-"+Wd("framerAppearId");function LT(e){return e.props[DT]}const en=e=>!!(e&&e.getVelocity);function yM(e){return!!(en(e)&&e.add)}function n0(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(yM(n))return n.add(t)}function vM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function MT(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&&vM(c,d))continue;const m={delay:n,...Cg(a||{},d)};let y=!1;if(window.MotionHandoffAnimation){const g=LT(e);if(g){const x=window.MotionHandoffAnimation(g,d,Xe);x!==null&&(m.startTime=x,y=!0)}}n0(e,d),f.start(Zg(d,f,p,e.shouldReduceMotion&&Qi.has(d)?{type:!1}:m,e,y));const b=f.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{Xe.update(()=>{s&&gM(e,s)})}),l}function r0(e,t,n={}){var r;const i=Md(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(MT(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return xM(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 xM(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(wM).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(r0(l,t,{...o,delay:n+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function wM(e,t){return e.sortNodePosition(t)}function bM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>r0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=r0(e,t,n);else{const i=typeof t=="function"?Md(e,t,n.custom):t;r=Promise.all(MT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const EM=_g.length;function FT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?FT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<EM;n++){const r=_g[n],i=e.props[r];(Yu(i)||i===!1)&&(t[r]=i)}return t}const TM=[...Tg].reverse(),_M=Tg.length;function CM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>bM(e,n,r)))}function SM(e){let t=CM(e),n=BT(),r=!0;const i=u=>(l,c)=>{var d;const f=Md(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=FT(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let b=0;b<_M;b++){const g=TM[b],x=n[g],w=l[g]!==void 0?l[g]:c[g],T=Yu(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||Wu(w)||typeof w=="boolean")continue;const R=AM(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=ee=>{O=!0,f.has(ee)&&(V=!0,f.delete(ee)),x.needsAnimating[ee]=!0;const F=e.getValue(ee);F&&(F.liveStyle=!1)};for(const ee in X){const F=$[ee],B=z[ee];if(p.hasOwnProperty(ee))continue;let A=!1;bg(F)&&bg(B)?A=!IE(F,B):A=F!==B,A?F!=null?Y(ee):f.add(ee):F!==void 0&&f.has(ee)?Y(ee):x.protectedKeys[ee]=!0}x.prevProp=w,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(C&&R)||V)&&d.push(...P.map(ee=>({animation:ee,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=BT(),r=!0}}}function AM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!IE(t,e):!1}function ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function BT(){return{animate:ea(!0),whileInView:ea(),whileHover:ea(),whileTap:ea(),whileDrag:ea(),whileFocus:ea(),exit:ea()}}class no{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kM extends no{constructor(t){super(t),t.animationState||(t.animationState=SM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wu(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 RM=0;class NM extends no{constructor(){super(...arguments),this.id=RM++}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 PM={animation:{Feature:kM},exit:{Feature:NM}},jT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yd(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const IM=e=>t=>jT(t)&&e(t,Yd(t));function hi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mi(e,t,n,r){return hi(e,t,IM(n),r)}const UT=(e,t)=>Math.abs(e-t);function OM(e,t){const n=UT(e.x,t.x),r=UT(e.y,t.y);return Math.sqrt(n**2+r**2)}class zT{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=o0(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=OM(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=i0(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=o0(d.type==="pointercancel"?this.lastMoveEventInfo:i0(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),m&&m(d,b)},!jT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Yd(t),s=i0(a,this.transformPagePoint),{point:u}=s,{timestamp:l}=$t;this.history=[{...u,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,o0(s,this.history)),this.removeListeners=pi(mi(this.contextWindow,"pointermove",this.handlePointerMove),mi(this.contextWindow,"pointerup",this.handlePointerUp),mi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zi(this.updatePoint)}}function i0(e,t){return t?{point:t(e.point)}:e}function HT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function o0({point:e},t){return{point:e,delta:HT(e,VT(t)),offset:HT(e,DM(t)),velocity:LM(t,.1)}}function DM(e){return e[0]}function VT(e){return e[e.length-1]}function LM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=VT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>di(t)));)n--;if(!r)return{x:0,y:0};const o=fi(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 $T(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const WT=$T("dragHorizontal"),YT=$T("dragVertical");function qT(e){let t=!1;if(e==="y")t=YT();else if(e==="x")t=WT();else{const n=WT(),r=YT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function GT(){const e=qT(!0);return e?(e(),!1):!0}function is(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const KT=1e-4,MM=1-KT,FM=1+KT,XT=.01,BM=0-XT,jM=0+XT;function Bn(e){return e.max-e.min}function UM(e,t,n){return Math.abs(e-t)<=n}function QT(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>=MM&&e.scale<=FM||isNaN(e.scale))&&(e.scale=1),(e.translate>=BM&&e.translate<=jM||isNaN(e.translate))&&(e.translate=0)}function tl(e,t,n,r){QT(e.x,t.x,n.x,r?r.originX:void 0),QT(e.y,t.y,n.y,r?r.originY:void 0)}function ZT(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function zM(e,t,n){ZT(e.x,t.x,n.x),ZT(e.y,t.y,n.y)}function JT(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function nl(e,t,n){JT(e.x,t.x,n.x),JT(e.y,t.y,n.y)}function HM(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 e_(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 VM(e,{top:t,left:n,bottom:r,right:i}){return{x:e_(e.x,n,i),y:e_(e.y,t,r)}}function t_(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 $M(e,t){return{x:t_(e.x,t.x),y:t_(e.y,t.y)}}function WM(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=rs(t.min,t.max-r,e.min):r>i&&(n=rs(e.min,e.max-i,t.min)),Ji(0,1,n)}function YM(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 a0=.35;function qM(e=a0){return e===!1?e=0:e===!0&&(e=a0),{x:n_(e,"left","right"),y:n_(e,"top","bottom")}}function n_(e,t,n){return{min:r_(e,t),max:r_(e,n)}}function r_(e,t){return typeof e=="number"?e:e[t]||0}const i_=()=>({translate:0,scale:1,origin:0,originPoint:0}),os=()=>({x:i_(),y:i_()}),o_=()=>({min:0,max:0}),bt=()=>({x:o_(),y:o_()});function nr(e){return[e("x"),e("y")]}function a_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function GM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function KM(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 s0(e){return e===void 0||e===1}function u0({scale:e,scaleX:t,scaleY:n}){return!s0(e)||!s0(t)||!s0(n)}function ta(e){return u0(e)||s_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s_(e){return u_(e.x)||u_(e.y)}function u_(e){return e&&e!=="0%"}function qd(e,t,n){const r=e-n,i=t*r;return n+i}function l_(e,t,n,r,i){return i!==void 0&&(e=qd(e,i,r)),qd(e,n,r)+t}function l0(e,t=0,n=1,r,i){e.min=l_(e.min,t,n,r,i),e.max=l_(e.max,t,n,r,i)}function c_(e,{x:t,y:n}){l0(e.x,t.translate,t.scale,t.originPoint),l0(e.y,n.translate,n.scale,n.originPoint)}const d_=.999999999999,f_=1.0000000000001;function XM(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&&ss(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,c_(e,a)),r&&ta(o.latestValues)&&ss(e,o.latestValues))}t.x<f_&&t.x>d_&&(t.x=1),t.y<f_&&t.y>d_&&(t.y=1)}function as(e,t){e.min=e.min+t,e.max=e.max+t}function p_(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);l0(e,t,n,o,r)}function ss(e,t){p_(e.x,t.x,t.scaleX,t.scale,t.originX),p_(e.y,t.y,t.scaleY,t.scale,t.originY)}function h_(e,t){return a_(KM(e.getBoundingClientRect(),t))}function QM(e,t,n){const r=h_(e,n),{scroll:i}=t;return i&&(as(r.x,i.offset.x),as(r.y,i.offset.y)),r}const m_=({current:e})=>e?e.ownerDocument.defaultView:null,ZM=new WeakMap;class JM{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(Yd(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=qT(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)),n0(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=e5(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 zT(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:m_(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||!Gd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=HM(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&&is(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=VM(i.layoutBox,n):this.constraints=!1,this.elastic=qM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=YM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!is(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QM(r,i.root,this.visualElement.getTransformPagePoint());let a=$M(i.layout.layoutBox,o);if(n){const s=n(GM(a));this.hasMutatedConstraints=!!s,s&&(a=a_(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(!Gd(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 n0(this.visualElement,t),r.start(Zg(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(!Gd(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(!is(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]=WM({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(!Gd(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;ZM.set(this.visualElement,this);const t=this.visualElement.current,n=mi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();is(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=hi(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=a0,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Gd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function e5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class t5 extends no{constructor(t){super(t),this.removeGroupControls=Zt,this.removeListeners=Zt,this.controls=new JM(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 g_=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};class n5 extends no{constructor(){super(...arguments),this.removePointerDownListener=Zt}onPointerDown(t){this.session=new zT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:g_(t),onStart:g_(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Xe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=mi(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 Kd=v.createContext(null);function r5(){const e=v.useContext(Kd);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 c0=v.createContext({}),y_=v.createContext({}),Xd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function v_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=v_(e,t.target.x),r=v_(e,t.target.y);return`${n}% ${r}%`}},i5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=to.parse(e);if(i.length>5)return r;const o=to.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)}},Qd={};function o5(e){Object.assign(Qd,e)}const{schedule:d0,cancel:kie}=DE(queueMicrotask,!1);class a5 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o5(s5),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()})),Xd.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(),d0.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 x_(e){const[t,n]=r5(),r=v.useContext(c0);return E.jsx(a5,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(y_),isPresent:t,safeToRemove:n})}const s5={borderRadius:{...rl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rl,borderTopRightRadius:rl,borderBottomLeftRadius:rl,borderBottomRightRadius:rl,boxShadow:i5},w_=["TopLeft","TopRight","BottomLeft","BottomRight"],u5=w_.length,b_=e=>typeof e=="string"?parseFloat(e):e,E_=e=>typeof e=="number"||ye.test(e);function l5(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,c5(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,d5(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<u5;a++){const s=`border${w_[a]}Radius`;let u=T_(t,s),l=T_(n,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||E_(u)===E_(l)?(e[s]=Math.max(ft(b_(u),b_(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 T_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const c5=__(0,.5,zE),d5=__(.5,.95,Zt);function __(e,t,n){return r=>r<e?0:r>t?1:n(rs(e,t,r))}function C_(e,t){e.min=t.min,e.max=t.max}function rr(e,t){C_(e.x,t.x),C_(e.y,t.y)}function S_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function A_(e,t,n,r,i){return e-=t,e=qd(e,1/n,r),i!==void 0&&(e=qd(e,1/i,r)),e}function f5(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=A_(e.min,t,n,s,i),e.max=A_(e.max,t,n,s,i)}function k_(e,t,[n,r,i],o,a){f5(e,t[n],t[r],t[i],t.scale,o,a)}const p5=["x","scaleX","originX"],h5=["y","scaleY","originY"];function R_(e,t,n,r){k_(e.x,t,p5,n?n.x:void 0,r?r.x:void 0),k_(e.y,t,h5,n?n.y:void 0,r?r.y:void 0)}function N_(e){return e.translate===0&&e.scale===1}function P_(e){return N_(e.x)&&N_(e.y)}function I_(e,t){return e.min===t.min&&e.max===t.max}function m5(e,t){return I_(e.x,t.x)&&I_(e.y,t.y)}function O_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function D_(e,t){return O_(e.x,t.x)&&O_(e.y,t.y)}function L_(e){return Bn(e.x)/Bn(e.y)}function M_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class g5{constructor(){this.members=[]}add(t){Jg(this.members,t),t.scheduleRender()}remove(t){if(e0(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 y5(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 v5=(e,t)=>e.depth-t.depth;class x5{constructor(){this.children=[],this.isDirty=!1}add(t){Jg(this.children,t),this.isDirty=!0}remove(t){e0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(v5),this.isDirty=!1,this.children.forEach(t)}}function Zd(e){const t=en(e)?e.get():e;return dM(t)?t.toValue():t}function w5(e,t){const n=Br.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Zi(r),e(o-t))};return Xe.read(r,!0),()=>Zi(r)}function b5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function E5(e,t,n){const r=en(e)?e:el(e);return r.start(Zg("",r,t,n)),r.animation}const na={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},il=typeof window<"u"&&window.MotionDebug!==void 0,f0=["","X","Y","Z"],T5={visibility:"hidden"},F_=1e3;let _5=0;function p0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function B_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=LT(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&&B_(r)}function j_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=_5++,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,il&&(na.totalNodes=na.resolvedTargetDeltas=na.recalculatedProjection=0),this.nodes.forEach(A5),this.nodes.forEach(I5),this.nodes.forEach(O5),this.nodes.forEach(k5),il&&window.MotionDebug.record(na)},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 x5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new t0),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=b5(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=w5(f,250),Xd.hasAnimatedSinceResize&&(Xd.hasAnimatedSinceResize=!1,this.nodes.forEach(z_))})}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()||B5,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!D_(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={...Cg(y,"layout"),onPlay:b,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||z_(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,Zi(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(D5),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&&B_(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(U_);return}this.isUpdating||this.nodes.forEach(N5),this.isUpdating=!1,this.nodes.forEach(P5),this.nodes.forEach(C5),this.nodes.forEach(S5),this.clearAllSnapshots();const s=Br.now();$t.delta=Ji(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,Sg.update.process($t),Sg.preRender.process($t),Sg.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R5),this.sharedNodes.forEach(L5)}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&&!P_(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||ta(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)),j5(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(U5))){const{scroll:c}=this.root;c&&(as(u.x,c.offset.x),as(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),as(u.x,d.offset.x),as(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&&ss(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ta(c.latestValues)&&ss(u,c.latestValues)}return ta(this.latestValues)&&ss(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||!ta(l.latestValues))continue;u0(l.latestValues)&&l.updateSnapshot();const c=bt(),d=l.measurePageBox();rr(c,d),R_(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return ta(this.latestValues)&&R_(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(),nl(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(),zM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),c_(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(),nl(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}il&&na.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||u0(this.parent.latestValues)||s_(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;XM(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():(S_(this.prevProjectionDelta.x,this.projectionDelta.x),S_(this.prevProjectionDelta.y,this.projectionDelta.y)),tl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!M_(this.projectionDelta.x,this.prevProjectionDelta.x)||!M_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),il&&na.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=os(),this.projectionDelta=os(),this.projectionDeltaWithTransform=os()}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},d=os();(!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(F5));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const _=T/1e3;H_(d.x,a.x,_),H_(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),M5(this.relativeTarget,this.relativeTargetOrigin,f,_),w&&m5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=bt()),rr(w,this.relativeTarget)),y&&(this.animationValues=c,l5(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&&(Zi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Xd.hasAnimatedSinceResize=!0,this.currentAnimation=E5(0,F_,{...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(F_),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&&q_(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),ss(s,c),tl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new g5),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&&p0("z",a,l,this.animationValues);for(let c=0;c<f0.length;c++)p0(`rotate${f0[c]}`,a,l,this.animationValues),p0(`skew${f0[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 T5;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Zd(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=Zd(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ta(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=y5(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 Qd){if(f[y]===void 0)continue;const{correct:b,applyTo:g}=Qd[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?Zd(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(U_),this.root.sharedNodes.clear()}}}function C5(e){e.updateLayout()}function S5(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}):q_(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=os();tl(s,r,n.layoutBox);const u=os();a?tl(u,e.applyTransform(i,!0),n.measuredBox):tl(u,r,n.layoutBox);const l=!P_(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();nl(m,n.layoutBox,f.layoutBox);const y=bt();nl(y,r,p.layoutBox),D_(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 A5(e){il&&na.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 k5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R5(e){e.clearSnapshot()}function U_(e){e.clearMeasurements()}function N5(e){e.isLayoutDirty=!1}function P5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function z_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function I5(e){e.resolveTargetDelta()}function O5(e){e.calcProjection()}function D5(e){e.resetSkewAndRotation()}function L5(e){e.removeLeadSnapshot()}function H_(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 V_(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function M5(e,t,n,r){V_(e.x,t.x,n.x,r),V_(e.y,t.y,n.y,r)}function F5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const B5={duration:.45,ease:[.4,0,.1,1]},$_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),W_=$_("applewebkit/")&&!$_("chrome/")?Math.round:Zt;function Y_(e){e.min=W_(e.min),e.max=W_(e.max)}function j5(e){Y_(e.x),Y_(e.y)}function q_(e,t,n){return e==="position"||e==="preserve-aspect"&&!UM(L_(t),L_(n),.2)}function U5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const z5=j_({attachResizeListener:(e,t)=>hi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),h0={current:void 0},G_=j_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!h0.current){const e=new z5({});e.mount(window),e.setOptions({layoutScroll:!0}),h0.current=e}return h0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),H5={pan:{Feature:n5},drag:{Feature:t5,ProjectionNode:G_,MeasureLayout:x_}};function K_(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,a)=>{if(o.pointerType==="touch"||GT())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 mi(e.current,n,i,{passive:!e.getProps()[r]})}class V5 extends no{mount(){this.unmount=pi(K_(this.node,!0),K_(this.node,!1))}unmount(){}}class $5 extends no{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=pi(hi(this.node.current,"focus",()=>this.onFocus()),hi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const X_=(e,t)=>t?e===t?!0:X_(e,t.parentElement):!1;function m0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Yd(n))}class W5 extends no{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=mi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!X_(this.node.current,s.target)?c:l;f&&Xe.update(()=>f(s,u))},{passive:!(r.onTap||r.onPointerUp)}),a=mi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pi(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()||m0("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Xe.postRender(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=hi(this.node.current,"keyup",a),m0("down",(s,u)=>{this.startPress(s,u)})},n=hi(this.node.current,"keydown",t),r=()=>{this.isPressing&&m0("cancel",(o,a)=>this.cancelPress(o,a))},i=hi(this.node.current,"blur",r);this.removeAccessibleListeners=pi(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),!GT()}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=mi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=hi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const g0=new WeakMap,y0=new WeakMap,Y5=e=>{const t=g0.get(e.target);t&&t(e)},q5=e=>{e.forEach(Y5)};function G5({root:e,...t}){const n=e||document;y0.has(n)||y0.set(n,{});const r=y0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(q5,{root:e,...t})),r[i]}function K5(e,t,n){const r=G5(t);return g0.set(e,n),r.observe(e),()=>{g0.delete(e),r.unobserve(e)}}const X5={some:0,all:1};class Q5 extends no{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:X5[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 K5(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(Z5(t,n))&&this.startObserver()}unmount(){}}function Z5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const J5={inView:{Feature:Q5},tap:{Feature:W5},focus:{Feature:$5},hover:{Feature:V5}},e8={layout:{ProjectionNode:G_,MeasureLayout:x_}},v0=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Jd=v.createContext({}),x0=typeof window<"u",Q_=x0?v.useLayoutEffect:v.useEffect,Z_=v.createContext({strict:!1});function t8(e,t,n,r,i){var o,a;const{visualElement:s}=v.useContext(Jd),u=v.useContext(Z_),l=v.useContext(Kd),c=v.useContext(v0).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(y_);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&n8(d.current,n,i,p),v.useInsertionEffect(()=>{f&&f.update(n,l)});const m=n[DT],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 Q_(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),d0.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 n8(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:J_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&is(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:l})}function J_(e){if(e)return e.options.allowProjection!==!1?e.projection:J_(e.parent)}function r8(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):is(n)&&(n.current=r))},[t])}function ef(e){return Wu(e.animate)||_g.some(t=>Yu(e[t]))}function e2(e){return!!(ef(e)||e.variants)}function i8(e,t){if(ef(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Yu(n)?n:void 0,animate:Yu(r)?r:void 0}}return e.inherit!==!1?t:{}}function o8(e){const{initial:t,animate:n}=i8(e,v.useContext(Jd));return v.useMemo(()=>({initial:t,animate:n}),[t2(t),t2(n)])}function t2(e){return Array.isArray(e)?e.join(" "):e}const n2={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"]},us={};for(const e in n2)us[e]={isEnabled:t=>n2[e].some(n=>!!t[n])};function a8(e){for(const t in e)us[t]={...us[t],...e[t]}}const s8=Symbol.for("motionComponentSymbol");function u8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&a8(e);function o(s,u){let l;const c={...v.useContext(v0),...s,layoutId:l8(s)},{isStatic:d}=c,f=o8(s),p=r(s,d);if(!d&&x0){c8();const m=d8(c);l=m.MeasureLayout,f.visualElement=t8(i,p,c,t,m.ProjectionNode)}return E.jsxs(Jd.Provider,{value:f,children:[l&&f.visualElement?E.jsx(l,{visualElement:f.visualElement,...c}):null,n(i,s,r8(p,f.visualElement,u),p,d,f.visualElement)]})}const a=v.forwardRef(o);return a[s8]=i,a}function l8({layoutId:e}){const t=v.useContext(c0).id;return t&&e!==void 0?t+"-"+e:e}function c8(e,t){v.useContext(Z_).strict}function d8(e){const{drag:t,layout:n}=us;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 f8=["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 w0(e){return typeof e!="string"||e.includes("-")?!1:!!(f8.indexOf(e)>-1||/[A-Z]/u.test(e))}function r2(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 i2=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 o2(e,t,n,r){r2(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(i2.has(i)?i:Wd(i),t.attrs[i])}function a2(e,{layout:t,layoutId:n}){return Qi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qd[e]||e==="opacity")}function b0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(en(i[a])||t.style&&en(t.style[a])||a2(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 s2(e,t,n){const r=b0(e,t,n);for(const i in e)if(en(e[i])||en(t[i])){const o=qu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function E0(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function p8(e){if(Qi.has(e))return"transform";if(AT.has(e))return Wd(e)}function h8({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,a,s){const u={latestValues:m8(i,o,a,s?!1:e,t),renderState:n()};return r&&(u.mount=l=>r(i,l,u)),u}const u2=e=>(t,n)=>{const r=v.useContext(Jd),i=v.useContext(Kd),o=()=>h8(e,t,r,i,n);return n?o():E0(o)};function l2(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const o=Eg(e,r[i]);if(o){const{transitionEnd:a,transition:s,...u}=o;n(u,a)}}}function m8(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]=Zd(l[b]);let{initial:c,animate:d}=e;const f=ef(e),p=e2(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"&&!Wu(y)&&l2(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&&!Wu(d)&&l2(e,d,b=>{for(const g in b){const x=p8(g);x&&s.add(x)}}),s.size&&(a.willChange=Array.from(s).join(","))),a}const T0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),c2=()=>({...T0(),attrs:{}}),d2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,g8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},y8=qu.length;function v8(e,t,n){let r="",i=!0;for(let o=0;o<y8;o++){const a=qu[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=d2(s,jg[a]);if(!u){i=!1;const c=g8[a]||a;r+=`${c}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _0(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(Qi.has(u)){a=!0;continue}else if(YE(u)){i[u]=l;continue}else{const c=d2(l,jg[u]);u.startsWith("origin")?(s=!0,o[u]=c):r[u]=c}}if(t.transform||(a||n?r.transform=v8(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 f2(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function x8(e,t,n){const r=f2(t,e.x,e.width),i=f2(n,e.y,e.height);return`${r} ${i}`}const w8={offset:"stroke-dashoffset",array:"stroke-dasharray"},b8={offset:"strokeDashoffset",array:"strokeDasharray"};function E8(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?w8:b8;e[o.offset]=ye.transform(-r);const a=ye.transform(t),s=ye.transform(n);e[o.array]=`${a} ${s}`}function C0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d){if(_0(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=x8(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&&E8(f,a,s,u,!1)}const S0=e=>typeof e=="string"&&e.toLowerCase()==="svg",T8={useVisualState:u2({scrapeMotionValuesFromProps:s2,createRenderState:c2,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(()=>{C0(n,r,S0(t.tagName),e.transformTemplate),o2(t,n)})}})},_8={useVisualState:u2({applyWillChange:!0,scrapeMotionValuesFromProps:b0,createRenderState:T0})};function p2(e,t,n){for(const r in t)!en(t[r])&&!a2(r,n)&&(e[r]=t[r])}function C8({transformTemplate:e},t){return v.useMemo(()=>{const n=T0();return _0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function S8(e,t){const n=e.style||{},r={};return p2(r,n,e),Object.assign(r,C8(e,t)),r}function A8(e,t){const n={},r=S8(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 k8=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 tf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||k8.has(e)}let h2=e=>!tf(e);function R8(e){e&&(h2=t=>t.startsWith("on")?!tf(t):e(t))}try{R8(require("@emotion/is-prop-valid").default)}catch{}function N8(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(h2(i)||n===!0&&tf(i)||!t&&!tf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function P8(e,t,n,r){const i=v.useMemo(()=>{const o=c2();return C0(o,t,S0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};p2(o,e.style,e),i.style={...o,...i.style}}return i}function I8(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(w0(n)?P8:A8)(r,o,a,n),l=N8(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 O8(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...w0(r)?T8:_8,preloadedFeatures:e,useRender:I8(i),createVisualElement:t,Component:r};return u8(a)}}const A0={current:null},m2={current:!1};function D8(){if(m2.current=!0,!!x0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>A0.current=e.matches;e.addListener(t),t()}else A0.current=!1}function L8(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,el(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,el(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const g2=new WeakMap,M8=[...JE,Jt,to],F8=e=>M8.find(ZE(e)),y2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class B8{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=Og,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=ef(n),this.isVariantNode=e2(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,g2.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)),m2.current||D8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:A0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){g2.delete(this.current),this.projection&&this.projection.unmount(),Zi(this.notifyUpdate),Zi(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=Qi.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 us){const n=us[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<y2.length;r++){const i=y2[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=L8(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=el(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"&&($E(i)||VE(i))?i=parseFloat(i):!F8(i)&&to.test(n)&&(i=cT(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=Eg(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 t0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class v2 extends B8{constructor(){super(...arguments),this.KeyframeResolver=dT}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 j8(e){return window.getComputedStyle(e)}class U8 extends v2{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=r2}readValueFromInstance(t,n){if(Qi.has(n)){const r=Ug(n);return r&&r.default||0}else{const r=j8(t),i=(YE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return h_(t,n)}build(t,n,r){_0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return b0(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 z8 extends v2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qi.has(n)){const r=Ug(n);return r&&r.default||0}return n=i2.has(n)?n:Wd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return s2(t,n,r)}build(t,n,r){C0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){o2(t,n,r,i)}mount(t){this.isSVGTag=S0(t.tagName),super.mount(t)}}const H8=(e,t)=>w0(e)?new z8(t):new U8(t,{allowProjection:e!==v.Fragment}),V8=O8({...PM,...J5,...H5,...e8},H8),ls=CL(V8);class $8 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 W8({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(v0);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;
|