@wellesley/ui 1.0.55 → 1.0.58
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/index.mjs +1 -1
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -58,4 +58,4 @@ const iS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fy=(...e)=>e.f
|
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the MIT license found in the
|
|
60
60
|
* LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/}function kS(){if(u0)return gr;u0=1;var e=Jr,t=ES();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!u.call(d,e)||!u.call(c,e)&&(s.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),k=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),D=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var O,T=Object.assign;function L(e){if(void 0===O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return"\n"+O+e}var I=!1;function M(e,t){if(!e||I)return"";I=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=i&&0<=l);break}}}finally{I=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function W(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1);case 11:return e=M(e.type.render,!1);case 1:return e=M(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case b:return"Portal";case C:return"Profiler";case x:return"StrictMode";case S:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return z(e(t))}catch{}}return null}function F(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=(e=t.render).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 z(t);case 8:return t===x?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function B(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function K(e,t){var n=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function G(e,t){q(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?X(e,t.type,n):t.hasOwnProperty("defaultValue")&&X(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function X(e,t,n){("number"!==t||H(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Z=Array.isArray;function J(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return T({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Z(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:$(r)}}function ne(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(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 ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,le,ue=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function se(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={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},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var he=T({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 ge=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,we=null,xe=null;function Ce(e){if(e=bo(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=xo(t),be(e.stateNode,e.type,t))}}function _e(e){we?xe?xe.push(e):xe=[e]:we=e}function ke(){if(we){var e=we,t=xe;if(xe=we=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ee(e,t){return e(t)}function Se(){}var Ne=!1;function Pe(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Ee(e,t,n)}finally{Ne=!1,(null!==we||null!==xe)&&(Se(),ke())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var o=xo(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var je=!1;if(l)try{var De={};Object.defineProperty(De,"passive",{get:function(){je=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch{je=!1}function Ae(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Oe=!1,Te=null,Le=!1,Ie=null,Me={onError:function(e){Oe=!0,Te=e}};function We(e,t,n,r,o,a,i,l,u){Oe=!1,Te=null,Ae.apply(Me,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{4098&(t=e).flags&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $e(e){if(ze(e)!==e)throw Error(n(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){r=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return $e(a),e;if(i===o)return $e(a),t;i=i.sibling}throw Error(n(188))}if(r.return!==o.return)r=a,o=i;else{for(var l=!1,u=a.child;u;){if(u===r){l=!0,r=a,o=i;break}if(u===o){l=!0,o=a,r=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===r){l=!0,r=i,o=a;break}if(u===o){l=!0,o=i,r=a;break}u=u.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Be(e):null}function Be(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Be(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,He=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,Qe=t.unstable_requestPaint,qe=t.unstable_now,Ge=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Je=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/at|0)|0},ot=Math.log,at=Math.LN2;var it=64,lt=4194304;function ut(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function st(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=ut(l):0!==(a&=i)&&(r=ut(a))}else 0!==(i=n&~o)?r=ut(i):0!==a&&(r=ut(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-rt(t)),r|=e[n],t&=~o;return r}function ct(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;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=it;return!(4194240&(it<<=1))&&(it=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var yt,bt,wt,xt,Ct,_t=!1,kt=[],Et=null,St=null,Nt=null,Pt=new Map,Rt=new Map,jt=[],Dt="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 At(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":St=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Ot(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=bo(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Tt(e){var t=yo(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bo(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function It(e,t,n){Lt(e)&&n.delete(t)}function Mt(){_t=!1,null!==Et&&Lt(Et)&&(Et=null),null!==St&&Lt(St)&&(St=null),null!==Nt&&Lt(Nt)&&(Nt=null),Pt.forEach(It),Rt.forEach(It)}function Wt(e,n){e.blockedOn===n&&(e.blockedOn=null,_t||(_t=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mt)))}function zt(e){function t(t){return Wt(t,e)}if(0<kt.length){Wt(kt[0],e);for(var n=1;n<kt.length;n++){var r=kt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Wt(Et,e),null!==St&&Wt(St,e),null!==Nt&&Wt(Nt,e),Pt.forEach(t),Rt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Tt(n),null===n.blockedOn&&jt.shift()}var Ft=g.ReactCurrentBatchConfig,$t=!0;function Vt(e,t,n,r){var o=vt,a=Ft.transition;Ft.transition=null;try{vt=1,Ut(e,t,n,r)}finally{vt=o,Ft.transition=a}}function Bt(e,t,n,r){var o=vt,a=Ft.transition;Ft.transition=null;try{vt=4,Ut(e,t,n,r)}finally{vt=o,Ft.transition=a}}function Ut(e,t,n,r){if($t){var o=Kt(e,t,n,r);if(null===o)Vr(e,t,r,Ht,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Et=Ot(Et,e,t,n,r,o),!0;case"dragenter":return St=Ot(St,e,t,n,r,o),!0;case"mouseover":return Nt=Ot(Nt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,Ot(Pt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Ot(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var a=bo(o);if(null!==a&&yt(a),null===(a=Kt(e,t,n,r))&&Vr(e,t,r,Ht,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Ht=null;function Kt(e,t,n,r){if(Ht=null,null!==(e=yo(e=ye(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ht=e,null}function Qt(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(Ge()){case Ye:return 1;case Xe:return 4;case Ze:case Je:return 16;case et:return 536870912;default:return 16}default:return 16}}var qt=null,Gt=null,Yt=null;function Xt(){if(Yt)return Yt;var e,t,n=Gt,r=n.length,o="value"in qt?qt.value:qt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function Zt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Jt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Jt:en,this.isPropagationStopped=en,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Jt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Jt)},persist:function(){},isPersistent:Jt}),t}var nn,rn,on,an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=tn(an),un=T({},an,{view:0,detail:0}),sn=tn(un),cn=T({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(nn=e.screenX-on.screenX,rn=e.screenY-on.screenY):rn=nn=0,on=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),dn=tn(cn),fn=tn(T({},cn,{dataTransfer:0})),pn=tn(T({},un,{relatedTarget:0})),hn=tn(T({},an,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=T({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=tn(mn),gn=tn(T({},an,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={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"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function Cn(){return xn}var _n=T({},un,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?Zt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=tn(_n),En=tn(T({},cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=tn(T({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=tn(T({},an,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=T({},cn,{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}),Rn=tn(Pn),jn=[9,13,27,32],Dn=l&&"CompositionEvent"in window,An=null;l&&"documentMode"in document&&(An=document.documentMode);var On=l&&"TextEvent"in window&&!An,Tn=l&&(!Dn||An&&8<An&&11>=An),Ln=" ",In=!1;function Mn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Fn={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Ur(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bn=null,Un=null;function Hn(e){Ir(e,0)}function Kn(e){if(U(wo(e)))return e}function Qn(e,t){if("change"===e)return t}var qn=!1;if(l){var Gn;if(l){var Yn="oninput"in document;if(!Yn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Yn="function"==typeof Xn.oninput}Gn=Yn}else Gn=!1;qn=Gn&&(!document.documentMode||9<document.documentMode)}function Zn(){Bn&&(Bn.detachEvent("onpropertychange",Jn),Un=Bn=null)}function Jn(e){if("value"===e.propertyName&&Kn(Un)){var t=[];Vn(t,Un,e,ye(e)),Pe(Hn,t)}}function er(e,t,n){"focusin"===e?(Zn(),Un=n,(Bn=t).attachEvent("onpropertychange",Jn)):"focusout"===e&&Zn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Un)}function nr(e,t){if("click"===e)return Kn(t)}function rr(e,t){if("input"===e||"change"===e)return Kn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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 o=n[r];if(!u.call(t,o)||!or(e[o],t[o]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function sr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=sr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=lr(n,a);var i=lr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=l&&"documentMode"in document&&11>=document.documentMode,pr=null,hr=null,mr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==pr||pr!==H(r)||("selectionStart"in(r=pr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&ar(mr,r)||(mr=r,0<(r=Ur(hr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},xr={},Cr={};function _r(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}l&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var kr=_r("animationend"),Er=_r("animationiteration"),Sr=_r("animationstart"),Nr=_r("transitionend"),Pr=new Map,Rr="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 jr(e,t){Pr.set(e,t),a(t,[e])}for(var Dr=0;Dr<Rr.length;Dr++){var Ar=Rr[Dr];jr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}jr(kr,"onAnimationEnd"),jr(Er,"onAnimationIteration"),jr(Sr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Nr,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="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(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Lr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,a,i,l,u,s){if(We.apply(this,arguments),Oe){if(!Oe)throw Error(n(198));var c=Te;Oe=!1,Te=null,Le||(Le=!0,Ie=c)}}(o,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&o.isPropagationStopped())break e;Lr(o,l,s),a=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==a&&o.isPropagationStopped())break e;Lr(o,l,s),a=u}}}if(Le)throw e=Ie,Le=!1,Ie=null,e}function Mr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Wr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[zr]){e[zr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Tr.has(t)||Wr(t,!1,e),Wr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Wr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Qt(t)){case 1:var o=Vt;break;case 4:o=Bt;break;default:o=Ut}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=yo(l)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=a,o=ye(n),i=[];e:{var l=Pr.get(e);if(void 0!==l){var u=ln,s=e;switch(e){case"keypress":if(0===Zt(n))break e;case"keydown":case"keyup":u=kn;break;case"focusin":s="focus",u=pn;break;case"focusout":s="blur",u=pn;break;case"beforeblur":case"afterblur":u=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Sn;break;case kr:case Er:case Sr:u=hn;break;case Nr:u=Nn;break;case"scroll":u=sn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=En}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Re(h,f))&&c.push(Br(h,m,p)))),d)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),i.push({event:l,listeners:c}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===ge||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[ho])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=ze(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=dn,m="onMouseLeave",f="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=En,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==u?l:wo(u),p=null==s?l:wo(s),(l=new c(m,h+"leave",u,n,o)).target=d,l.relatedTarget=p,m=null,yo(o)===r&&((c=new c(f,h+"enter",s,n,o)).target=p,c.relatedTarget=d,m=c),d=m,u&&s)e:{for(f=s,h=0,p=c=u;p;p=Hr(p))h++;for(p=0,m=f;m;m=Hr(m))p++;for(;0<h-p;)c=Hr(c),h--;for(;0<p-h;)f=Hr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Hr(c),f=Hr(f)}c=null}else c=null;null!==u&&Kr(i,l,u,c,!1),null!==s&&null!==d&&Kr(i,d,s,c,!0)}if("select"===(u=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Qn;else if($n(l))if(qn)v=rr;else{v=tr;var g=er}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=nr);switch(v&&(v=v(e,r))?Vn(i,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&X(l,"number",l.value)),g=r?wo(r):window,e){case"focusin":($n(g)||"true"===g.contentEditable)&&(pr=g,hr=r,mr=null);break;case"focusout":mr=hr=pr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(i,n,o);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":yr(i,n,o)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Tn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=Xt()):(Gt="value"in(qt=o)?qt.value:qt.textContent,zn=!0)),0<(g=Ur(r,b)).length&&(b=new gn(b,e,null,n,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Wn(n))&&(b.data=y))),(y=On?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(In=!0,Ln);case"textInput":return(e=t.data)===Ln&&In?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Dn&&Mn(e,t)?(e=Xt(),Yt=Gt=qt=null,zn=!1,e):null;switch(e){case"paste":default: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 Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new gn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Ir(i,t)}))}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Br(e,a,o)),null!=(a=Re(e,t))&&r.push(Br(e,a,o))),e=e.return}return r}function Hr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Re(n,a))&&i.unshift(Br(n,u,l)):o||null!=(u=Re(n,a))&&i.push(Br(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(qr,"")}function Yr(e,t,r){if(t=Gr(t),Gr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Zr=null,eo=null;function to(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,ro="function"==typeof clearTimeout?clearTimeout:void 0,oo="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:typeof oo<"u"?function(e){return oo.resolve(null).then(e).catch(io)}:no;function io(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function so(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var co=Math.random().toString(36).slice(2),fo="__reactFiber$"+co,po="__reactProps$"+co,ho="__reactContainer$"+co,mo="__reactEvents$"+co,vo="__reactListeners$"+co,go="__reactHandles$"+co;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=so(e);null!==e;){if(n=e[fo])return n;e=so(e)}return t}n=(e=n).parentNode}return null}function bo(e){return!(e=e[fo]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function xo(e){return e[po]||null}var Co=[],_o=-1;function ko(e){return{current:e}}function Eo(e){0>_o||(e.current=Co[_o],Co[_o]=null,_o--)}function So(e,t){_o++,Co[_o]=e.current,e.current=t}var No={},Po=ko(No),Ro=ko(!1),jo=No;function Do(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ao(e){return null!=(e=e.childContextTypes)}function Oo(){Eo(Ro),Eo(Po)}function To(e,t,r){if(Po.current!==No)throw Error(n(168));So(Po,t),So(Ro,r)}function Lo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())if(!(a in t))throw Error(n(108,F(e)||"Unknown",a));return T({},r,o)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,jo=Po.current,So(Po,e),So(Ro,Ro.current),!0}function Mo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Lo(e,t,jo),o.__reactInternalMemoizedMergedChildContext=e,Eo(Ro),Eo(Po),So(Po,e)):Eo(Ro),So(Ro,r)}var Wo=null,zo=!1,Fo=!1;function $o(e){null===Wo?Wo=[e]:Wo.push(e)}function Vo(){if(!Fo&&null!==Wo){Fo=!0;var e=0,t=vt;try{var n=Wo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Wo=null,zo=!1}catch(t){throw null!==Wo&&(Wo=Wo.slice(e+1)),Ue(Ye,Vo),t}finally{vt=t,Fo=!1}}return null}var Bo=[],Uo=0,Ho=null,Ko=0,Qo=[],qo=0,Go=null,Yo=1,Xo="";function Zo(e,t){Bo[Uo++]=Ko,Bo[Uo++]=Ho,Ho=e,Ko=t}function Jo(e,t,n){Qo[qo++]=Yo,Qo[qo++]=Xo,Qo[qo++]=Go,Go=e;var r=Yo;e=Xo;var o=32-rt(r)-1;r&=~(1<<o),n+=1;var a=32-rt(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Yo=1<<32-rt(t)+o|n<<o|r,Xo=a+e}else Yo=1<<a|n<<o|r,Xo=e}function ea(e){null!==e.return&&(Zo(e,1),Jo(e,1,0))}function ta(e){for(;e===Ho;)Ho=Bo[--Uo],Bo[Uo]=null,Ko=Bo[--Uo],Bo[Uo]=null;for(;e===Go;)Go=Qo[--qo],Qo[qo]=null,Xo=Qo[--qo],Qo[qo]=null,Yo=Qo[--qo],Qo[qo]=null}var na=null,ra=null,oa=!1,aa=null;function ia(e,t){var n=Ds(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ds(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function sa(e){if(oa){var t=ra;if(t){var r=t;if(!la(e,t)){if(ua(e))throw Error(n(418));t=uo(r.nextSibling);var o=na;t&&la(e,t)?ia(o,r):(e.flags=-4097&e.flags|2,oa=!1,na=e)}}else{if(ua(e))throw Error(n(418));e.flags=-4097&e.flags|2,oa=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!oa)return ca(e),oa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!to(e.type,e.memoizedProps)),t&&(t=ra)){if(ua(e))throw fa(),Error(n(418));for(;t;)ia(e,t),t=uo(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ra=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ra=null}}else ra=na?uo(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=ra;e;)e=uo(e.nextSibling)}function pa(){ra=na=null,oa=!1}function ha(e){null===aa?aa=[e]:aa.push(e)}var ma=g.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var n in t=T({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ga=ko(null),ya=null,ba=null,wa=null;function xa(){wa=ba=ya=null}function Ca(e){var t=ga.current;Eo(ga),e._currentValue=t}function _a(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ka(e,t){ya=e,wa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(bl=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ya)throw Error(n(308));ba=e,ya.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Sa=null;function Na(e){null===Sa?Sa=[e]:Sa.push(e)}function Pa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Na(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ra(e,r)}function Ra(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Aa(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 Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ra(e,n)}return null===(o=r.interleaved)?(t.next=t,Na(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ra(e,n)}function La(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ma(e,t,n,r){var o=e.updateQueue;ja=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?a=s:i.next=s,i=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==a){var d=o.baseState;for(i=0,c=s=u=null,l=a;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=T({},d,f);break e;case 2:ja=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Iu|=i,e.lanes=i,e.memoizedState=d}}function Wa(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=r,"function"!=typeof a)throw Error(n(191,a));a.call(o)}}}var za=(new e.Component).refs;function Fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:T({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $a={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),a=Oa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ta(e,a,o))&&(ns(t,e,o,r),La(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),a=Oa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ta(e,a,o))&&(ns(t,e,o,r),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Oa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ta(e,o,r))&&(ns(t,e,r,n),La(t,e,r))}};function Va(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ar(n,r)||!ar(o,a))}function Ba(e,t,n){var r=!1,o=No,a=t.contextType;return"object"==typeof a&&null!==a?a=Ea(a):(o=Ao(t)?jo:Po.current,a=(r=null!=(r=t.contextTypes))?Do(e,o):No),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$a,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ua(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$a.enqueueReplaceState(t,t.state,null)}function Ha(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=za,Da(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ea(a):(a=Ao(t)?jo:Po.current,o.context=Do(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Fa(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&$a.enqueueReplaceState(o,o.state,null),Ma(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ka(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var a=o,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=a.refs;t===za&&(t=a.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qa(e){return(0,e._init)(e._payload)}function Ga(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Os(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ms(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function s(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&qa(o)===t.type)?((r=a(t,n.props)).ref=Ka(e,t,n),r.return=e,r):((r=Ts(n.type,n.key,n.props,null,e.mode,r)).ref=Ka(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ws(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ls(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ms(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Ts(t.type,t.key,t.props,null,e.mode,n)).ref=Ka(e,null,t),n.return=e,n;case b:return(t=Ws(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(Z(t)||A(t))return(t=Ls(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?s(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(Z(n)||A(n))return null!==o?null:d(e,t,n,r,null);Qa(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return h(e,t,n,(0,r._init)(r._payload),o)}if(Z(r)||A(r))return d(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}return function u(s,c,d,m){if("object"==typeof d&&null!==d&&d.type===w&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var v=d.key,g=c;null!==g;){if(g.key===v){if((v=d.type)===w){if(7===g.tag){r(s,g.sibling),(c=a(g,d.props.children)).return=s,s=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===R&&qa(v)===g.type){r(s,g.sibling),(c=a(g,d.props)).ref=Ka(s,g,d),c.return=s,s=c;break e}r(s,g);break}t(s,g),g=g.sibling}d.type===w?((c=Ls(d.props.children,s.mode,m,d.key)).return=s,s=c):((m=Ts(d.type,d.key,d.props,null,s.mode,m)).ref=Ka(s,c,d),m.return=s,s=m)}return l(s);case b:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(s,c.sibling),(c=a(c,d.children||[])).return=s,s=c;break e}r(s,c);break}t(s,c),c=c.sibling}(c=Ws(d,s.mode,m)).return=s,s=c}return l(s);case R:return u(s,c,(g=d._init)(d._payload),m)}if(Z(d))return function(n,a,l,u){for(var s=null,c=null,d=a,m=a=0,v=null;null!==d&&m<l.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(n,d,l[m],u);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(n,d),a=i(g,a,m),null===c?s=g:c.sibling=g,c=g,d=v}if(m===l.length)return r(n,d),oa&&Zo(n,m),s;if(null===d){for(;m<l.length;m++)null!==(d=f(n,l[m],u))&&(a=i(d,a,m),null===c?s=d:c.sibling=d,c=d);return oa&&Zo(n,m),s}for(d=o(n,d);m<l.length;m++)null!==(v=h(d,n,m,l[m],u))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(n,e)})),oa&&Zo(n,m),s}(s,c,d,m);if(A(d))return function(a,l,u,s){var c=A(u);if("function"!=typeof c)throw Error(n(150));if(null==(u=c.call(u)))throw Error(n(151));for(var d=c=null,m=l,v=l=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(a,m,y.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return r(a,m),oa&&Zo(a,v),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=f(a,y.value,s))&&(l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return oa&&Zo(a,v),c}for(m=o(a,m);!y.done;v++,y=u.next())null!==(y=h(m,a,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(a,e)})),oa&&Zo(a,v),c}(s,c,d,m);Qa(s,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(s,c.sibling),(c=a(c,d)).return=s,s=c):(r(s,c),(c=Ms(d,s.mode,m)).return=s,s=c),l(s)):r(s,c)}}var Ya=Ga(!0),Xa=Ga(!1),Za={},Ja=ko(Za),ei=ko(Za),ti=ko(Za);function ni(e){if(e===Za)throw Error(n(174));return e}function ri(e,t){switch(So(ti,t),So(ei,e),So(Ja,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Ja),So(Ja,t)}function oi(){Eo(Ja),Eo(ei),Eo(ti)}function ai(e){ni(ti.current);var t=ni(Ja.current),n=ae(t,e.type);t!==n&&(So(ei,e),So(Ja,n))}function ii(e){ei.current===e&&(Eo(Ja),Eo(ei))}var li=ko(0);function ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var si=[];function ci(){for(var e=0;e<si.length;e++)si[e]._workInProgressVersionPrimary=null;si.length=0}var di=g.ReactCurrentDispatcher,fi=g.ReactCurrentBatchConfig,pi=0,hi=null,mi=null,vi=null,gi=!1,yi=!1,bi=0,wi=0;function xi(){throw Error(n(321))}function Ci(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function _i(e,t,r,o,a,i){if(pi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=null===e||null===e.memoizedState?il:ll,e=r(o,a),yi){i=0;do{if(yi=!1,bi=0,25<=i)throw Error(n(301));i+=1,vi=mi=null,t.updateQueue=null,di.current=ul,e=r(o,a)}while(yi)}if(di.current=al,t=null!==mi&&null!==mi.next,pi=0,vi=mi=hi=null,gi=!1,t)throw Error(n(300));return e}function ki(){var e=0!==bi;return bi=0,e}function Ei(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?hi.memoizedState=vi=e:vi=vi.next=e,vi}function Si(){if(null===mi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=mi.next;var t=null===vi?hi.memoizedState:vi.next;if(null!==t)vi=t,mi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(mi=e).memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},null===vi?hi.memoizedState=vi=e:vi=vi.next=e}return vi}function Ni(e,t){return"function"==typeof t?t(e):t}function Pi(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=mi,a=o.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}o.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,o=o.baseState;var u=l=null,s=null,c=i;do{var d=c.lane;if((pi&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=f,l=o):s=s.next=f,hi.lanes|=d,Iu|=d}c=c.next}while(null!==c&&c!==i);null===s?l=o:s.next=u,or(o,t.memoizedState)||(bl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=s,r.lastRenderedState=o}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,hi.lanes|=i,Iu|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ri(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);or(i,t.memoizedState)||(bl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function ji(){}function Di(e,t){var r=hi,o=Si(),a=t(),i=!or(o.memoizedState,a);if(i&&(o.memoizedState=a,bl=!0),o=o.queue,Bi(Ti.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||null!==vi&&1&vi.memoizedState.tag){if(r.flags|=2048,Wi(9,Oi.bind(null,r,o,a,t),void 0,null),null===Ru)throw Error(n(349));30&pi||Ai(r,t,a)}return a}function Ai(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oi(e,t,n,r){t.value=n,t.getSnapshot=r,Li(t)&&Ii(e)}function Ti(e,t,n){return n((function(){Li(t)&&Ii(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch{return!0}}function Ii(e){var t=Ra(e,1);null!==t&&ns(t,e,1,-1)}function Mi(e){var t=Ei();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:e},t.queue=e,e=e.dispatch=tl.bind(null,hi,e),[t.memoizedState,e]}function Wi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Si().memoizedState}function Fi(e,t,n,r){var o=Ei();hi.flags|=e,o.memoizedState=Wi(1|t,n,void 0,void 0===r?null:r)}function $i(e,t,n,r){var o=Si();r=void 0===r?null:r;var a=void 0;if(null!==mi){var i=mi.memoizedState;if(a=i.destroy,null!==r&&Ci(r,i.deps))return void(o.memoizedState=Wi(t,n,a,r))}hi.flags|=e,o.memoizedState=Wi(1|t,n,a,r)}function Vi(e,t){return Fi(8390656,8,e,t)}function Bi(e,t){return $i(2048,8,e,t)}function Ui(e,t){return $i(4,2,e,t)}function Hi(e,t){return $i(4,4,e,t)}function Ki(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qi(e,t,n){return n=null!=n?n.concat([e]):null,$i(4,4,Ki.bind(null,t,e),n)}function qi(){}function Gi(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yi(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 21&pi?(or(n,t)||(n=ft(),hi.lanes|=n,Iu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=n)}function Zi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function Ji(){return Si().memoizedState}function el(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nl(e))rl(t,n);else if(null!==(n=Pa(e,t,n,r))){ns(n,e,r,es()),ol(n,t,r)}}function tl(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nl(e))rl(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,or(l,i)){var u=t.interleaved;return null===u?(o.next=o,Na(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch{}null!==(n=Pa(e,t,o,r))&&(ns(n,e,r,o=es()),ol(n,t,r))}}function nl(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function rl(e,t){yi=gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var al={readContext:Ea,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},il={readContext:Ea,useCallback:function(e,t){return Ei().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:Vi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=Ei();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ei();return t=void 0!==n?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=el.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ei().memoizedState=e},useState:Mi,useDebugValue:qi,useDeferredValue:function(e){return Ei().memoizedState=e},useTransition:function(){var e=Mi(!1),t=e[0];return e=Zi.bind(null,e[1]),Ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=hi,a=Ei();if(oa){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ru)throw Error(n(349));30&pi||Ai(o,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Vi(Ti.bind(null,o,i,e),[e]),o.flags|=2048,Wi(9,Oi.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Ei(),t=Ru.identifierPrefix;if(oa){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-rt(Yo)-1)).toString(32)+n),0<(n=bi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ll={readContext:Ea,useCallback:Gi,useContext:Ea,useEffect:Bi,useImperativeHandle:Qi,useInsertionEffect:Ui,useLayoutEffect:Hi,useMemo:Yi,useReducer:Pi,useRef:zi,useState:function(){return Pi(Ni)},useDebugValue:qi,useDeferredValue:function(e){return Xi(Si(),mi.memoizedState,e)},useTransition:function(){return[Pi(Ni)[0],Si().memoizedState]},useMutableSource:ji,useSyncExternalStore:Di,useId:Ji,unstable_isNewReconciler:!1},ul={readContext:Ea,useCallback:Gi,useContext:Ea,useEffect:Bi,useImperativeHandle:Qi,useInsertionEffect:Ui,useLayoutEffect:Hi,useMemo:Yi,useReducer:Ri,useRef:zi,useState:function(){return Ri(Ni)},useDebugValue:qi,useDeferredValue:function(e){var t=Si();return null===mi?t.memoizedState=e:Xi(t,mi.memoizedState,e)},useTransition:function(){return[Ri(Ni)[0],Si().memoizedState]},useMutableSource:ji,useSyncExternalStore:Di,useId:Ji,unstable_isNewReconciler:!1};function sl(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uu||(Uu=!0,Hu=r),dl(0,t)},n}function hl(e,t,n){(n=Oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Es.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oa(-1,1)).tag=2,Ta(n,t,1))),n.lanes|=1),e)}var yl=g.ReactCurrentOwner,bl=!1;function wl(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ya(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var a=t.ref;return ka(t,o),r=_i(e,t,n,r,a,o),n=ki(),null===e||bl?(oa&&n&&ea(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||As(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ts(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,_l(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(i,r)&&e.ref===t.ref)return Ul(e,t,o)}return t.flags|=1,(e=Os(a,r)).ref=t.ref,e.return=t,t.child=e}function _l(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ar(a,r)&&e.ref===t.ref){if(bl=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Ul(e,t,o);131072&e.flags&&(bl=!0)}}return Sl(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,So(Ou,Au),Au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,So(Ou,Au),Au|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},So(Ou,Au),Au|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,So(Ou,Au),Au|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sl(e,t,n,r,o){var a=Ao(n)?jo:Po.current;return a=Do(t,a),ka(t,o),n=_i(e,t,n,r,a,o),r=ki(),null===e||bl?(oa&&r&&ea(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Nl(e,t,n,r,o){if(Ao(n)){var a=!0;Io(t)}else a=!1;if(ka(t,o),null===t.stateNode)Bl(e,t),Ba(t,n,r),Ha(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;"object"==typeof s&&null!==s?s=Ea(s):s=Do(t,s=Ao(n)?jo:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Ua(t,i,r,s),ja=!1;var f=t.memoizedState;i.state=f,Ma(t,r,i,o),u=t.memoizedState,l!==r||f!==u||Ro.current||ja?("function"==typeof c&&(Fa(t,n,c,r),u=t.memoizedState),(l=ja||Va(t,n,l,r,f,u,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Aa(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:va(t.type,l),i.props=s,d=t.pendingProps,f=i.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ea(u):u=Do(t,u=Ao(n)?jo:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==u)&&Ua(t,i,r,u),ja=!1,f=t.memoizedState,i.state=f,Ma(t,r,i,o);var h=t.memoizedState;l!==d||f!==h||Ro.current||ja?("function"==typeof p&&(Fa(t,n,p,r),h=t.memoizedState),(s=ja||Va(t,n,s,r,f,h,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,a,o)}function Pl(e,t,n,r,o,a){El(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Mo(t,n,!1),Ul(e,t,a);r=t.stateNode,yl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Rl(e){var t=e.stateNode;t.pendingContext?To(0,t.pendingContext,t.pendingContext!==t.context):t.context&&To(0,t.context,!1),ri(e,t.containerInfo)}function jl(e,t,n,r,o){return pa(),ha(o),t.flags|=256,wl(e,t,n,r),t.child}var Dl,Al,Ol,Tl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Il(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ml(e,t,r){var o,a=t.pendingProps,i=li.current,l=!1,u=!!(128&t.flags);if((o=u)||(o=(null===e||null!==e.memoizedState)&&!!(2&i)),o?(l=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(i|=1),So(li,1&i),null===e)return sa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=a.children,e=a.fallback,l?(a=t.mode,l=t.child,u={mode:"hidden",children:u},1&a||null===l?l=Is(u,a,0,null):(l.childLanes=0,l.pendingProps=u),e=Ls(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Il(r),t.memoizedState=Ll,e):Wl(t,u));if(null!==(i=e.memoizedState)&&null!==(o=i.dehydrated))return function(e,t,r,o,a,i,l){if(r)return 256&t.flags?(t.flags&=-257,o=cl(Error(n(422))),zl(e,t,l,o)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=o.fallback,a=t.mode,o=Is({mode:"visible",children:o.children},a,0,null),i=Ls(i,a,l,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,1&t.mode&&Ya(t,e.child,null,l),t.child.memoizedState=Il(l),t.memoizedState=Ll,i);if(!(1&t.mode))return zl(e,t,l,null);if("$!"===a.data){if(o=a.nextSibling&&a.nextSibling.dataset)var u=o.dgst;return o=u,zl(e,t,l,o=cl(i=Error(n(419)),o,void 0))}if(u=!!(l&e.childLanes),bl||u){if(null!==(o=Ru)){switch(l&-l){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=a&(o.suspendedLanes|l)?0:a)&&a!==i.retryLane&&(i.retryLane=a,Ra(e,a),ns(o,e,a,-1))}return ms(),zl(e,t,l,o=cl(Error(n(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Ns.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ra=uo(a.nextSibling),na=t,oa=!0,aa=null,null!==e&&(Qo[qo++]=Yo,Qo[qo++]=Xo,Qo[qo++]=Go,Yo=e.id,Xo=e.overflow,Go=t),t=Wl(t,o.children),t.flags|=4096,t)}(e,t,u,a,o,i,r);if(l){l=a.fallback,u=t.mode,o=(i=e.child).sibling;var s={mode:"hidden",children:a.children};return 1&u||t.child===i?(a=Os(i,s)).subtreeFlags=14680064&i.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=s,t.deletions=null),null!==o?l=Os(o,l):(l=Ls(l,u,r,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,u=null===(u=e.child.memoizedState)?Il(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~r,t.memoizedState=Ll,a}return e=(l=e.child).sibling,a=Os(l,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Wl(e,t){return(t=Is({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&ha(r),Ya(t,e.child,null,n),(e=Wl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function $l(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Vl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),2&(r=li.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fl(e,n,t);else if(19===e.tag)Fl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(So(li,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Iu|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Os(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Os(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hl(e,t){if(!oa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,r){var a=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Ao(t.type)&&Oo(),Kl(t),null;case 3:return a=t.stateNode,oi(),Eo(Ro),Eo(Po),ci(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(null===e||null===e.child)&&(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(is(aa),aa=null))),Al(e,t),Kl(t),null;case 5:ii(t);var i=ni(ti.current);if(r=t.type,null!==e&&null!=t.stateNode)Ol(e,t,r,a,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(n(166));return Kl(t),null}if(e=ni(Ja.current),da(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[fo]=t,a[po]=l,e=!!(1&t.mode),r){case"dialog":Mr("cancel",a),Mr("close",a);break;case"iframe":case"object":case"embed":Mr("load",a);break;case"video":case"audio":for(i=0;i<Or.length;i++)Mr(Or[i],a);break;case"source":Mr("error",a);break;case"img":case"image":case"link":Mr("error",a),Mr("load",a);break;case"details":Mr("toggle",a);break;case"input":Q(a,l),Mr("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},Mr("invalid",a);break;case"textarea":te(a,l),Mr("invalid",a)}for(var u in me(r,l),i=null,l)if(l.hasOwnProperty(u)){var s=l[u];"children"===u?"string"==typeof s?a.textContent!==s&&(!0!==l.suppressHydrationWarning&&Yr(a.textContent,s,e),i=["children",s]):"number"==typeof s&&a.textContent!==""+s&&(!0!==l.suppressHydrationWarning&&Yr(a.textContent,s,e),i=["children",""+s]):o.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Mr("scroll",a)}switch(r){case"input":B(a),Y(a,l,!0);break;case"textarea":B(a),re(a);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(a.onclick=Xr)}a=i,t.updateQueue=a,null!==a&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=u.createElement(r,{is:a.is}):(e=u.createElement(r),"select"===r&&(u=e,a.multiple?u.multiple=!0:a.size&&(u.size=a.size))):e=u.createElementNS(e,r),e[fo]=t,e[po]=a,Dl(e,t,!1,!1),t.stateNode=e;e:{switch(u=ve(r,a),r){case"dialog":Mr("cancel",e),Mr("close",e),i=a;break;case"iframe":case"object":case"embed":Mr("load",e),i=a;break;case"video":case"audio":for(i=0;i<Or.length;i++)Mr(Or[i],e);i=a;break;case"source":Mr("error",e),i=a;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),i=a;break;case"details":Mr("toggle",e),i=a;break;case"input":Q(e,a),i=K(e,a),Mr("invalid",e);break;case"option":default:i=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},i=T({},a,{value:void 0}),Mr("invalid",e);break;case"textarea":te(e,a),i=ee(e,a),Mr("invalid",e)}for(l in me(r,i),s=i)if(s.hasOwnProperty(l)){var c=s[l];"style"===l?pe(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&ue(e,c):"children"===l?"string"==typeof c?("textarea"!==r||""!==c)&&se(e,c):"number"==typeof c&&se(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=c&&"onScroll"===l&&Mr("scroll",e):null!=c&&v(e,l,c,u))}switch(r){case"input":B(e),Y(e,a,!1);break;case"textarea":B(e),re(e);break;case"option":null!=a.value&&e.setAttribute("value",""+$(a.value));break;case"select":e.multiple=!!a.multiple,null!=(l=a.value)?J(e,!!a.multiple,l,!1):null!=a.defaultValue&&J(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)Tl(e,t,e.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw Error(n(166));if(r=ni(ti.current),ni(Ja.current),da(t)){if(a=t.stateNode,r=t.memoizedProps,a[fo]=t,(l=a.nodeValue!==r)&&null!==(e=na))switch(e.tag){case 3:Yr(a.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yr(a.nodeValue,r,!!(1&e.mode))}l&&(t.flags|=4)}else(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[fo]=t,t.stateNode=a}return Kl(t),null;case 13:if(Eo(li),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oa&&null!==ra&&1&t.mode&&!(128&t.flags))fa(),pa(),t.flags|=98560,l=!1;else if(l=da(t),null!==a&&null!==a.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[fo]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),l=!1}else null!==aa&&(is(aa),aa=null),l=!0;if(!l)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,1&t.mode&&(null===e||1&li.current?0===Tu&&(Tu=3):ms())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return oi(),Al(e,t),null===e&&Fr(t.stateNode.containerInfo),Kl(t),null;case 10:return Ca(t.type._context),Kl(t),null;case 19:if(Eo(li),null===(l=t.memoizedState))return Kl(t),null;if(a=!!(128&t.flags),null===(u=l.rendering))if(a)Hl(l,!1);else{if(0!==Tu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=ui(e))){for(t.flags|=128,Hl(l,!1),null!==(a=u.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;null!==r;)e=a,(l=r).flags&=14680066,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return So(li,1&li.current|2),t.child}e=e.sibling}null!==l.tail&&qe()>Vu&&(t.flags|=128,a=!0,Hl(l,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=ui(u))){if(t.flags|=128,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!u.alternate&&!oa)return Kl(t),null}else 2*qe()-l.renderingStartTime>Vu&&1073741824!==r&&(t.flags|=128,a=!0,Hl(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=l.last)?r.sibling=u:t.child=u,l.last=u)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=qe(),t.sibling=null,r=li.current,So(li,a?1&r|2:1&r),t):(Kl(t),null);case 22:case 23:return ds(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&1&t.mode?1073741824&Au&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function ql(e,t){switch(ta(t),t.tag){case 1:return Ao(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),Eo(Ro),Eo(Po),ci(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ii(t),null;case 13:if(Eo(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(li),null;case 4:return oi(),null;case 10:return Ca(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Dl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Al=function(){},Ol=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ni(Ja.current);var i,l=null;switch(n){case"input":a=K(e,a),r=K(e,r),l=[];break;case"select":a=T({},a,{value:void 0}),r=T({},r,{value:void 0}),l=[];break;case"textarea":a=ee(e,a),r=ee(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in me(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var u=a[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(l||(l=[]),l.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(l=l||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(l=l||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Mr("scroll",e),l||u===s||(l=[])):(l=l||[]).push(c,s))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},Tl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ks(e,t,n)}else n.current=null}function eu(e,t,n){try{n()}catch(n){ks(e,t,n)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&eu(t,n,a)}o=o.next}while(o!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[po],delete t[mo],delete t[vo],delete t[go])),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 iu(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||iu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 5:Yl||Jl(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),zt(e)):lo(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Yl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&eu(n,t,i),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!Yl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ks(n,t,e)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,fu(e,t,n),Yl=r):fu(e,t,n);break;default:fu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Ps.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mu(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{var i=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(n(160));pu(i,l,a),cu=null,du=!1;var s=a.alternate;null!==s&&(s.return=null),a.return=null}catch(e){ks(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mu(t,e),gu(e),4&o){try{nu(3,e,e.return),ru(3,e)}catch(t){ks(e,e.return,t)}try{nu(5,e,e.return)}catch(t){ks(e,e.return,t)}}break;case 1:mu(t,e),gu(e),512&o&&null!==r&&Jl(r,r.return);break;case 5:if(mu(t,e),gu(e),512&o&&null!==r&&Jl(r,r.return),32&e.flags){var a=e.stateNode;try{se(a,"")}catch(t){ks(e,e.return,t)}}if(4&o&&null!=(a=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===i.type&&null!=i.name&&q(a,i),ve(u,l);var c=ve(u,i);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?pe(a,f):"dangerouslySetInnerHTML"===d?ue(a,f):"children"===d?se(a,f):v(a,d,f,c)}switch(u){case"input":G(a,i);break;case"textarea":ne(a,i);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?J(a,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?J(a,!!i.multiple,i.defaultValue,!0):J(a,!!i.multiple,i.multiple?[]:"",!1))}a[po]=i}catch(t){ks(e,e.return,t)}}break;case 6:if(mu(t,e),gu(e),4&o){if(null===e.stateNode)throw Error(n(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){ks(e,e.return,t)}}break;case 3:if(mu(t,e),gu(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){ks(e,e.return,t)}break;case 4:default:mu(t,e),gu(e);break;case 13:mu(t,e),gu(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||($u=qe())),4&o&&hu(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Yl=(c=Yl)||d,mu(t,e),Yl=c):mu(t,e),gu(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Jl(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){ks(o,r,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){xu(f);continue}}null!==h?(h.return=p,Zl=h):xu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{a=f.stateNode,c?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(u=f.stateNode,l=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=fe("display",l))}catch(t){ks(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){ks(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mu(t,e),gu(e),4&o&&hu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(iu(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var a=o.stateNode;32&o.flags&&(se(a,""),o.flags&=-33),su(e,lu(e),a);break;case 3:case 4:var i=o.stateNode.containerInfo;uu(e,lu(e),i);break;default:throw Error(n(161))}}catch(t){ks(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Zl=e,bu(e)}function bu(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Gl;if(!i){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Yl;l=Gl;var s=Yl;if(Gl=i,(Yl=u)&&!s)for(Zl=o;null!==Zl;)u=(i=Zl).child,22===i.tag&&null!==i.memoizedState?Cu(o):null!==u?(u.return=i,Zl=u):Cu(o);for(;null!==a;)Zl=a,bu(a),a=a.sibling;Zl=o,Gl=l,Yl=s}wu(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Zl=a):wu(e)}}function wu(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Yl||ru(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Yl)if(null===r)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:va(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Wa(t,i,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Wa(t,l,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(n(163))}Yl||512&t.flags&&ou(t)}catch(e){ks(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zl=r;break}Zl=t.return}}function xu(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Cu(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(e){ks(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){ks(t,o,e)}}var a=t.return;try{ou(t)}catch(e){ks(t,a,e)}break;case 5:var i=t.return;try{ou(t)}catch(e){ks(t,i,e)}}}catch(e){ks(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var _u,ku=Math.ceil,Eu=g.ReactCurrentDispatcher,Su=g.ReactCurrentOwner,Nu=g.ReactCurrentBatchConfig,Pu=0,Ru=null,ju=null,Du=0,Au=0,Ou=ko(0),Tu=0,Lu=null,Iu=0,Mu=0,Wu=0,zu=null,Fu=null,$u=0,Vu=1/0,Bu=null,Uu=!1,Hu=null,Ku=null,Qu=!1,qu=null,Gu=0,Yu=0,Xu=null,Zu=-1,Ju=0;function es(){return 6&Pu?qe():-1!==Zu?Zu:Zu=qe()}function ts(e){return 1&e.mode?2&Pu&&0!==Du?Du&-Du:null!==ma.transition?(0===Ju&&(Ju=ft()),Ju):(0!==(e=vt)||(e=void 0===(e=window.event)?16:Qt(e.type)),e):1}function ns(e,t,r,o){if(50<Yu)throw Yu=0,Xu=null,Error(n(185));ht(e,r,o),(!(2&Pu)||e!==Ru)&&(e===Ru&&(!(2&Pu)&&(Mu|=r),4===Tu&&ls(e,Du)),rs(e,o),1===r&&0===Pu&&!(1&t.mode)&&(Vu=qe()+500,zo&&Vo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-rt(a),l=1<<i,u=o[i];-1===u?(!(l&n)||l&r)&&(o[i]=ct(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=st(e,e===Ru?Du:0);if(0===r)null!==n&&He(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&He(n),1===t)0===e.tag?function(e){zo=!0,$o(e)}(us.bind(null,e)):$o(us.bind(null,e)),ao((function(){!(6&Pu)&&Vo()})),n=null;else{switch(gt(r)){case 1:n=Ye;break;case 4:n=Xe;break;case 16:default:n=Ze;break;case 536870912:n=et}n=Rs(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zu=-1,Ju=0,6&Pu)throw Error(n(327));var r=e.callbackNode;if(Cs()&&e.callbackNode!==r)return null;var o=st(e,e===Ru?Du:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=vs(e,o);else{t=o;var a=Pu;Pu|=2;var i=hs();for((Ru!==e||Du!==t)&&(Bu=null,Vu=qe()+500,fs(e,t));;)try{ys();break}catch(t){ps(e,t)}xa(),Eu.current=i,Pu=a,null!==ju?t=0:(Ru=null,Du=0,t=Tu)}if(0!==t){if(2===t&&(0!==(a=dt(e))&&(o=a,t=as(e,a))),1===t)throw r=Lu,fs(e,0),ls(e,o),rs(e,qe()),r;if(6===t)ls(e,o);else{if(a=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!or(a(),o))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=vs(e,o),2===t&&(i=dt(e),0!==i&&(o=i,t=as(e,i))),1!==t)))throw r=Lu,fs(e,0),ls(e,o),rs(e,qe()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:xs(e,Fu,Bu);break;case 3:if(ls(e,o),(130023424&o)===o&&10<(t=$u+500-qe())){if(0!==st(e,0))break;if(((a=e.suspendedLanes)&o)!==o){es(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=no(xs.bind(null,e,Fu,Bu),t);break}xs(e,Fu,Bu);break;case 4:if(ls(e,o),(4194240&o)===o)break;for(t=e.eventTimes,a=-1;0<o;){var l=31-rt(o);i=1<<l,(l=t[l])>a&&(a=l),o&=~i}if(o=a,10<(o=(120>(o=qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ku(o/1960))-o)){e.timeoutHandle=no(xs.bind(null,e,Fu,Bu),o);break}xs(e,Fu,Bu);break;default:throw Error(n(329))}}}return rs(e,qe()),e.callbackNode===r?os.bind(null,e):null}function as(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Fu,Fu=n,null!==t&&is(t)),e}function is(e){null===Fu?Fu=e:Fu.push.apply(Fu,e)}function ls(e,t){for(t&=~Wu,t&=~Mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function us(e){if(6&Pu)throw Error(n(327));Cs();var t=st(e,0);if(!(1&t))return rs(e,qe()),null;var r=vs(e,t);if(0!==e.tag&&2===r){var o=dt(e);0!==o&&(t=o,r=as(e,o))}if(1===r)throw r=Lu,fs(e,0),ls(e,t),rs(e,qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,Fu,Bu),rs(e,qe()),null}function ss(e,t){var n=Pu;Pu|=1;try{return e(t)}finally{0===(Pu=n)&&(Vu=qe()+500,zo&&Vo())}}function cs(e){null!==qu&&0===qu.tag&&!(6&Pu)&&Cs();var t=Pu;Pu|=1;var n=Nu.transition,r=vt;try{if(Nu.transition=null,vt=1,e)return e()}finally{vt=r,Nu.transition=n,!(6&(Pu=t))&&Vo()}}function ds(){Au=Ou.current,Eo(Ou)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ro(n)),null!==ju)for(n=ju.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oo();break;case 3:oi(),Eo(Ro),Eo(Po),ci();break;case 5:ii(r);break;case 4:oi();break;case 13:case 19:Eo(li);break;case 10:Ca(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Ru=e,ju=e=Os(e.current,null),Du=Au=t,Tu=0,Lu=null,Wu=Mu=Iu=0,Fu=zu=null,null!==Sa){for(t=0;t<Sa.length;t++)if(null!==(r=(n=Sa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Sa=null}return e}function ps(e,t){for(;;){var r=ju;try{if(xa(),di.current=al,gi){for(var o=hi.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}gi=!1}if(pi=0,vi=mi=hi=null,yi=!1,bi=0,Su.current=null,null===r||null===r.return){Tu=1,Lu=t,ju=null;break}e:{var i=e,l=r.return,u=r,s=t;if(t=Du,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,d=u,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,gl(h,l,u,0,t),1&h.mode&&ml(i,c,t),s=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}if(!(1&t)){ml(i,c,t),ms();break e}s=Error(n(426))}else if(oa&&1&u.mode){var g=vl(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gl(g,l,u,0,t),ha(sl(s,u));break e}}i=s=sl(s,u),4!==Tu&&(Tu=2),null===zu?zu=[i]:zu.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,pl(0,s,t));break e;case 1:u=s;var y=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ku&&Ku.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,hl(i,u,t));break e}}i=i.return}while(null!==i)}ws(r)}catch(e){t=e,ju===r&&null!==r&&(ju=r=r.return);continue}break}}function hs(){var e=Eu.current;return Eu.current=al,null===e?al:e}function ms(){(0===Tu||3===Tu||2===Tu)&&(Tu=4),null===Ru||!(268435455&Iu)&&!(268435455&Mu)||ls(Ru,Du)}function vs(e,t){var r=Pu;Pu|=2;var o=hs();for((Ru!==e||Du!==t)&&(Bu=null,fs(e,t));;)try{gs();break}catch(t){ps(e,t)}if(xa(),Pu=r,Eu.current=o,null!==ju)throw Error(n(261));return Ru=null,Du=0,Tu}function gs(){for(;null!==ju;)bs(ju)}function ys(){for(;null!==ju&&!Ke();)bs(ju)}function bs(e){var t=_u(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===t?ws(e):ju=t,Su.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=ql(n,t)))return n.flags&=32767,void(ju=n);if(null===e)return Tu=6,void(ju=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ql(n,t,Au)))return void(ju=n);if(null!==(t=t.sibling))return void(ju=t);ju=t=e}while(null!==t);0===Tu&&(Tu=5)}function xs(e,t,r){var o=vt,a=Nu.transition;try{Nu.transition=null,vt=1,function(e,t,r,o){do{Cs()}while(null!==qu);if(6&Pu)throw Error(n(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(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 o=31-rt(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ru&&(ju=Ru=null,Du=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Qu||(Qu=!0,Rs(Ze,(function(){return Cs(),null}))),i=!!(15990&r.flags),15990&r.subtreeFlags||i){i=Nu.transition,Nu.transition=null;var l=vt;vt=1;var u=Pu;Pu|=4,Su.current=null,function(e,t){if(Zr=$t,cr(e=sr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,u=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==a&&3!==f.nodeType||(u=l+a),f!==i||0!==o&&3!==f.nodeType||(s=l+o),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===a&&(u=l),p===i&&++d===o&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===u||-1===s?null:{start:u,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(eo={focusedElem:e,selectionRange:r},$t=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:va(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){ks(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=tu,tu=!1}(e,r),vu(r,e),dr(eo),$t=!!Zr,eo=Zr=null,e.current=r,yu(r),Qe(),Pu=u,vt=l,Nu.transition=i}else e.current=r;if(Qu&&(Qu=!1,qu=e,Gu=a),i=e.pendingLanes,0===i&&(Ku=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),rs(e,qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(Uu)throw Uu=!1,e=Hu,Hu=null,e;1&Gu&&0!==e.tag&&Cs(),i=e.pendingLanes,1&i?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,Vo()}(e,t,r,o)}finally{Nu.transition=a,vt=o}return null}function Cs(){if(null!==qu){var e=gt(Gu),t=Nu.transition,r=vt;try{if(Nu.transition=null,vt=16>e?16:e,null===qu)var o=!1;else{if(e=qu,qu=null,Gu=0,6&Pu)throw Error(n(331));var a=Pu;for(Pu|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(16&Zl.flags){var u=i.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nu(8,d,i)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(au(d),d===c){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(2048&(i=Zl).flags)switch(i.tag){case 0:case 11:case 15:nu(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Zl=y;break e}Zl=i.return}}var b=e.current;for(Zl=b;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=b;null!==Zl;){if(2048&(u=Zl).flags)try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(e){ks(u,u.return,e)}if(u===l){Zl=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Zl=x;break e}Zl=u.return}}if(Pu=a,Vo(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch{}o=!0}return o}finally{vt=r,Nu.transition=t}}return!1}function _s(e,t,n){e=Ta(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(ht(e,1,t),rs(e,t))}function ks(e,t,n){if(3===e.tag)_s(e,e,n);else for(;null!==t;){if(3===t.tag){_s(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){t=Ta(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(ht(t,1,e),rs(t,e));break}}t=t.return}}function Es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,Ru===e&&(Du&n)===n&&(4===Tu||3===Tu&&(130023424&Du)===Du&&500>qe()-$u?fs(e,0):Wu|=n),rs(e,t)}function Ss(e,t){0===t&&(1&e.mode?(t=lt,!(130023424&(lt<<=1))&&(lt=4194304)):t=1);var n=es();null!==(e=Ra(e,t))&&(ht(e,t,n),rs(e,n))}function Ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ss(e,n)}function Ps(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Ss(e,r)}function Rs(e,t){return Ue(e,t)}function js(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 Ds(e,t,n,r){return new js(e,t,n,r)}function As(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Os(e,t){var n=e.alternate;return null===n?((n=Ds(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ts(e,t,r,o,a,i){var l=2;if(o=e,"function"==typeof e)As(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case w:return Ls(r.children,a,i,t);case x:l=8,a|=8;break;case C:return(e=Ds(12,r,t,2|a)).elementType=C,e.lanes=i,e;case S:return(e=Ds(13,r,t,a)).elementType=S,e.lanes=i,e;case N:return(e=Ds(19,r,t,a)).elementType=N,e.lanes=i,e;case j:return Is(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case k:l=9;break e;case E:l=11;break e;case P:l=14;break e;case R:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ds(l,r,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Ls(e,t,n,r){return(e=Ds(7,e,r,t)).lanes=n,e}function Is(e,t,n,r){return(e=Ds(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Ms(e,t,n){return(e=Ds(6,e,null,t)).lanes=n,e}function Ws(e,t,n){return(t=Ds(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zs(e,t,n,r,o){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=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fs(e,t,n,r,o,a,i,l,u){return e=new zs(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ds(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Da(a),e}function $s(e){if(!e)return No;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ao(r))return Lo(e,r,t)}return t}function Vs(e,t,n,r,o,a,i,l,u){return(e=Fs(n,r,!0,e,0,a,0,l,u)).context=$s(null),n=e.current,(a=Oa(r=es(),o=ts(n))).callback=t??null,Ta(n,a,o),e.current.lanes=o,ht(e,o,r),rs(e,r),e}function Bs(e,t,n,r){var o=t.current,a=es(),i=ts(o);return n=$s(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ta(o,t,i))&&(ns(e,o,i,a),La(e,o,i)),i}function Us(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Hs(e,t),(e=e.alternate)&&Hs(e,t)}_u=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)bl=!0;else{if(!(e.lanes&r||128&t.flags))return bl=!1,function(e,t,n){switch(t.tag){case 3:Rl(t),pa();break;case 5:ai(t);break;case 1:Ao(t.type)&&Io(t);break;case 4:ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;So(ga,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(So(li,1&li.current),t.flags|=128,null):n&t.child.childLanes?Ml(e,t,n):(So(li,1&li.current),null!==(e=Ul(e,t,n))?e.sibling:null);So(li,1&li.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Vl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),So(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Ul(e,t,n)}(e,t,r);bl=!!(131072&e.flags)}else bl=!1,oa&&1048576&t.flags&&Jo(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Bl(e,t),e=t.pendingProps;var a=Do(t,Po.current);ka(t,r),a=_i(null,t,o,e,a,r);var i=ki();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(o)?(i=!0,Io(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Da(t),a.updater=$a,t.stateNode=a,a._reactInternals=t,Ha(t,o,e,r),t=Pl(null,t,o,!0,i,r)):(t.tag=0,oa&&i&&ea(t),wl(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return As(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===P)return 14}return 2}(o),e=va(o,e),a){case 0:t=Sl(null,t,o,e,r);break e;case 1:t=Nl(null,t,o,e,r);break e;case 11:t=xl(null,t,o,e,r);break e;case 14:t=Cl(null,t,o,va(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,Sl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 1:return o=t.type,a=t.pendingProps,Nl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 3:e:{if(Rl(t),null===e)throw Error(n(387));o=t.pendingProps,a=(i=t.memoizedState).element,Aa(e,t),Ma(t,o,null,r);var l=t.memoizedState;if(o=l.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=jl(e,t,o,r,a=sl(Error(n(423)),t));break e}if(o!==a){t=jl(e,t,o,r,a=sl(Error(n(424)),t));break e}for(ra=uo(t.stateNode.containerInfo.firstChild),na=t,oa=!0,aa=null,r=Xa(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(pa(),o===a){t=Ul(e,t,r);break e}wl(e,t,o,r)}t=t.child}return t;case 5:return ai(t),null===e&&sa(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,to(o,a)?l=null:null!==i&&to(o,i)&&(t.flags|=32),El(e,t),wl(e,t,l,r),t.child;case 6:return null===e&&sa(t),null;case 13:return Ml(e,t,r);case 4:return ri(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ya(t,null,o,r):wl(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,xl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 7:return wl(e,t,t.pendingProps,r),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,So(ga,o._currentValue),o._currentValue=l,null!==i)if(or(i.value,l)){if(i.children===a.children&&!Ro.current){t=Ul(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var u=i.dependencies;if(null!==u){l=i.child;for(var s=u.firstContext;null!==s;){if(s.context===o){if(1===i.tag){(s=Oa(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),_a(i.return,r,t),u.lanes|=r;break}s=s.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(u=l.alternate)&&(u.lanes|=r),_a(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,ka(t,r),o=o(a=Ea(a)),t.flags|=1,wl(e,t,o,r),t.child;case 14:return a=va(o=t.type,t.pendingProps),Cl(e,t,o,a=va(o.type,a),r);case 15:return _l(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:va(o,a),Bl(e,t),t.tag=1,Ao(o)?(e=!0,Io(t)):e=!1,ka(t,r),Ba(t,o,a),Ha(t,o,a,r),Pl(null,t,o,!0,e,r);case 19:return Vl(e,t,r);case 22:return kl(e,t,r)}throw Error(n(156,t.tag))};var Qs="function"==typeof reportError?reportError:function(e){console.error(e)};function qs(e){this._internalRoot=e}function Gs(e){this._internalRoot=e}function Ys(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Us(i);l.call(e)}}Bs(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Us(i);a.call(e)}}var i=Vs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=i,e[ho]=i.current,Fr(8===e.nodeType?e.parentNode:e),cs(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Us(u);l.call(e)}}var u=Fs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=u,e[ho]=u.current,Fr(8===e.nodeType?e.parentNode:e),cs((function(){Bs(t,u,n,r)})),u}(n,t,e,o,r);return Us(i)}Gs.prototype.render=qs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Bs(e,t,null,null)},Gs.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Bs(null,e,null,null)})),t[ho]=null}},Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Tt(e)}},yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(mt(t,1|n),rs(t,qe()),!(6&Pu)&&(Vu=qe()+500,Vo()))}break;case 13:cs((function(){var t=Ra(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Ks(e,1)}},bt=function(e){if(13===e.tag){var t=Ra(e,134217728);if(null!==t)ns(t,e,134217728,es());Ks(e,134217728)}},wt=function(e){if(13===e.tag){var t=ts(e),n=Ra(e,t);if(null!==n)ns(n,e,t,es());Ks(e,t)}},xt=function(){return vt},Ct=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(G(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=xo(o);if(!a)throw Error(n(90));U(o),G(o,a)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&J(e,!!r.multiple,t,!1)}},Ee=ss,Se=cs;var ec={usingClientEntryPoint:!1,Events:[bo,wo,xo,_e,ke,ss]},tc={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{tt=rc.inject(nc),nt=rc}catch{}}return gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,gr.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ys(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},gr.createRoot=function(e,t){if(!Ys(e))throw Error(n(299));var r=!1,o="",a=Qs;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Fs(e,1,!1,null,0,r,0,o,a),e[ho]=t.current,Fr(8===e.nodeType?e.parentNode:e),new qs(t)},gr.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=Ve(t))?null:e.stateNode},gr.flushSync=function(e){return cs(e)},gr.hydrate=function(e,t,r){if(!Xs(t))throw Error(n(200));return Js(null,e,t,!0,r)},gr.hydrateRoot=function(e,t,r){if(!Ys(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,a=!1,i="",l=Qs;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Vs(t,null,e,1,r??null,a,0,i,l),e[ho]=t.current,Fr(e),o)for(e=0;e<o.length;e++)a=(a=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Gs(t)},gr.render=function(e,t,r){if(!Xs(t))throw Error(n(200));return Js(null,e,t,!1,r)},gr.unmountComponentAtNode=function(e){if(!Xs(e))throw Error(n(40));return!!e._reactRootContainer&&(cs((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},gr.unstable_batchedUpdates=ss,gr.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xs(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Js(e,t,r,!1,o)},gr.version="18.2.0-next-9e3b772b8-20220608",gr}function PS(){if(d0)return Ym.exports;return d0=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Ym.exports=kS(),Ym.exports}var Yo=PS();const gy=d_(Yo),ws=me(((e,t)=>{const{children:n,...r}=e,o=gs.toArray(n),a=o.find(NS);if(a){const e=a.props.children,n=o.map((t=>t===a?gs.count(e)>1?gs.only(null):Xp(e)?e.props.children:null:t));return j(gv,ie({},r,{ref:t}),Xp(e)?Iv(e,void 0,n):null)}return j(gv,ie({},r,{ref:t}),n)}));ws.displayName="Slot";const gv=me(((e,t)=>{const{children:n,...r}=e;return Xp(n)?Iv(n,{...RS(r,n.props),ref:t?lh(t,n.ref):n.ref}):gs.count(n)>1?gs.only(null):null}));gv.displayName="SlotClone";const yy=({children:e})=>j(rc,null,e);function NS(e){return Xp(e)&&e.type===yy}function RS(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const AS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rt=AS.reduce(((e,t)=>{const n=me(((e,n)=>{const{asChild:r,...o}=e,a=r?ws:t;return ut((()=>{window[Symbol.for("radix-ui")]=!0}),[]),j(a,ie({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function xy(e,t){e&&Yo.flushSync((()=>e.dispatchEvent(t)))}function TS(e,t=(null==globalThis?void 0:globalThis.document)){const n=yr(e);ut((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const yv="dismissableLayer.update",OS="dismissableLayer.pointerDownOutside",IS="dismissableLayer.focusOutside";let f0;const DS=pd({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fv=me(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...s}=e,c=ah(DS),[d,f]=st(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=st({}),m=yt(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,C=MS((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())}),p),_=LS((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==l||l(e),e.defaultPrevented||null==u||u())}),p);return TS((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),p),ut((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(f0=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),p0(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=f0)}}),[d,p,r,c]),ut((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),p0())}),[d,c]),ut((()=>{const e=()=>h({});return document.addEventListener(yv,e),()=>document.removeEventListener(yv,e)}),[]),j(rt.div,ie({},s,{ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Ve(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Ve(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ve(e.onPointerDownCapture,C.onPointerDownCapture)}))}));function MS(e,t=(null==globalThis?void 0:globalThis.document)){const n=yr(e),r=Qe(!1),o=Qe((()=>{}));return ut((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){wy(OS,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function LS(e,t=(null==globalThis?void 0:globalThis.document)){const n=yr(e),r=Qe(!1);return ut((()=>{const e=e=>{e.target&&!r.current&&wy(IS,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function p0(){const e=new CustomEvent(yv);document.dispatchEvent(e)}function wy(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?xy(o,a):o.dispatchEvent(a)}const qm="focusScope.autoFocusOnMount",Zm="focusScope.autoFocusOnUnmount",h0={bubbles:!1,cancelable:!0},jv=me(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=st(null),s=yr(o),c=yr(a),d=Qe(null),f=yt(t,(e=>u(e))),p=Qe({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ut((()=>{if(r){let e=function(e){if(p.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:ua(d.current,{select:!0})},t=function(e){if(p.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||ua(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ua(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,p.paused]),ut((()=>{if(l){v0.add(p);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(qm,h0);l.addEventListener(qm,s),l.dispatchEvent(t),t.defaultPrevented||(FS(US(by(l)),{select:!0}),document.activeElement===e&&ua(l))}return()=>{l.removeEventListener(qm,s),setTimeout((()=>{const t=new CustomEvent(Zm,h0);l.addEventListener(Zm,c),l.dispatchEvent(t),t.defaultPrevented||ua(e??document.body,{select:!0}),l.removeEventListener(Zm,c),v0.remove(p)}),0)}}}),[l,s,c,p]);const h=bt((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=jS(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&ua(a,{select:!0})):(e.preventDefault(),n&&ua(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return j(rt.div,ie({tabIndex:-1},i,{ref:f,onKeyDown:h}))}));function FS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ua(r,{select:t}),document.activeElement!==n)return}function jS(e){const t=by(e);return[m0(t,e),m0(t.reverse(),e)]}function by(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m0(e,t){for(const n of e)if(!zS(n,{upTo:t}))return n}function zS(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function WS(e){return e instanceof HTMLInputElement&&"select"in e}function ua(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&WS(e)&&t&&e.select()}}const v0=BS();function BS(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=g0(e,t),e.unshift(t)},remove(t){var n;e=g0(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function g0(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function US(e){return e.filter((e=>"A"!==e.tagName))}const zv=me(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?gy.createPortal(j(rt.div,ie({},o,{ref:t})),r):null}));function VS(e,t){return s_(((e,n)=>t[e][n]??e),e)}const vo=e=>{const{present:t,children:n}=e,r=HS(t),o="function"==typeof n?n({present:r.isPresent}):gs.only(n),a=yt(r.ref,o.ref);return"function"==typeof n||r.isPresent?Iv(o,{ref:a}):null};function HS(e){const[t,n]=st(),r=Qe({}),o=Qe(e),a=Qe("none"),i=e?"mounted":"unmounted",[l,u]=VS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ut((()=>{const e=Dp(r.current);a.current="mounted"===l?e:"none"}),[l]),Hn((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Dp(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Hn((()=>{if(t){const e=e=>{const n=Dp(r.current).includes(e.animationName);e.target===t&&n&&Yo.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=Dp(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:bt((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Dp(e){return(null==e?void 0:e.animationName)||"none"}vo.displayName="Presence";let Jm=0;function Wv(){ut((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:y0()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:y0()),Jm++,()=>{1===Jm&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Jm--}}),[])}function y0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Vn=function(){return Vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vn.apply(this,arguments)};function Bv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function $y(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var ud="right-scroll-bar-position",dd="width-before-scroll-bar",KS="with-scroll-bars-hidden",GS="--removed-body-scroll-bar-size";function ev(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function YS(e,t){var n=st((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var XS=typeof window<"u"?C.useLayoutEffect:C.useEffect,x0=new WeakMap;function _y(e,t){var n=YS(null,(function(t){return e.forEach((function(e){return ev(e,t)}))}));return XS((function(){var t=x0.get(n);if(t){var r=new Set(t),o=new Set(e),a=n.current;r.forEach((function(e){o.has(e)||ev(e,null)})),o.forEach((function(e){r.has(e)||ev(e,a)}))}x0.set(n,e)}),[e]),n}function QS(e){return e}function qS(e,t){void 0===t&&(t=QS);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function Sy(e){void 0===e&&(e={});var t=qS(null);return t.options=Vn({async:!0,ssr:!1},e),t}var Cy=function(e){var t=e.sideCar,n=Bv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,Vn({},n))};function Ey(e,t){return e.useMedium(t),Cy}Cy.isSideCarExport=!0;var ky=Sy(),tv=function(){},ch=C.forwardRef((function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:tv,onWheelCapture:tv,onTouchMoveCapture:tv}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=Bv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=f,w=_y([n,t]),x=Vn(Vn({},y),o);return C.createElement(C.Fragment,null,c&&C.createElement(b,{sideCar:ky,removeScrollBar:s,shards:d,noIsolation:p,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?C.cloneElement(C.Children.only(l),Vn(Vn({},x),{ref:w})):C.createElement(g,Vn({},x,{className:u,ref:w}),l))}));ch.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ch.classNames={fullWidth:dd,zeroRight:ud};var ZS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZS();return t&&e.setAttribute("nonce",t),e}function eC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tC(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var nC=function(){var e=0,t=null;return{add:function(n){0==e&&(t=JS())&&(eC(t,n),tC(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rC=function(){var e=nC();return function(t,n){C.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},Uv=function(){var e=rC();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},oC={left:0,top:0,right:0,gap:0},nv=function(e){return parseInt(e||"",10)||0},iC=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[nv(n),nv(r),nv(o)]},aC=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return oC;var t=iC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sC=Uv(),lC=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat(KS," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ud," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(dd," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ud," .").concat(ud," {\n right: 0 ").concat(r,";\n }\n \n .").concat(dd," .").concat(dd," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat(GS,": ").concat(l,"px;\n }\n")},Py=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=C.useMemo((function(){return aC(o)}),[o]);return C.createElement(sC,{styles:lC(a,!t,o,n?"":"!important")})},xv=!1;if(typeof window<"u")try{var Mp=Object.defineProperty({},"passive",{get:function(){return xv=!0,!0}});window.addEventListener("test",Mp,Mp),window.removeEventListener("test",Mp,Mp)}catch{xv=!1}var Gl=!!xv&&{passive:!1},cC=function(e){return"TEXTAREA"===e.tagName},Ny=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!cC(e)&&"visible"===n[t])},uC=function(e){return Ny(e,"overflowY")},dC=function(e){return Ny(e,"overflowX")},w0=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),Ry(e,n)){var r=Ay(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},fC=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},pC=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ry=function(e,t){return"v"===e?uC(t):dC(t)},Ay=function(e,t){return"v"===e?fC(t):pC(t)},hC=function(e,t){return"h"===e&&"rtl"===t?-1:1},mC=function(e,t,n,r,o){var a=hC(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,u=t.contains(l),s=!1,c=i>0,d=0,f=0;do{var p=Ay(e,l),h=p[0],m=p[1]-p[2]-a*h;(h||m)&&Ry(e,l)&&(d+=m,f+=h),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(c&&(0===d||!o)||!c&&(0===f||!o))&&(s=!0),s},Lp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},b0=function(e){return[e.deltaX,e.deltaY]},$0=function(e){return e&&"current"in e?e.current:e},vC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gC=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},yC=0,Yl=[];function xC(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),o=C.useState(yC++)[0],a=C.useState((function(){return Uv()}))[0],i=C.useRef(e);C.useEffect((function(){i.current=e}),[e]),C.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=$y([e.lockRef.current],(e.shards||[]).map($0),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=C.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=Lp(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],s="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=w0(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=w0(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return mC(p,t,e,"h"===p?u:s,!0)}),[]),u=C.useCallback((function(e){var n=e;if(Yl.length&&Yl[Yl.length-1]===a){var r="deltaY"in n?b0(n):Lp(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&vC(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(i.current.shards||[]).map($0).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?l(n,u[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=C.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),c=C.useCallback((function(e){n.current=Lp(e),r.current=void 0}),[]),d=C.useCallback((function(t){s(t.type,b0(t),t.target,l(t,e.lockRef.current))}),[]),f=C.useCallback((function(t){s(t.type,Lp(t),t.target,l(t,e.lockRef.current))}),[]);C.useEffect((function(){return Yl.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Gl),document.addEventListener("touchmove",u,Gl),document.addEventListener("touchstart",c,Gl),function(){Yl=Yl.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Gl),document.removeEventListener("touchmove",u,Gl),document.removeEventListener("touchstart",c,Gl)}}),[]);var p=e.removeScrollBar,h=e.inert;return C.createElement(C.Fragment,null,h?C.createElement(a,{styles:gC(o)}):null,p?C.createElement(Py,{gapMode:"margin"}):null)}const wC=Ey(ky,xC);var uh=C.forwardRef((function(e,t){return C.createElement(ch,Vn({},e,{ref:t,sideCar:wC}))}));uh.classNames=ch.classNames;var bC=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Xl=new WeakMap,Fp=new WeakMap,jp={},rv=0,Ty=function(e){return e&&(e.host||Ty(e.parentNode))},$C=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Ty(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},_C=function(e,t,n,r){var o=$C(t,Array.isArray(e)?e:[e]);jp[n]||(jp[n]=new WeakMap);var a=jp[n],i=[],l=new Set,u=new Set(o),s=function(e){!e||l.has(e)||(l.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(Xl.get(e)||0)+1,s=(a.get(e)||0)+1;Xl.set(e,u),a.set(e,s),i.push(e),1===u&&o&&Fp.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),l.clear(),rv++,function(){i.forEach((function(e){var t=Xl.get(e)-1,o=a.get(e)-1;Xl.set(e,t),a.set(e,o),t||(Fp.has(e)||e.removeAttribute(r),Fp.delete(e)),o||e.removeAttribute(n)})),--rv||(Xl=new WeakMap,Xl=new WeakMap,Fp=new WeakMap,jp={})}},dh=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=bC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_C(r,o,n,"aria-hidden")):function(){return null}};const Oy="Dialog",[Iy,Dy]=xr(Oy),[SC,go]=Iy(Oy),CC=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=Qe(null),u=Qe(null),[s=!1,c]=Ho({prop:r,defaultProp:o,onChange:a});return j(SC,{scope:t,triggerRef:l,contentRef:u,contentId:to(),titleId:to(),descriptionId:to(),open:s,onOpenChange:c,onOpenToggle:bt((()=>c((e=>!e))),[c]),modal:i},n)},EC="DialogTrigger",kC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(EC,n),a=yt(t,o.triggerRef);return j(rt.button,ie({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vv(o.open)},r,{ref:a,onClick:Ve(e.onClick,o.onOpenToggle)}))})),My="DialogPortal",[PC,Ly]=Iy(My,{forceMount:void 0}),NC=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=go(My,t);return j(PC,{scope:t,forceMount:n},gs.map(r,(e=>j(vo,{present:n||a.open},j(zv,{asChild:!0,container:o},e)))))},wv="DialogOverlay",RC=me(((e,t)=>{const n=Ly(wv,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=go(wv,e.__scopeDialog);return a.modal?j(vo,{present:r||a.open},j(AC,ie({},o,{ref:t}))):null})),AC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(wv,n);return j(uh,{as:ws,allowPinchZoom:!0,shards:[o.contentRef]},j(rt.div,ie({"data-state":Vv(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),ec="DialogContent",TC=me(((e,t)=>{const n=Ly(ec,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=go(ec,e.__scopeDialog);return j(vo,{present:r||a.open},a.modal?j(OC,ie({},o,{ref:t})):j(IC,ie({},o,{ref:t})))})),OC=me(((e,t)=>{const n=go(ec,e.__scopeDialog),r=Qe(null),o=yt(t,n.contentRef,r);return ut((()=>{const e=r.current;if(e)return dh(e)}),[]),j(Fy,ie({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ve(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Ve(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Ve(e.onFocusOutside,(e=>e.preventDefault()))}))})),IC=me(((e,t)=>{const n=go(ec,e.__scopeDialog),r=Qe(!1),o=Qe(!1);return j(Fy,ie({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),Fy=me(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=go(ec,n),u=yt(t,Qe(null));return Wv(),j(rc,null,j(jv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},j(Fv,ie({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Vv(l.open)},i,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)})),jy="DialogTitle",DC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(jy,n);return j(rt.h2,ie({id:o.titleId},r,{ref:t}))})),MC="DialogDescription",LC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(MC,n);return j(rt.p,ie({id:o.descriptionId},r,{ref:t}))})),FC="DialogClose",jC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(FC,n);return j(rt.button,ie({type:"button"},r,{ref:t,onClick:Ve(e.onClick,(()=>o.onOpenChange(!1)))}))}));function Vv(e){return e?"open":"closed"}const zC="DialogTitleWarning",[WC,j6]=xS(zC,{contentName:ec,titleName:jy,docsSlug:"dialog"}),zy=CC,BC=kC,Wy=NC,By=RC,Uy=TC,UC=DC,VC=LC,Vy=jC,HC="AlertDialog",[KC,z6]=xr(HC,[Dy]),bi=Dy(),GC=e=>{const{__scopeAlertDialog:t,...n}=e,r=bi(t);return j(zy,ie({},r,n,{modal:!0}))},YC=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(BC,ie({},o,r,{ref:t}))})),XC=e=>{const{__scopeAlertDialog:t,...n}=e,r=bi(t);return j(Wy,ie({},r,n))},QC=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(By,ie({},o,r,{ref:t}))})),Hy="AlertDialogContent",[qC,ZC]=KC(Hy),JC=me(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=bi(n),i=yt(t,Qe(null)),l=Qe(null);return j(WC,{contentName:Hy,titleName:e2,docsSlug:"alert-dialog"},j(qC,{scope:n,cancelRef:l},j(Uy,ie({role:"alertdialog"},a,o,{ref:i,onOpenAutoFocus:Ve(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=l.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),j(yy,null,r),!1)))})),e2="AlertDialogTitle",t2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(UC,ie({},o,r,{ref:t}))})),n2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(VC,ie({},o,r,{ref:t}))})),r2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(Vy,ie({},o,r,{ref:t}))})),o2="AlertDialogCancel",i2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=ZC(o2,n),a=bi(n),i=yt(t,o);return j(Vy,ie({},a,r,{ref:i}))})),a2=GC,s2=YC,l2=XC,Ky=QC,Gy=JC,Yy=r2,Xy=i2,Qy=t2,qy=n2,W6=a2,B6=s2,c2=l2,Zy=C.forwardRef((({className:e,...t},n)=>W.jsx(Ky,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));Zy.displayName=Ky.displayName;const u2=C.forwardRef((({className:e,...t},n)=>W.jsxs(c2,{children:[W.jsx(Zy,{}),W.jsx(Gy,{ref:n,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]})));u2.displayName=Gy.displayName;const d2=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col space-y-2 text-center sm:text-left",e),...t});d2.displayName="AlertDialogHeader";const f2=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});f2.displayName="AlertDialogFooter";const p2=C.forwardRef((({className:e,...t},n)=>W.jsx(Qy,{ref:n,className:$e("text-lg font-semibold",e),...t})));p2.displayName=Qy.displayName;const h2=C.forwardRef((({className:e,...t},n)=>W.jsx(qy,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));h2.displayName=qy.displayName;const m2=C.forwardRef((({className:e,...t},n)=>W.jsx(Yy,{ref:n,className:$e(Mv(),e),...t})));m2.displayName=Yy.displayName;const v2=C.forwardRef((({className:e,...t},n)=>W.jsx(Xy,{ref:n,className:$e(Mv({variant:"outline"}),"mt-2 sm:mt-0",e),...t})));v2.displayName=Xy.displayName;const Jy="Avatar",[g2,U6]=xr(Jy),[y2,e1]=g2(Jy),x2=me(((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=st("idle");return j(y2,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a},j(rt.span,ie({},r,{ref:t})))})),w2="AvatarImage",b2=me(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=e1(w2,n),l=S2(r),u=yr((e=>{o(e),i.onImageLoadingStatusChange(e)}));return Hn((()=>{"idle"!==l&&u(l)}),[l,u]),"loaded"===l?j(rt.img,ie({},a,{ref:t,src:r})):null})),$2="AvatarFallback",_2=me(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=e1($2,n),[i,l]=st(void 0===r);return ut((()=>{if(void 0!==r){const e=window.setTimeout((()=>l(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==a.imageLoadingStatus?j(rt.span,ie({},o,{ref:t})):null}));function S2(e){const[t,n]=st("idle");return Hn((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}}),[e]),t}const t1=x2,n1=b2,r1=_2,C2=C.forwardRef((({className:e,...t},n)=>W.jsx(t1,{ref:n,className:$e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t})));C2.displayName=t1.displayName;const E2=C.forwardRef((({className:e,...t},n)=>W.jsx(n1,{ref:n,className:$e("aspect-square h-full w-full",e),...t})));E2.displayName=n1.displayName;const k2=C.forwardRef((({className:e,...t},n)=>W.jsx(r1,{ref:n,className:$e("flex h-full w-full items-center justify-center bg-muted",e),...t})));k2.displayName=r1.displayName;const P2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t})));P2.displayName="Card";const N2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("flex flex-col space-y-1.5 p-6",e),...t})));N2.displayName="CardHeader";const R2=C.forwardRef((({className:e,...t},n)=>W.jsx("h3",{ref:n,className:$e("text-2xl font-semibold leading-none tracking-tight",e),...t})));R2.displayName="CardTitle";const A2=C.forwardRef((({className:e,...t},n)=>W.jsx("p",{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));A2.displayName="CardDescription";const T2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("p-6 pt-0",e),...t})));T2.displayName="CardContent";const O2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("flex items-center p-6 pt-0",e),...t})));function I2(e){return"[object Object]"===Object.prototype.toString.call(e)}function _0(e){return I2(e)||Array.isArray(e)}function D2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Hv(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:_0(r)&&_0(o)?Hv(r,o):r===o}))}function S0(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function M2(e,t){if(e.length!==t.length)return!1;const n=S0(e),r=S0(t);return n.every(((e,t)=>Hv(e,r[t])))}function Kv(e){return"number"==typeof e}function bv(e){return"string"==typeof e}function Gv(e){return"boolean"==typeof e}function C0(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wt(e){return Math.abs(e)}function Yv(e){return Math.sign(e)}function fd(e,t){return Wt(e-t)}function L2(e,t){if(0===e||0===t||Wt(e)<=Wt(t))return 0;const n=fd(Wt(e),Wt(t));return Wt(n/e)}function hd(e){return md(e).map(Number)}function ho(e){return e[Cd(e)]}function Cd(e){return Math.max(0,e.length-1)}function Xv(e,t){return t===Cd(e)}function E0(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function md(e){return Object.keys(e)}function o1(e,t){return[e,t].reduce(((e,t)=>(md(t).forEach((n=>{const r=e[n],o=t[n],a=C0(r)&&C0(o);e[n]=a?o1(r,o):o})),e)),{})}function i1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function F2(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,o){return bv(e)?n[e](r):e(t,r,o)}}}function vd(){let e=[];const t={add:function(n,r,o,a={passive:!0}){let i;if("addEventListener"in n)n.addEventListener(r,o,a),i=()=>n.removeEventListener(r,o,a);else{const e=n;e.addListener(o),i=()=>e.removeListener(o)}return e.push(i),t},clear:function(){e=e.filter((e=>e()))}};return t}function j2(e,t,n,r){const o=vd(),a=1e3/60;let i=null,l=0,u=0;function s(e){if(!u)return;i||(i=e);const o=e-i;for(i=e,l+=o;l>=a;)n(),l-=a;const c=Wt(l/a);r(c),u&&t.requestAnimationFrame(s)}function c(){t.cancelAnimationFrame(u),i=null,l=0,u=0}return{init:function(){o.add(e,"visibilitychange",(()=>{e.hidden&&(i=null,l=0)}))},destroy:function(){c(),o.clear()},start:function(){u||(u=t.requestAnimationFrame(s))},stop:c,update:n,render:r}}function z2(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}function bs(e=0,t=0){const n=Wt(e-t);function r(t){return t<e}function o(e){return e>t}function a(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return a(n)?r(n)?e:t:n},reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function a1(e,t,n){const{constrain:r}=bs(0,e),o=e+1;let a=i(t);function i(e){return n?Wt((o+e)%o):r(e)}function l(){return a}function u(){return a1(e,l(),n)}const s={get:l,set:function(e){return a=i(e),s},add:function(e){return u().set(l()+e)},clone:u};return s}function W2(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}function B2(e,t,n,r,o,a,i,l,u,s,c,d,f,p,h,m,v,g,y,b){const{cross:w}=e,x=["INPUT","SELECT","TEXTAREA"],C={passive:!1},_=vd(),k=vd(),E=bs(50,225).constrain(h.measure(20)),S={mouse:300,touch:400},N={mouse:500,touch:600},P=m?43:25;let R=!1,j=0,D=0,A=!1,O=!1,T=!1,L=!1;function I(e){const n=i.readPoint(e),r=i.readPoint(e,w),o=fd(n,j),l=fd(r,D);if(!(O||L||e.cancelable&&(O=o>l,O)))return M(e);const s=i.pointerMove(e);o>v&&(T=!0),c.useFriction(.3).useDuration(1),u.start(),a.add(t.apply(s)),e.preventDefault()}function M(e){const n=d.byDistance(0,!1).index!==f.get(),r=i.pointerUp(e)*(m?N:S)[L?"mouse":"touch"],o=function(e,t){const n=f.add(-1*Yv(e)),r=d.byDistance(e,!m).distance;return m||Wt(e)<E?r:g&&t?.5*r:d.byIndex(n.get(),0).distance}(t.apply(r),n),a=L2(r,o),l=P-10*a,u=y+a/50;O=!1,A=!1,k.clear(),c.useDuration(l).useFriction(u),s.distance(o,!m),L=!1,p.emit("pointerUp")}function W(e){T&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(Gv(b)||b(e,t))&&function(e){const t=i1(e,o);L=t,(!t||0===e.button)&&(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target)||(T=m&&t&&!e.buttons&&R,R=fd(a.get(),l.get())>=2,A=!0,i.pointerDown(e),c.useFriction(0).useDuration(0),a.set(l),function(){const e=L?r:n;k.add(e,"touchmove",I,C).add(e,"touchend",M).add(e,"mousemove",I,C).add(e,"mouseup",M)}(),j=i.readPoint(e),D=i.readPoint(e,w),p.emit("pointerDown")))}(t)}const u=n;_.add(u,"dragstart",(e=>e.preventDefault()),C).add(u,"touchmove",(()=>{}),C).add(u,"touchend",(()=>{})).add(u,"touchstart",t).add(u,"mousedown",t).add(u,"touchcancel",M).add(u,"contextmenu",M).add(u,"click",W,!0)},pointerDown:function(){return A},destroy:function(){_.clear(),k.clear()}}}function U2(e,t){let n,r;function o(e){return e.timeStamp}function a(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(i1(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){const t=a(e)-a(r),i=o(e)-o(n)>170;return r=e,i&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=a(r)-a(n),i=o(e)-o(n),l=o(e)-o(r)>170,u=t/i;return i&&!l&&Wt(u)>.1?u:0},readPoint:a}}function V2(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}}}function H2(e){return{measure:function(t){return e*(t/100)}}}function K2(e,t,n,r,o,a,i){let l,u,s=[],c=!1;function d(e){return o.measureSize(i.measure(e))}return{init:function(o){a&&(u=d(e),s=r.map(d),l=new ResizeObserver((i=>{c||(Gv(a)||a(o,i))&&function(a){for(const i of a){const a=i.target===e,l=r.indexOf(i.target),c=a?u:s[l];if(Wt(d(a?e:r[l])-c)>=.5){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(i)})),[e].concat(r).forEach((e=>l.observe(e))))},destroy:function(){l&&l.disconnect(),c=!0}}}function G2(e,t,n,r,o){let a=0,i=0,l=r,u=o,s=e.get(),c=0;function d(e){return l=e,p}function f(e){return u=e,p}const p={direction:function(){return i},duration:function(){return l},velocity:function(){return a},seek:function(){const t=n.get()-e.get();let r=0;return!l?(a=0,e.set(n),r=t):(a+=t/l,a*=u,s+=a,e.add(a),r=s-c),i=Yv(r),c=s,p},settled:function(){return Wt(n.get()-t.get())<.001},useBaseFriction:function(){return f(o)},useBaseDuration:function(){return d(r)},useFriction:f,useDuration:d};return p}function Y2(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),l=bs(.1,.99);let u=!1;return{constrain:function(o){if(u||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const s=e.reachedMin(t.get())?"min":"max",c=Wt(e[s]-t.get()),d=n.get()-t.get(),f=l.constrain(c/i);n.subtract(d*f),!o&&Wt(d)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){u=!e}}}function X2(e,t,n,r,o){const a=bs(-t+e,0),i=n.map(((e,t)=>{const{min:r,max:o}=a,i=a.constrain(e),l=!t,s=Xv(n,t);return l?o:s||u(r,i)?r:u(o,i)?o:i})).map((e=>parseFloat(e.toFixed(3)))),l=function(){const e=i[0],t=ho(i),n=i.lastIndexOf(e),r=i.indexOf(t)+1;return bs(n,r)}();function u(e,t){return fd(e,t)<1}return{snapsContained:function(){if(t<=e+o)return[a.max];if("keepSnaps"===r)return i;const{min:n,max:u}=l;return i.slice(n,u)}(),scrollContainLimit:l}}function Q2(e,t,n){const r=t[0];return{limit:bs(n?r-e:ho(t),r)}}function q2(e,t,n,r){const o=t.min+.1,a=t.max+.1,{reachedMin:i,reachedMax:l}=bs(o,a);return{loop:function(t){if(!function(e){return 1===e?l(n.get()):-1===e&&i(n.get())}(t))return;const o=e*(-1*t);r.forEach((e=>e.add(o)))}}}function Z2(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function J2(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:l}=o,u=l(r).map((e=>ho(e)[i]-e[0][a])).map(Wt).map(t.measure),s=r.map((e=>n[a]-e[a])).map((e=>-Wt(e))),c=l(s).map((e=>e[0])).map(((e,t)=>e+u[t]));return{snaps:s,snapsAligned:c}}function eE(e,t,n,r,o,a){const{groupSlides:i}=o,{min:l,max:u}=r;return{slideRegistry:function(){const r=i(a),o=!e||"keepSnaps"===t;return 1===n.length?[a]:o?r:r.slice(l,u).map(((e,t,n)=>{const r=!t,o=Xv(n,t);if(r){return E0(ho(n[0])+1)}if(o){return E0(Cd(a)-ho(n)[0]+1,ho(n)[0])}return e}))}()}}function tE(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:l}=r;function u(e){return e.concat().sort(((e,t)=>Wt(e)-Wt(t)))[0]}function s(t,r){const o=[t,t+n,t-n];if(!e)return o[0];if(!r)return u(o);const a=o.filter((e=>Yv(e)===r));return a.length?u(a):ho(o)-n}return{byDistance:function(n,r){const u=o.get()+n,{index:c,distance:d}=function(n){const r=e?i(n):l(n),o=t.map((e=>e-r)).map((e=>s(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>Wt(e.diff)-Wt(t.diff))),{index:a}=o[0];return{index:a,distance:r}}(u),f=!e&&a(u);return!r||f?{index:c,distance:n}:{index:c,distance:n+s(t[c]-d,0)}},byIndex:function(e,n){return{index:e,distance:s(t[e]-o.get(),n)}},shortcut:s}}function nE(e,t,n,r,o,a,i){function l(o){const l=o.distance,u=o.index!==t.get();a.add(l),l&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(o.index),i.emit("select"))}return{distance:function(e,t){l(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);l(o.byIndex(r.get(),n))}}}function rE(e,t,n,r,o,a){let i=0;function l(e){"Tab"===e.code&&(i=(new Date).getTime())}function u(l){a.add(l,"focus",(()=>{if((new Date).getTime()-i>10)return;e.scrollLeft=0;const a=t.indexOf(l),u=n.findIndex((e=>e.includes(a)));Kv(u)&&(o.useDuration(0),r.index(u,0))}),{passive:!0,capture:!0})}return{init:function(){a.add(document,"keydown",l,!1),t.forEach(u)}}}function Gp(e){let t=e;function n(e){return Kv(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function s1(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=n.style;let a=!1;return{clear:function(){a||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){a||(o.transform=r(t.apply(e)))},toggleActive:function(e){a=!e}}}function oE(e,t,n,r,o,a,i,l,u,s){const c=hd(a),d=hd(a).reverse(),f=function(){const e=l[0];return m(h(d,e),r,!1)}().concat(function(){const e=n-l[0]-1;return m(h(c,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-a[t]),t)}function h(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function m(a,l,c){const d=function(e){return i.map(((t,r)=>({start:t-o[r]+.5+e,end:t+n-.5+e})))}(l);return a.map((n=>{const o=c?0:-r,a=c?r:0,i=c?"end":"start",l=d[n][i];return{index:n,loopPoint:l,slideLocation:Gp(-1),translate:s1(e,t,s[n]),target:()=>u.get()>l?o:a}}))}return{canLoop:function(){return f.every((({index:e})=>p(c.filter((t=>t!==e)),n)<=.1))},clear:function(){f.forEach((e=>e.translate.clear()))},loop:function(){f.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:f}}function iE(e,t,n){let r,o=!1;return{init:function(a){n&&(r=new MutationObserver((e=>{o||(Gv(n)||n(a,e))&&function(e){for(const n of e)if("childList"===n.type){a.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function aE(e,t,n,r){const o={};let a,i=null,l=null,u=!1;return{init:function(){a=new IntersectionObserver((e=>{u||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),i=null,l=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>a.observe(e)))},destroy:function(){a&&a.disconnect(),u=!0},get:function(e=!0){if(e&&i)return i;if(!e&&l)return l;const t=function(e){return md(o).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:a}=o[r];return(e&&a||!e&&!a)&&t.push(r),t}),[])}(e);return e&&(i=t),e||(l=t),t}}}function sE(e,t,n,r,o,a){const{measureSize:i,startEdge:l,endEdge:u}=e,s=n[0]&&o,c=function(){if(!s)return 0;const e=n[0];return Wt(t[l]-e[l])}(),d=function(){if(!s)return 0;const e=a.getComputedStyle(ho(r));return parseFloat(e.getPropertyValue(`margin-${u}`))}(),f=n.map(i),p=n.map(((e,t,n)=>{const r=!t,o=Xv(n,t);return r?f[t]+c:o?f[t]+d:n[t+1][l]-e[l]})).map(Wt);return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}function lE(e,t,n,r,o,a,i,l,u,s){const{startEdge:c,endEdge:d}=e,f=Kv(r);return{groupSlides:function(e){return f?function(e,t){return hd(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?hd(e).reduce(((r,f)=>{const p=ho(r)||0,h=0===p,m=f===Cd(e),v=a[c]-i[p][c],g=a[c]-i[f][d],y=!o&&h?t.apply(l):0;return Wt(g-(!o&&m?t.apply(u):0)-(v+y))>n+s&&r.push(f),m&&r.push(e.length),r}),[]).map(((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function cE(e,t,n,r,o,a,i){const{align:l,axis:u,direction:s,startIndex:c,loop:d,duration:f,dragFree:p,dragThreshold:h,inViewThreshold:m,slidesToScroll:v,skipSnaps:g,containScroll:y,watchResize:b,watchSlides:w,watchDrag:x}=a,C=V2(),_=C.measure(t),k=n.map(C.measure),E=W2(s),S=z2(u,s),N=S.measureSize(_),P=H2(N),R=F2(l,N),j=!d&&!!y,D=d||!!y,{slideSizes:A,slideSizesWithGaps:O,startGap:T,endGap:L}=sE(S,_,k,n,D,o),I=lE(S,E,N,v,d,_,k,T,L,2),{snaps:M,snapsAligned:W}=J2(S,R,_,k,I),z=-ho(M)+ho(O),{snapsContained:F,scrollContainLimit:$}=X2(N,z,W,y,2),V=j?F:W,{limit:B}=Q2(z,V,d),U=a1(Cd(V),c,d),H=U.clone(),K=hd(n),Q=j2(r,o,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ie)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:a,dragHandler:i,animation:l,eventHandler:u,options:{loop:s}},c)=>{const d=e.velocity(),f=e.settled();f&&!i.pointerDown()&&(l.stop(),u.emit("settle")),f||u.emit("scroll"),r.set(n.get()-d+d*c),s&&(o.loop(e.direction()),a.loop()),t.to(r.get())})(ie,e))),q=V[U.get()],G=Gp(q),Y=Gp(q),X=Gp(q),Z=G2(G,Y,X,f,.68),J=tE(d,V,z,B,X),ee=nE(Q,U,H,Z,J,X,i),te=Z2(B),ne=vd(),re=aE(t,n,i,m),{slideRegistry:oe}=eE(j,y,V,$,I,K),ae=rE(e,n,oe,ee,Z,ne),ie={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:_,slideRects:k,animation:Q,axis:S,direction:E,dragHandler:B2(S,E,e,r,o,X,U2(S,o),G,Q,ee,Z,J,U,i,P,p,h,g,.68,x),eventStore:ne,percentOfView:P,index:U,indexPrevious:H,limit:B,location:G,offsetLocation:Y,options:a,resizeHandler:K2(t,i,o,n,S,b,C),scrollBody:Z,scrollBounds:Y2(B,Y,X,Z,P),scrollLooper:q2(z,B,Y,[G,Y,X]),scrollProgress:te,scrollSnapList:V.map(te.get),scrollSnaps:V,scrollTarget:J,scrollTo:ee,slideLooper:oE(S,E,N,z,A,O,M,V,Y,n),slideFocus:ae,slidesHandler:iE(t,i,w),slidesInView:re,slideIndexes:K,slideRegistry:oe,slidesToScroll:I,target:X,translate:s1(S,E,t)};return ie}function uE(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((e=>e!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r}};return r}O2.displayName="CardFooter";const dE={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function fE(e){function t(e,t){return o1(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=md(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>md(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function pE(e){let t=[];return{init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function Qp(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=fE(o),i=pE(a),l=vd(),u=uE(),{mergeOptions:s,optionsAtMedia:c,optionsMediaQueries:d}=a,{on:f,off:p,emit:h}=u,m=S;let v,g,y,b,w=!1,x=s(dE,Qp.globalOptions),C=s(x),_=[];function k(t){const n=cE(e,y,b,r,o,t,u);if(t.loop&&!n.slideLooper.canLoop()){return k(Object.assign({},t,{loop:!1}))}return n}function E(t,n){w||(x=s(x,t),C=c(x),_=n||_,function(){const{container:t,slides:n}=C;y=(bv(t)?e.querySelector(t):t)||e.children[0];const r=bv(n)?y.querySelectorAll(n):n;b=[].slice.call(r||y.children)}(),v=k(C),d([x,..._.map((({options:e})=>e))]).forEach((e=>l.add(e,"change",S))),C.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(),v.eventHandler.init(j),v.resizeHandler.init(j),v.slidesHandler.init(j),v.options.loop&&v.slideLooper.loop(),y.offsetParent&&b.length&&v.dragHandler.init(j),g=i.init(j,_)))}function S(e,t){const n=R();N(),E(s({startIndex:n},e),t),u.emit("reInit")}function N(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),l.clear()}function P(e,t,n){!C.active||w||(v.scrollBody.useBaseFriction().useDuration(!0===t?0:C.duration),v.scrollTo.index(e,n||0))}function R(){return v.index.get()}const j={canScrollNext:function(){return v.index.add(1).get()!==R()},canScrollPrev:function(){return v.index.add(-1).get()!==R()},containerNode:function(){return y},internalEngine:function(){return v},destroy:function(){w||(w=!0,l.clear(),N(),u.emit("destroy"))},off:p,on:f,emit:h,plugins:function(){return g},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){P(v.index.add(1).get(),e,-1)},scrollPrev:function(e){P(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.location.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:P,selectedScrollSnap:R,slideNodes:function(){return b},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return E(t,n),setTimeout((()=>u.emit("init")),0),j}function Qv(e={},t=[]){const n=Qe(e),r=Qe(t),[o,a]=st(),[i,l]=st(),u=bt((()=>{o&&o.reInit(n.current,r.current)}),[o]);return ut((()=>{if(D2()&&i){Qp.globalOptions=Qv.globalOptions;const e=Qp(i,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)}),[i,a]),ut((()=>{Hv(n.current,e)||(n.current=e,u())}),[e,u]),ut((()=>{M2(r.current,t)||(r.current=t,u())}),[t,u]),[l,o]}Qp.globalOptions=void 0,Qv.globalOptions=void 0;const l1=ga("",{variants:{variant:{fullHeight:"absolute bg-base_white_90 top-[0] h-[calc(100%-35px)] w-[32px] border-0 rounded-none transform-none text-slate-700 [&>svg]:text-slate-700 [&>svg]:size-[37px] [&>svg]:stroke-[3px]",bottom:"size-[20px] bottom-[0] rounded-[2px] bg-slate-900_50 disabled:opacity-1 hover:bg-slate-900_50 [&:disabled>svg]:text-slate-900_20 [&>svg]:text-white [&>svg]:size-[20px]"},position:{left:"",right:""}},compoundVariants:[{variant:"fullHeight",position:"left",class:"rounded-tl-[6px] left-0"},{variant:"fullHeight",position:"right",class:"rounded-tr-[6px] right-0"},{variant:"bottom",position:"left",class:"mr-[6px]"}]}),c1=C.createContext(null),fh=()=>{const e=C.useContext(c1);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},hE=C.forwardRef((({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i},l)=>{const[u,s]=Qv({...t,axis:"horizontal"===e?"x":"y"},r),[c,d]=C.useState(!1),[f,p]=C.useState(!1),h=C.useCallback((e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))}),[]),m=C.useCallback((()=>{null==s||s.scrollPrev()}),[s]),v=C.useCallback((()=>{null==s||s.scrollNext()}),[s]),g=C.useCallback((e=>{"ArrowLeft"===e.key?(e.preventDefault(),m()):"ArrowRight"===e.key&&(e.preventDefault(),v())}),[m,v]);return C.useEffect((()=>{!s||!n||n(s)}),[s,n]),C.useEffect((()=>{if(s)return h(s),s.on("reInit",h),s.on("select",h),()=>{null==s||s.off("select",h)}}),[s,h]),W.jsx(c1.Provider,{value:{carouselRef:u,api:s,opts:t,orientation:e||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:m,scrollNext:v,canScrollPrev:c,canScrollNext:f},children:W.jsx("div",{ref:l,onKeyDownCapture:g,className:$e("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})}));hE.displayName="Carousel";const mE=C.forwardRef((({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=fh();return W.jsx("div",{ref:r,className:"overflow-hidden",children:W.jsx("div",{ref:n,className:$e("flex","horizontal"===o?"":"-mt-4 flex-col",e),...t})})}));mE.displayName="CarouselContent";const vE=C.forwardRef((({className:e,sideGap:t,isFullPreview:n,...r},o)=>{const{orientation:a}=fh();return W.jsx("div",{ref:o,role:"group","aria-roledescription":"slide",style:{...n&&{width:"100%"},marginRight:t&&`${t}px`,maxWidth:t&&`calc(100% - ${t}px)`},className:$e("min-w-0 shrink-0 grow-0","horizontal"===a?!t&&"pr-[10px]":"pt-4",e),...r})}));vE.displayName="CarouselItem";const gE=C.forwardRef((({className:e,variant:t="fullHeight",size:n="icon",...r},o)=>{const{scrollPrev:a,canScrollPrev:i,opts:l}=fh(),u=$e(("fullHeight"===t&&!i||!(null!=l&&l.active))&&"hidden",l1({variant:t,position:"left"}),e);return W.jsxs(sh,{ref:o,variant:"outline",size:n,className:u,disabled:!i,onClick:a,...r,children:[W.jsx(dS,{}),W.jsx("span",{className:"sr-only",children:"Previous slide"})]})}));gE.displayName="CarouselPrevious";const yE=C.forwardRef((({className:e,variant:t="fullHeight",size:n="icon",...r},o)=>{const{scrollNext:a,canScrollNext:i,opts:l}=fh(),u=$e(("fullHeight"===t&&!i||!(null!=l&&l.active))&&"hidden",l1({variant:t,position:"right"}),e);return W.jsxs(sh,{ref:o,variant:"outline",size:n,className:u,disabled:!i,onClick:a,...r,children:[W.jsx(hy,{}),W.jsx("span",{className:"sr-only",children:"Next slide"})]})}));function ph(e){const t=Qe({value:e,previous:e});return xs((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function hh(e){const[t,n]=st(void 0);return Hn((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}yE.displayName="CarouselNext";const u1="Checkbox",[xE,V6]=xr(u1),[wE,bE]=xE(u1),$E=me(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:u="on",onCheckedChange:s,...c}=e,[d,f]=st(null),p=yt(t,(e=>f(e))),h=Qe(!1),m=!d||!!d.closest("form"),[v=!1,g]=Ho({prop:o,defaultProp:a,onChange:s}),y=Qe(v);return ut((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),j(wE,{scope:n,state:v,disabled:l},j(rt.button,ie({type:"button",role:"checkbox","aria-checked":ys(v)?"mixed":v,"aria-required":i,"data-state":d1(v),"data-disabled":l?"":void 0,disabled:l,value:u},c,{ref:p,onKeyDown:Ve(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Ve(e.onClick,(e=>{g((e=>!!ys(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&j(CE,{control:d,bubbles:!h.current,name:r,value:u,checked:v,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))})),_E="CheckboxIndicator",SE=me(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=bE(_E,n);return j(vo,{present:r||ys(a.state)||!0===a.state},j(rt.span,ie({"data-state":d1(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),CE=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=Qe(null),i=ph(n),l=hh(t);return ut((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=ys(n),o.call(e,!ys(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),j("input",ie({type:"checkbox","aria-hidden":!0,defaultChecked:!ys(n)&&n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ys(e){return"indeterminate"===e}function d1(e){return ys(e)?"indeterminate":e?"checked":"unchecked"}const f1=$E,EE=SE,k0=ga("",{variants:{size:{default:"h-4 w-4",20:"size-[20px]",24:"size-[24px]",32:"size-[32px]"},variant:{default:"peer shrink-0 rounded-sm border border-slate-700 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:border-slate-700 data-[state=checked]:bg-slate-700 data-[state=checked]:text-primary-foreground",dark:"shrink-0 bg-slate-900_50 data-[state=checked]:bg-slate-700 rounded-[4px] border-[2px] data-[state=checked]:text-primary-foreground border-slate-100 [&_svg]:size-[24px] [&_svg]:border-none"}},defaultVariants:{size:"default",variant:"default"}}),kE=C.forwardRef((({className:e,size:t,variant:n,...r},o)=>W.jsx(f1,{ref:o,className:$e(e,k0({size:t,variant:n})),...r,children:W.jsx(EE,{className:$e("flex items-center justify-center text-current"),children:W.jsx(Lv,{className:$e(k0({size:t}))})})})));kE.displayName=f1.displayName;var P0=1,PE=.9,NE=.8,RE=.17,ov=.1,iv=.999,AE=.9999,TE=.99,OE=/[\\\/_+.#"@\[\(\{&]/,IE=/[\\\/_+.#"@\[\(\{&]/g,DE=/[\s-]/,p1=/[\s-]/g;function $v(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?P0:TE;var l=`${o},${a}`;if(void 0!==i[l])return i[l];for(var u,s,c,d,f=r.charAt(a),p=n.indexOf(f,o),h=0;p>=0;)(u=$v(e,t,n,r,p+1,a+1,i))>h&&(p===o?u*=P0:OE.test(e.charAt(p-1))?(u*=NE,(c=e.slice(o,p-1).match(IE))&&o>0&&(u*=Math.pow(iv,c.length))):DE.test(e.charAt(p-1))?(u*=PE,(d=e.slice(o,p-1).match(p1))&&o>0&&(u*=Math.pow(iv,d.length))):(u*=RE,o>0&&(u*=Math.pow(iv,p-o))),e.charAt(p)!==t.charAt(a)&&(u*=AE)),(u<ov&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&((s=$v(e,t,n,r,p+1,a+2,i))*ov>u&&(u=s*ov)),u>h&&(h=u),p=n.indexOf(f,p+1);return i[l]=h,h}function N0(e){return e.toLowerCase().replace(p1," ")}function ME(e,t,n){return $v(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,N0(e),N0(t),0,0,{})}var ld='[cmdk-group=""]',av='[cmdk-group-items=""]',LE='[cmdk-group-heading=""]',qv='[cmdk-item=""]',R0=`${qv}:not([aria-disabled="true"])`,_v="cmdk-item-select",ms="data-value",FE=(e,t,n)=>ME(e,t,n),h1=C.createContext(void 0),Ed=()=>C.useContext(h1),m1=C.createContext(void 0),Zv=()=>C.useContext(m1),v1=C.createContext(void 0),g1=C.forwardRef(((e,t)=>{let n=Zl((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Zl((()=>new Set)),o=Zl((()=>new Map)),a=Zl((()=>new Map)),i=Zl((()=>new Set)),l=y1(e),{label:u,children:s,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:v=!0,...g}=e,y=C.useId(),b=C.useId(),w=C.useId(),x=C.useRef(null),_=XE();$s((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,k.emit()}}),[c]),$s((()=>{_(6,j)}),[]);let k=C.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)R(),N(),_(1,P);else if("value"===e&&(r||_(5,j),void 0!==(null==(o=l.current)?void 0:o.value))){let e=t??"";return void(null==(i=(a=l.current).onValueChange)||i.call(a,e))}k.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),E=C.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,S(t,r)),_(2,(()=>{N(),k.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,(()=>{R(),N(),n.current.value||P(),k.emit()})),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=D();_(4,(()=>{R(),(null==t?void 0:t.getAttribute("id"))===e&&P(),k.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:m,listId:y,inputId:w,labelId:b,listInnerRef:x})),[]);function S(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:FE;return e?a(e,n.current.search,t):0}function N(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),a=0;r.forEach((t=>{let n=e.get(t);a=Math.max(n,a)})),t.push([n,a])}));let r=x.current;A().sort(((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)})).forEach((e=>{let t=e.closest(av);t?t.appendChild(e.parentElement===t?e:e.closest(`${av} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${av} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${ld}[${ms}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function P(){let e=A().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(ms);k.setState("value",t||void 0)}function R(){var e,t,i,u;if(!n.current.search||!1===l.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let s=0;for(let o of r.current){let r=S(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(i=a.current.get(o))?void 0:i.keywords)?u:[]);n.current.filtered.items.set(o,r),r>0&&s++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=s}function j(){var e,t,n;let r=D();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(ld))?void 0:t.querySelector(LE))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function D(){var e;return null==(e=x.current)?void 0:e.querySelector(`${qv}[aria-selected="true"]`)}function A(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(R0))}function O(e){let t=A()[e];t&&k.setState("value",t.getAttribute(ms))}function T(e){var t;let n=D(),r=A(),o=r.findIndex((e=>e===n)),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&k.setState("value",a.getAttribute(ms))}function L(e){let t,n=D(),r=null==n?void 0:n.closest(ld);for(;r&&!t;)r=e>0?GE(r,ld):YE(r,ld),t=null==r?void 0:r.querySelector(R0);t?k.setState("value",t.getAttribute(ms)):T(e)}let I=()=>O(A().length-1),M=e=>{e.preventDefault(),e.metaKey?I():e.altKey?L(1):T(1)},W=e=>{e.preventDefault(),e.metaKey?O(0):e.altKey?L(-1):T(-1)};return C.createElement(rt.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":v&&e.ctrlKey&&W(e);break;case"ArrowUp":W(e);break;case"Home":e.preventDefault(),O(0);break;case"End":e.preventDefault(),I();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=D();if(t){let e=new Event(_v);t.dispatchEvent(e)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:qE},u),mh(e,(e=>C.createElement(m1.Provider,{value:k},C.createElement(h1.Provider,{value:E},e)))))})),jE=C.forwardRef(((e,t)=>{var n,r;let o=C.useId(),a=C.useRef(null),i=C.useContext(v1),l=Ed(),u=y1(e),s=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;$s((()=>{if(!s)return l.item(o,null==i?void 0:i.id)}),[s]);let c=x1(o,a,[e.value,e.children,a],e.keywords),d=Zv(),f=_s((e=>e.value&&e.value===c.current)),p=_s((e=>!(!s&&!1!==l.filter())||(!e.search||e.filtered.items.get(o)>0)));function h(){var e,t;m(),null==(t=(e=u.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(C.useEffect((()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(_v,h),()=>t.removeEventListener(_v,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:v,value:g,onSelect:y,forceMount:b,keywords:w,...x}=e;return C.createElement(rt.div,{ref:gd([a,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||l.disablePointerSelection?void 0:m,onClick:v?void 0:h},e.children)})),zE=C.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=C.useId(),l=C.useRef(null),u=C.useRef(null),s=C.useId(),c=Ed(),d=_s((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i))));$s((()=>c.group(i)),[]),x1(i,l,[e.value,e.heading,u]);let f=C.useMemo((()=>({id:i,forceMount:o})),[o]);return C.createElement(rt.div,{ref:gd([l,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&C.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},n),mh(e,(e=>C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?s:void 0},C.createElement(v1.Provider,{value:f},e)))))})),WE=C.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=C.useRef(null),a=_s((e=>!e.search));return n||a?C.createElement(rt.div,{ref:gd([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),BE=C.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=Zv(),i=_s((e=>e.search)),l=_s((e=>e.value)),u=Ed(),s=C.useMemo((()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${qv}[${ms}="${encodeURIComponent(l)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return C.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),C.createElement(rt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),UE=C.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=C.useRef(null),i=C.useRef(null),l=Ed();return C.useEffect((()=>{if(i.current&&a.current){let e,t=i.current,n=a.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),C.createElement(rt.div,{ref:gd([a,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:l.listId},mh(e,(e=>C.createElement("div",{ref:gd([i,l.listInnerRef]),"cmdk-list-sizer":""},e))))})),VE=C.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...l}=e;return C.createElement(zy,{open:n,onOpenChange:r},C.createElement(Wy,{container:i},C.createElement(By,{"cmdk-overlay":"",className:o}),C.createElement(Uy,{"aria-label":e.label,"cmdk-dialog":"",className:a},C.createElement(g1,{ref:t,...l}))))})),HE=C.forwardRef(((e,t)=>_s((e=>0===e.filtered.count))?C.createElement(rt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),KE=C.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return C.createElement(rt.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},mh(e,(e=>C.createElement("div",{"aria-hidden":!0},e))))})),wr=Object.assign(g1,{List:UE,Item:jE,Input:BE,Group:zE,Separator:WE,Dialog:VE,Empty:HE,Loading:KE});function GE(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function YE(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function y1(e){let t=C.useRef(e);return $s((()=>{t.current=e})),t}var $s=typeof window>"u"?C.useEffect:C.useLayoutEffect;function Zl(e){let t=C.useRef();return void 0===t.current&&(t.current=e()),t}function gd(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function _s(e){let t=Zv(),n=()=>e(t.snapshot());return C.useSyncExternalStore(t.subscribe,n,n)}function x1(e,t,n,r=[]){let o=C.useRef(),a=Ed();return $s((()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),u=r.map((e=>e.trim()));a.value(e,l,u),null==(i=t.current)||i.setAttribute(ms,l),o.current=l})),o}var XE=()=>{let[e,t]=C.useState(),n=Zl((()=>new Map));return $s((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function QE(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function mh({asChild:e,children:t},n){return e&&C.isValidElement(t)?C.cloneElement(QE(t),{ref:t.ref},n(t.props.children)):n(t)}var qE={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function fa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function ZE(e,t){const n=C.createContext(t);function r(e){const{children:t,...r}=e,o=C.useMemo((()=>r),Object.values(r));return W.jsx(n.Provider,{value:o,children:t})}return r.displayName=e+"Provider",[r,function(r){const o=C.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function JE(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>C.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return C.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=C.createContext(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,u=C.useMemo((()=>i),Object.values(i));return W.jsx(l.Provider,{value:u,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,u=C.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},e3(r,...t)]}function e3(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return C.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var qp=null!=globalThis&&globalThis.document?C.useLayoutEffect:()=>{},t3=C.useId||(()=>{}),n3=0;function sv(e){const[t,n]=C.useState(t3());return qp((()=>{e||n((e=>e??String(n3++)))}),[e]),e||(t?`radix-${t}`:"")}function Ss(e){const t=C.useRef(e);return C.useEffect((()=>{t.current=e})),C.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function r3({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=o3({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,l=Ss(n);return[i,C.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[a,e,o,l])]}function o3({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,o=C.useRef(r),a=Ss(t);return C.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}var i3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$i=i3.reduce(((e,t)=>{const n=C.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?Sd:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),W.jsx(a,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function a3(e,t){e&&Yo.flushSync((()=>e.dispatchEvent(t)))}function s3(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ss(e);C.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var A0,l3="DismissableLayer",Sv="dismissableLayer.update",c3="dismissableLayer.pointerDownOutside",u3="dismissableLayer.focusOutside",w1=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b1=C.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,s=C.useContext(w1),[c,d]=C.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=C.useState({}),h=ks(t,(e=>d(e))),m=Array.from(s.layers),[v]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=c?m.indexOf(c):-1,b=s.layersWithOutsidePointerEventsDisabled.size>0,w=y>=g,x=p3((e=>{const t=e.target,n=[...s.branches].some((e=>e.contains(t)));!w||n||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f),_=h3((e=>{const t=e.target;[...s.branches].some((e=>e.contains(t)))||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f);return s3((e=>{y===s.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),f),C.useEffect((()=>{if(c)return n&&(0===s.layersWithOutsidePointerEventsDisabled.size&&(A0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(c)),s.layers.add(c),T0(),()=>{n&&1===s.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=A0)}}),[c,f,n,s]),C.useEffect((()=>()=>{c&&(s.layers.delete(c),s.layersWithOutsidePointerEventsDisabled.delete(c),T0())}),[c,s]),C.useEffect((()=>{const e=()=>p({});return document.addEventListener(Sv,e),()=>document.removeEventListener(Sv,e)}),[]),W.jsx($i.div,{...u,ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:fa(e.onFocusCapture,_.onFocusCapture),onBlurCapture:fa(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:fa(e.onPointerDownCapture,x.onPointerDownCapture)})}));b1.displayName=l3;var d3="DismissableLayerBranch",f3=C.forwardRef(((e,t)=>{const n=C.useContext(w1),r=C.useRef(null),o=ks(t,r);return C.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),W.jsx($i.div,{...e,ref:o})}));function p3(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ss(e),r=C.useRef(!1),o=C.useRef((()=>{}));return C.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){$1(c3,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function h3(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ss(e),r=C.useRef(!1);return C.useEffect((()=>{const e=e=>{e.target&&!r.current&&$1(u3,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function T0(){const e=new CustomEvent(Sv);document.dispatchEvent(e)}function $1(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?a3(o,a):o.dispatchEvent(a)}f3.displayName=d3;var lv="focusScope.autoFocusOnMount",cv="focusScope.autoFocusOnUnmount",O0={bubbles:!1,cancelable:!0},m3="FocusScope",_1=C.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=C.useState(null),s=Ss(o),c=Ss(a),d=C.useRef(null),f=ks(t,(e=>u(e))),p=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect((()=>{if(r){let e=function(e){if(p.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:da(d.current,{select:!0})},t=function(e){if(p.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||da(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&da(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,p.paused]),C.useEffect((()=>{if(l){D0.add(p);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(lv,O0);l.addEventListener(lv,s),l.dispatchEvent(t),t.defaultPrevented||(v3(b3(S1(l)),{select:!0}),document.activeElement===e&&da(l))}return()=>{l.removeEventListener(lv,s),setTimeout((()=>{const t=new CustomEvent(cv,O0);l.addEventListener(cv,c),l.dispatchEvent(t),t.defaultPrevented||da(e??document.body,{select:!0}),l.removeEventListener(cv,c),D0.remove(p)}),0)}}}),[l,s,c,p]);const h=C.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=g3(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&da(a,{select:!0})):(e.preventDefault(),n&&da(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return W.jsx($i.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})}));function v3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(da(r,{select:t}),document.activeElement!==n)return}function g3(e){const t=S1(e);return[I0(t,e),I0(t.reverse(),e)]}function S1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I0(e,t){for(const n of e)if(!y3(n,{upTo:t}))return n}function y3(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function x3(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&x3(e)&&t&&e.select()}}_1.displayName=m3;var D0=w3();function w3(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=M0(e,t),e.unshift(t)},remove(t){var n;e=M0(e,t),null==(n=e[0])||n.resume()}}}function M0(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function b3(e){return e.filter((e=>"A"!==e.tagName))}var $3="Portal",C1=C.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[a,i]=C.useState(!1);qp((()=>i(!0)),[]);const l=r||a&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return l?gy.createPortal(W.jsx($i.div,{...o,ref:t}),l):null}));function _3(e,t){return C.useReducer(((e,n)=>t[e][n]??e),e)}C1.displayName=$3;var vh=e=>{const{present:t,children:n}=e,r=S3(t),o="function"==typeof n?n({present:r.isPresent}):C.Children.only(n),a=ks(r.ref,C3(o));return"function"==typeof n||r.isPresent?C.cloneElement(o,{ref:a}):null};function S3(e){const[t,n]=C.useState(),r=C.useRef({}),o=C.useRef(e),a=C.useRef("none"),i=e?"mounted":"unmounted",[l,u]=_3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect((()=>{const e=zp(r.current);a.current="mounted"===l?e:"none"}),[l]),qp((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=zp(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),qp((()=>{if(t){const e=e=>{const n=zp(r.current).includes(e.animationName);e.target===t&&n&&Yo.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=zp(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:C.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function zp(e){return(null==e?void 0:e.animationName)||"none"}function C3(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}vh.displayName="Presence";var uv=0;function E3(){C.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??L0()),document.body.insertAdjacentElement("beforeend",e[1]??L0()),uv++,()=>{1===uv&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),uv--}}),[])}function L0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var E1=Sy(),dv=function(){},gh=C.forwardRef((function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:dv,onWheelCapture:dv,onTouchMoveCapture:dv}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=e.gapMode,b=Bv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=_y([n,t]),_=Vn(Vn({},b),o);return C.createElement(C.Fragment,null,c&&C.createElement(w,{sideCar:E1,removeScrollBar:s,shards:d,noIsolation:p,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:y}),i?C.cloneElement(C.Children.only(l),Vn(Vn({},_),{ref:x})):C.createElement(g,Vn({},_,{className:u,ref:x}),l))}));gh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},gh.classNames={fullWidth:dd,zeroRight:ud};var Cv=!1;if(typeof window<"u")try{var Wp=Object.defineProperty({},"passive",{get:function(){return Cv=!0,!0}});window.addEventListener("test",Wp,Wp),window.removeEventListener("test",Wp,Wp)}catch{Cv=!1}var Ql=!!Cv&&{passive:!1},k3=function(e){return"TEXTAREA"===e.tagName},k1=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!k3(e)&&"visible"===n[t])},P3=function(e){return k1(e,"overflowY")},N3=function(e){return k1(e,"overflowX")},F0=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),P1(e,r)){var o=N1(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},R3=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},A3=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},P1=function(e,t){return"v"===e?P3(t):N3(t)},N1=function(e,t){return"v"===e?R3(t):A3(t)},T3=function(e,t){return"h"===e&&"rtl"===t?-1:1},O3=function(e,t,n,r,o){var a=T3(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,u=t.contains(l),s=!1,c=i>0,d=0,f=0;do{var p=N1(e,l),h=p[0],m=p[1]-p[2]-a*h;(h||m)&&P1(e,l)&&(d+=m,f+=h),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(s=!0),s},Bp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},j0=function(e){return[e.deltaX,e.deltaY]},z0=function(e){return e&&"current"in e?e.current:e},I3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},D3=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},M3=0,ql=[];function L3(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),o=C.useState(M3++)[0],a=C.useState(Uv)[0],i=C.useRef(e);C.useEffect((function(){i.current=e}),[e]),C.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=$y([e.lockRef.current],(e.shards||[]).map(z0),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=C.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=Bp(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],s="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=F0(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=F0(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return O3(p,t,e,"h"===p?u:s,!0)}),[]),u=C.useCallback((function(e){var n=e;if(ql.length&&ql[ql.length-1]===a){var r="deltaY"in n?j0(n):Bp(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&I3(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(i.current.shards||[]).map(z0).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?l(n,u[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=C.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:F3(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),c=C.useCallback((function(e){n.current=Bp(e),r.current=void 0}),[]),d=C.useCallback((function(t){s(t.type,j0(t),t.target,l(t,e.lockRef.current))}),[]),f=C.useCallback((function(t){s(t.type,Bp(t),t.target,l(t,e.lockRef.current))}),[]);C.useEffect((function(){return ql.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Ql),document.addEventListener("touchmove",u,Ql),document.addEventListener("touchstart",c,Ql),function(){ql=ql.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Ql),document.removeEventListener("touchmove",u,Ql),document.removeEventListener("touchstart",c,Ql)}}),[]);var p=e.removeScrollBar,h=e.inert;return C.createElement(C.Fragment,null,h?C.createElement(a,{styles:D3(o)}):null,p?C.createElement(Py,{gapMode:e.gapMode}):null)}function F3(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const j3=Ey(E1,L3);var R1=C.forwardRef((function(e,t){return C.createElement(gh,Vn({},e,{ref:t,sideCar:j3}))}));R1.classNames=gh.classNames;var Jv="Dialog",[A1,H6]=JE(Jv),[z3,yo]=A1(Jv),T1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=C.useRef(null),u=C.useRef(null),[s=!1,c]=r3({prop:r,defaultProp:o,onChange:a});return W.jsx(z3,{scope:t,triggerRef:l,contentRef:u,contentId:sv(),titleId:sv(),descriptionId:sv(),open:s,onOpenChange:c,onOpenToggle:C.useCallback((()=>c((e=>!e))),[c]),modal:i,children:n})};T1.displayName=Jv;var O1="DialogTrigger",I1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(O1,n),a=ks(t,o.triggerRef);return W.jsx($i.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ng(o.open),...r,ref:a,onClick:fa(e.onClick,o.onOpenToggle)})}));I1.displayName=O1;var eg="DialogPortal",[W3,D1]=A1(eg,{forceMount:void 0}),M1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=yo(eg,t);return W.jsx(W3,{scope:t,forceMount:n,children:C.Children.map(r,(e=>W.jsx(vh,{present:n||a.open,children:W.jsx(C1,{asChild:!0,container:o,children:e})})))})};M1.displayName=eg;var Zp="DialogOverlay",L1=C.forwardRef(((e,t)=>{const n=D1(Zp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=yo(Zp,e.__scopeDialog);return a.modal?W.jsx(vh,{present:r||a.open,children:W.jsx(B3,{...o,ref:t})}):null}));L1.displayName=Zp;var B3=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(Zp,n);return W.jsx(R1,{as:Sd,allowPinchZoom:!0,shards:[o.contentRef],children:W.jsx($i.div,{"data-state":ng(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Cs="DialogContent",F1=C.forwardRef(((e,t)=>{const n=D1(Cs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=yo(Cs,e.__scopeDialog);return W.jsx(vh,{present:r||a.open,children:a.modal?W.jsx(U3,{...o,ref:t}):W.jsx(V3,{...o,ref:t})})}));F1.displayName=Cs;var U3=C.forwardRef(((e,t)=>{const n=yo(Cs,e.__scopeDialog),r=C.useRef(null),o=ks(t,n.contentRef,r);return C.useEffect((()=>{const e=r.current;if(e)return dh(e)}),[]),W.jsx(j1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fa(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:fa(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:fa(e.onFocusOutside,(e=>e.preventDefault()))})})),V3=C.forwardRef(((e,t)=>{const n=yo(Cs,e.__scopeDialog),r=C.useRef(!1),o=C.useRef(!1);return W.jsx(j1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),j1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=yo(Cs,n),u=C.useRef(null),s=ks(t,u);return E3(),W.jsxs(W.Fragment,{children:[W.jsx(_1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:W.jsx(b1,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ng(l.open),...i,ref:s,onDismiss:()=>l.onOpenChange(!1)})}),W.jsxs(W.Fragment,{children:[W.jsx(H3,{titleId:l.titleId}),W.jsx(G3,{contentRef:u,descriptionId:l.descriptionId})]})]})})),tg="DialogTitle",z1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(tg,n);return W.jsx($i.h2,{id:o.titleId,...r,ref:t})}));z1.displayName=tg;var W1="DialogDescription",B1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(W1,n);return W.jsx($i.p,{id:o.descriptionId,...r,ref:t})}));B1.displayName=W1;var U1="DialogClose",V1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(U1,n);return W.jsx($i.button,{type:"button",...r,ref:t,onClick:fa(e.onClick,(()=>o.onOpenChange(!1)))})}));function ng(e){return e?"open":"closed"}V1.displayName=U1;var H1="DialogTitleWarning",[K6,K1]=ZE(H1,{contentName:Cs,titleName:tg,docsSlug:"dialog"}),H3=({titleId:e})=>{const t=K1(H1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},K3="DialogDescriptionWarning",G3=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${K1(K3).contentName}}.`;return C.useEffect((()=>{var r;const o=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},G1=T1,Y1=I1,X1=M1,yh=L1,xh=F1,wh=z1,bh=B1,$h=V1;const Y3=G1,G6=Y1,X3=X1,Y6=$h,Q1=C.forwardRef((({className:e,...t},n)=>(C.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{e.forEach((e=>e&&(e.style.filter="none")))}}),[]),W.jsx(yh,{ref:n,"data-testid":"dialog_overlay",className:$e("fixed inset-0 z-50 bg-slate-900 opacity-[0.7] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));Q1.displayName=yh.displayName;const Q3=ga("",{variants:{closeVariant:{insideCard:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",outsideCard:"fixed right-[30px] top-[30px] z-50"}},defaultVariants:{closeVariant:"outsideCard"}}),q3=ga("",{variants:{closeSize:{small:"h-4 w-4",big:"h-[42px] w-[42px]"}},defaultVariants:{closeSize:"big"}}),q1=C.forwardRef((({className:e,showClose:t=!0,closeVariant:n="outsideCard",closeSize:r="big",children:o,overlayClassName:a,...i},l)=>{const u=W.jsxs($h,{className:$e(Q3({closeVariant:n})),children:[W.jsx(vy,{color:"#94A3B8",className:$e(q3({closeSize:r}))}),W.jsx("span",{className:"sr-only",children:"Close"})]});return W.jsxs(X3,{children:[W.jsx(Q1,{className:a}),t&&"outsideCard"===n&&u,W.jsxs(xh,{ref:l,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 !overflow-visible border bg-background p-5 shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg [&>div]:min-w-0",e),...i,children:[W.jsx(Z1,{className:"hidden",children:"DialogTitle"}),W.jsx(J1,{className:"hidden",children:"DialogDescription"}),o,t&&"insideCard"===n&&u]})]})}));q1.displayName=xh.displayName;const Z3=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Z3.displayName="DialogHeader";const J3=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});J3.displayName="DialogFooter";const Z1=C.forwardRef((({className:e,...t},n)=>W.jsx(wh,{ref:n,className:$e("text-lg font-semibold leading-none tracking-tight",e),...t})));Z1.displayName=wh.displayName;const J1=C.forwardRef((({className:e,...t},n)=>W.jsx(bh,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));J1.displayName=bh.displayName;const ex=C.forwardRef((({className:e,...t},n)=>W.jsx(wr,{ref:n,className:$e("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));ex.displayName=wr.displayName;const X6=({children:e,...t})=>W.jsx(Y3,{...t,children:W.jsx(q1,{className:"overflow-hidden p-0 shadow-lg",children:W.jsx(ex,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),ek=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:W.jsx(wr.Input,{ref:n,className:$e("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));ek.displayName=wr.Input.displayName;const tk=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.List,{ref:n,className:$e("mt-[8px] max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));tk.displayName=wr.List.displayName;const nk=C.forwardRef(((e,t)=>W.jsx(wr.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));nk.displayName=wr.Empty.displayName;const rk=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.Group,{ref:n,className:$e("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));rk.displayName=wr.Group.displayName;const ok=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.Separator,{ref:n,className:$e("-mx-1 h-px bg-border",e),...t})));ok.displayName=wr.Separator.displayName;const ik=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.Item,{ref:n,className:$e("relative flex max-w-[215px] cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));ik.displayName=wr.Item.displayName;const ak=({className:e,...t})=>W.jsx("span",{className:$e("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});function rg(e){const t=e+"CollectionProvider",[n,r]=xr(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e+"CollectionSlot",l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=Jr.useRef(null),a=Jr.useRef(new Map).current;return Jr.createElement(o,{scope:t,itemMap:a,collectionRef:r},n)},Slot:Jr.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=yt(t,a(i,n).collectionRef);return Jr.createElement(ws,{ref:o},r)})),ItemSlot:Jr.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,i=Jr.useRef(null),s=yt(t,i),c=a(l,n);return Jr.useEffect((()=>(c.itemMap.set(i,{ref:i,...o}),()=>{c.itemMap.delete(i)}))),Jr.createElement(ws,{[u]:"",ref:s},r)}))},function(t){const n=a(e+"CollectionConsumer",t);return Jr.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}ak.displayName="CommandShortcut";const sk=pd(void 0);function kd(e){const t=ah(sk);return e||t||"ltr"}const lk=["top","right","bottom","left"],pa=Math.min,Mr=Math.max,Jp=Math.round,Up=Math.floor,ha=e=>({x:e,y:e}),ck={left:"right",right:"left",bottom:"top",top:"bottom"},uk={start:"end",end:"start"};function Ev(e,t,n){return Mr(e,pa(t,n))}function xi(e,t){return"function"==typeof e?e(t):e}function wi(e){return e.split("-")[0]}function ic(e){return e.split("-")[1]}function og(e){return"x"===e?"y":"x"}function ig(e){return"y"===e?"height":"width"}function ma(e){return["top","bottom"].includes(wi(e))?"y":"x"}function ag(e){return og(ma(e))}function dk(e,t,n){void 0===n&&(n=!1);const r=ic(e),o=ag(e),a=ig(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=eh(i)),[i,eh(i)]}function fk(e){const t=eh(e);return[kv(e),t,kv(t)]}function kv(e){return e.replace(/start|end/g,(e=>uk[e]))}function pk(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function hk(e,t,n,r){const o=ic(e);let a=pk(wi(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(kv)))),a}function eh(e){return e.replace(/left|right|bottom|top/g,(e=>ck[e]))}function mk(e){return{top:0,right:0,bottom:0,left:0,...e}}function tx(e){return"number"!=typeof e?mk(e):{top:e,right:e,bottom:e,left:e}}function th(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function W0(e,t,n){let{reference:r,floating:o}=e;const a=ma(t),i=ag(t),l=ig(i),u=wi(t),s="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(u){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ic(t)){case"start":p[i]-=f*(n&&s?-1:1);break;case"end":p[i]+=f*(n&&s?-1:1)}return p}const vk=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),u=await(null==i.isRTL?void 0:i.isRTL(t));let s=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=W0(s,r,u),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:a,fn:m}=l[n],{x:v,y:g,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:i,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[a]:{...p[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=W0(s,f,u))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function yd(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=xi(t,e),h=tx(p),m=l[f?"floating"===d?"reference":"floating":d],v=th(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:s,rootBoundary:c,strategy:u})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=th(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}const gk=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:u}=t,{element:s,padding:c=0}=xi(e,t)||{};if(null==s)return{};const d=tx(c),f={x:n,y:r},p=ag(o),h=ig(p),m=await i.getDimensions(s),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let _=C?C[b]:0;(!_||!await(null==i.isElement?void 0:i.isElement(C)))&&(_=l.floating[b]||a.floating[h]);const k=w/2-x/2,E=_/2-m[h]/2-1,S=pa(d[g],E),N=pa(d[y],E),P=S,R=_-m[h]-N,j=_/2-m[h]/2+k,D=Ev(P,j,R),A=!u.arrow&&null!=ic(o)&&j!==D&&a.reference[h]/2-(j<P?S:N)-m[h]/2<0,O=A?j<P?j-P:j-R:0;return{[p]:f[p]+O,data:{[p]:D,centerOffset:j-D-O,...A&&{alignmentOffset:O}},reset:A}}}),yk=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:u,elements:s}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=xi(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=wi(o),y=ma(l),b=wi(l)===l,w=await(null==u.isRTL?void 0:u.isRTL(s.floating)),x=f||(b||!m?[eh(l)]:fk(l)),C="none"!==h;!f&&C&&x.push(...hk(l,m,h,w));const _=[l,...x],k=await yd(t,v),E=[];let S=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&E.push(k[g]),d){const e=dk(o,i,w);E.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:E}],!E.every((e=>e<=0))){var N,P;const e=((null==(N=a.flip)?void 0:N.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(P=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=S.filter((e=>{if(C){const t=ma(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}};function B0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U0(e){return lk.some((t=>e[t]>=0))}const xk=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xi(e,t);switch(r){case"referenceHidden":{const e=B0(await yd(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:U0(e)}}}case"escaped":{const e=B0(await yd(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:U0(e)}}}default:return{}}}}};async function wk(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=wi(n),l=ic(n),u="y"===ma(n),s=["left","top"].includes(i)?-1:1,c=a&&u?-1:1,d=xi(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}const bk=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,u=await wk(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},$k=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=xi(e,t),s={x:n,y:r},c=await yd(t,u),d=ma(wi(o)),f=og(d);let p=s[f],h=s[d];if(a){const e="y"===f?"bottom":"right";p=Ev(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";h=Ev(h+c["y"===d?"top":"left"],h,h-c[e])}const m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},_k=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:u=!0,crossAxis:s=!0}=xi(e,t),c={x:n,y:r},d=ma(o),f=og(d);let p=c[f],h=c[d];const m=xi(l,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis,n=a.reference[f]+a.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(wi(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Sk=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:u=()=>{},...s}=xi(e,t),c=await yd(t,s),d=wi(o),f=ic(o),p="y"===ma(o),{width:h,height:m}=a.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,w=pa(m-c[v],y),x=pa(h-c[g],b),C=!t.middlewareData.shift;let _=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(_=y),C&&!f){const e=Mr(c.left,0),t=Mr(c.right,0),n=Mr(c.top,0),r=Mr(c.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Mr(c.left,c.right)):_=m-2*(0!==n||0!==r?n+r:Mr(c.top,c.bottom))}await u({...t,availableWidth:k,availableHeight:_});const E=await i.getDimensions(l.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function _h(){return typeof window<"u"}function va(e){return nx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _i(e){var t;return null==(t=(nx(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nx(e){return!!_h()&&(e instanceof Node||e instanceof Lr(e).Node)}function Ko(e){return!!_h()&&(e instanceof Element||e instanceof Lr(e).Element)}function Go(e){return!!_h()&&(e instanceof HTMLElement||e instanceof Lr(e).HTMLElement)}function V0(e){return!(!_h()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Lr(e).ShadowRoot)}function Pd(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ck(e){return["table","td","th"].includes(va(e))}function Ek(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function sg(e){const t=lg(),n=Ko(e)?no(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function rx(e){let t=tc(e);for(;Go(t)&&!Sh(t);){if(sg(t))return t;if(Ek(t))return null;t=tc(t)}return null}function lg(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Sh(e){return["html","body","#document"].includes(va(e))}function no(e){return Lr(e).getComputedStyle(e)}function Ch(e){return Ko(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tc(e){if("html"===va(e))return e;const t=e.assignedSlot||e.parentNode||V0(e)&&e.host||_i(e);return V0(t)?t.host:t}function ox(e){const t=tc(e);return Sh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Go(t)&&Pd(t)?t:ox(t)}function xd(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ox(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Lr(o);if(a){const e=kk(i);return t.concat(i,i.visualViewport||[],Pd(o)?o:[],e&&n?xd(e):[])}return t.concat(o,xd(o,[],n))}function kk(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ix(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Go(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Jp(n)!==a||Jp(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function cg(e){return Ko(e)?e:e.contextElement}function Jl(e){const t=cg(e);if(!Go(t))return ha(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ix(t);let i=(a?Jp(n.width):n.width)/r,l=(a?Jp(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Pk=ha(0);function ax(e){const t=Lr(e);return lg()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pk}function Nk(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Lr(e))&&t}function Es(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=cg(e);let i=ha(1);t&&(r?Ko(r)&&(i=Jl(r)):i=Jl(e));const l=Nk(a,n,r)?ax(a):ha(0);let u=(o.left+l.x)/i.x,s=(o.top+l.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Lr(a),t=r&&Ko(r)?Lr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Jl(n),t=n.getBoundingClientRect(),r=no(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,s*=e.y,c*=e.x,d*=e.y,u+=o,s+=a,n=Lr(n).frameElement}}return th({width:c,height:d,x:u,y:s})}const Rk=[":popover-open",":modal"];function sx(e){let t=!1,n=0,r=0;if(Rk.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=rx(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Ak(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=_i(r),[i]=t?sx(t.floating):[!1];if(r===a||i)return n;let l={scrollLeft:0,scrollTop:0},u=ha(1);const s=ha(0),c=Go(r);if((c||!c&&"fixed"!==o)&&(("body"!==va(r)||Pd(a))&&(l=Ch(r)),Go(r))){const e=Es(r);u=Jl(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+s.x,y:n.y*u.y-l.scrollTop*u.y+s.y}}function Tk(e){return Array.from(e.getClientRects())}function lx(e){return Es(_i(e)).left+Ch(e).scrollLeft}function Ok(e){const t=_i(e),n=Ch(e),r=e.ownerDocument.body,o=Mr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Mr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+lx(e);const l=-n.scrollTop;return"rtl"===no(r).direction&&(i+=Mr(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}function Ik(e,t){const n=Lr(e),r=_i(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;const e=lg();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l,y:u}}function Dk(e,t){const n=Es(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Go(e)?Jl(e):ha(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}function H0(e,t,n){let r;if("viewport"===t)r=Ik(e,n);else if("document"===t)r=Ok(_i(e));else if(Ko(t))r=Dk(t,n);else{const n=ax(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return th(r)}function cx(e,t){const n=tc(e);return!(n===t||!Ko(n)||Sh(n))&&("fixed"===no(n).position||cx(n,t))}function Mk(e,t){const n=t.get(e);if(n)return n;let r=xd(e,[],!1).filter((e=>Ko(e)&&"body"!==va(e))),o=null;const a="fixed"===no(e).position;let i=a?tc(e):e;for(;Ko(i)&&!Sh(i);){const t=no(i),n=sg(i);!n&&"fixed"===t.position&&(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Pd(i)&&!n&&cx(e,i))?r=r.filter((e=>e!==i)):o=t,i=tc(i)}return t.set(e,r),r}function Lk(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Mk(t,this._c):[].concat(n),r],i=a[0],l=a.reduce(((e,n)=>{const r=H0(t,n,o);return e.top=Mr(r.top,e.top),e.right=pa(r.right,e.right),e.bottom=pa(r.bottom,e.bottom),e.left=Mr(r.left,e.left),e}),H0(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fk(e){const{width:t,height:n}=ix(e);return{width:t,height:n}}function jk(e,t,n,r){const o=Go(t),a=_i(t),i="fixed"===n,l=Es(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const s=ha(0);if(o||!o&&!i)if(("body"!==va(t)||Pd(a))&&(u=Ch(t)),o){const e=Es(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=lx(a));let c=l.left+u.scrollLeft-s.x,d=l.top+u.scrollTop-s.y;const[f,p,h]=sx(r);return f&&(c+=p,d+=h,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:l.width,height:l.height}}function K0(e,t){return Go(e)&&"fixed"!==no(e).position?t?t(e):e.offsetParent:null}function ux(e,t){const n=Lr(e);if(!Go(e))return n;let r=K0(e,t);for(;r&&Ck(r)&&"static"===no(r).position;)r=K0(r,t);return r&&("html"===va(r)||"body"===va(r)&&"static"===no(r).position&&!sg(r))?n:r||rx(e)||n}const zk=async function(e){const t=this.getOffsetParent||ux,n=this.getDimensions;return{reference:jk(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function Wk(e){return"rtl"===no(e).direction}const Bk={convertOffsetParentRelativeRectToViewportRelativeRect:Ak,getDocumentElement:_i,getClippingRect:Lk,getOffsetParent:ux,getElementRects:zk,getClientRects:Tk,getDimensions:Fk,getScale:Jl,isElement:Ko,isRTL:Wk};function Uk(e,t){let n,r=null;const o=_i(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();const{left:s,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-Up(c)+"px "+-Up(o.clientWidth-(s+d))+"px "+-Up(o.clientHeight-(c+f))+"px "+-Up(s)+"px",threshold:Mr(0,pa(1,u))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==u){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,p)}r.observe(e)}(!0),a}function dx(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,s=cg(e),c=o||a?[...s?xd(s):[],...xd(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=s&&l?Uk(s,n):null;let f=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),s&&!u&&p.observe(s),p.observe(t));let h,m=u?Es(e):null;return u&&function t(){const r=Es(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(h)}}const Vk=$k,Hk=yk,Kk=Sk,Gk=xk,G0=gk,Yk=_k,Xk=(e,t,n)=>{const r=new Map,o={platform:Bk,...n},a={...o.platform,_c:r};return vk(e,t,{...o,platform:a})};var Yp=typeof document<"u"?ry:ut;function nh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!nh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||nh(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function fx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Y0(e,t){const n=fx(e);return Math.round(t*n)/n}function fv(e){const t=C.useRef(e);return Yp((()=>{t.current=e})),t}function px(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:u,open:s}=e,[c,d]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=C.useState(r);nh(f,r)||p(r);const[h,m]=C.useState(null),[v,g]=C.useState(null),y=C.useCallback((e=>{e!==_.current&&(_.current=e,m(e))}),[]),b=C.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=a||h,x=i||v,_=C.useRef(null),k=C.useRef(null),E=C.useRef(c),S=null!=u,N=fv(u),P=fv(o),R=fv(s),j=C.useCallback((()=>{if(!_.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};P.current&&(e.platform=P.current),Xk(_.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};D.current&&!nh(E.current,t)&&(E.current=t,Yo.flushSync((()=>{d(t)})))}))}),[f,t,n,P,R]);Yp((()=>{!1===s&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[s]);const D=C.useRef(!1);Yp((()=>(D.current=!0,()=>{D.current=!1})),[]),Yp((()=>{if(w&&(_.current=w),x&&(k.current=x),w&&x){if(N.current)return N.current(w,x,j);j()}}),[w,x,j,N,S]);const A=C.useMemo((()=>({reference:_,floating:k,setReference:y,setFloating:b})),[y,b]),O=C.useMemo((()=>({reference:w,floating:x})),[w,x]),T=C.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=Y0(O.floating,c.x),r=Y0(O.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...fx(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,O.floating,c.x,c.y]);return C.useMemo((()=>({...c,update:j,refs:A,elements:O,floatingStyles:T})),[c,j,A,O,T])}const Qk=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?G0({element:n.current,padding:r}).fn(t):{}:n?G0({element:n,padding:r}).fn(t):{}}}),hx=(e,t)=>({...bk(e),options:[e,t]}),mx=(e,t)=>({...Vk(e),options:[e,t]}),vx=(e,t)=>({...Yk(e),options:[e,t]}),gx=(e,t)=>({...Hk(e),options:[e,t]}),yx=(e,t)=>({...Kk(e),options:[e,t]}),xx=(e,t)=>({...Gk(e),options:[e,t]}),wx=(e,t)=>({...Qk(e),options:[e,t]}),bx="Popper",[$x,Eh]=xr(bx),[qk,_x]=$x(bx),Zk=e=>{const{__scopePopper:t,children:n}=e,[r,o]=st(null);return j(qk,{scope:t,anchor:r,onAnchorChange:o},n)},Jk="PopperAnchor",eP=me(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=_x(Jk,n),i=Qe(null),l=yt(t,i);return ut((()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:j(rt.div,ie({},o,{ref:l}))})),Sx="PopperContent",[tP,Q6]=$x(Sx),nP=me(((e,t)=>{var n,r,o,a,i,l,u,s;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:C,..._}=e,k=_x(Sx,c),[E,S]=st(null),N=yt(t,(e=>S(e))),[P,R]=st(null),D=hh(P),A=null!==(n=null==D?void 0:D.width)&&void 0!==n?n:0,O=null!==(r=null==D?void 0:D.height)&&void 0!==r?r:0,T=d+("center"!==p?"-"+p:""),L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(g)?g:[g],M=I.length>0,W={padding:L,boundary:I.filter(rP),altBoundary:M},{refs:z,floatingStyles:F,placement:$,isPositioned:V,middlewareData:B}=px({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>dx(...e,{animationFrame:"always"===x}),elements:{reference:k.anchor},middleware:[hx({mainAxis:f+O,alignmentAxis:h}),v&&mx({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?vx():void 0,...W}),v&&gx({...W}),yx({...W,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),P&&wx({element:P,padding:m}),oP({arrowWidth:A,arrowHeight:O}),w&&xx({strategy:"referenceHidden",...W})]}),[U,H]=Cx($),K=yr(C);Hn((()=>{V&&(null==K||K())}),[V,K]);const Q=null===(o=B.arrow)||void 0===o?void 0:o.x,q=null===(a=B.arrow)||void 0===a?void 0:a.y,G=0!==(null===(i=B.arrow)||void 0===i?void 0:i.centerOffset),[Y,X]=st();return Hn((()=>{E&&X(window.getComputedStyle(E).zIndex)}),[E]),j("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:V?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(l=B.transformOrigin)||void 0===l?void 0:l.x,null===(u=B.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},j(tP,{scope:c,placedSide:U,onArrowChange:R,arrowX:Q,arrowY:q,shouldHideArrow:G},j(rt.div,ie({"data-side":U,"data-align":H},_,{ref:N,style:{..._.style,animation:V?void 0:"none",opacity:null!==(s=B.hide)&&void 0!==s&&s.referenceHidden?0:void 0}}))))}));function rP(e){return null!==e}const oP=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:l,rects:u,middlewareData:s}=t,c=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Cx(l),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=s.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(i=s.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=-f+"px"):"top"===p?(y=c?m:`${v}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${g}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function Cx(e){const[t,n="center"]=e.split("-");return[t,n]}const ug=Zk,Ex=eP,kx=nP,pv="rovingFocusGroup.onEntryFocus",iP={bubbles:!1,cancelable:!0},dg="RovingFocusGroup",[Pv,Px,aP]=rg(dg),[sP,ac]=xr(dg,[aP]),[lP,cP]=sP(dg),uP=me(((e,t)=>j(Pv.Provider,{scope:e.__scopeRovingFocusGroup},j(Pv.Slot,{scope:e.__scopeRovingFocusGroup},j(dP,ie({},e,{ref:t})))))),dP=me(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:s,...c}=e,d=Qe(null),f=yt(t,d),p=kd(a),[h=null,m]=Ho({prop:i,defaultProp:l,onChange:u}),[v,g]=st(!1),y=yr(s),b=Px(n),w=Qe(!1),[x,C]=st(0);return ut((()=>{const e=d.current;if(e)return e.addEventListener(pv,y),()=>e.removeEventListener(pv,y)}),[y]),j(lP,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:h,onItemFocus:bt((e=>m(e)),[m]),onItemShiftTab:bt((()=>g(!0)),[]),onFocusableItemAdd:bt((()=>C((e=>e+1))),[]),onFocusableItemRemove:bt((()=>C((e=>e-1))),[])},j(rt.div,ie({tabIndex:v||0===x?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:Ve(e.onMouseDown,(()=>{w.current=!0})),onFocus:Ve(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(pv,iP);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));Nx([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:Ve(e.onBlur,(()=>g(!1)))})))})),fP="RovingFocusGroupItem",pP=me(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=to(),u=a||l,s=cP(fP,n),c=s.currentTabStopId===u,d=Px(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=s;return ut((()=>{if(r)return f(),()=>p()}),[r,f,p]),j(Pv.ItemSlot,{scope:n,id:u,focusable:r,active:o},j(rt.span,ie({tabIndex:c?0:-1,"data-orientation":s.orientation},i,{ref:t,onMouseDown:Ve(e.onMouseDown,(e=>{r?s.onItemFocus(u):e.preventDefault()})),onFocus:Ve(e.onFocus,(()=>s.onItemFocus(u))),onKeyDown:Ve(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void s.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=vP(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=s.loop?gP(n,r+1):n.slice(r+1)}setTimeout((()=>Nx(n)))}}))})))})),hP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mP(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function vP(e,t,n){const r=mP(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return hP[r]}function Nx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function gP(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const fg=uP,pg=pP,Nv=["Enter"," "],yP=["ArrowDown","PageUp","Home"],Rx=["ArrowUp","PageDown","End"],xP=[...yP,...Rx],wP={ltr:[...Nv,"ArrowRight"],rtl:[...Nv,"ArrowLeft"]},bP={ltr:["ArrowLeft"],rtl:["ArrowRight"]},kh="Menu",[wd,$P,_P]=rg(kh),[Ps,Ax]=xr(kh,[_P,Eh,ac]),Ph=Eh(),Tx=ac(),[Ox,xa]=Ps(kh),[SP,Nd]=Ps(kh),CP=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=Ph(t),[u,s]=st(null),c=Qe(!1),d=yr(a),f=kd(o);return ut((()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),j(ug,l,j(Ox,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:s},j(SP,{scope:t,onClose:bt((()=>d(!1)),[d]),isUsingKeyboardRef:c,dir:f,modal:i},r)))},Ix=me(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ph(n);return j(Ex,ie({},o,r,{ref:t}))})),Dx="MenuPortal",[EP,Mx]=Ps(Dx,{forceMount:void 0}),kP=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=xa(Dx,t);return j(EP,{scope:t,forceMount:n},j(vo,{present:n||a.open},j(zv,{asChild:!0,container:o},r)))},mo="MenuContent",[PP,hg]=Ps(mo),NP=me(((e,t)=>{const n=Mx(mo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=xa(mo,e.__scopeMenu),i=Nd(mo,e.__scopeMenu);return j(wd.Provider,{scope:e.__scopeMenu},j(vo,{present:r||a.open},j(wd.Slot,{scope:e.__scopeMenu},i.modal?j(RP,ie({},o,{ref:t})):j(AP,ie({},o,{ref:t})))))})),RP=me(((e,t)=>{const n=xa(mo,e.__scopeMenu),r=Qe(null),o=yt(t,r);return ut((()=>{const e=r.current;if(e)return dh(e)}),[]),j(mg,ie({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ve(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),AP=me(((e,t)=>{const n=xa(mo,e.__scopeMenu);return j(mg,ie({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),mg=me(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...m}=e,v=xa(mo,n),g=Nd(mo,n),y=Ph(n),b=Tx(n),w=$P(n),[x,C]=st(null),_=Qe(null),k=yt(t,_,v.onContentChange),E=Qe(0),S=Qe(""),N=Qe(0),P=Qe(null),R=Qe("right"),D=Qe(0),A=h?uh:rc,O=h?{as:ws,allowPinchZoom:!0}:void 0;ut((()=>()=>window.clearTimeout(E.current)),[]),Wv();const T=bt((e=>{var t,n;return R.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&ZP(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return j(PP,{scope:n,searchRef:S,onItemEnter:bt((e=>{T(e)&&e.preventDefault()}),[T]),onItemLeave:bt((e=>{var t;T(e)||(null===(t=_.current)||void 0===t||t.focus(),C(null))}),[T]),onTriggerLeave:bt((e=>{T(e)&&e.preventDefault()}),[T]),pointerGraceTimerRef:N,onPointerGraceIntentChange:bt((e=>{P.current=e}),[])},j(A,O,j(jv,{asChild:!0,trapped:o,onMountAutoFocus:Ve(a,(e=>{var t;e.preventDefault(),null===(t=_.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},j(Fv,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},j(fg,ie({asChild:!0},b,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:C,onEntryFocus:Ve(u,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()}))}),j(kx,ie({role:"menu","aria-orientation":"vertical","data-state":Ux(v.open),"data-radix-menu-content":"",dir:g.dir},y,m,{ref:k,style:{outline:"none",...m.style},onKeyDown:Ve(m.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=S.current+e,o=w().filter((e=>!e.disabled)),a=document.activeElement,i=null===(t=o.find((e=>e.ref.current===a)))||void 0===t?void 0:t.textValue,l=QP(o.map((e=>e.textValue)),r,i),u=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;(function e(t){S.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout((()=>e("")),1e3))})(r),u&&setTimeout((()=>u.focus()))})(e.key));const o=_.current;if(e.target!==o||!xP.includes(e.key))return;e.preventDefault();const a=w().filter((e=>!e.disabled)).map((e=>e.ref.current));Rx.includes(e.key)&&a.reverse(),YP(a)})),onBlur:Ve(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),S.current="")})),onPointerMove:Ve(e.onPointerMove,bd((e=>{const t=e.target,n=D.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>D.current?"right":"left";R.current=t,D.current=e.clientX}})))})))))))})),Lx=me(((e,t)=>{const{__scopeMenu:n,...r}=e;return j(rt.div,ie({role:"group"},r,{ref:t}))})),TP=me(((e,t)=>{const{__scopeMenu:n,...r}=e;return j(rt.div,ie({},r,{ref:t}))})),Rv="MenuItem",X0="menu.itemSelect",vg=me(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=Qe(null),i=Nd(Rv,e.__scopeMenu),l=hg(Rv,e.__scopeMenu),u=yt(t,a),s=Qe(!1);return j(Fx,ie({},o,{ref:u,disabled:n,onClick:Ve(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(X0,{bubbles:!0,cancelable:!0});e.addEventListener(X0,(e=>null==r?void 0:r(e)),{once:!0}),xy(e,t),t.defaultPrevented?s.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),s.current=!0},onPointerUp:Ve(e.onPointerUp,(e=>{var t;s.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:Ve(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||Nv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Fx=me(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=hg(Rv,n),l=Tx(n),u=Qe(null),s=yt(t,u),[c,d]=st(!1),[f,p]=st("");return ut((()=>{const e=u.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[a.children]),j(wd.ItemSlot,{scope:n,disabled:r,textValue:o??f},j(pg,ie({asChild:!0},l,{focusable:!r}),j(rt.div,ie({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:s,onPointerMove:Ve(e.onPointerMove,bd((e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:Ve(e.onPointerLeave,bd((e=>i.onItemLeave(e)))),onFocus:Ve(e.onFocus,(()=>d(!0))),onBlur:Ve(e.onBlur,(()=>d(!1)))}))))})),OP=me(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return j(zx,{scope:e.__scopeMenu,checked:n},j(vg,ie({role:"menuitemcheckbox","aria-checked":rh(n)?"mixed":n},o,{ref:t,"data-state":gg(n),onSelect:Ve(o.onSelect,(()=>null==r?void 0:r(!!rh(n)||!n)),{checkForDefaultPrevented:!1})})))})),IP="MenuRadioGroup",[DP,MP]=Ps(IP,{value:void 0,onValueChange:()=>{}}),LP=me(((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=yr(r);return j(DP,{scope:e.__scopeMenu,value:n,onValueChange:a},j(Lx,ie({},o,{ref:t})))})),FP="MenuRadioItem",jP=me(((e,t)=>{const{value:n,...r}=e,o=MP(FP,e.__scopeMenu),a=n===o.value;return j(zx,{scope:e.__scopeMenu,checked:a},j(vg,ie({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":gg(a),onSelect:Ve(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),jx="MenuItemIndicator",[zx,zP]=Ps(jx,{checked:!1}),WP=me(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=zP(jx,n);return j(vo,{present:r||rh(a.checked)||!0===a.checked},j(rt.span,ie({},o,{ref:t,"data-state":gg(a.checked)})))})),BP=me(((e,t)=>{const{__scopeMenu:n,...r}=e;return j(rt.div,ie({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Wx="MenuSub",[UP,Bx]=Ps(Wx),VP=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=xa(Wx,t),i=Ph(t),[l,u]=st(null),[s,c]=st(null),d=yr(o);return ut((()=>(!1===a.open&&d(!1),()=>d(!1))),[a.open,d]),j(ug,i,j(Ox,{scope:t,open:r,onOpenChange:d,content:s,onContentChange:c},j(UP,{scope:t,contentId:to(),triggerId:to(),trigger:l,onTriggerChange:u},n)))},Vp="MenuSubTrigger",HP=me(((e,t)=>{const n=xa(Vp,e.__scopeMenu),r=Nd(Vp,e.__scopeMenu),o=Bx(Vp,e.__scopeMenu),a=hg(Vp,e.__scopeMenu),i=Qe(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=a,s={__scopeMenu:e.__scopeMenu},c=bt((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return ut((()=>c),[c]),ut((()=>{const e=l.current;return()=>{window.clearTimeout(e),u(null)}}),[l,u]),j(Ix,ie({asChild:!0},s),j(Fx,ie({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ux(n.open)},e,{ref:lh(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ve(e.onPointerMove,bd((t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),c()}),100))}))),onPointerLeave:Ve(e.onPointerLeave,bd((e=>{var t;c();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===t,u=i?-5:5,s=r[i?"left":"right"],c=r[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+u,y:e.clientY},{x:s,y:r.top},{x:c,y:r.top},{x:c,y:r.bottom},{x:s,y:r.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:Ve(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;var i;e.disabled||o&&" "===t.key||!wP[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),KP="MenuSubContent",GP=me(((e,t)=>{const n=Mx(mo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=xa(mo,e.__scopeMenu),i=Nd(mo,e.__scopeMenu),l=Bx(KP,e.__scopeMenu),u=Qe(null),s=yt(t,u);return j(wd.Provider,{scope:e.__scopeMenu},j(vo,{present:r||a.open},j(wd.Slot,{scope:e.__scopeMenu},j(mg,ie({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:s,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=u.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Ve(e.onFocusOutside,(e=>{e.target!==l.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:Ve(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:Ve(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=bP[i.dir].includes(e.key);var r;t&&n&&(a.onOpenChange(!1),null===(r=l.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function Ux(e){return e?"open":"closed"}function rh(e){return"indeterminate"===e}function gg(e){return rh(e)?"indeterminate":e?"checked":"unchecked"}function YP(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XP(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function QP(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let a=XP(e,Math.max(o,0));1===r.length&&(a=a.filter((e=>e!==n)));const i=a.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function qP(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,l=t[e].y,u=t[a].x,s=t[a].y;l>r!=s>r&&n<(u-i)*(r-l)/(s-l)+i&&(o=!o)}return o}function ZP(e,t){if(!t)return!1;return qP({x:e.clientX,y:e.clientY},t)}function bd(e){return t=>"mouse"===t.pointerType?e(t):void 0}const JP=CP,eN=Ix,tN=kP,nN=NP,rN=Lx,oN=TP,iN=vg,aN=OP,sN=LP,lN=jP,cN=WP,uN=BP,dN=VP,fN=HP,pN=GP,Vx="DropdownMenu",[hN,q6]=xr(Vx,[Ax]),nr=Ax(),[mN,Hx]=hN(Vx),vN=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=nr(t),s=Qe(null),[c=!1,d]=Ho({prop:o,defaultProp:a,onChange:i});return j(mN,{scope:t,triggerId:to(),triggerRef:s,contentId:to(),open:c,onOpenChange:d,onOpenToggle:bt((()=>d((e=>!e))),[d]),modal:l},j(JP,ie({},u,{open:c,onOpenChange:d,dir:r,modal:l}),n))},gN="DropdownMenuTrigger",yN=me(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Hx(gN,n),i=nr(n);return j(eN,ie({asChild:!0},i),j(rt.button,ie({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:lh(t,a.triggerRef),onPointerDown:Ve(e.onPointerDown,(e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:Ve(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),xN=e=>{const{__scopeDropdownMenu:t,...n}=e,r=nr(t);return j(tN,ie({},r,n))},wN="DropdownMenuContent",bN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hx(wN,n),a=nr(n),i=Qe(!1);return j(nN,ie({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Ve(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:Ve(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(i.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),$N=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(rN,ie({},o,r,{ref:t}))})),_N=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(oN,ie({},o,r,{ref:t}))})),SN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(iN,ie({},o,r,{ref:t}))})),CN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(aN,ie({},o,r,{ref:t}))})),EN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(sN,ie({},o,r,{ref:t}))})),kN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(lN,ie({},o,r,{ref:t}))})),PN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(cN,ie({},o,r,{ref:t}))})),NN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(uN,ie({},o,r,{ref:t}))})),RN=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=nr(t),[l=!1,u]=Ho({prop:r,defaultProp:a,onChange:o});return j(dN,ie({},i,{open:l,onOpenChange:u}),n)},AN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(fN,ie({},o,r,{ref:t}))})),TN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(pN,ie({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),ON=vN,IN=yN,Kx=xN,Gx=bN,DN=$N,Yx=_N,Xx=SN,Qx=CN,MN=EN,qx=kN,Zx=PN,Jx=NN,LN=RN,ew=AN,tw=TN,Z6=ON,J6=IN,eA=DN,tA=Kx,nA=LN,rA=MN,FN=C.forwardRef((({className:e,inset:t,children:n,...r},o)=>W.jsxs(ew,{ref:o,className:$e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,W.jsx(hy,{className:"ml-auto h-4 w-4"})]})));FN.displayName=ew.displayName;const jN=C.forwardRef((({className:e,...t},n)=>W.jsx(tw,{ref:n,className:$e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));jN.displayName=tw.displayName;const zN=C.forwardRef((({className:e,sideOffset:t=4,...n},r)=>W.jsx(Kx,{children:W.jsx(Gx,{ref:r,sideOffset:t,className:$e("z-[51] min-w-[8rem] overflow-hidden rounded-md border bg-popover p-[8px] text-popover-foreground shadow-md data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})));zN.displayName=Gx.displayName;const WN=C.forwardRef((({className:e,inset:t,...n},r)=>W.jsx(Xx,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));WN.displayName=Xx.displayName;const BN=C.forwardRef((({className:e,children:t,checked:n,...r},o)=>W.jsxs(Qx,{ref:o,className:$e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[W.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:W.jsx(Zx,{children:W.jsx(Lv,{className:"h-4 w-4"})})}),t]})));BN.displayName=Qx.displayName;const UN=C.forwardRef((({className:e,children:t,...n},r)=>W.jsxs(qx,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[W.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:W.jsx(Zx,{children:W.jsx(my,{className:"h-2 w-2 fill-current"})})}),t]})));UN.displayName=qx.displayName;const VN=C.forwardRef((({className:e,inset:t,...n},r)=>W.jsx(Yx,{ref:r,className:$e("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})));VN.displayName=Yx.displayName;const HN=C.forwardRef((({className:e,...t},n)=>W.jsx(Jx,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));HN.displayName=Jx.displayName;const KN=({className:e,...t})=>W.jsx("span",{className:$e("ml-auto text-xs tracking-widest opacity-60",e),...t});KN.displayName="DropdownMenuShortcut";const GN="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='NEW%20p-custom%20icons'%3e%3ccircle%20id='Ellipse%2027'%20cx='7'%20cy='7'%20r='5'%20fill='%23BD3131'%20stroke='%23BD3131'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector%2071'%20d='M5.19922%205.2002L8.73475%208.73573'%20stroke='white'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector%2072'%20d='M8.80078%205.2002L5.26525%208.73573'%20stroke='white'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",YN=me(((e,t)=>j(rt.label,ie({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),nw=YN,XN=ga("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),rw=C.forwardRef((({className:e,...t},n)=>W.jsx(nw,{ref:n,className:$e(XN(),e),...t})));rw.displayName=nw.displayName;const oA=l_,ow=C.createContext({}),iA=({...e})=>W.jsx(ow.Provider,{value:{name:e.name},children:W.jsx(c_,{...e})}),sc=()=>{const e=C.useContext(ow),t=C.useContext(iw),n=u_();e||(console.error("useFormContext must be used within a FormProvider"),console.log(111,e,"fieldContext"),console.log(111,t,"itemContext"));const{getFieldState:r,formState:o}=n,a=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},iw=C.createContext({}),QN=C.forwardRef((({className:e,...t},n)=>{const r=C.useId();return W.jsx(iw.Provider,{value:{id:r},children:W.jsx("div",{ref:n,className:$e("mt-[8px]",e),...t})})}));QN.displayName="FormItem";const qN=C.forwardRef((({className:e,isRequired:t,...n},r)=>{var o;const{formItemId:a}=sc();return W.jsx(rw,{ref:r,className:$e("mb-2 text-sm font-medium",e),htmlFor:a,...n,children:t?`*${null==(o=n.children)?void 0:o.toString()}`:n.children})}));qN.displayName="FormLabel";const ZN=C.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=sc();return W.jsx(Sd,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})}));ZN.displayName="FormControl";const JN=C.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=sc();return W.jsx("p",{ref:n,id:r,className:$e("text-sm text-muted-foreground",e),...t})}));JN.displayName="FormDescription";const eR=C.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=sc(),i=o?String(null==o?void 0:o.message):t;return i?W.jsxs("p",{ref:r,id:a,className:$e("flex items-center gap-[2px] pt-2 text-sm font-medium text-destructive",e),...n,children:[W.jsx("img",{src:GN,width:16,height:16,alt:"delete"})," ",i]}):null}));function eo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function aw(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>C.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return C.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=C.createContext(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,u=C.useMemo((()=>i),Object.values(i));return W.jsx(l.Provider,{value:u,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,u=C.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},tR(r,...t)]}function tR(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return C.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function lc(e){const t=C.useRef(e);return C.useEffect((()=>{t.current=e})),C.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function nR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=rR({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,l=lc(n);return[i,C.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[a,e,o,l])]}function rR({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,o=C.useRef(r),a=lc(t);return C.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}function oR(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function sw(...e){return t=>e.forEach((e=>oR(e,t)))}function cc(...e){return C.useCallback(sw(...e),e)}eR.displayName="FormMessage";var lw=C.forwardRef(((e,t)=>{const{children:n,...r}=e,o=C.Children.toArray(n),a=o.find(aR);if(a){const e=a.props.children,n=o.map((t=>t===a?C.Children.count(e)>1?C.Children.only(null):C.isValidElement(e)?e.props.children:null:t));return W.jsx(Av,{...r,ref:t,children:C.isValidElement(e)?C.cloneElement(e,void 0,n):null})}return W.jsx(Av,{...r,ref:t,children:n})}));lw.displayName="Slot";var Av=C.forwardRef(((e,t)=>{const{children:n,...r}=e;if(C.isValidElement(n)){const e=lR(n);return C.cloneElement(n,{...sR(r,n.props),ref:t?sw(t,e):e})}return C.Children.count(n)>1?C.Children.only(null):null}));Av.displayName="SlotClone";var iR=({children:e})=>W.jsx(W.Fragment,{children:e});function aR(e){return C.isValidElement(e)&&e.type===iR}function sR(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function lR(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var cR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],uc=cR.reduce(((e,t)=>{const n=C.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?lw:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),W.jsx(a,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function uR(e,t){e&&Yo.flushSync((()=>e.dispatchEvent(t)))}var dR="Arrow",cw=C.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return W.jsx(uc.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:W.jsx("polygon",{points:"0,0 30,0 15,10"})})}));cw.displayName=dR;var fR=cw,$d=null!=globalThis&&globalThis.document?C.useLayoutEffect:()=>{};function pR(e){const[t,n]=C.useState(void 0);return $d((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var yg="Popper",[uw,dw]=aw(yg),[hR,fw]=uw(yg),pw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=C.useState(null);return W.jsx(hR,{scope:t,anchor:r,onAnchorChange:o,children:n})};pw.displayName=yg;var hw="PopperAnchor",mw=C.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=fw(hw,n),i=C.useRef(null),l=cc(t,i);return C.useEffect((()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:W.jsx(uc.div,{...o,ref:l})}));mw.displayName=hw;var xg="PopperContent",[mR,vR]=uw(xg),vw=C.forwardRef(((e,t)=>{var n,r,o,a,i,l;const{__scopePopper:u,side:s="bottom",sideOffset:c=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:w,...x}=e,_=fw(xg,u),[k,E]=C.useState(null),S=cc(t,(e=>E(e))),[N,P]=C.useState(null),R=pR(N),j=(null==R?void 0:R.width)??0,D=(null==R?void 0:R.height)??0,A=s+("center"!==d?"-"+d:""),O="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},T=Array.isArray(m)?m:[m],L=T.length>0,I={padding:O,boundary:T.filter(yR),altBoundary:L},{refs:M,floatingStyles:z,placement:F,isPositioned:$,middlewareData:V}=px({strategy:"fixed",placement:A,whileElementsMounted:(...e)=>dx(...e,{animationFrame:"always"===b}),elements:{reference:_.anchor},middleware:[hx({mainAxis:c+D,alignmentAxis:f}),h&&mx({mainAxis:!0,crossAxis:!1,limiter:"partial"===g?vx():void 0,...I}),h&&gx({...I}),yx({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),N&&wx({element:N,padding:p}),xR({arrowWidth:j,arrowHeight:D}),y&&xx({strategy:"referenceHidden",...I})]}),[B,U]=xw(F),H=lc(w);$d((()=>{$&&(null==H||H())}),[$,H]);const K=null==(n=V.arrow)?void 0:n.x,Q=null==(r=V.arrow)?void 0:r.y,q=0!==(null==(o=V.arrow)?void 0:o.centerOffset),[G,Y]=C.useState();return $d((()=>{k&&Y(window.getComputedStyle(k).zIndex)}),[k]),W.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:$?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[null==(a=V.transformOrigin)?void 0:a.x,null==(i=V.transformOrigin)?void 0:i.y].join(" "),...(null==(l=V.hide)?void 0:l.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:W.jsx(mR,{scope:u,placedSide:B,onArrowChange:P,arrowX:K,arrowY:Q,shouldHideArrow:q,children:W.jsx(uc.div,{"data-side":B,"data-align":U,...x,ref:S,style:{...x.style,animation:$?void 0:"none"}})})})}));vw.displayName=xg;var gw="PopperArrow",gR={top:"bottom",right:"left",bottom:"top",left:"right"},yw=C.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=vR(gw,n),a=gR[o.placedSide];return W.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:W.jsx(fR,{...r,ref:t,style:{...r.style,display:"block"}})})}));function yR(e){return null!==e}yw.displayName=gw;var xR=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:a,rects:i,middlewareData:l}=t,u=0!==(null==(n=l.arrow)?void 0:n.centerOffset),s=u?0:e.arrowWidth,c=u?0:e.arrowHeight,[d,f]=xw(a),p={start:"0%",center:"50%",end:"100%"}[f],h=((null==(r=l.arrow)?void 0:r.x)??0)+s/2,m=((null==(o=l.arrow)?void 0:o.y)??0)+c/2;let v="",g="";return"bottom"===d?(v=u?p:`${h}px`,g=-c+"px"):"top"===d?(v=u?p:`${h}px`,g=`${i.floating.height+c}px`):"right"===d?(v=-c+"px",g=u?p:`${m}px`):"left"===d&&(v=`${i.floating.width+c}px`,g=u?p:`${m}px`),{data:{x:v,y:g}}}});function xw(e){const[t,n="center"]=e.split("-");return[t,n]}var wR=pw,bR=mw,$R=vw,_R=yw;function SR(e,t){return C.useReducer(((e,n)=>t[e][n]??e),e)}var ww=e=>{const{present:t,children:n}=e,r=CR(t),o="function"==typeof n?n({present:r.isPresent}):C.Children.only(n),a=cc(r.ref,ER(o));return"function"==typeof n||r.isPresent?C.cloneElement(o,{ref:a}):null};function CR(e){const[t,n]=C.useState(),r=C.useRef({}),o=C.useRef(e),a=C.useRef("none"),i=e?"mounted":"unmounted",[l,u]=SR(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect((()=>{const e=Hp(r.current);a.current="mounted"===l?e:"none"}),[l]),$d((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Hp(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),$d((()=>{if(t){const e=e=>{const n=Hp(r.current).includes(e.animationName);e.target===t&&n&&Yo.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=Hp(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:C.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Hp(e){return(null==e?void 0:e.animationName)||"none"}function ER(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function kR(e,t=(null==globalThis?void 0:globalThis.document)){const n=lc(e);C.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}ww.displayName="Presence";var Q0,PR="DismissableLayer",Tv="dismissableLayer.update",NR="dismissableLayer.pointerDownOutside",RR="dismissableLayer.focusOutside",bw=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$w=C.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,s=C.useContext(bw),[c,d]=C.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=C.useState({}),h=cc(t,(e=>d(e))),m=Array.from(s.layers),[v]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=c?m.indexOf(c):-1,b=s.layersWithOutsidePointerEventsDisabled.size>0,w=y>=g,x=OR((e=>{const t=e.target,n=[...s.branches].some((e=>e.contains(t)));!w||n||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f),_=IR((e=>{const t=e.target;[...s.branches].some((e=>e.contains(t)))||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f);return kR((e=>{y===s.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),f),C.useEffect((()=>{if(c)return n&&(0===s.layersWithOutsidePointerEventsDisabled.size&&(Q0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(c)),s.layers.add(c),q0(),()=>{n&&1===s.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Q0)}}),[c,f,n,s]),C.useEffect((()=>()=>{c&&(s.layers.delete(c),s.layersWithOutsidePointerEventsDisabled.delete(c),q0())}),[c,s]),C.useEffect((()=>{const e=()=>p({});return document.addEventListener(Tv,e),()=>document.removeEventListener(Tv,e)}),[]),W.jsx(uc.div,{...u,ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:eo(e.onFocusCapture,_.onFocusCapture),onBlurCapture:eo(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:eo(e.onPointerDownCapture,x.onPointerDownCapture)})}));$w.displayName=PR;var AR="DismissableLayerBranch",TR=C.forwardRef(((e,t)=>{const n=C.useContext(bw),r=C.useRef(null),o=cc(t,r);return C.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),W.jsx(uc.div,{...e,ref:o})}));function OR(e,t=(null==globalThis?void 0:globalThis.document)){const n=lc(e),r=C.useRef(!1),o=C.useRef((()=>{}));return C.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){_w(NR,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function IR(e,t=(null==globalThis?void 0:globalThis.document)){const n=lc(e),r=C.useRef(!1);return C.useEffect((()=>{const e=e=>{e.target&&!r.current&&_w(RR,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function q0(){const e=new CustomEvent(Tv);document.dispatchEvent(e)}function _w(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uR(o,a):o.dispatchEvent(a)}TR.displayName=AR;var hv,wg="HoverCard",[Sw,aA]=aw(wg,[dw]),Nh=dw(),[DR,bg]=Sw(wg),Cw=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:l=300}=e,u=Nh(t),s=C.useRef(0),c=C.useRef(0),d=C.useRef(!1),f=C.useRef(!1),[p=!1,h]=nR({prop:r,defaultProp:o,onChange:a}),m=C.useCallback((()=>{clearTimeout(c.current),s.current=window.setTimeout((()=>h(!0)),i)}),[i,h]),v=C.useCallback((()=>{clearTimeout(s.current),!d.current&&!f.current&&(c.current=window.setTimeout((()=>h(!1)),l))}),[l,h]),g=C.useCallback((()=>h(!1)),[h]);return C.useEffect((()=>()=>{clearTimeout(s.current),clearTimeout(c.current)}),[]),W.jsx(DR,{scope:t,open:p,onOpenChange:h,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f,children:W.jsx(wR,{...u,children:n})})};Cw.displayName=wg;var Ew="HoverCardTrigger",kw=C.forwardRef(((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=bg(Ew,n),a=Nh(n);return W.jsx(bR,{asChild:!0,...a,children:W.jsx(uc.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:eo(e.onPointerEnter,ih(o.onOpen)),onPointerLeave:eo(e.onPointerLeave,ih(o.onClose)),onFocus:eo(e.onFocus,o.onOpen),onBlur:eo(e.onBlur,o.onClose),onTouchStart:eo(e.onTouchStart,(e=>e.preventDefault()))})})}));kw.displayName=Ew;var MR="HoverCardPortal",[sA,LR]=Sw(MR,{forceMount:void 0}),oh="HoverCardContent",Pw=C.forwardRef(((e,t)=>{const n=LR(oh,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=bg(oh,e.__scopeHoverCard);return W.jsx(ww,{present:r||a.open,children:W.jsx(FR,{"data-state":a.open?"open":"closed",...o,onPointerEnter:eo(e.onPointerEnter,ih(a.onOpen)),onPointerLeave:eo(e.onPointerLeave,ih(a.onClose)),ref:t})})}));Pw.displayName=oh;var FR=C.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...l}=e,u=bg(oh,n),s=Nh(n),c=C.useRef(null),d=cc(t,c),[f,p]=C.useState(!1);return C.useEffect((()=>{if(f){const e=document.body;return hv=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=hv,e.style.webkitUserSelect=hv}}}),[f]),C.useEffect((()=>{if(c.current){const e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null==(e=document.getSelection())?void 0:e.toString())&&(u.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}}),[u.isPointerDownOnContentRef,u.hasSelectionRef]),C.useEffect((()=>{c.current&&WR(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),W.jsx($w,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:eo(a,(e=>{e.preventDefault()})),onDismiss:u.onDismiss,children:W.jsx($R,{...s,...l,onPointerDown:eo(l.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0})),ref:d,style:{...l.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})})),jR="HoverCardArrow",zR=C.forwardRef(((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Nh(n);return W.jsx(_R,{...o,...r,ref:t})}));function ih(e){return t=>"touch"===t.pointerType?void 0:e()}function WR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}zR.displayName=jR;var BR=Cw,UR=kw,Nw=Pw;const lA=BR,cA=UR,VR=C.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>W.jsx(Nw,{ref:o,align:t,sideOffset:n,className:$e("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));VR.displayName=Nw.displayName;const HR=C.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=sc();return W.jsx("input",{type:t,className:$e(`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 ${!!o&&"border-red-dark focus-visible:border-input focus-visible:ring-red-dark"}`,e),ref:r,...n})}));HR.displayName="Input";const Rw="Radio",[KR,Aw]=xr(Rw),[GR,YR]=KR(Rw),XR=me(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:u,...s}=e,[c,d]=st(null),f=yt(t,(e=>d(e))),p=Qe(!1),h=!c||!!c.closest("form");return j(GR,{scope:n,checked:o,disabled:i},j(rt.button,ie({type:"button",role:"radio","aria-checked":o,"data-state":Tw(o),"data-disabled":i?"":void 0,disabled:i,value:l},s,{ref:f,onClick:Ve(e.onClick,(e=>{o||null==u||u(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&j(ZR,{control:c,bubbles:!p.current,name:r,value:l,checked:o,required:a,disabled:i,style:{transform:"translateX(-100%)"}}))})),QR="RadioIndicator",qR=me(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=YR(QR,n);return j(vo,{present:r||a.checked},j(rt.span,ie({"data-state":Tw(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))})),ZR=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=Qe(null),i=ph(n),l=hh(t);return ut((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),j("input",ie({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Tw(e){return e?"checked":"unchecked"}const JR=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ow="RadioGroup",[e7,uA]=xr(Ow,[ac,Aw]),Iw=ac(),Dw=Aw(),[t7,n7]=e7(Ow),r7=me(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:u,dir:s,loop:c=!0,onValueChange:d,...f}=e,p=Iw(n),h=kd(s),[m,v]=Ho({prop:a,defaultProp:o,onChange:d});return j(t7,{scope:n,name:r,required:i,disabled:l,value:m,onValueChange:v},j(fg,ie({asChild:!0},p,{orientation:u,dir:h,loop:c}),j(rt.div,ie({role:"radiogroup","aria-required":i,"aria-orientation":u,"data-disabled":l?"":void 0,dir:h},f,{ref:t}))))})),o7="RadioGroupItem",i7=me(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=n7(o7,n),i=a.disabled||r,l=Iw(n),u=Dw(n),s=Qe(null),c=yt(t,s),d=a.value===o.value,f=Qe(!1);return ut((()=>{const e=e=>{JR.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),j(pg,ie({asChild:!0},l,{focusable:!i,active:d}),j(XR,ie({disabled:i,required:a.required,checked:d},u,o,{name:a.name,ref:c,onCheck:()=>a.onValueChange(o.value),onKeyDown:Ve((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Ve(o.onFocus,(()=>{var e;f.current&&(null===(e=s.current)||void 0===e||e.click())}))})))})),a7=me(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Dw(n);return j(qR,ie({},o,r,{ref:t}))})),Mw=r7,Lw=i7,s7=a7,l7=C.forwardRef((({className:e,...t},n)=>W.jsx(Mw,{className:$e("grid gap-2",e),...t,ref:n})));l7.displayName=Mw.displayName;const c7=C.forwardRef((({className:e,...t},n)=>W.jsx(Lw,{ref:n,className:$e("aspect-square h-4 w-4 rounded-full border-[1.67px] border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:W.jsx(s7,{className:"flex items-center justify-center",children:W.jsx(my,{className:"h-2.5 w-2.5 fill-current text-current"})})})));function Z0(e,[t,n]){return Math.min(n,Math.max(t,e))}c7.displayName=Lw.displayName;const u7=me(((e,t)=>j(rt.span,ie({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),d7=[" ","Enter","ArrowUp","ArrowDown"],f7=[" ","Enter"],Rh="Select",[Ah,Th,p7]=rg(Rh),[dc,dA]=xr(Rh,[p7,Eh]),$g=Eh(),[h7,Ns]=dc(Rh),[m7,v7]=dc(Rh),g7=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:u,dir:s,name:c,autoComplete:d,disabled:f,required:p}=e,h=$g(t),[m,v]=st(null),[g,y]=st(null),[b,w]=st(!1),x=kd(s),[C=!1,_]=Ho({prop:r,defaultProp:o,onChange:a}),[k,E]=Ho({prop:i,defaultProp:l,onChange:u}),S=Qe(null),N=!m||!!m.closest("form"),[P,R]=st(new Set),D=Array.from(P).map((e=>e.props.value)).join(";");return j(ug,h,j(h7,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:to(),value:k,onValueChange:E,open:C,onOpenChange:_,dir:x,triggerPointerDownPosRef:S,disabled:f},j(Ah.Provider,{scope:t},j(m7,{scope:e.__scopeSelect,onNativeOptionAdd:bt((e=>{R((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:bt((e=>{R((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),N?j(Bw,{key:D,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:k,onChange:e=>E(e.target.value),disabled:f},void 0===k?j("option",{value:""}):null,Array.from(P)):null))},y7="SelectTrigger",x7=me(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=$g(n),i=Ns(y7,n),l=i.disabled||r,u=yt(t,i.onTriggerChange),s=Th(n),[c,d,f]=Uw((e=>{const t=s().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=Vw(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=()=>{l||(i.onOpenChange(!0),f())};return j(Ex,ie({asChild:!0},a),j(rt.button,ie({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Ww(i.value)?"":void 0},o,{ref:u,onClick:Ve(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:Ve(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:Ve(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&d7.includes(e.key)&&(p(),e.preventDefault())}))})))})),w7="SelectValue",b7=me(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,u=Ns(w7,n),{onValueNodeHasChildrenChange:s}=u,c=void 0!==a,d=yt(t,u.onValueNodeChange);return Hn((()=>{s(c)}),[s,c]),j(rt.span,ie({},l,{ref:d,style:{pointerEvents:"none"}}),Ww(u.value)?j(rc,null,i):a)})),$7=me(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return j(rt.span,ie({"aria-hidden":!0},o,{ref:t}),r||"▼")})),_7=e=>j(zv,ie({asChild:!0},e)),nc="SelectContent",S7=me(((e,t)=>{const n=Ns(nc,e.__scopeSelect),[r,o]=st();if(Hn((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?Yo.createPortal(j(Fw,{scope:e.__scopeSelect},j(Ah.Slot,{scope:e.__scopeSelect},j("div",null,e.children))),t):null}return j(C7,ie({},e,{ref:t}))})),yi=10,[Fw,Rs]=dc(nc),C7=me(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:u,align:s,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v,...g}=e,y=Ns(nc,n),[b,w]=st(null),[x,C]=st(null),_=yt(t,(e=>w(e))),[k,E]=st(null),[S,N]=st(null),P=Th(n),[R,D]=st(!1),A=Qe(!1);ut((()=>{if(b)return dh(b)}),[b]),Wv();const O=bt((e=>{const[t,...n]=P().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),null==n||n.focus(),document.activeElement!==o))return}),[P,x]),T=bt((()=>O([k,b])),[O,k,b]);ut((()=>{R&&T()}),[R,T]);const{onOpenChange:L,triggerPointerDownPosRef:I}=y;ut((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=I.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=I.current)||void 0===a?void 0:a.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),I.current=null};return null!==I.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,L,I]),ut((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,W]=Uw((e=>{const t=P().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=Vw(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),z=bt(((e,t,n)=>{const r=!A.current&&!n;(void 0!==y.value&&y.value===t||r)&&(E(e),r&&(A.current=!0))}),[y.value]),F=bt((()=>null==b?void 0:b.focus()),[b]),$=bt(((e,t,n)=>{const r=!A.current&&!n;(void 0!==y.value&&y.value===t||r)&&N(e)}),[y.value]),V="popper"===r?J0:E7,B=V===J0?{side:l,sideOffset:u,align:s,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v}:{};return j(Fw,{scope:n,content:b,viewport:x,onViewportChange:C,itemRefCallback:z,selectedItem:k,onItemLeave:F,itemTextRefCallback:$,focusSelectedItem:T,selectedItemText:S,position:r,isPositioned:R,searchRef:M},j(uh,{as:ws,allowPinchZoom:!0},j(jv,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Ve(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},j(Fv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},j(V,ie({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,B,{onPlaced:()=>D(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Ve(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&W(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))}))))))})),E7=me(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Ns(nc,n),i=Rs(nc,n),[l,u]=st(null),[s,c]=st(null),d=yt(t,(e=>c(e))),f=Th(n),p=Qe(!1),h=Qe(!0),{viewport:m,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=i,b=bt((()=>{if(a.trigger&&a.valueNode&&l&&s&&m&&v&&g){const e=a.trigger.getBoundingClientRect(),t=s.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,u=e.width+i,s=Math.max(u,t.width),c=window.innerWidth-yi,d=Z0(a,[yi,c-s]);l.style.minWidth=u+"px",l.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,u=e.width+i,s=Math.max(u,t.width),c=window.innerWidth-yi,d=Z0(a,[yi,c-s]);l.style.minWidth=u+"px",l.style.right=d+"px"}const i=f(),u=window.innerHeight-2*yi,c=m.scrollHeight,d=window.getComputedStyle(s),h=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+y+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*v.offsetHeight,w),C=window.getComputedStyle(m),_=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),E=e.top+e.height/2-yi,S=u-E,N=v.offsetHeight/2,P=h+y+(v.offsetTop+N),R=w-P;if(P<=E){const e=v===i[i.length-1].ref.current;l.style.bottom="0px";const t=s.clientHeight-m.offsetTop-m.offsetHeight,n=P+Math.max(S,N+(e?k:0)+t+b);l.style.height=n+"px"}else{const e=v===i[0].ref.current;l.style.top="0px";const t=Math.max(E,h+m.offsetTop+(e?_:0)+N)+R;l.style.height=t+"px",m.scrollTop=P-E+m.offsetTop}l.style.margin=`${yi}px 0`,l.style.minHeight=x+"px",l.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,a.trigger,a.valueNode,l,s,m,v,g,a.dir,r]);Hn((()=>b()),[b]);const[w,x]=st();Hn((()=>{s&&x(window.getComputedStyle(s).zIndex)}),[s]);const C=bt((e=>{e&&!0===h.current&&(b(),null==y||y(),h.current=!1)}),[b,y]);return j(k7,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:C},j("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},j(rt.div,ie({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),J0=me(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=yi,...a}=e,i=$g(n);return j(kx,ie({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[k7,_g]=dc(nc,{}),ey="SelectViewport",P7=me(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Rs(ey,n),a=_g(ey,n),i=yt(t,o.onViewportChange),l=Qe(0);return j(rc,null,j("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),j(Ah.Slot,{scope:n},j(rt.div,ie({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Ve(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(null!=r&&r.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*yi,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),l=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))}))))})),N7="SelectGroup",[R7,A7]=dc(N7),T7=me(((e,t)=>{const{__scopeSelect:n,...r}=e,o=to();return j(R7,{scope:n,id:o},j(rt.div,ie({role:"group","aria-labelledby":o},r,{ref:t})))})),O7="SelectLabel",I7=me(((e,t)=>{const{__scopeSelect:n,...r}=e,o=A7(O7,n);return j(rt.div,ie({id:o.id},r,{ref:t}))})),Ov="SelectItem",[D7,jw]=dc(Ov),M7=me(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=Ns(Ov,n),u=Rs(Ov,n),s=l.value===r,[c,d]=st(a??""),[f,p]=st(!1),h=yt(t,(e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,o)})),m=to(),v=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return j(D7,{scope:n,value:r,disabled:o,textId:m,isSelected:s,onItemTextChange:bt((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},j(Ah.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},j(rt.div,ie({role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":s&&f,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:h,onFocus:Ve(i.onFocus,(()=>p(!0))),onBlur:Ve(i.onBlur,(()=>p(!1))),onPointerUp:Ve(i.onPointerUp,v),onPointerMove:Ve(i.onPointerMove,(e=>{var t;o?null===(t=u.onItemLeave)||void 0===t||t.call(u):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Ve(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))})),onKeyDown:Ve(i.onKeyDown,(e=>{var t;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(f7.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),Kp="SelectItemText",L7=me(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Ns(Kp,n),l=Rs(Kp,n),u=jw(Kp,n),s=v7(Kp,n),[c,d]=st(null),f=yt(t,(e=>d(e)),u.onItemTextChange,(e=>{var t;return null===(t=l.itemTextRefCallback)||void 0===t?void 0:t.call(l,e,u.value,u.disabled)})),p=null==c?void 0:c.textContent,h=xs((()=>j("option",{key:u.value,value:u.value,disabled:u.disabled},p)),[u.disabled,u.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=s;return Hn((()=>(m(h),()=>v(h))),[m,v,h]),j(rc,null,j(rt.span,ie({id:u.textId},a,{ref:f})),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Yo.createPortal(a.children,i.valueNode):null)})),F7="SelectItemIndicator",j7=me(((e,t)=>{const{__scopeSelect:n,...r}=e;return jw(F7,n).isSelected?j(rt.span,ie({"aria-hidden":!0},r,{ref:t})):null})),ty="SelectScrollUpButton",z7=me(((e,t)=>{const n=Rs(ty,e.__scopeSelect),r=_g(ty,e.__scopeSelect),[o,a]=st(!1),i=yt(t,r.onScrollButtonChange);return Hn((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?j(zw,ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),ny="SelectScrollDownButton",W7=me(((e,t)=>{const n=Rs(ny,e.__scopeSelect),r=_g(ny,e.__scopeSelect),[o,a]=st(!1),i=yt(t,r.onScrollButtonChange);return Hn((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?j(zw,ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),zw=me(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Rs("SelectScrollButton",n),i=Qe(null),l=Th(n),u=bt((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return ut((()=>()=>u()),[u]),Hn((()=>{var e;const t=l().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[l]),j(rt.div,ie({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ve(o.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:Ve(o.onPointerMove,(()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:Ve(o.onPointerLeave,(()=>{u()}))}))})),B7=me(((e,t)=>{const{__scopeSelect:n,...r}=e;return j(rt.div,ie({"aria-hidden":!0},r,{ref:t}))}));function Ww(e){return""===e||void 0===e}const Bw=me(((e,t)=>{const{value:n,...r}=e,o=Qe(null),a=yt(t,o),i=ph(n);return ut((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),j(u7,{asChild:!0},j("select",ie({},r,{ref:a,defaultValue:n})))}));function Uw(e){const t=yr(e),n=Qe(""),r=Qe(0),o=bt((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),a=bt((()=>{n.current="",window.clearTimeout(r.current)}),[]);return ut((()=>()=>window.clearTimeout(r.current)),[]),[n,o,a]}function Vw(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let a=U7(e,Math.max(o,0));1===r.length&&(a=a.filter((e=>e!==n)));const i=a.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function U7(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}Bw.displayName="BubbleSelect";const V7=g7,Hw=x7,H7=b7,K7=$7,G7=_7,Kw=S7,Y7=P7,X7=T7,Gw=I7,Yw=M7,Q7=L7,q7=j7,Xw=z7,Qw=W7,qw=B7,fA=V7,pA=X7,hA=H7,Z7=C.forwardRef((({className:e,children:t,...n},r)=>W.jsxs(Hw,{ref:r,className:$e("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,W.jsx(K7,{asChild:!0,children:W.jsx(py,{className:"h-4 w-4 opacity-50"})})]})));Z7.displayName=Hw.displayName;const Zw=C.forwardRef((({className:e,...t},n)=>W.jsx(Xw,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:W.jsx(hS,{className:"h-4 w-4"})})));Zw.displayName=Xw.displayName;const Jw=C.forwardRef((({className:e,...t},n)=>W.jsx(Qw,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:W.jsx(py,{className:"h-4 w-4"})})));Jw.displayName=Qw.displayName;const J7=C.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>W.jsx(G7,{children:W.jsxs(Kw,{ref:o,className:$e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[W.jsx(Zw,{}),W.jsx(Y7,{className:$e("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),W.jsx(Jw,{})]})})));J7.displayName=Kw.displayName;const e6=C.forwardRef((({className:e,...t},n)=>W.jsx(Gw,{ref:n,className:$e("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})));e6.displayName=Gw.displayName;const t6=C.forwardRef((({className:e,children:t,...n},r)=>W.jsxs(Yw,{ref:r,className:$e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[W.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:W.jsx(q7,{children:W.jsx(Lv,{className:"h-4 w-4"})})}),W.jsx(Q7,{children:t})]})));t6.displayName=Yw.displayName;const n6=C.forwardRef((({className:e,...t},n)=>W.jsx(qw,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));n6.displayName=qw.displayName;const mA=G1,vA=Y1,gA=$h,r6=X1,eb=C.forwardRef((({className:e,...t},n)=>W.jsx(yh,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));eb.displayName=yh.displayName;const o6=ga("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),i6=C.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},a)=>W.jsxs(r6,{children:[W.jsx(eb,{className:$e("bg-slate-900/70",n)}),W.jsxs(xh,{ref:a,className:$e(o6({side:e}),t),...o,children:[r,W.jsxs($h,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[W.jsx(vy,{className:"h-4 w-4"}),W.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));i6.displayName=xh.displayName;const a6=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col space-y-2 text-center sm:text-left",e),...t});a6.displayName="SheetHeader";const s6=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});s6.displayName="SheetFooter";const l6=C.forwardRef((({className:e,...t},n)=>W.jsx(wh,{ref:n,className:$e("text-lg font-semibold text-foreground",e),...t})));l6.displayName=wh.displayName;const c6=C.forwardRef((({className:e,...t},n)=>W.jsx(bh,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));function yA({className:e,...t}){return W.jsx("div",{className:$e("animate-pulse rounded-md bg-muted",e),...t})}c6.displayName=bh.displayName;const tb="Switch",[u6,xA]=xr(tb),[d6,f6]=u6(tb),p6=me(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:u="on",onCheckedChange:s,...c}=e,[d,f]=st(null),p=yt(t,(e=>f(e))),h=Qe(!1),m=!d||!!d.closest("form"),[v=!1,g]=Ho({prop:o,defaultProp:a,onChange:s});return j(d6,{scope:n,checked:v,disabled:l},j(rt.button,ie({type:"button",role:"switch","aria-checked":v,"aria-required":i,"data-state":nb(v),"data-disabled":l?"":void 0,disabled:l,value:u},c,{ref:p,onClick:Ve(e.onClick,(e=>{g((e=>!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&j(v6,{control:d,bubbles:!h.current,name:r,value:u,checked:v,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))})),h6="SwitchThumb",m6=me(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=f6(h6,n);return j(rt.span,ie({"data-state":nb(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),v6=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=Qe(null),i=ph(n),l=hh(t);return ut((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),j("input",ie({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function nb(e){return e?"checked":"unchecked"}const rb=p6,g6=m6,y6=C.forwardRef((({className:e,...t},n)=>W.jsx(rb,{className:$e("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-700 data-[state=unchecked]:bg-input md:h-[18px] md:w-8",e),...t,ref:n,children:W.jsx(g6,{className:$e("pointer-events-none block size-[20px] rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0 md:size-[14px] md:data-[state=checked]:translate-x-[14px]")})})));y6.displayName=rb.displayName;const ob="Tabs",[x6,wA]=xr(ob,[ac]),ib=ac(),[w6,Sg]=x6(ob),b6=me(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:u="automatic",...s}=e,c=kd(l),[d,f]=Ho({prop:r,onChange:o,defaultProp:a});return j(w6,{scope:n,baseId:to(),value:d,onValueChange:f,orientation:i,dir:c,activationMode:u},j(rt.div,ie({dir:c,"data-orientation":i},s,{ref:t})))})),$6="TabsList",_6=me(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Sg($6,n),i=ib(n);return j(fg,ie({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),j(rt.div,ie({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))})),S6="TabsTrigger",C6=me(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=Sg(S6,n),l=ib(n),u=ab(i.baseId,r),s=sb(i.baseId,r),c=r===i.value;return j(pg,ie({asChild:!0},l,{focusable:!o,active:c}),j(rt.button,ie({type:"button",role:"tab","aria-selected":c,"aria-controls":s,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},a,{ref:t,onMouseDown:Ve(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:Ve(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:Ve(e.onFocus,(()=>{const e="manual"!==i.activationMode;!c&&!o&&e&&i.onValueChange(r)}))})))})),E6="TabsContent",k6=me(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,l=Sg(E6,n),u=ab(l.baseId,r),s=sb(l.baseId,r),c=r===l.value,d=Qe(c);return ut((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),j(vo,{present:o||c},(({present:n})=>j(rt.div,ie({"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:s,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&a)))}));function ab(e,t){return`${e}-trigger-${t}`}function sb(e,t){return`${e}-content-${t}`}const P6=b6,lb=_6,cb=C6,ub=k6,bA=P6,N6=C.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>W.jsx(lb,{ref:r,"data-testid":"tabsList",className:t?$e("inline-flex items-center justify-center border-b border-slate-200 bg-white p-0 text-muted-foreground",e):e,...n})));N6.displayName=lb.displayName;const R6=C.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>W.jsx(cb,{ref:r,className:t?$e("m-b-[-1px] inline-flex items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring border-b-2 border-transparent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-blue_100",e):e,...n})));R6.displayName=cb.displayName;const A6=C.forwardRef((({className:e,...t},n)=>W.jsx(ub,{ref:n,className:$e("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));A6.displayName=ub.displayName;const T6=C.forwardRef((({className:e,...t},n)=>{const{error:r}=sc();return W.jsx("textarea",{className:$e(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${!!r&&"border-rose-600 focus-visible:ring-rose-600"}`,e),ref:n,...t})}));T6.displayName="Textarea";const $A=_d.Provider,O6=_d.Root,I6=_d.Trigger,D6=ga("z-50 overflow-hidden shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md border text-sm px-3 py-1.5",small:"rounded-md border px-[11px] py-[3px] text-[12px] leading-[16px]"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-slate-900_90 text-slate-50"},defaultVariants:{size:"small",theme:"dark"}}}),db=C.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,...o},a)=>W.jsx(_d.Content,{ref:a,sideOffset:t,className:$e(D6({size:n,theme:r,className:e})),...o})));db.displayName=_d.Content.displayName;const _A=({children:e,tooltipText:t,triggerClassname:n,...r})=>W.jsxs(O6,{children:[W.jsx(I6,{className:n,children:e}),t&&W.jsx(db,{...r,children:t})]}),SA=({accept:e="*",multiple:t,handleUpload:n,disabled:r})=>W.jsx("div",{className:"hidden",children:W.jsx("input",{type:"file","data-button":"input file",accept:e,multiple:t,onChange:({target:e})=>{if(!e.files)return;const t=Array.from(e.files).map((e=>({file:e,objectUrl:URL.createObjectURL(e)})));n(t),e.value=""},onClick:e=>{e.stopPropagation(),r&&e.preventDefault()}})}),CA=({as:e="div",children:t,className:n,...r})=>j(e,{className:$e(n),...r},t);export{W6 as AlertDialog,m2 as AlertDialogAction,v2 as AlertDialogCancel,u2 as AlertDialogContent,h2 as AlertDialogDescription,f2 as AlertDialogFooter,d2 as AlertDialogHeader,Zy as AlertDialogOverlay,c2 as AlertDialogPortal,p2 as AlertDialogTitle,B6 as AlertDialogTrigger,C2 as Avatar,k2 as AvatarFallback,E2 as AvatarImage,sh as Button,F6 as ButtonLoader,P2 as Card,T2 as CardContent,A2 as CardDescription,O2 as CardFooter,N2 as CardHeader,R2 as CardTitle,hE as Carousel,mE as CarouselContent,vE as CarouselItem,yE as CarouselNext,gE as CarouselPrevious,kE as Checkbox,ex as Command,X6 as CommandDialog,nk as CommandEmpty,rk as CommandGroup,ek as CommandInput,ik as CommandItem,tk as CommandList,ok as CommandSeparator,ak as CommandShortcut,Y3 as Dialog,Y6 as DialogClose,q1 as DialogContent,J1 as DialogDescription,J3 as DialogFooter,Z3 as DialogHeader,Q1 as DialogOverlay,X3 as DialogPortal,Z1 as DialogTitle,G6 as DialogTrigger,Z6 as DropdownMenu,BN as DropdownMenuCheckboxItem,zN as DropdownMenuContent,eA as DropdownMenuGroup,WN as DropdownMenuItem,VN as DropdownMenuLabel,tA as DropdownMenuPortal,rA as DropdownMenuRadioGroup,UN as DropdownMenuRadioItem,HN as DropdownMenuSeparator,KN as DropdownMenuShortcut,nA as DropdownMenuSub,jN as DropdownMenuSubContent,FN as DropdownMenuSubTrigger,J6 as DropdownMenuTrigger,oA as Form,ZN as FormControl,JN as FormDescription,iA as FormField,QN as FormItem,qN as FormLabel,eR as FormMessage,lA as HoverCard,VR as HoverCardContent,cA as HoverCardTrigger,HR as Input,SA as InputFile,rw as Label,l7 as RadioGroup,c7 as RadioGroupItem,fA as Select,J7 as SelectContent,pA as SelectGroup,t6 as SelectItem,e6 as SelectLabel,Jw as SelectScrollDownButton,Zw as SelectScrollUpButton,n6 as SelectSeparator,Z7 as SelectTrigger,hA as SelectValue,mA as Sheet,gA as SheetClose,i6 as SheetContent,c6 as SheetDescription,s6 as SheetFooter,a6 as SheetHeader,eb as SheetOverlay,r6 as SheetPortal,l6 as SheetTitle,vA as SheetTrigger,yA as Skeleton,y6 as Switch,bA as Tabs,A6 as TabsContent,N6 as TabsList,R6 as TabsTrigger,T6 as Textarea,O6 as Tooltip,db as TooltipContent,$A as TooltipProvider,I6 as TooltipTrigger,_A as TooltipWrapper,Mv as buttonVariants,$e as cn,CA as styledElement,fh as useCarousel,sc as useFormField};
|
|
61
|
+
*/}function kS(){if(u0)return gr;u0=1;var e=Jr,t=ES();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!u.call(d,e)||!u.call(c,e)&&(s.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),k=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),D=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var O,T=Object.assign;function L(e){if(void 0===O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return"\n"+O+e}var I=!1;function M(e,t){if(!e||I)return"";I=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=i&&0<=l);break}}}finally{I=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function W(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1);case 11:return e=M(e.type.render,!1);case 1:return e=M(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case b:return"Portal";case C:return"Profiler";case x:return"StrictMode";case S:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return z(e(t))}catch{}}return null}function F(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=(e=t.render).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 z(t);case 8:return t===x?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function B(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function K(e,t){var n=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function G(e,t){q(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?X(e,t.type,n):t.hasOwnProperty("defaultValue")&&X(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function X(e,t,n){("number"!==t||H(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Z=Array.isArray;function J(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return T({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Z(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:$(r)}}function ne(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(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 ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,le,ue=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function se(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={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},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var he=T({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 ge=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,we=null,xe=null;function Ce(e){if(e=bo(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=xo(t),be(e.stateNode,e.type,t))}}function _e(e){we?xe?xe.push(e):xe=[e]:we=e}function ke(){if(we){var e=we,t=xe;if(xe=we=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ee(e,t){return e(t)}function Se(){}var Ne=!1;function Pe(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Ee(e,t,n)}finally{Ne=!1,(null!==we||null!==xe)&&(Se(),ke())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var o=xo(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var je=!1;if(l)try{var De={};Object.defineProperty(De,"passive",{get:function(){je=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch{je=!1}function Ae(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Oe=!1,Te=null,Le=!1,Ie=null,Me={onError:function(e){Oe=!0,Te=e}};function We(e,t,n,r,o,a,i,l,u){Oe=!1,Te=null,Ae.apply(Me,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{4098&(t=e).flags&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $e(e){if(ze(e)!==e)throw Error(n(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){r=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return $e(a),e;if(i===o)return $e(a),t;i=i.sibling}throw Error(n(188))}if(r.return!==o.return)r=a,o=i;else{for(var l=!1,u=a.child;u;){if(u===r){l=!0,r=a,o=i;break}if(u===o){l=!0,o=a,r=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===r){l=!0,r=i,o=a;break}if(u===o){l=!0,o=i,r=a;break}u=u.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Be(e):null}function Be(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Be(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,He=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,Qe=t.unstable_requestPaint,qe=t.unstable_now,Ge=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Je=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/at|0)|0},ot=Math.log,at=Math.LN2;var it=64,lt=4194304;function ut(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function st(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=ut(l):0!==(a&=i)&&(r=ut(a))}else 0!==(i=n&~o)?r=ut(i):0!==a&&(r=ut(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-rt(t)),r|=e[n],t&=~o;return r}function ct(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;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=it;return!(4194240&(it<<=1))&&(it=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var yt,bt,wt,xt,Ct,_t=!1,kt=[],Et=null,St=null,Nt=null,Pt=new Map,Rt=new Map,jt=[],Dt="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 At(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":St=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Ot(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=bo(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Tt(e){var t=yo(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bo(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function It(e,t,n){Lt(e)&&n.delete(t)}function Mt(){_t=!1,null!==Et&&Lt(Et)&&(Et=null),null!==St&&Lt(St)&&(St=null),null!==Nt&&Lt(Nt)&&(Nt=null),Pt.forEach(It),Rt.forEach(It)}function Wt(e,n){e.blockedOn===n&&(e.blockedOn=null,_t||(_t=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mt)))}function zt(e){function t(t){return Wt(t,e)}if(0<kt.length){Wt(kt[0],e);for(var n=1;n<kt.length;n++){var r=kt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Wt(Et,e),null!==St&&Wt(St,e),null!==Nt&&Wt(Nt,e),Pt.forEach(t),Rt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Tt(n),null===n.blockedOn&&jt.shift()}var Ft=g.ReactCurrentBatchConfig,$t=!0;function Vt(e,t,n,r){var o=vt,a=Ft.transition;Ft.transition=null;try{vt=1,Ut(e,t,n,r)}finally{vt=o,Ft.transition=a}}function Bt(e,t,n,r){var o=vt,a=Ft.transition;Ft.transition=null;try{vt=4,Ut(e,t,n,r)}finally{vt=o,Ft.transition=a}}function Ut(e,t,n,r){if($t){var o=Kt(e,t,n,r);if(null===o)Vr(e,t,r,Ht,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Et=Ot(Et,e,t,n,r,o),!0;case"dragenter":return St=Ot(St,e,t,n,r,o),!0;case"mouseover":return Nt=Ot(Nt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,Ot(Pt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Ot(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var a=bo(o);if(null!==a&&yt(a),null===(a=Kt(e,t,n,r))&&Vr(e,t,r,Ht,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Ht=null;function Kt(e,t,n,r){if(Ht=null,null!==(e=yo(e=ye(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ht=e,null}function Qt(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(Ge()){case Ye:return 1;case Xe:return 4;case Ze:case Je:return 16;case et:return 536870912;default:return 16}default:return 16}}var qt=null,Gt=null,Yt=null;function Xt(){if(Yt)return Yt;var e,t,n=Gt,r=n.length,o="value"in qt?qt.value:qt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function Zt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Jt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Jt:en,this.isPropagationStopped=en,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Jt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Jt)},persist:function(){},isPersistent:Jt}),t}var nn,rn,on,an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=tn(an),un=T({},an,{view:0,detail:0}),sn=tn(un),cn=T({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(nn=e.screenX-on.screenX,rn=e.screenY-on.screenY):rn=nn=0,on=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),dn=tn(cn),fn=tn(T({},cn,{dataTransfer:0})),pn=tn(T({},un,{relatedTarget:0})),hn=tn(T({},an,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=T({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=tn(mn),gn=tn(T({},an,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={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"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function Cn(){return xn}var _n=T({},un,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?Zt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=tn(_n),En=tn(T({},cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=tn(T({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=tn(T({},an,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=T({},cn,{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}),Rn=tn(Pn),jn=[9,13,27,32],Dn=l&&"CompositionEvent"in window,An=null;l&&"documentMode"in document&&(An=document.documentMode);var On=l&&"TextEvent"in window&&!An,Tn=l&&(!Dn||An&&8<An&&11>=An),Ln=" ",In=!1;function Mn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Fn={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Ur(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bn=null,Un=null;function Hn(e){Ir(e,0)}function Kn(e){if(U(wo(e)))return e}function Qn(e,t){if("change"===e)return t}var qn=!1;if(l){var Gn;if(l){var Yn="oninput"in document;if(!Yn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Yn="function"==typeof Xn.oninput}Gn=Yn}else Gn=!1;qn=Gn&&(!document.documentMode||9<document.documentMode)}function Zn(){Bn&&(Bn.detachEvent("onpropertychange",Jn),Un=Bn=null)}function Jn(e){if("value"===e.propertyName&&Kn(Un)){var t=[];Vn(t,Un,e,ye(e)),Pe(Hn,t)}}function er(e,t,n){"focusin"===e?(Zn(),Un=n,(Bn=t).attachEvent("onpropertychange",Jn)):"focusout"===e&&Zn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Un)}function nr(e,t){if("click"===e)return Kn(t)}function rr(e,t){if("input"===e||"change"===e)return Kn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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 o=n[r];if(!u.call(t,o)||!or(e[o],t[o]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function sr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=sr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=lr(n,a);var i=lr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=l&&"documentMode"in document&&11>=document.documentMode,pr=null,hr=null,mr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==pr||pr!==H(r)||("selectionStart"in(r=pr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&ar(mr,r)||(mr=r,0<(r=Ur(hr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},xr={},Cr={};function _r(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}l&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var kr=_r("animationend"),Er=_r("animationiteration"),Sr=_r("animationstart"),Nr=_r("transitionend"),Pr=new Map,Rr="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 jr(e,t){Pr.set(e,t),a(t,[e])}for(var Dr=0;Dr<Rr.length;Dr++){var Ar=Rr[Dr];jr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}jr(kr,"onAnimationEnd"),jr(Er,"onAnimationIteration"),jr(Sr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Nr,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="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(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Lr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,a,i,l,u,s){if(We.apply(this,arguments),Oe){if(!Oe)throw Error(n(198));var c=Te;Oe=!1,Te=null,Le||(Le=!0,Ie=c)}}(o,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&o.isPropagationStopped())break e;Lr(o,l,s),a=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==a&&o.isPropagationStopped())break e;Lr(o,l,s),a=u}}}if(Le)throw e=Ie,Le=!1,Ie=null,e}function Mr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Wr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[zr]){e[zr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Tr.has(t)||Wr(t,!1,e),Wr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Wr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Qt(t)){case 1:var o=Vt;break;case 4:o=Bt;break;default:o=Ut}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=yo(l)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=a,o=ye(n),i=[];e:{var l=Pr.get(e);if(void 0!==l){var u=ln,s=e;switch(e){case"keypress":if(0===Zt(n))break e;case"keydown":case"keyup":u=kn;break;case"focusin":s="focus",u=pn;break;case"focusout":s="blur",u=pn;break;case"beforeblur":case"afterblur":u=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Sn;break;case kr:case Er:case Sr:u=hn;break;case Nr:u=Nn;break;case"scroll":u=sn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=En}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Re(h,f))&&c.push(Br(h,m,p)))),d)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),i.push({event:l,listeners:c}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===ge||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[ho])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=ze(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=dn,m="onMouseLeave",f="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=En,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==u?l:wo(u),p=null==s?l:wo(s),(l=new c(m,h+"leave",u,n,o)).target=d,l.relatedTarget=p,m=null,yo(o)===r&&((c=new c(f,h+"enter",s,n,o)).target=p,c.relatedTarget=d,m=c),d=m,u&&s)e:{for(f=s,h=0,p=c=u;p;p=Hr(p))h++;for(p=0,m=f;m;m=Hr(m))p++;for(;0<h-p;)c=Hr(c),h--;for(;0<p-h;)f=Hr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Hr(c),f=Hr(f)}c=null}else c=null;null!==u&&Kr(i,l,u,c,!1),null!==s&&null!==d&&Kr(i,d,s,c,!0)}if("select"===(u=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Qn;else if($n(l))if(qn)v=rr;else{v=tr;var g=er}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=nr);switch(v&&(v=v(e,r))?Vn(i,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&X(l,"number",l.value)),g=r?wo(r):window,e){case"focusin":($n(g)||"true"===g.contentEditable)&&(pr=g,hr=r,mr=null);break;case"focusout":mr=hr=pr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(i,n,o);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":yr(i,n,o)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Tn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=Xt()):(Gt="value"in(qt=o)?qt.value:qt.textContent,zn=!0)),0<(g=Ur(r,b)).length&&(b=new gn(b,e,null,n,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Wn(n))&&(b.data=y))),(y=On?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(In=!0,Ln);case"textInput":return(e=t.data)===Ln&&In?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Dn&&Mn(e,t)?(e=Xt(),Yt=Gt=qt=null,zn=!1,e):null;switch(e){case"paste":default: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 Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new gn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Ir(i,t)}))}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Br(e,a,o)),null!=(a=Re(e,t))&&r.push(Br(e,a,o))),e=e.return}return r}function Hr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Re(n,a))&&i.unshift(Br(n,u,l)):o||null!=(u=Re(n,a))&&i.push(Br(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(qr,"")}function Yr(e,t,r){if(t=Gr(t),Gr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Zr=null,eo=null;function to(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,ro="function"==typeof clearTimeout?clearTimeout:void 0,oo="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:typeof oo<"u"?function(e){return oo.resolve(null).then(e).catch(io)}:no;function io(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function so(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var co=Math.random().toString(36).slice(2),fo="__reactFiber$"+co,po="__reactProps$"+co,ho="__reactContainer$"+co,mo="__reactEvents$"+co,vo="__reactListeners$"+co,go="__reactHandles$"+co;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=so(e);null!==e;){if(n=e[fo])return n;e=so(e)}return t}n=(e=n).parentNode}return null}function bo(e){return!(e=e[fo]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function xo(e){return e[po]||null}var Co=[],_o=-1;function ko(e){return{current:e}}function Eo(e){0>_o||(e.current=Co[_o],Co[_o]=null,_o--)}function So(e,t){_o++,Co[_o]=e.current,e.current=t}var No={},Po=ko(No),Ro=ko(!1),jo=No;function Do(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ao(e){return null!=(e=e.childContextTypes)}function Oo(){Eo(Ro),Eo(Po)}function To(e,t,r){if(Po.current!==No)throw Error(n(168));So(Po,t),So(Ro,r)}function Lo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())if(!(a in t))throw Error(n(108,F(e)||"Unknown",a));return T({},r,o)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,jo=Po.current,So(Po,e),So(Ro,Ro.current),!0}function Mo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Lo(e,t,jo),o.__reactInternalMemoizedMergedChildContext=e,Eo(Ro),Eo(Po),So(Po,e)):Eo(Ro),So(Ro,r)}var Wo=null,zo=!1,Fo=!1;function $o(e){null===Wo?Wo=[e]:Wo.push(e)}function Vo(){if(!Fo&&null!==Wo){Fo=!0;var e=0,t=vt;try{var n=Wo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Wo=null,zo=!1}catch(t){throw null!==Wo&&(Wo=Wo.slice(e+1)),Ue(Ye,Vo),t}finally{vt=t,Fo=!1}}return null}var Bo=[],Uo=0,Ho=null,Ko=0,Qo=[],qo=0,Go=null,Yo=1,Xo="";function Zo(e,t){Bo[Uo++]=Ko,Bo[Uo++]=Ho,Ho=e,Ko=t}function Jo(e,t,n){Qo[qo++]=Yo,Qo[qo++]=Xo,Qo[qo++]=Go,Go=e;var r=Yo;e=Xo;var o=32-rt(r)-1;r&=~(1<<o),n+=1;var a=32-rt(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Yo=1<<32-rt(t)+o|n<<o|r,Xo=a+e}else Yo=1<<a|n<<o|r,Xo=e}function ea(e){null!==e.return&&(Zo(e,1),Jo(e,1,0))}function ta(e){for(;e===Ho;)Ho=Bo[--Uo],Bo[Uo]=null,Ko=Bo[--Uo],Bo[Uo]=null;for(;e===Go;)Go=Qo[--qo],Qo[qo]=null,Xo=Qo[--qo],Qo[qo]=null,Yo=Qo[--qo],Qo[qo]=null}var na=null,ra=null,oa=!1,aa=null;function ia(e,t){var n=Ds(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ds(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function sa(e){if(oa){var t=ra;if(t){var r=t;if(!la(e,t)){if(ua(e))throw Error(n(418));t=uo(r.nextSibling);var o=na;t&&la(e,t)?ia(o,r):(e.flags=-4097&e.flags|2,oa=!1,na=e)}}else{if(ua(e))throw Error(n(418));e.flags=-4097&e.flags|2,oa=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!oa)return ca(e),oa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!to(e.type,e.memoizedProps)),t&&(t=ra)){if(ua(e))throw fa(),Error(n(418));for(;t;)ia(e,t),t=uo(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ra=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ra=null}}else ra=na?uo(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=ra;e;)e=uo(e.nextSibling)}function pa(){ra=na=null,oa=!1}function ha(e){null===aa?aa=[e]:aa.push(e)}var ma=g.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var n in t=T({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ga=ko(null),ya=null,ba=null,wa=null;function xa(){wa=ba=ya=null}function Ca(e){var t=ga.current;Eo(ga),e._currentValue=t}function _a(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ka(e,t){ya=e,wa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(bl=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ya)throw Error(n(308));ba=e,ya.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Sa=null;function Na(e){null===Sa?Sa=[e]:Sa.push(e)}function Pa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Na(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ra(e,r)}function Ra(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Aa(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 Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ra(e,n)}return null===(o=r.interleaved)?(t.next=t,Na(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ra(e,n)}function La(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ma(e,t,n,r){var o=e.updateQueue;ja=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?a=s:i.next=s,i=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==a){var d=o.baseState;for(i=0,c=s=u=null,l=a;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=T({},d,f);break e;case 2:ja=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Iu|=i,e.lanes=i,e.memoizedState=d}}function Wa(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=r,"function"!=typeof a)throw Error(n(191,a));a.call(o)}}}var za=(new e.Component).refs;function Fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:T({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $a={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),a=Oa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ta(e,a,o))&&(ns(t,e,o,r),La(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),a=Oa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ta(e,a,o))&&(ns(t,e,o,r),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Oa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ta(e,o,r))&&(ns(t,e,r,n),La(t,e,r))}};function Va(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ar(n,r)||!ar(o,a))}function Ba(e,t,n){var r=!1,o=No,a=t.contextType;return"object"==typeof a&&null!==a?a=Ea(a):(o=Ao(t)?jo:Po.current,a=(r=null!=(r=t.contextTypes))?Do(e,o):No),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$a,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ua(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$a.enqueueReplaceState(t,t.state,null)}function Ha(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=za,Da(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ea(a):(a=Ao(t)?jo:Po.current,o.context=Do(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Fa(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&$a.enqueueReplaceState(o,o.state,null),Ma(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ka(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var a=o,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=a.refs;t===za&&(t=a.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qa(e){return(0,e._init)(e._payload)}function Ga(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Os(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ms(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function s(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&qa(o)===t.type)?((r=a(t,n.props)).ref=Ka(e,t,n),r.return=e,r):((r=Ts(n.type,n.key,n.props,null,e.mode,r)).ref=Ka(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ws(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ls(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ms(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Ts(t.type,t.key,t.props,null,e.mode,n)).ref=Ka(e,null,t),n.return=e,n;case b:return(t=Ws(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(Z(t)||A(t))return(t=Ls(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?s(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(Z(n)||A(n))return null!==o?null:d(e,t,n,r,null);Qa(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return h(e,t,n,(0,r._init)(r._payload),o)}if(Z(r)||A(r))return d(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}return function u(s,c,d,m){if("object"==typeof d&&null!==d&&d.type===w&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var v=d.key,g=c;null!==g;){if(g.key===v){if((v=d.type)===w){if(7===g.tag){r(s,g.sibling),(c=a(g,d.props.children)).return=s,s=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===R&&qa(v)===g.type){r(s,g.sibling),(c=a(g,d.props)).ref=Ka(s,g,d),c.return=s,s=c;break e}r(s,g);break}t(s,g),g=g.sibling}d.type===w?((c=Ls(d.props.children,s.mode,m,d.key)).return=s,s=c):((m=Ts(d.type,d.key,d.props,null,s.mode,m)).ref=Ka(s,c,d),m.return=s,s=m)}return l(s);case b:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(s,c.sibling),(c=a(c,d.children||[])).return=s,s=c;break e}r(s,c);break}t(s,c),c=c.sibling}(c=Ws(d,s.mode,m)).return=s,s=c}return l(s);case R:return u(s,c,(g=d._init)(d._payload),m)}if(Z(d))return function(n,a,l,u){for(var s=null,c=null,d=a,m=a=0,v=null;null!==d&&m<l.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(n,d,l[m],u);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(n,d),a=i(g,a,m),null===c?s=g:c.sibling=g,c=g,d=v}if(m===l.length)return r(n,d),oa&&Zo(n,m),s;if(null===d){for(;m<l.length;m++)null!==(d=f(n,l[m],u))&&(a=i(d,a,m),null===c?s=d:c.sibling=d,c=d);return oa&&Zo(n,m),s}for(d=o(n,d);m<l.length;m++)null!==(v=h(d,n,m,l[m],u))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(n,e)})),oa&&Zo(n,m),s}(s,c,d,m);if(A(d))return function(a,l,u,s){var c=A(u);if("function"!=typeof c)throw Error(n(150));if(null==(u=c.call(u)))throw Error(n(151));for(var d=c=null,m=l,v=l=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(a,m,y.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return r(a,m),oa&&Zo(a,v),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=f(a,y.value,s))&&(l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return oa&&Zo(a,v),c}for(m=o(a,m);!y.done;v++,y=u.next())null!==(y=h(m,a,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(a,e)})),oa&&Zo(a,v),c}(s,c,d,m);Qa(s,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(s,c.sibling),(c=a(c,d)).return=s,s=c):(r(s,c),(c=Ms(d,s.mode,m)).return=s,s=c),l(s)):r(s,c)}}var Ya=Ga(!0),Xa=Ga(!1),Za={},Ja=ko(Za),ei=ko(Za),ti=ko(Za);function ni(e){if(e===Za)throw Error(n(174));return e}function ri(e,t){switch(So(ti,t),So(ei,e),So(Ja,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Ja),So(Ja,t)}function oi(){Eo(Ja),Eo(ei),Eo(ti)}function ai(e){ni(ti.current);var t=ni(Ja.current),n=ae(t,e.type);t!==n&&(So(ei,e),So(Ja,n))}function ii(e){ei.current===e&&(Eo(Ja),Eo(ei))}var li=ko(0);function ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var si=[];function ci(){for(var e=0;e<si.length;e++)si[e]._workInProgressVersionPrimary=null;si.length=0}var di=g.ReactCurrentDispatcher,fi=g.ReactCurrentBatchConfig,pi=0,hi=null,mi=null,vi=null,gi=!1,yi=!1,bi=0,wi=0;function xi(){throw Error(n(321))}function Ci(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function _i(e,t,r,o,a,i){if(pi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=null===e||null===e.memoizedState?il:ll,e=r(o,a),yi){i=0;do{if(yi=!1,bi=0,25<=i)throw Error(n(301));i+=1,vi=mi=null,t.updateQueue=null,di.current=ul,e=r(o,a)}while(yi)}if(di.current=al,t=null!==mi&&null!==mi.next,pi=0,vi=mi=hi=null,gi=!1,t)throw Error(n(300));return e}function ki(){var e=0!==bi;return bi=0,e}function Ei(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?hi.memoizedState=vi=e:vi=vi.next=e,vi}function Si(){if(null===mi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=mi.next;var t=null===vi?hi.memoizedState:vi.next;if(null!==t)vi=t,mi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(mi=e).memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},null===vi?hi.memoizedState=vi=e:vi=vi.next=e}return vi}function Ni(e,t){return"function"==typeof t?t(e):t}function Pi(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=mi,a=o.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}o.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,o=o.baseState;var u=l=null,s=null,c=i;do{var d=c.lane;if((pi&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=f,l=o):s=s.next=f,hi.lanes|=d,Iu|=d}c=c.next}while(null!==c&&c!==i);null===s?l=o:s.next=u,or(o,t.memoizedState)||(bl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=s,r.lastRenderedState=o}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,hi.lanes|=i,Iu|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ri(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);or(i,t.memoizedState)||(bl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function ji(){}function Di(e,t){var r=hi,o=Si(),a=t(),i=!or(o.memoizedState,a);if(i&&(o.memoizedState=a,bl=!0),o=o.queue,Bi(Ti.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||null!==vi&&1&vi.memoizedState.tag){if(r.flags|=2048,Wi(9,Oi.bind(null,r,o,a,t),void 0,null),null===Ru)throw Error(n(349));30&pi||Ai(r,t,a)}return a}function Ai(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oi(e,t,n,r){t.value=n,t.getSnapshot=r,Li(t)&&Ii(e)}function Ti(e,t,n){return n((function(){Li(t)&&Ii(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch{return!0}}function Ii(e){var t=Ra(e,1);null!==t&&ns(t,e,1,-1)}function Mi(e){var t=Ei();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:e},t.queue=e,e=e.dispatch=tl.bind(null,hi,e),[t.memoizedState,e]}function Wi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Si().memoizedState}function Fi(e,t,n,r){var o=Ei();hi.flags|=e,o.memoizedState=Wi(1|t,n,void 0,void 0===r?null:r)}function $i(e,t,n,r){var o=Si();r=void 0===r?null:r;var a=void 0;if(null!==mi){var i=mi.memoizedState;if(a=i.destroy,null!==r&&Ci(r,i.deps))return void(o.memoizedState=Wi(t,n,a,r))}hi.flags|=e,o.memoizedState=Wi(1|t,n,a,r)}function Vi(e,t){return Fi(8390656,8,e,t)}function Bi(e,t){return $i(2048,8,e,t)}function Ui(e,t){return $i(4,2,e,t)}function Hi(e,t){return $i(4,4,e,t)}function Ki(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qi(e,t,n){return n=null!=n?n.concat([e]):null,$i(4,4,Ki.bind(null,t,e),n)}function qi(){}function Gi(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yi(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 21&pi?(or(n,t)||(n=ft(),hi.lanes|=n,Iu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=n)}function Zi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function Ji(){return Si().memoizedState}function el(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nl(e))rl(t,n);else if(null!==(n=Pa(e,t,n,r))){ns(n,e,r,es()),ol(n,t,r)}}function tl(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nl(e))rl(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,or(l,i)){var u=t.interleaved;return null===u?(o.next=o,Na(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch{}null!==(n=Pa(e,t,o,r))&&(ns(n,e,r,o=es()),ol(n,t,r))}}function nl(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function rl(e,t){yi=gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var al={readContext:Ea,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},il={readContext:Ea,useCallback:function(e,t){return Ei().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:Vi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=Ei();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ei();return t=void 0!==n?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=el.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ei().memoizedState=e},useState:Mi,useDebugValue:qi,useDeferredValue:function(e){return Ei().memoizedState=e},useTransition:function(){var e=Mi(!1),t=e[0];return e=Zi.bind(null,e[1]),Ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=hi,a=Ei();if(oa){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ru)throw Error(n(349));30&pi||Ai(o,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Vi(Ti.bind(null,o,i,e),[e]),o.flags|=2048,Wi(9,Oi.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Ei(),t=Ru.identifierPrefix;if(oa){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-rt(Yo)-1)).toString(32)+n),0<(n=bi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ll={readContext:Ea,useCallback:Gi,useContext:Ea,useEffect:Bi,useImperativeHandle:Qi,useInsertionEffect:Ui,useLayoutEffect:Hi,useMemo:Yi,useReducer:Pi,useRef:zi,useState:function(){return Pi(Ni)},useDebugValue:qi,useDeferredValue:function(e){return Xi(Si(),mi.memoizedState,e)},useTransition:function(){return[Pi(Ni)[0],Si().memoizedState]},useMutableSource:ji,useSyncExternalStore:Di,useId:Ji,unstable_isNewReconciler:!1},ul={readContext:Ea,useCallback:Gi,useContext:Ea,useEffect:Bi,useImperativeHandle:Qi,useInsertionEffect:Ui,useLayoutEffect:Hi,useMemo:Yi,useReducer:Ri,useRef:zi,useState:function(){return Ri(Ni)},useDebugValue:qi,useDeferredValue:function(e){var t=Si();return null===mi?t.memoizedState=e:Xi(t,mi.memoizedState,e)},useTransition:function(){return[Ri(Ni)[0],Si().memoizedState]},useMutableSource:ji,useSyncExternalStore:Di,useId:Ji,unstable_isNewReconciler:!1};function sl(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uu||(Uu=!0,Hu=r),dl(0,t)},n}function hl(e,t,n){(n=Oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Es.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oa(-1,1)).tag=2,Ta(n,t,1))),n.lanes|=1),e)}var yl=g.ReactCurrentOwner,bl=!1;function wl(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ya(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var a=t.ref;return ka(t,o),r=_i(e,t,n,r,a,o),n=ki(),null===e||bl?(oa&&n&&ea(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||As(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ts(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,_l(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(i,r)&&e.ref===t.ref)return Ul(e,t,o)}return t.flags|=1,(e=Os(a,r)).ref=t.ref,e.return=t,t.child=e}function _l(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ar(a,r)&&e.ref===t.ref){if(bl=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Ul(e,t,o);131072&e.flags&&(bl=!0)}}return Sl(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,So(Ou,Au),Au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,So(Ou,Au),Au|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},So(Ou,Au),Au|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,So(Ou,Au),Au|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sl(e,t,n,r,o){var a=Ao(n)?jo:Po.current;return a=Do(t,a),ka(t,o),n=_i(e,t,n,r,a,o),r=ki(),null===e||bl?(oa&&r&&ea(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Nl(e,t,n,r,o){if(Ao(n)){var a=!0;Io(t)}else a=!1;if(ka(t,o),null===t.stateNode)Bl(e,t),Ba(t,n,r),Ha(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;"object"==typeof s&&null!==s?s=Ea(s):s=Do(t,s=Ao(n)?jo:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Ua(t,i,r,s),ja=!1;var f=t.memoizedState;i.state=f,Ma(t,r,i,o),u=t.memoizedState,l!==r||f!==u||Ro.current||ja?("function"==typeof c&&(Fa(t,n,c,r),u=t.memoizedState),(l=ja||Va(t,n,l,r,f,u,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Aa(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:va(t.type,l),i.props=s,d=t.pendingProps,f=i.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ea(u):u=Do(t,u=Ao(n)?jo:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==u)&&Ua(t,i,r,u),ja=!1,f=t.memoizedState,i.state=f,Ma(t,r,i,o);var h=t.memoizedState;l!==d||f!==h||Ro.current||ja?("function"==typeof p&&(Fa(t,n,p,r),h=t.memoizedState),(s=ja||Va(t,n,s,r,f,h,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,a,o)}function Pl(e,t,n,r,o,a){El(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Mo(t,n,!1),Ul(e,t,a);r=t.stateNode,yl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Rl(e){var t=e.stateNode;t.pendingContext?To(0,t.pendingContext,t.pendingContext!==t.context):t.context&&To(0,t.context,!1),ri(e,t.containerInfo)}function jl(e,t,n,r,o){return pa(),ha(o),t.flags|=256,wl(e,t,n,r),t.child}var Dl,Al,Ol,Tl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Il(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ml(e,t,r){var o,a=t.pendingProps,i=li.current,l=!1,u=!!(128&t.flags);if((o=u)||(o=(null===e||null!==e.memoizedState)&&!!(2&i)),o?(l=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(i|=1),So(li,1&i),null===e)return sa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=a.children,e=a.fallback,l?(a=t.mode,l=t.child,u={mode:"hidden",children:u},1&a||null===l?l=Is(u,a,0,null):(l.childLanes=0,l.pendingProps=u),e=Ls(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Il(r),t.memoizedState=Ll,e):Wl(t,u));if(null!==(i=e.memoizedState)&&null!==(o=i.dehydrated))return function(e,t,r,o,a,i,l){if(r)return 256&t.flags?(t.flags&=-257,o=cl(Error(n(422))),zl(e,t,l,o)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=o.fallback,a=t.mode,o=Is({mode:"visible",children:o.children},a,0,null),i=Ls(i,a,l,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,1&t.mode&&Ya(t,e.child,null,l),t.child.memoizedState=Il(l),t.memoizedState=Ll,i);if(!(1&t.mode))return zl(e,t,l,null);if("$!"===a.data){if(o=a.nextSibling&&a.nextSibling.dataset)var u=o.dgst;return o=u,zl(e,t,l,o=cl(i=Error(n(419)),o,void 0))}if(u=!!(l&e.childLanes),bl||u){if(null!==(o=Ru)){switch(l&-l){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=a&(o.suspendedLanes|l)?0:a)&&a!==i.retryLane&&(i.retryLane=a,Ra(e,a),ns(o,e,a,-1))}return ms(),zl(e,t,l,o=cl(Error(n(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Ns.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ra=uo(a.nextSibling),na=t,oa=!0,aa=null,null!==e&&(Qo[qo++]=Yo,Qo[qo++]=Xo,Qo[qo++]=Go,Yo=e.id,Xo=e.overflow,Go=t),t=Wl(t,o.children),t.flags|=4096,t)}(e,t,u,a,o,i,r);if(l){l=a.fallback,u=t.mode,o=(i=e.child).sibling;var s={mode:"hidden",children:a.children};return 1&u||t.child===i?(a=Os(i,s)).subtreeFlags=14680064&i.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=s,t.deletions=null),null!==o?l=Os(o,l):(l=Ls(l,u,r,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,u=null===(u=e.child.memoizedState)?Il(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~r,t.memoizedState=Ll,a}return e=(l=e.child).sibling,a=Os(l,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Wl(e,t){return(t=Is({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&ha(r),Ya(t,e.child,null,n),(e=Wl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function $l(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Vl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),2&(r=li.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fl(e,n,t);else if(19===e.tag)Fl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(So(li,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Iu|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Os(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Os(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hl(e,t){if(!oa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,r){var a=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Ao(t.type)&&Oo(),Kl(t),null;case 3:return a=t.stateNode,oi(),Eo(Ro),Eo(Po),ci(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(null===e||null===e.child)&&(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(is(aa),aa=null))),Al(e,t),Kl(t),null;case 5:ii(t);var i=ni(ti.current);if(r=t.type,null!==e&&null!=t.stateNode)Ol(e,t,r,a,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(n(166));return Kl(t),null}if(e=ni(Ja.current),da(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[fo]=t,a[po]=l,e=!!(1&t.mode),r){case"dialog":Mr("cancel",a),Mr("close",a);break;case"iframe":case"object":case"embed":Mr("load",a);break;case"video":case"audio":for(i=0;i<Or.length;i++)Mr(Or[i],a);break;case"source":Mr("error",a);break;case"img":case"image":case"link":Mr("error",a),Mr("load",a);break;case"details":Mr("toggle",a);break;case"input":Q(a,l),Mr("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},Mr("invalid",a);break;case"textarea":te(a,l),Mr("invalid",a)}for(var u in me(r,l),i=null,l)if(l.hasOwnProperty(u)){var s=l[u];"children"===u?"string"==typeof s?a.textContent!==s&&(!0!==l.suppressHydrationWarning&&Yr(a.textContent,s,e),i=["children",s]):"number"==typeof s&&a.textContent!==""+s&&(!0!==l.suppressHydrationWarning&&Yr(a.textContent,s,e),i=["children",""+s]):o.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Mr("scroll",a)}switch(r){case"input":B(a),Y(a,l,!0);break;case"textarea":B(a),re(a);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(a.onclick=Xr)}a=i,t.updateQueue=a,null!==a&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=u.createElement(r,{is:a.is}):(e=u.createElement(r),"select"===r&&(u=e,a.multiple?u.multiple=!0:a.size&&(u.size=a.size))):e=u.createElementNS(e,r),e[fo]=t,e[po]=a,Dl(e,t,!1,!1),t.stateNode=e;e:{switch(u=ve(r,a),r){case"dialog":Mr("cancel",e),Mr("close",e),i=a;break;case"iframe":case"object":case"embed":Mr("load",e),i=a;break;case"video":case"audio":for(i=0;i<Or.length;i++)Mr(Or[i],e);i=a;break;case"source":Mr("error",e),i=a;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),i=a;break;case"details":Mr("toggle",e),i=a;break;case"input":Q(e,a),i=K(e,a),Mr("invalid",e);break;case"option":default:i=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},i=T({},a,{value:void 0}),Mr("invalid",e);break;case"textarea":te(e,a),i=ee(e,a),Mr("invalid",e)}for(l in me(r,i),s=i)if(s.hasOwnProperty(l)){var c=s[l];"style"===l?pe(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&ue(e,c):"children"===l?"string"==typeof c?("textarea"!==r||""!==c)&&se(e,c):"number"==typeof c&&se(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=c&&"onScroll"===l&&Mr("scroll",e):null!=c&&v(e,l,c,u))}switch(r){case"input":B(e),Y(e,a,!1);break;case"textarea":B(e),re(e);break;case"option":null!=a.value&&e.setAttribute("value",""+$(a.value));break;case"select":e.multiple=!!a.multiple,null!=(l=a.value)?J(e,!!a.multiple,l,!1):null!=a.defaultValue&&J(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)Tl(e,t,e.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw Error(n(166));if(r=ni(ti.current),ni(Ja.current),da(t)){if(a=t.stateNode,r=t.memoizedProps,a[fo]=t,(l=a.nodeValue!==r)&&null!==(e=na))switch(e.tag){case 3:Yr(a.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yr(a.nodeValue,r,!!(1&e.mode))}l&&(t.flags|=4)}else(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[fo]=t,t.stateNode=a}return Kl(t),null;case 13:if(Eo(li),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oa&&null!==ra&&1&t.mode&&!(128&t.flags))fa(),pa(),t.flags|=98560,l=!1;else if(l=da(t),null!==a&&null!==a.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[fo]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),l=!1}else null!==aa&&(is(aa),aa=null),l=!0;if(!l)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,1&t.mode&&(null===e||1&li.current?0===Tu&&(Tu=3):ms())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return oi(),Al(e,t),null===e&&Fr(t.stateNode.containerInfo),Kl(t),null;case 10:return Ca(t.type._context),Kl(t),null;case 19:if(Eo(li),null===(l=t.memoizedState))return Kl(t),null;if(a=!!(128&t.flags),null===(u=l.rendering))if(a)Hl(l,!1);else{if(0!==Tu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=ui(e))){for(t.flags|=128,Hl(l,!1),null!==(a=u.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;null!==r;)e=a,(l=r).flags&=14680066,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return So(li,1&li.current|2),t.child}e=e.sibling}null!==l.tail&&qe()>Vu&&(t.flags|=128,a=!0,Hl(l,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=ui(u))){if(t.flags|=128,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!u.alternate&&!oa)return Kl(t),null}else 2*qe()-l.renderingStartTime>Vu&&1073741824!==r&&(t.flags|=128,a=!0,Hl(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=l.last)?r.sibling=u:t.child=u,l.last=u)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=qe(),t.sibling=null,r=li.current,So(li,a?1&r|2:1&r),t):(Kl(t),null);case 22:case 23:return ds(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&1&t.mode?1073741824&Au&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function ql(e,t){switch(ta(t),t.tag){case 1:return Ao(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),Eo(Ro),Eo(Po),ci(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ii(t),null;case 13:if(Eo(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(li),null;case 4:return oi(),null;case 10:return Ca(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Dl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Al=function(){},Ol=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ni(Ja.current);var i,l=null;switch(n){case"input":a=K(e,a),r=K(e,r),l=[];break;case"select":a=T({},a,{value:void 0}),r=T({},r,{value:void 0}),l=[];break;case"textarea":a=ee(e,a),r=ee(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in me(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var u=a[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(l||(l=[]),l.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(l=l||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(l=l||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Mr("scroll",e),l||u===s||(l=[])):(l=l||[]).push(c,s))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},Tl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ks(e,t,n)}else n.current=null}function eu(e,t,n){try{n()}catch(n){ks(e,t,n)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&eu(t,n,a)}o=o.next}while(o!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[po],delete t[mo],delete t[vo],delete t[go])),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 iu(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||iu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 5:Yl||Jl(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),zt(e)):lo(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Yl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&eu(n,t,i),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!Yl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ks(n,t,e)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,fu(e,t,n),Yl=r):fu(e,t,n);break;default:fu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Ps.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mu(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{var i=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(n(160));pu(i,l,a),cu=null,du=!1;var s=a.alternate;null!==s&&(s.return=null),a.return=null}catch(e){ks(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mu(t,e),gu(e),4&o){try{nu(3,e,e.return),ru(3,e)}catch(t){ks(e,e.return,t)}try{nu(5,e,e.return)}catch(t){ks(e,e.return,t)}}break;case 1:mu(t,e),gu(e),512&o&&null!==r&&Jl(r,r.return);break;case 5:if(mu(t,e),gu(e),512&o&&null!==r&&Jl(r,r.return),32&e.flags){var a=e.stateNode;try{se(a,"")}catch(t){ks(e,e.return,t)}}if(4&o&&null!=(a=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===i.type&&null!=i.name&&q(a,i),ve(u,l);var c=ve(u,i);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?pe(a,f):"dangerouslySetInnerHTML"===d?ue(a,f):"children"===d?se(a,f):v(a,d,f,c)}switch(u){case"input":G(a,i);break;case"textarea":ne(a,i);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?J(a,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?J(a,!!i.multiple,i.defaultValue,!0):J(a,!!i.multiple,i.multiple?[]:"",!1))}a[po]=i}catch(t){ks(e,e.return,t)}}break;case 6:if(mu(t,e),gu(e),4&o){if(null===e.stateNode)throw Error(n(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){ks(e,e.return,t)}}break;case 3:if(mu(t,e),gu(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){ks(e,e.return,t)}break;case 4:default:mu(t,e),gu(e);break;case 13:mu(t,e),gu(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||($u=qe())),4&o&&hu(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Yl=(c=Yl)||d,mu(t,e),Yl=c):mu(t,e),gu(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Jl(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){ks(o,r,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){xu(f);continue}}null!==h?(h.return=p,Zl=h):xu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{a=f.stateNode,c?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(u=f.stateNode,l=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=fe("display",l))}catch(t){ks(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){ks(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mu(t,e),gu(e),4&o&&hu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(iu(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var a=o.stateNode;32&o.flags&&(se(a,""),o.flags&=-33),su(e,lu(e),a);break;case 3:case 4:var i=o.stateNode.containerInfo;uu(e,lu(e),i);break;default:throw Error(n(161))}}catch(t){ks(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Zl=e,bu(e)}function bu(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Gl;if(!i){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Yl;l=Gl;var s=Yl;if(Gl=i,(Yl=u)&&!s)for(Zl=o;null!==Zl;)u=(i=Zl).child,22===i.tag&&null!==i.memoizedState?Cu(o):null!==u?(u.return=i,Zl=u):Cu(o);for(;null!==a;)Zl=a,bu(a),a=a.sibling;Zl=o,Gl=l,Yl=s}wu(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Zl=a):wu(e)}}function wu(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Yl||ru(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Yl)if(null===r)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:va(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Wa(t,i,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Wa(t,l,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(n(163))}Yl||512&t.flags&&ou(t)}catch(e){ks(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zl=r;break}Zl=t.return}}function xu(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Cu(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(e){ks(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){ks(t,o,e)}}var a=t.return;try{ou(t)}catch(e){ks(t,a,e)}break;case 5:var i=t.return;try{ou(t)}catch(e){ks(t,i,e)}}}catch(e){ks(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var _u,ku=Math.ceil,Eu=g.ReactCurrentDispatcher,Su=g.ReactCurrentOwner,Nu=g.ReactCurrentBatchConfig,Pu=0,Ru=null,ju=null,Du=0,Au=0,Ou=ko(0),Tu=0,Lu=null,Iu=0,Mu=0,Wu=0,zu=null,Fu=null,$u=0,Vu=1/0,Bu=null,Uu=!1,Hu=null,Ku=null,Qu=!1,qu=null,Gu=0,Yu=0,Xu=null,Zu=-1,Ju=0;function es(){return 6&Pu?qe():-1!==Zu?Zu:Zu=qe()}function ts(e){return 1&e.mode?2&Pu&&0!==Du?Du&-Du:null!==ma.transition?(0===Ju&&(Ju=ft()),Ju):(0!==(e=vt)||(e=void 0===(e=window.event)?16:Qt(e.type)),e):1}function ns(e,t,r,o){if(50<Yu)throw Yu=0,Xu=null,Error(n(185));ht(e,r,o),(!(2&Pu)||e!==Ru)&&(e===Ru&&(!(2&Pu)&&(Mu|=r),4===Tu&&ls(e,Du)),rs(e,o),1===r&&0===Pu&&!(1&t.mode)&&(Vu=qe()+500,zo&&Vo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-rt(a),l=1<<i,u=o[i];-1===u?(!(l&n)||l&r)&&(o[i]=ct(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=st(e,e===Ru?Du:0);if(0===r)null!==n&&He(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&He(n),1===t)0===e.tag?function(e){zo=!0,$o(e)}(us.bind(null,e)):$o(us.bind(null,e)),ao((function(){!(6&Pu)&&Vo()})),n=null;else{switch(gt(r)){case 1:n=Ye;break;case 4:n=Xe;break;case 16:default:n=Ze;break;case 536870912:n=et}n=Rs(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zu=-1,Ju=0,6&Pu)throw Error(n(327));var r=e.callbackNode;if(Cs()&&e.callbackNode!==r)return null;var o=st(e,e===Ru?Du:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=vs(e,o);else{t=o;var a=Pu;Pu|=2;var i=hs();for((Ru!==e||Du!==t)&&(Bu=null,Vu=qe()+500,fs(e,t));;)try{ys();break}catch(t){ps(e,t)}xa(),Eu.current=i,Pu=a,null!==ju?t=0:(Ru=null,Du=0,t=Tu)}if(0!==t){if(2===t&&(0!==(a=dt(e))&&(o=a,t=as(e,a))),1===t)throw r=Lu,fs(e,0),ls(e,o),rs(e,qe()),r;if(6===t)ls(e,o);else{if(a=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!or(a(),o))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=vs(e,o),2===t&&(i=dt(e),0!==i&&(o=i,t=as(e,i))),1!==t)))throw r=Lu,fs(e,0),ls(e,o),rs(e,qe()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:xs(e,Fu,Bu);break;case 3:if(ls(e,o),(130023424&o)===o&&10<(t=$u+500-qe())){if(0!==st(e,0))break;if(((a=e.suspendedLanes)&o)!==o){es(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=no(xs.bind(null,e,Fu,Bu),t);break}xs(e,Fu,Bu);break;case 4:if(ls(e,o),(4194240&o)===o)break;for(t=e.eventTimes,a=-1;0<o;){var l=31-rt(o);i=1<<l,(l=t[l])>a&&(a=l),o&=~i}if(o=a,10<(o=(120>(o=qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ku(o/1960))-o)){e.timeoutHandle=no(xs.bind(null,e,Fu,Bu),o);break}xs(e,Fu,Bu);break;default:throw Error(n(329))}}}return rs(e,qe()),e.callbackNode===r?os.bind(null,e):null}function as(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Fu,Fu=n,null!==t&&is(t)),e}function is(e){null===Fu?Fu=e:Fu.push.apply(Fu,e)}function ls(e,t){for(t&=~Wu,t&=~Mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function us(e){if(6&Pu)throw Error(n(327));Cs();var t=st(e,0);if(!(1&t))return rs(e,qe()),null;var r=vs(e,t);if(0!==e.tag&&2===r){var o=dt(e);0!==o&&(t=o,r=as(e,o))}if(1===r)throw r=Lu,fs(e,0),ls(e,t),rs(e,qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,Fu,Bu),rs(e,qe()),null}function ss(e,t){var n=Pu;Pu|=1;try{return e(t)}finally{0===(Pu=n)&&(Vu=qe()+500,zo&&Vo())}}function cs(e){null!==qu&&0===qu.tag&&!(6&Pu)&&Cs();var t=Pu;Pu|=1;var n=Nu.transition,r=vt;try{if(Nu.transition=null,vt=1,e)return e()}finally{vt=r,Nu.transition=n,!(6&(Pu=t))&&Vo()}}function ds(){Au=Ou.current,Eo(Ou)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ro(n)),null!==ju)for(n=ju.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oo();break;case 3:oi(),Eo(Ro),Eo(Po),ci();break;case 5:ii(r);break;case 4:oi();break;case 13:case 19:Eo(li);break;case 10:Ca(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Ru=e,ju=e=Os(e.current,null),Du=Au=t,Tu=0,Lu=null,Wu=Mu=Iu=0,Fu=zu=null,null!==Sa){for(t=0;t<Sa.length;t++)if(null!==(r=(n=Sa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Sa=null}return e}function ps(e,t){for(;;){var r=ju;try{if(xa(),di.current=al,gi){for(var o=hi.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}gi=!1}if(pi=0,vi=mi=hi=null,yi=!1,bi=0,Su.current=null,null===r||null===r.return){Tu=1,Lu=t,ju=null;break}e:{var i=e,l=r.return,u=r,s=t;if(t=Du,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,d=u,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,gl(h,l,u,0,t),1&h.mode&&ml(i,c,t),s=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}if(!(1&t)){ml(i,c,t),ms();break e}s=Error(n(426))}else if(oa&&1&u.mode){var g=vl(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gl(g,l,u,0,t),ha(sl(s,u));break e}}i=s=sl(s,u),4!==Tu&&(Tu=2),null===zu?zu=[i]:zu.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,pl(0,s,t));break e;case 1:u=s;var y=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ku&&Ku.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,hl(i,u,t));break e}}i=i.return}while(null!==i)}ws(r)}catch(e){t=e,ju===r&&null!==r&&(ju=r=r.return);continue}break}}function hs(){var e=Eu.current;return Eu.current=al,null===e?al:e}function ms(){(0===Tu||3===Tu||2===Tu)&&(Tu=4),null===Ru||!(268435455&Iu)&&!(268435455&Mu)||ls(Ru,Du)}function vs(e,t){var r=Pu;Pu|=2;var o=hs();for((Ru!==e||Du!==t)&&(Bu=null,fs(e,t));;)try{gs();break}catch(t){ps(e,t)}if(xa(),Pu=r,Eu.current=o,null!==ju)throw Error(n(261));return Ru=null,Du=0,Tu}function gs(){for(;null!==ju;)bs(ju)}function ys(){for(;null!==ju&&!Ke();)bs(ju)}function bs(e){var t=_u(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===t?ws(e):ju=t,Su.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=ql(n,t)))return n.flags&=32767,void(ju=n);if(null===e)return Tu=6,void(ju=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ql(n,t,Au)))return void(ju=n);if(null!==(t=t.sibling))return void(ju=t);ju=t=e}while(null!==t);0===Tu&&(Tu=5)}function xs(e,t,r){var o=vt,a=Nu.transition;try{Nu.transition=null,vt=1,function(e,t,r,o){do{Cs()}while(null!==qu);if(6&Pu)throw Error(n(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(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 o=31-rt(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ru&&(ju=Ru=null,Du=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Qu||(Qu=!0,Rs(Ze,(function(){return Cs(),null}))),i=!!(15990&r.flags),15990&r.subtreeFlags||i){i=Nu.transition,Nu.transition=null;var l=vt;vt=1;var u=Pu;Pu|=4,Su.current=null,function(e,t){if(Zr=$t,cr(e=sr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,u=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==a&&3!==f.nodeType||(u=l+a),f!==i||0!==o&&3!==f.nodeType||(s=l+o),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===a&&(u=l),p===i&&++d===o&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===u||-1===s?null:{start:u,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(eo={focusedElem:e,selectionRange:r},$t=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:va(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){ks(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=tu,tu=!1}(e,r),vu(r,e),dr(eo),$t=!!Zr,eo=Zr=null,e.current=r,yu(r),Qe(),Pu=u,vt=l,Nu.transition=i}else e.current=r;if(Qu&&(Qu=!1,qu=e,Gu=a),i=e.pendingLanes,0===i&&(Ku=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),rs(e,qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(Uu)throw Uu=!1,e=Hu,Hu=null,e;1&Gu&&0!==e.tag&&Cs(),i=e.pendingLanes,1&i?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,Vo()}(e,t,r,o)}finally{Nu.transition=a,vt=o}return null}function Cs(){if(null!==qu){var e=gt(Gu),t=Nu.transition,r=vt;try{if(Nu.transition=null,vt=16>e?16:e,null===qu)var o=!1;else{if(e=qu,qu=null,Gu=0,6&Pu)throw Error(n(331));var a=Pu;for(Pu|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(16&Zl.flags){var u=i.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nu(8,d,i)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(au(d),d===c){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(2048&(i=Zl).flags)switch(i.tag){case 0:case 11:case 15:nu(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Zl=y;break e}Zl=i.return}}var b=e.current;for(Zl=b;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=b;null!==Zl;){if(2048&(u=Zl).flags)try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(e){ks(u,u.return,e)}if(u===l){Zl=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Zl=x;break e}Zl=u.return}}if(Pu=a,Vo(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch{}o=!0}return o}finally{vt=r,Nu.transition=t}}return!1}function _s(e,t,n){e=Ta(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(ht(e,1,t),rs(e,t))}function ks(e,t,n){if(3===e.tag)_s(e,e,n);else for(;null!==t;){if(3===t.tag){_s(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){t=Ta(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(ht(t,1,e),rs(t,e));break}}t=t.return}}function Es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,Ru===e&&(Du&n)===n&&(4===Tu||3===Tu&&(130023424&Du)===Du&&500>qe()-$u?fs(e,0):Wu|=n),rs(e,t)}function Ss(e,t){0===t&&(1&e.mode?(t=lt,!(130023424&(lt<<=1))&&(lt=4194304)):t=1);var n=es();null!==(e=Ra(e,t))&&(ht(e,t,n),rs(e,n))}function Ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ss(e,n)}function Ps(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Ss(e,r)}function Rs(e,t){return Ue(e,t)}function js(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 Ds(e,t,n,r){return new js(e,t,n,r)}function As(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Os(e,t){var n=e.alternate;return null===n?((n=Ds(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ts(e,t,r,o,a,i){var l=2;if(o=e,"function"==typeof e)As(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case w:return Ls(r.children,a,i,t);case x:l=8,a|=8;break;case C:return(e=Ds(12,r,t,2|a)).elementType=C,e.lanes=i,e;case S:return(e=Ds(13,r,t,a)).elementType=S,e.lanes=i,e;case N:return(e=Ds(19,r,t,a)).elementType=N,e.lanes=i,e;case j:return Is(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case k:l=9;break e;case E:l=11;break e;case P:l=14;break e;case R:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ds(l,r,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Ls(e,t,n,r){return(e=Ds(7,e,r,t)).lanes=n,e}function Is(e,t,n,r){return(e=Ds(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Ms(e,t,n){return(e=Ds(6,e,null,t)).lanes=n,e}function Ws(e,t,n){return(t=Ds(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zs(e,t,n,r,o){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=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fs(e,t,n,r,o,a,i,l,u){return e=new zs(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ds(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Da(a),e}function $s(e){if(!e)return No;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ao(r))return Lo(e,r,t)}return t}function Vs(e,t,n,r,o,a,i,l,u){return(e=Fs(n,r,!0,e,0,a,0,l,u)).context=$s(null),n=e.current,(a=Oa(r=es(),o=ts(n))).callback=t??null,Ta(n,a,o),e.current.lanes=o,ht(e,o,r),rs(e,r),e}function Bs(e,t,n,r){var o=t.current,a=es(),i=ts(o);return n=$s(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ta(o,t,i))&&(ns(e,o,i,a),La(e,o,i)),i}function Us(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Hs(e,t),(e=e.alternate)&&Hs(e,t)}_u=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)bl=!0;else{if(!(e.lanes&r||128&t.flags))return bl=!1,function(e,t,n){switch(t.tag){case 3:Rl(t),pa();break;case 5:ai(t);break;case 1:Ao(t.type)&&Io(t);break;case 4:ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;So(ga,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(So(li,1&li.current),t.flags|=128,null):n&t.child.childLanes?Ml(e,t,n):(So(li,1&li.current),null!==(e=Ul(e,t,n))?e.sibling:null);So(li,1&li.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Vl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),So(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Ul(e,t,n)}(e,t,r);bl=!!(131072&e.flags)}else bl=!1,oa&&1048576&t.flags&&Jo(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Bl(e,t),e=t.pendingProps;var a=Do(t,Po.current);ka(t,r),a=_i(null,t,o,e,a,r);var i=ki();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(o)?(i=!0,Io(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Da(t),a.updater=$a,t.stateNode=a,a._reactInternals=t,Ha(t,o,e,r),t=Pl(null,t,o,!0,i,r)):(t.tag=0,oa&&i&&ea(t),wl(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return As(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===P)return 14}return 2}(o),e=va(o,e),a){case 0:t=Sl(null,t,o,e,r);break e;case 1:t=Nl(null,t,o,e,r);break e;case 11:t=xl(null,t,o,e,r);break e;case 14:t=Cl(null,t,o,va(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,Sl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 1:return o=t.type,a=t.pendingProps,Nl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 3:e:{if(Rl(t),null===e)throw Error(n(387));o=t.pendingProps,a=(i=t.memoizedState).element,Aa(e,t),Ma(t,o,null,r);var l=t.memoizedState;if(o=l.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=jl(e,t,o,r,a=sl(Error(n(423)),t));break e}if(o!==a){t=jl(e,t,o,r,a=sl(Error(n(424)),t));break e}for(ra=uo(t.stateNode.containerInfo.firstChild),na=t,oa=!0,aa=null,r=Xa(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(pa(),o===a){t=Ul(e,t,r);break e}wl(e,t,o,r)}t=t.child}return t;case 5:return ai(t),null===e&&sa(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,to(o,a)?l=null:null!==i&&to(o,i)&&(t.flags|=32),El(e,t),wl(e,t,l,r),t.child;case 6:return null===e&&sa(t),null;case 13:return Ml(e,t,r);case 4:return ri(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ya(t,null,o,r):wl(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,xl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 7:return wl(e,t,t.pendingProps,r),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,So(ga,o._currentValue),o._currentValue=l,null!==i)if(or(i.value,l)){if(i.children===a.children&&!Ro.current){t=Ul(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var u=i.dependencies;if(null!==u){l=i.child;for(var s=u.firstContext;null!==s;){if(s.context===o){if(1===i.tag){(s=Oa(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),_a(i.return,r,t),u.lanes|=r;break}s=s.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(u=l.alternate)&&(u.lanes|=r),_a(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,ka(t,r),o=o(a=Ea(a)),t.flags|=1,wl(e,t,o,r),t.child;case 14:return a=va(o=t.type,t.pendingProps),Cl(e,t,o,a=va(o.type,a),r);case 15:return _l(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:va(o,a),Bl(e,t),t.tag=1,Ao(o)?(e=!0,Io(t)):e=!1,ka(t,r),Ba(t,o,a),Ha(t,o,a,r),Pl(null,t,o,!0,e,r);case 19:return Vl(e,t,r);case 22:return kl(e,t,r)}throw Error(n(156,t.tag))};var Qs="function"==typeof reportError?reportError:function(e){console.error(e)};function qs(e){this._internalRoot=e}function Gs(e){this._internalRoot=e}function Ys(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Us(i);l.call(e)}}Bs(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Us(i);a.call(e)}}var i=Vs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=i,e[ho]=i.current,Fr(8===e.nodeType?e.parentNode:e),cs(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Us(u);l.call(e)}}var u=Fs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=u,e[ho]=u.current,Fr(8===e.nodeType?e.parentNode:e),cs((function(){Bs(t,u,n,r)})),u}(n,t,e,o,r);return Us(i)}Gs.prototype.render=qs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Bs(e,t,null,null)},Gs.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Bs(null,e,null,null)})),t[ho]=null}},Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Tt(e)}},yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(mt(t,1|n),rs(t,qe()),!(6&Pu)&&(Vu=qe()+500,Vo()))}break;case 13:cs((function(){var t=Ra(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Ks(e,1)}},bt=function(e){if(13===e.tag){var t=Ra(e,134217728);if(null!==t)ns(t,e,134217728,es());Ks(e,134217728)}},wt=function(e){if(13===e.tag){var t=ts(e),n=Ra(e,t);if(null!==n)ns(n,e,t,es());Ks(e,t)}},xt=function(){return vt},Ct=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(G(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=xo(o);if(!a)throw Error(n(90));U(o),G(o,a)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&J(e,!!r.multiple,t,!1)}},Ee=ss,Se=cs;var ec={usingClientEntryPoint:!1,Events:[bo,wo,xo,_e,ke,ss]},tc={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{tt=rc.inject(nc),nt=rc}catch{}}return gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,gr.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ys(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},gr.createRoot=function(e,t){if(!Ys(e))throw Error(n(299));var r=!1,o="",a=Qs;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Fs(e,1,!1,null,0,r,0,o,a),e[ho]=t.current,Fr(8===e.nodeType?e.parentNode:e),new qs(t)},gr.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=Ve(t))?null:e.stateNode},gr.flushSync=function(e){return cs(e)},gr.hydrate=function(e,t,r){if(!Xs(t))throw Error(n(200));return Js(null,e,t,!0,r)},gr.hydrateRoot=function(e,t,r){if(!Ys(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,a=!1,i="",l=Qs;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Vs(t,null,e,1,r??null,a,0,i,l),e[ho]=t.current,Fr(e),o)for(e=0;e<o.length;e++)a=(a=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Gs(t)},gr.render=function(e,t,r){if(!Xs(t))throw Error(n(200));return Js(null,e,t,!1,r)},gr.unmountComponentAtNode=function(e){if(!Xs(e))throw Error(n(40));return!!e._reactRootContainer&&(cs((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},gr.unstable_batchedUpdates=ss,gr.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xs(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Js(e,t,r,!1,o)},gr.version="18.2.0-next-9e3b772b8-20220608",gr}function PS(){if(d0)return Ym.exports;return d0=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Ym.exports=kS(),Ym.exports}var Yo=PS();const gy=d_(Yo),ws=me(((e,t)=>{const{children:n,...r}=e,o=gs.toArray(n),a=o.find(NS);if(a){const e=a.props.children,n=o.map((t=>t===a?gs.count(e)>1?gs.only(null):Xp(e)?e.props.children:null:t));return j(gv,ie({},r,{ref:t}),Xp(e)?Iv(e,void 0,n):null)}return j(gv,ie({},r,{ref:t}),n)}));ws.displayName="Slot";const gv=me(((e,t)=>{const{children:n,...r}=e;return Xp(n)?Iv(n,{...RS(r,n.props),ref:t?lh(t,n.ref):n.ref}):gs.count(n)>1?gs.only(null):null}));gv.displayName="SlotClone";const yy=({children:e})=>j(rc,null,e);function NS(e){return Xp(e)&&e.type===yy}function RS(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const AS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rt=AS.reduce(((e,t)=>{const n=me(((e,n)=>{const{asChild:r,...o}=e,a=r?ws:t;return ut((()=>{window[Symbol.for("radix-ui")]=!0}),[]),j(a,ie({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function xy(e,t){e&&Yo.flushSync((()=>e.dispatchEvent(t)))}function TS(e,t=(null==globalThis?void 0:globalThis.document)){const n=yr(e);ut((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const yv="dismissableLayer.update",OS="dismissableLayer.pointerDownOutside",IS="dismissableLayer.focusOutside";let f0;const DS=pd({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fv=me(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...s}=e,c=ah(DS),[d,f]=st(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=st({}),m=yt(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,C=MS((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())}),p),_=LS((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==l||l(e),e.defaultPrevented||null==u||u())}),p);return TS((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),p),ut((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(f0=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),p0(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=f0)}}),[d,p,r,c]),ut((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),p0())}),[d,c]),ut((()=>{const e=()=>h({});return document.addEventListener(yv,e),()=>document.removeEventListener(yv,e)}),[]),j(rt.div,ie({},s,{ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Ve(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Ve(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ve(e.onPointerDownCapture,C.onPointerDownCapture)}))}));function MS(e,t=(null==globalThis?void 0:globalThis.document)){const n=yr(e),r=Qe(!1),o=Qe((()=>{}));return ut((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){wy(OS,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function LS(e,t=(null==globalThis?void 0:globalThis.document)){const n=yr(e),r=Qe(!1);return ut((()=>{const e=e=>{e.target&&!r.current&&wy(IS,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function p0(){const e=new CustomEvent(yv);document.dispatchEvent(e)}function wy(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?xy(o,a):o.dispatchEvent(a)}const qm="focusScope.autoFocusOnMount",Zm="focusScope.autoFocusOnUnmount",h0={bubbles:!1,cancelable:!0},jv=me(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=st(null),s=yr(o),c=yr(a),d=Qe(null),f=yt(t,(e=>u(e))),p=Qe({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ut((()=>{if(r){let e=function(e){if(p.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:ua(d.current,{select:!0})},t=function(e){if(p.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||ua(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ua(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,p.paused]),ut((()=>{if(l){v0.add(p);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(qm,h0);l.addEventListener(qm,s),l.dispatchEvent(t),t.defaultPrevented||(FS(US(by(l)),{select:!0}),document.activeElement===e&&ua(l))}return()=>{l.removeEventListener(qm,s),setTimeout((()=>{const t=new CustomEvent(Zm,h0);l.addEventListener(Zm,c),l.dispatchEvent(t),t.defaultPrevented||ua(e??document.body,{select:!0}),l.removeEventListener(Zm,c),v0.remove(p)}),0)}}}),[l,s,c,p]);const h=bt((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=jS(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&ua(a,{select:!0})):(e.preventDefault(),n&&ua(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return j(rt.div,ie({tabIndex:-1},i,{ref:f,onKeyDown:h}))}));function FS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ua(r,{select:t}),document.activeElement!==n)return}function jS(e){const t=by(e);return[m0(t,e),m0(t.reverse(),e)]}function by(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m0(e,t){for(const n of e)if(!zS(n,{upTo:t}))return n}function zS(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function WS(e){return e instanceof HTMLInputElement&&"select"in e}function ua(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&WS(e)&&t&&e.select()}}const v0=BS();function BS(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=g0(e,t),e.unshift(t)},remove(t){var n;e=g0(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function g0(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function US(e){return e.filter((e=>"A"!==e.tagName))}const zv=me(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?gy.createPortal(j(rt.div,ie({},o,{ref:t})),r):null}));function VS(e,t){return s_(((e,n)=>t[e][n]??e),e)}const vo=e=>{const{present:t,children:n}=e,r=HS(t),o="function"==typeof n?n({present:r.isPresent}):gs.only(n),a=yt(r.ref,o.ref);return"function"==typeof n||r.isPresent?Iv(o,{ref:a}):null};function HS(e){const[t,n]=st(),r=Qe({}),o=Qe(e),a=Qe("none"),i=e?"mounted":"unmounted",[l,u]=VS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ut((()=>{const e=Dp(r.current);a.current="mounted"===l?e:"none"}),[l]),Hn((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Dp(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Hn((()=>{if(t){const e=e=>{const n=Dp(r.current).includes(e.animationName);e.target===t&&n&&Yo.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=Dp(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:bt((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Dp(e){return(null==e?void 0:e.animationName)||"none"}vo.displayName="Presence";let Jm=0;function Wv(){ut((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:y0()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:y0()),Jm++,()=>{1===Jm&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Jm--}}),[])}function y0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Vn=function(){return Vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vn.apply(this,arguments)};function Bv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function $y(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var ud="right-scroll-bar-position",dd="width-before-scroll-bar",KS="with-scroll-bars-hidden",GS="--removed-body-scroll-bar-size";function ev(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function YS(e,t){var n=st((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var XS=typeof window<"u"?C.useLayoutEffect:C.useEffect,x0=new WeakMap;function _y(e,t){var n=YS(null,(function(t){return e.forEach((function(e){return ev(e,t)}))}));return XS((function(){var t=x0.get(n);if(t){var r=new Set(t),o=new Set(e),a=n.current;r.forEach((function(e){o.has(e)||ev(e,null)})),o.forEach((function(e){r.has(e)||ev(e,a)}))}x0.set(n,e)}),[e]),n}function QS(e){return e}function qS(e,t){void 0===t&&(t=QS);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function Sy(e){void 0===e&&(e={});var t=qS(null);return t.options=Vn({async:!0,ssr:!1},e),t}var Cy=function(e){var t=e.sideCar,n=Bv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,Vn({},n))};function Ey(e,t){return e.useMedium(t),Cy}Cy.isSideCarExport=!0;var ky=Sy(),tv=function(){},ch=C.forwardRef((function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:tv,onWheelCapture:tv,onTouchMoveCapture:tv}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=Bv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=f,w=_y([n,t]),x=Vn(Vn({},y),o);return C.createElement(C.Fragment,null,c&&C.createElement(b,{sideCar:ky,removeScrollBar:s,shards:d,noIsolation:p,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?C.cloneElement(C.Children.only(l),Vn(Vn({},x),{ref:w})):C.createElement(g,Vn({},x,{className:u,ref:w}),l))}));ch.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ch.classNames={fullWidth:dd,zeroRight:ud};var ZS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZS();return t&&e.setAttribute("nonce",t),e}function eC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tC(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var nC=function(){var e=0,t=null;return{add:function(n){0==e&&(t=JS())&&(eC(t,n),tC(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rC=function(){var e=nC();return function(t,n){C.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},Uv=function(){var e=rC();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},oC={left:0,top:0,right:0,gap:0},nv=function(e){return parseInt(e||"",10)||0},iC=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[nv(n),nv(r),nv(o)]},aC=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return oC;var t=iC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sC=Uv(),lC=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat(KS," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ud," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(dd," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ud," .").concat(ud," {\n right: 0 ").concat(r,";\n }\n \n .").concat(dd," .").concat(dd," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat(GS,": ").concat(l,"px;\n }\n")},Py=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=C.useMemo((function(){return aC(o)}),[o]);return C.createElement(sC,{styles:lC(a,!t,o,n?"":"!important")})},xv=!1;if(typeof window<"u")try{var Mp=Object.defineProperty({},"passive",{get:function(){return xv=!0,!0}});window.addEventListener("test",Mp,Mp),window.removeEventListener("test",Mp,Mp)}catch{xv=!1}var Gl=!!xv&&{passive:!1},cC=function(e){return"TEXTAREA"===e.tagName},Ny=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!cC(e)&&"visible"===n[t])},uC=function(e){return Ny(e,"overflowY")},dC=function(e){return Ny(e,"overflowX")},w0=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),Ry(e,n)){var r=Ay(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},fC=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},pC=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ry=function(e,t){return"v"===e?uC(t):dC(t)},Ay=function(e,t){return"v"===e?fC(t):pC(t)},hC=function(e,t){return"h"===e&&"rtl"===t?-1:1},mC=function(e,t,n,r,o){var a=hC(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,u=t.contains(l),s=!1,c=i>0,d=0,f=0;do{var p=Ay(e,l),h=p[0],m=p[1]-p[2]-a*h;(h||m)&&Ry(e,l)&&(d+=m,f+=h),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(c&&(0===d||!o)||!c&&(0===f||!o))&&(s=!0),s},Lp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},b0=function(e){return[e.deltaX,e.deltaY]},$0=function(e){return e&&"current"in e?e.current:e},vC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gC=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},yC=0,Yl=[];function xC(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),o=C.useState(yC++)[0],a=C.useState((function(){return Uv()}))[0],i=C.useRef(e);C.useEffect((function(){i.current=e}),[e]),C.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=$y([e.lockRef.current],(e.shards||[]).map($0),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=C.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=Lp(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],s="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=w0(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=w0(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return mC(p,t,e,"h"===p?u:s,!0)}),[]),u=C.useCallback((function(e){var n=e;if(Yl.length&&Yl[Yl.length-1]===a){var r="deltaY"in n?b0(n):Lp(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&vC(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(i.current.shards||[]).map($0).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?l(n,u[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=C.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),c=C.useCallback((function(e){n.current=Lp(e),r.current=void 0}),[]),d=C.useCallback((function(t){s(t.type,b0(t),t.target,l(t,e.lockRef.current))}),[]),f=C.useCallback((function(t){s(t.type,Lp(t),t.target,l(t,e.lockRef.current))}),[]);C.useEffect((function(){return Yl.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Gl),document.addEventListener("touchmove",u,Gl),document.addEventListener("touchstart",c,Gl),function(){Yl=Yl.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Gl),document.removeEventListener("touchmove",u,Gl),document.removeEventListener("touchstart",c,Gl)}}),[]);var p=e.removeScrollBar,h=e.inert;return C.createElement(C.Fragment,null,h?C.createElement(a,{styles:gC(o)}):null,p?C.createElement(Py,{gapMode:"margin"}):null)}const wC=Ey(ky,xC);var uh=C.forwardRef((function(e,t){return C.createElement(ch,Vn({},e,{ref:t,sideCar:wC}))}));uh.classNames=ch.classNames;var bC=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Xl=new WeakMap,Fp=new WeakMap,jp={},rv=0,Ty=function(e){return e&&(e.host||Ty(e.parentNode))},$C=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Ty(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},_C=function(e,t,n,r){var o=$C(t,Array.isArray(e)?e:[e]);jp[n]||(jp[n]=new WeakMap);var a=jp[n],i=[],l=new Set,u=new Set(o),s=function(e){!e||l.has(e)||(l.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(Xl.get(e)||0)+1,s=(a.get(e)||0)+1;Xl.set(e,u),a.set(e,s),i.push(e),1===u&&o&&Fp.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),l.clear(),rv++,function(){i.forEach((function(e){var t=Xl.get(e)-1,o=a.get(e)-1;Xl.set(e,t),a.set(e,o),t||(Fp.has(e)||e.removeAttribute(r),Fp.delete(e)),o||e.removeAttribute(n)})),--rv||(Xl=new WeakMap,Xl=new WeakMap,Fp=new WeakMap,jp={})}},dh=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=bC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_C(r,o,n,"aria-hidden")):function(){return null}};const Oy="Dialog",[Iy,Dy]=xr(Oy),[SC,go]=Iy(Oy),CC=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=Qe(null),u=Qe(null),[s=!1,c]=Ho({prop:r,defaultProp:o,onChange:a});return j(SC,{scope:t,triggerRef:l,contentRef:u,contentId:to(),titleId:to(),descriptionId:to(),open:s,onOpenChange:c,onOpenToggle:bt((()=>c((e=>!e))),[c]),modal:i},n)},EC="DialogTrigger",kC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(EC,n),a=yt(t,o.triggerRef);return j(rt.button,ie({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vv(o.open)},r,{ref:a,onClick:Ve(e.onClick,o.onOpenToggle)}))})),My="DialogPortal",[PC,Ly]=Iy(My,{forceMount:void 0}),NC=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=go(My,t);return j(PC,{scope:t,forceMount:n},gs.map(r,(e=>j(vo,{present:n||a.open},j(zv,{asChild:!0,container:o},e)))))},wv="DialogOverlay",RC=me(((e,t)=>{const n=Ly(wv,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=go(wv,e.__scopeDialog);return a.modal?j(vo,{present:r||a.open},j(AC,ie({},o,{ref:t}))):null})),AC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(wv,n);return j(uh,{as:ws,allowPinchZoom:!0,shards:[o.contentRef]},j(rt.div,ie({"data-state":Vv(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),ec="DialogContent",TC=me(((e,t)=>{const n=Ly(ec,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=go(ec,e.__scopeDialog);return j(vo,{present:r||a.open},a.modal?j(OC,ie({},o,{ref:t})):j(IC,ie({},o,{ref:t})))})),OC=me(((e,t)=>{const n=go(ec,e.__scopeDialog),r=Qe(null),o=yt(t,n.contentRef,r);return ut((()=>{const e=r.current;if(e)return dh(e)}),[]),j(Fy,ie({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ve(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Ve(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Ve(e.onFocusOutside,(e=>e.preventDefault()))}))})),IC=me(((e,t)=>{const n=go(ec,e.__scopeDialog),r=Qe(!1),o=Qe(!1);return j(Fy,ie({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),Fy=me(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=go(ec,n),u=yt(t,Qe(null));return Wv(),j(rc,null,j(jv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},j(Fv,ie({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Vv(l.open)},i,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)})),jy="DialogTitle",DC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(jy,n);return j(rt.h2,ie({id:o.titleId},r,{ref:t}))})),MC="DialogDescription",LC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(MC,n);return j(rt.p,ie({id:o.descriptionId},r,{ref:t}))})),FC="DialogClose",jC=me(((e,t)=>{const{__scopeDialog:n,...r}=e,o=go(FC,n);return j(rt.button,ie({type:"button"},r,{ref:t,onClick:Ve(e.onClick,(()=>o.onOpenChange(!1)))}))}));function Vv(e){return e?"open":"closed"}const zC="DialogTitleWarning",[WC,j6]=xS(zC,{contentName:ec,titleName:jy,docsSlug:"dialog"}),zy=CC,BC=kC,Wy=NC,By=RC,Uy=TC,UC=DC,VC=LC,Vy=jC,HC="AlertDialog",[KC,z6]=xr(HC,[Dy]),bi=Dy(),GC=e=>{const{__scopeAlertDialog:t,...n}=e,r=bi(t);return j(zy,ie({},r,n,{modal:!0}))},YC=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(BC,ie({},o,r,{ref:t}))})),XC=e=>{const{__scopeAlertDialog:t,...n}=e,r=bi(t);return j(Wy,ie({},r,n))},QC=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(By,ie({},o,r,{ref:t}))})),Hy="AlertDialogContent",[qC,ZC]=KC(Hy),JC=me(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=bi(n),i=yt(t,Qe(null)),l=Qe(null);return j(WC,{contentName:Hy,titleName:e2,docsSlug:"alert-dialog"},j(qC,{scope:n,cancelRef:l},j(Uy,ie({role:"alertdialog"},a,o,{ref:i,onOpenAutoFocus:Ve(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=l.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),j(yy,null,r),!1)))})),e2="AlertDialogTitle",t2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(UC,ie({},o,r,{ref:t}))})),n2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(VC,ie({},o,r,{ref:t}))})),r2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bi(n);return j(Vy,ie({},o,r,{ref:t}))})),o2="AlertDialogCancel",i2=me(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=ZC(o2,n),a=bi(n),i=yt(t,o);return j(Vy,ie({},a,r,{ref:i}))})),a2=GC,s2=YC,l2=XC,Ky=QC,Gy=JC,Yy=r2,Xy=i2,Qy=t2,qy=n2,W6=a2,B6=s2,c2=l2,Zy=C.forwardRef((({className:e,...t},n)=>W.jsx(Ky,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));Zy.displayName=Ky.displayName;const u2=C.forwardRef((({className:e,...t},n)=>W.jsxs(c2,{children:[W.jsx(Zy,{}),W.jsx(Gy,{ref:n,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]})));u2.displayName=Gy.displayName;const d2=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col space-y-2 text-center sm:text-left",e),...t});d2.displayName="AlertDialogHeader";const f2=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});f2.displayName="AlertDialogFooter";const p2=C.forwardRef((({className:e,...t},n)=>W.jsx(Qy,{ref:n,className:$e("text-lg font-semibold",e),...t})));p2.displayName=Qy.displayName;const h2=C.forwardRef((({className:e,...t},n)=>W.jsx(qy,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));h2.displayName=qy.displayName;const m2=C.forwardRef((({className:e,...t},n)=>W.jsx(Yy,{ref:n,className:$e(Mv(),e),...t})));m2.displayName=Yy.displayName;const v2=C.forwardRef((({className:e,...t},n)=>W.jsx(Xy,{ref:n,className:$e(Mv({variant:"outline"}),"mt-2 sm:mt-0",e),...t})));v2.displayName=Xy.displayName;const Jy="Avatar",[g2,U6]=xr(Jy),[y2,e1]=g2(Jy),x2=me(((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=st("idle");return j(y2,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a},j(rt.span,ie({},r,{ref:t})))})),w2="AvatarImage",b2=me(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=e1(w2,n),l=S2(r),u=yr((e=>{o(e),i.onImageLoadingStatusChange(e)}));return Hn((()=>{"idle"!==l&&u(l)}),[l,u]),"loaded"===l?j(rt.img,ie({},a,{ref:t,src:r})):null})),$2="AvatarFallback",_2=me(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=e1($2,n),[i,l]=st(void 0===r);return ut((()=>{if(void 0!==r){const e=window.setTimeout((()=>l(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==a.imageLoadingStatus?j(rt.span,ie({},o,{ref:t})):null}));function S2(e){const[t,n]=st("idle");return Hn((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}}),[e]),t}const t1=x2,n1=b2,r1=_2,C2=C.forwardRef((({className:e,...t},n)=>W.jsx(t1,{ref:n,className:$e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t})));C2.displayName=t1.displayName;const E2=C.forwardRef((({className:e,...t},n)=>W.jsx(n1,{ref:n,className:$e("aspect-square h-full w-full",e),...t})));E2.displayName=n1.displayName;const k2=C.forwardRef((({className:e,...t},n)=>W.jsx(r1,{ref:n,className:$e("flex h-full w-full items-center justify-center bg-muted",e),...t})));k2.displayName=r1.displayName;const P2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t})));P2.displayName="Card";const N2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("flex flex-col space-y-1.5 p-6",e),...t})));N2.displayName="CardHeader";const R2=C.forwardRef((({className:e,...t},n)=>W.jsx("h3",{ref:n,className:$e("text-2xl font-semibold leading-none tracking-tight",e),...t})));R2.displayName="CardTitle";const A2=C.forwardRef((({className:e,...t},n)=>W.jsx("p",{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));A2.displayName="CardDescription";const T2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("p-6 pt-0",e),...t})));T2.displayName="CardContent";const O2=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{ref:n,className:$e("flex items-center p-6 pt-0",e),...t})));function I2(e){return"[object Object]"===Object.prototype.toString.call(e)}function _0(e){return I2(e)||Array.isArray(e)}function D2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Hv(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:_0(r)&&_0(o)?Hv(r,o):r===o}))}function S0(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function M2(e,t){if(e.length!==t.length)return!1;const n=S0(e),r=S0(t);return n.every(((e,t)=>Hv(e,r[t])))}function Kv(e){return"number"==typeof e}function bv(e){return"string"==typeof e}function Gv(e){return"boolean"==typeof e}function C0(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wt(e){return Math.abs(e)}function Yv(e){return Math.sign(e)}function fd(e,t){return Wt(e-t)}function L2(e,t){if(0===e||0===t||Wt(e)<=Wt(t))return 0;const n=fd(Wt(e),Wt(t));return Wt(n/e)}function hd(e){return md(e).map(Number)}function ho(e){return e[Cd(e)]}function Cd(e){return Math.max(0,e.length-1)}function Xv(e,t){return t===Cd(e)}function E0(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function md(e){return Object.keys(e)}function o1(e,t){return[e,t].reduce(((e,t)=>(md(t).forEach((n=>{const r=e[n],o=t[n],a=C0(r)&&C0(o);e[n]=a?o1(r,o):o})),e)),{})}function i1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function F2(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,o){return bv(e)?n[e](r):e(t,r,o)}}}function vd(){let e=[];const t={add:function(n,r,o,a={passive:!0}){let i;if("addEventListener"in n)n.addEventListener(r,o,a),i=()=>n.removeEventListener(r,o,a);else{const e=n;e.addListener(o),i=()=>e.removeListener(o)}return e.push(i),t},clear:function(){e=e.filter((e=>e()))}};return t}function j2(e,t,n,r){const o=vd(),a=1e3/60;let i=null,l=0,u=0;function s(e){if(!u)return;i||(i=e);const o=e-i;for(i=e,l+=o;l>=a;)n(),l-=a;const c=Wt(l/a);r(c),u&&t.requestAnimationFrame(s)}function c(){t.cancelAnimationFrame(u),i=null,l=0,u=0}return{init:function(){o.add(e,"visibilitychange",(()=>{e.hidden&&(i=null,l=0)}))},destroy:function(){c(),o.clear()},start:function(){u||(u=t.requestAnimationFrame(s))},stop:c,update:n,render:r}}function z2(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}function bs(e=0,t=0){const n=Wt(e-t);function r(t){return t<e}function o(e){return e>t}function a(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return a(n)?r(n)?e:t:n},reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function a1(e,t,n){const{constrain:r}=bs(0,e),o=e+1;let a=i(t);function i(e){return n?Wt((o+e)%o):r(e)}function l(){return a}function u(){return a1(e,l(),n)}const s={get:l,set:function(e){return a=i(e),s},add:function(e){return u().set(l()+e)},clone:u};return s}function W2(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}function B2(e,t,n,r,o,a,i,l,u,s,c,d,f,p,h,m,v,g,y,b){const{cross:w}=e,x=["INPUT","SELECT","TEXTAREA"],C={passive:!1},_=vd(),k=vd(),E=bs(50,225).constrain(h.measure(20)),S={mouse:300,touch:400},N={mouse:500,touch:600},P=m?43:25;let R=!1,j=0,D=0,A=!1,O=!1,T=!1,L=!1;function I(e){const n=i.readPoint(e),r=i.readPoint(e,w),o=fd(n,j),l=fd(r,D);if(!(O||L||e.cancelable&&(O=o>l,O)))return M(e);const s=i.pointerMove(e);o>v&&(T=!0),c.useFriction(.3).useDuration(1),u.start(),a.add(t.apply(s)),e.preventDefault()}function M(e){const n=d.byDistance(0,!1).index!==f.get(),r=i.pointerUp(e)*(m?N:S)[L?"mouse":"touch"],o=function(e,t){const n=f.add(-1*Yv(e)),r=d.byDistance(e,!m).distance;return m||Wt(e)<E?r:g&&t?.5*r:d.byIndex(n.get(),0).distance}(t.apply(r),n),a=L2(r,o),l=P-10*a,u=y+a/50;O=!1,A=!1,k.clear(),c.useDuration(l).useFriction(u),s.distance(o,!m),L=!1,p.emit("pointerUp")}function W(e){T&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(Gv(b)||b(e,t))&&function(e){const t=i1(e,o);L=t,(!t||0===e.button)&&(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target)||(T=m&&t&&!e.buttons&&R,R=fd(a.get(),l.get())>=2,A=!0,i.pointerDown(e),c.useFriction(0).useDuration(0),a.set(l),function(){const e=L?r:n;k.add(e,"touchmove",I,C).add(e,"touchend",M).add(e,"mousemove",I,C).add(e,"mouseup",M)}(),j=i.readPoint(e),D=i.readPoint(e,w),p.emit("pointerDown")))}(t)}const u=n;_.add(u,"dragstart",(e=>e.preventDefault()),C).add(u,"touchmove",(()=>{}),C).add(u,"touchend",(()=>{})).add(u,"touchstart",t).add(u,"mousedown",t).add(u,"touchcancel",M).add(u,"contextmenu",M).add(u,"click",W,!0)},pointerDown:function(){return A},destroy:function(){_.clear(),k.clear()}}}function U2(e,t){let n,r;function o(e){return e.timeStamp}function a(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(i1(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){const t=a(e)-a(r),i=o(e)-o(n)>170;return r=e,i&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=a(r)-a(n),i=o(e)-o(n),l=o(e)-o(r)>170,u=t/i;return i&&!l&&Wt(u)>.1?u:0},readPoint:a}}function V2(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}}}function H2(e){return{measure:function(t){return e*(t/100)}}}function K2(e,t,n,r,o,a,i){let l,u,s=[],c=!1;function d(e){return o.measureSize(i.measure(e))}return{init:function(o){a&&(u=d(e),s=r.map(d),l=new ResizeObserver((i=>{c||(Gv(a)||a(o,i))&&function(a){for(const i of a){const a=i.target===e,l=r.indexOf(i.target),c=a?u:s[l];if(Wt(d(a?e:r[l])-c)>=.5){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(i)})),[e].concat(r).forEach((e=>l.observe(e))))},destroy:function(){l&&l.disconnect(),c=!0}}}function G2(e,t,n,r,o){let a=0,i=0,l=r,u=o,s=e.get(),c=0;function d(e){return l=e,p}function f(e){return u=e,p}const p={direction:function(){return i},duration:function(){return l},velocity:function(){return a},seek:function(){const t=n.get()-e.get();let r=0;return!l?(a=0,e.set(n),r=t):(a+=t/l,a*=u,s+=a,e.add(a),r=s-c),i=Yv(r),c=s,p},settled:function(){return Wt(n.get()-t.get())<.001},useBaseFriction:function(){return f(o)},useBaseDuration:function(){return d(r)},useFriction:f,useDuration:d};return p}function Y2(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),l=bs(.1,.99);let u=!1;return{constrain:function(o){if(u||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const s=e.reachedMin(t.get())?"min":"max",c=Wt(e[s]-t.get()),d=n.get()-t.get(),f=l.constrain(c/i);n.subtract(d*f),!o&&Wt(d)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){u=!e}}}function X2(e,t,n,r,o){const a=bs(-t+e,0),i=n.map(((e,t)=>{const{min:r,max:o}=a,i=a.constrain(e),l=!t,s=Xv(n,t);return l?o:s||u(r,i)?r:u(o,i)?o:i})).map((e=>parseFloat(e.toFixed(3)))),l=function(){const e=i[0],t=ho(i),n=i.lastIndexOf(e),r=i.indexOf(t)+1;return bs(n,r)}();function u(e,t){return fd(e,t)<1}return{snapsContained:function(){if(t<=e+o)return[a.max];if("keepSnaps"===r)return i;const{min:n,max:u}=l;return i.slice(n,u)}(),scrollContainLimit:l}}function Q2(e,t,n){const r=t[0];return{limit:bs(n?r-e:ho(t),r)}}function q2(e,t,n,r){const o=t.min+.1,a=t.max+.1,{reachedMin:i,reachedMax:l}=bs(o,a);return{loop:function(t){if(!function(e){return 1===e?l(n.get()):-1===e&&i(n.get())}(t))return;const o=e*(-1*t);r.forEach((e=>e.add(o)))}}}function Z2(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function J2(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:l}=o,u=l(r).map((e=>ho(e)[i]-e[0][a])).map(Wt).map(t.measure),s=r.map((e=>n[a]-e[a])).map((e=>-Wt(e))),c=l(s).map((e=>e[0])).map(((e,t)=>e+u[t]));return{snaps:s,snapsAligned:c}}function eE(e,t,n,r,o,a){const{groupSlides:i}=o,{min:l,max:u}=r;return{slideRegistry:function(){const r=i(a),o=!e||"keepSnaps"===t;return 1===n.length?[a]:o?r:r.slice(l,u).map(((e,t,n)=>{const r=!t,o=Xv(n,t);if(r){return E0(ho(n[0])+1)}if(o){return E0(Cd(a)-ho(n)[0]+1,ho(n)[0])}return e}))}()}}function tE(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:l}=r;function u(e){return e.concat().sort(((e,t)=>Wt(e)-Wt(t)))[0]}function s(t,r){const o=[t,t+n,t-n];if(!e)return o[0];if(!r)return u(o);const a=o.filter((e=>Yv(e)===r));return a.length?u(a):ho(o)-n}return{byDistance:function(n,r){const u=o.get()+n,{index:c,distance:d}=function(n){const r=e?i(n):l(n),o=t.map((e=>e-r)).map((e=>s(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>Wt(e.diff)-Wt(t.diff))),{index:a}=o[0];return{index:a,distance:r}}(u),f=!e&&a(u);return!r||f?{index:c,distance:n}:{index:c,distance:n+s(t[c]-d,0)}},byIndex:function(e,n){return{index:e,distance:s(t[e]-o.get(),n)}},shortcut:s}}function nE(e,t,n,r,o,a,i){function l(o){const l=o.distance,u=o.index!==t.get();a.add(l),l&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(o.index),i.emit("select"))}return{distance:function(e,t){l(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);l(o.byIndex(r.get(),n))}}}function rE(e,t,n,r,o,a){let i=0;function l(e){"Tab"===e.code&&(i=(new Date).getTime())}function u(l){a.add(l,"focus",(()=>{if((new Date).getTime()-i>10)return;e.scrollLeft=0;const a=t.indexOf(l),u=n.findIndex((e=>e.includes(a)));Kv(u)&&(o.useDuration(0),r.index(u,0))}),{passive:!0,capture:!0})}return{init:function(){a.add(document,"keydown",l,!1),t.forEach(u)}}}function Gp(e){let t=e;function n(e){return Kv(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function s1(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=n.style;let a=!1;return{clear:function(){a||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){a||(o.transform=r(t.apply(e)))},toggleActive:function(e){a=!e}}}function oE(e,t,n,r,o,a,i,l,u,s){const c=hd(a),d=hd(a).reverse(),f=function(){const e=l[0];return m(h(d,e),r,!1)}().concat(function(){const e=n-l[0]-1;return m(h(c,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-a[t]),t)}function h(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function m(a,l,c){const d=function(e){return i.map(((t,r)=>({start:t-o[r]+.5+e,end:t+n-.5+e})))}(l);return a.map((n=>{const o=c?0:-r,a=c?r:0,i=c?"end":"start",l=d[n][i];return{index:n,loopPoint:l,slideLocation:Gp(-1),translate:s1(e,t,s[n]),target:()=>u.get()>l?o:a}}))}return{canLoop:function(){return f.every((({index:e})=>p(c.filter((t=>t!==e)),n)<=.1))},clear:function(){f.forEach((e=>e.translate.clear()))},loop:function(){f.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:f}}function iE(e,t,n){let r,o=!1;return{init:function(a){n&&(r=new MutationObserver((e=>{o||(Gv(n)||n(a,e))&&function(e){for(const n of e)if("childList"===n.type){a.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function aE(e,t,n,r){const o={};let a,i=null,l=null,u=!1;return{init:function(){a=new IntersectionObserver((e=>{u||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),i=null,l=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>a.observe(e)))},destroy:function(){a&&a.disconnect(),u=!0},get:function(e=!0){if(e&&i)return i;if(!e&&l)return l;const t=function(e){return md(o).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:a}=o[r];return(e&&a||!e&&!a)&&t.push(r),t}),[])}(e);return e&&(i=t),e||(l=t),t}}}function sE(e,t,n,r,o,a){const{measureSize:i,startEdge:l,endEdge:u}=e,s=n[0]&&o,c=function(){if(!s)return 0;const e=n[0];return Wt(t[l]-e[l])}(),d=function(){if(!s)return 0;const e=a.getComputedStyle(ho(r));return parseFloat(e.getPropertyValue(`margin-${u}`))}(),f=n.map(i),p=n.map(((e,t,n)=>{const r=!t,o=Xv(n,t);return r?f[t]+c:o?f[t]+d:n[t+1][l]-e[l]})).map(Wt);return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}function lE(e,t,n,r,o,a,i,l,u,s){const{startEdge:c,endEdge:d}=e,f=Kv(r);return{groupSlides:function(e){return f?function(e,t){return hd(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?hd(e).reduce(((r,f)=>{const p=ho(r)||0,h=0===p,m=f===Cd(e),v=a[c]-i[p][c],g=a[c]-i[f][d],y=!o&&h?t.apply(l):0;return Wt(g-(!o&&m?t.apply(u):0)-(v+y))>n+s&&r.push(f),m&&r.push(e.length),r}),[]).map(((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function cE(e,t,n,r,o,a,i){const{align:l,axis:u,direction:s,startIndex:c,loop:d,duration:f,dragFree:p,dragThreshold:h,inViewThreshold:m,slidesToScroll:v,skipSnaps:g,containScroll:y,watchResize:b,watchSlides:w,watchDrag:x}=a,C=V2(),_=C.measure(t),k=n.map(C.measure),E=W2(s),S=z2(u,s),N=S.measureSize(_),P=H2(N),R=F2(l,N),j=!d&&!!y,D=d||!!y,{slideSizes:A,slideSizesWithGaps:O,startGap:T,endGap:L}=sE(S,_,k,n,D,o),I=lE(S,E,N,v,d,_,k,T,L,2),{snaps:M,snapsAligned:W}=J2(S,R,_,k,I),z=-ho(M)+ho(O),{snapsContained:F,scrollContainLimit:$}=X2(N,z,W,y,2),V=j?F:W,{limit:B}=Q2(z,V,d),U=a1(Cd(V),c,d),H=U.clone(),K=hd(n),Q=j2(r,o,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ie)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:a,dragHandler:i,animation:l,eventHandler:u,options:{loop:s}},c)=>{const d=e.velocity(),f=e.settled();f&&!i.pointerDown()&&(l.stop(),u.emit("settle")),f||u.emit("scroll"),r.set(n.get()-d+d*c),s&&(o.loop(e.direction()),a.loop()),t.to(r.get())})(ie,e))),q=V[U.get()],G=Gp(q),Y=Gp(q),X=Gp(q),Z=G2(G,Y,X,f,.68),J=tE(d,V,z,B,X),ee=nE(Q,U,H,Z,J,X,i),te=Z2(B),ne=vd(),re=aE(t,n,i,m),{slideRegistry:oe}=eE(j,y,V,$,I,K),ae=rE(e,n,oe,ee,Z,ne),ie={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:_,slideRects:k,animation:Q,axis:S,direction:E,dragHandler:B2(S,E,e,r,o,X,U2(S,o),G,Q,ee,Z,J,U,i,P,p,h,g,.68,x),eventStore:ne,percentOfView:P,index:U,indexPrevious:H,limit:B,location:G,offsetLocation:Y,options:a,resizeHandler:K2(t,i,o,n,S,b,C),scrollBody:Z,scrollBounds:Y2(B,Y,X,Z,P),scrollLooper:q2(z,B,Y,[G,Y,X]),scrollProgress:te,scrollSnapList:V.map(te.get),scrollSnaps:V,scrollTarget:J,scrollTo:ee,slideLooper:oE(S,E,N,z,A,O,M,V,Y,n),slideFocus:ae,slidesHandler:iE(t,i,w),slidesInView:re,slideIndexes:K,slideRegistry:oe,slidesToScroll:I,target:X,translate:s1(S,E,t)};return ie}function uE(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((e=>e!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r}};return r}O2.displayName="CardFooter";const dE={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function fE(e){function t(e,t){return o1(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=md(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>md(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function pE(e){let t=[];return{init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function Qp(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=fE(o),i=pE(a),l=vd(),u=uE(),{mergeOptions:s,optionsAtMedia:c,optionsMediaQueries:d}=a,{on:f,off:p,emit:h}=u,m=S;let v,g,y,b,w=!1,x=s(dE,Qp.globalOptions),C=s(x),_=[];function k(t){const n=cE(e,y,b,r,o,t,u);if(t.loop&&!n.slideLooper.canLoop()){return k(Object.assign({},t,{loop:!1}))}return n}function E(t,n){w||(x=s(x,t),C=c(x),_=n||_,function(){const{container:t,slides:n}=C;y=(bv(t)?e.querySelector(t):t)||e.children[0];const r=bv(n)?y.querySelectorAll(n):n;b=[].slice.call(r||y.children)}(),v=k(C),d([x,..._.map((({options:e})=>e))]).forEach((e=>l.add(e,"change",S))),C.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(),v.eventHandler.init(j),v.resizeHandler.init(j),v.slidesHandler.init(j),v.options.loop&&v.slideLooper.loop(),y.offsetParent&&b.length&&v.dragHandler.init(j),g=i.init(j,_)))}function S(e,t){const n=R();N(),E(s({startIndex:n},e),t),u.emit("reInit")}function N(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),l.clear()}function P(e,t,n){!C.active||w||(v.scrollBody.useBaseFriction().useDuration(!0===t?0:C.duration),v.scrollTo.index(e,n||0))}function R(){return v.index.get()}const j={canScrollNext:function(){return v.index.add(1).get()!==R()},canScrollPrev:function(){return v.index.add(-1).get()!==R()},containerNode:function(){return y},internalEngine:function(){return v},destroy:function(){w||(w=!0,l.clear(),N(),u.emit("destroy"))},off:p,on:f,emit:h,plugins:function(){return g},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){P(v.index.add(1).get(),e,-1)},scrollPrev:function(e){P(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.location.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:P,selectedScrollSnap:R,slideNodes:function(){return b},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return E(t,n),setTimeout((()=>u.emit("init")),0),j}function Qv(e={},t=[]){const n=Qe(e),r=Qe(t),[o,a]=st(),[i,l]=st(),u=bt((()=>{o&&o.reInit(n.current,r.current)}),[o]);return ut((()=>{if(D2()&&i){Qp.globalOptions=Qv.globalOptions;const e=Qp(i,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)}),[i,a]),ut((()=>{Hv(n.current,e)||(n.current=e,u())}),[e,u]),ut((()=>{M2(r.current,t)||(r.current=t,u())}),[t,u]),[l,o]}Qp.globalOptions=void 0,Qv.globalOptions=void 0;const l1=ga("",{variants:{variant:{fullHeight:"absolute bg-base_white_90 top-[0] h-[calc(100%-35px)] w-[32px] border-0 rounded-none transform-none text-slate-700 [&>svg]:text-slate-700 [&>svg]:size-[37px] [&>svg]:stroke-[3px]",bottom:"size-[20px] bottom-[0] rounded-[2px] bg-slate-900_50 disabled:opacity-1 hover:bg-slate-900_50 [&:disabled>svg]:text-slate-900_20 [&>svg]:text-white [&>svg]:size-[20px]"},position:{left:"",right:""}},compoundVariants:[{variant:"fullHeight",position:"left",class:"rounded-tl-[6px] left-0"},{variant:"fullHeight",position:"right",class:"rounded-tr-[6px] right-0"},{variant:"bottom",position:"left",class:"mr-[6px]"}]}),c1=C.createContext(null),fh=()=>{const e=C.useContext(c1);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},hE=C.forwardRef((({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i},l)=>{const[u,s]=Qv({...t,axis:"horizontal"===e?"x":"y"},r),[c,d]=C.useState(!1),[f,p]=C.useState(!1),h=C.useCallback((e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))}),[]),m=C.useCallback((()=>{null==s||s.scrollPrev()}),[s]),v=C.useCallback((()=>{null==s||s.scrollNext()}),[s]),g=C.useCallback((e=>{"ArrowLeft"===e.key?(e.preventDefault(),m()):"ArrowRight"===e.key&&(e.preventDefault(),v())}),[m,v]);return C.useEffect((()=>{!s||!n||n(s)}),[s,n]),C.useEffect((()=>{if(s)return h(s),s.on("reInit",h),s.on("select",h),()=>{null==s||s.off("select",h)}}),[s,h]),W.jsx(c1.Provider,{value:{carouselRef:u,api:s,opts:t,orientation:e||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:m,scrollNext:v,canScrollPrev:c,canScrollNext:f},children:W.jsx("div",{ref:l,onKeyDownCapture:g,className:$e("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})}));hE.displayName="Carousel";const mE=C.forwardRef((({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=fh();return W.jsx("div",{ref:r,className:"overflow-hidden",children:W.jsx("div",{ref:n,className:$e("flex","horizontal"===o?"":"-mt-4 flex-col",e),...t})})}));mE.displayName="CarouselContent";const vE=C.forwardRef((({className:e,sideGap:t,isFullPreview:n,...r},o)=>{const{orientation:a}=fh();return W.jsx("div",{ref:o,role:"group","aria-roledescription":"slide",style:{...n&&{width:"100%"},marginRight:t&&`${t}px`,maxWidth:t&&`calc(100% - ${t}px)`},className:$e("min-w-0 shrink-0 grow-0","horizontal"===a?!t&&"pr-[10px]":"pt-4",e),...r})}));vE.displayName="CarouselItem";const gE=C.forwardRef((({className:e,variant:t="fullHeight",size:n="icon",...r},o)=>{const{scrollPrev:a,canScrollPrev:i,opts:l}=fh(),u=$e(("fullHeight"===t&&!i||!(null!=l&&l.active))&&"hidden",l1({variant:t,position:"left"}),e);return W.jsxs(sh,{ref:o,variant:"outline",size:n,className:u,disabled:!i,onClick:a,...r,children:[W.jsx(dS,{}),W.jsx("span",{className:"sr-only",children:"Previous slide"})]})}));gE.displayName="CarouselPrevious";const yE=C.forwardRef((({className:e,variant:t="fullHeight",size:n="icon",...r},o)=>{const{scrollNext:a,canScrollNext:i,opts:l}=fh(),u=$e(("fullHeight"===t&&!i||!(null!=l&&l.active))&&"hidden",l1({variant:t,position:"right"}),e);return W.jsxs(sh,{ref:o,variant:"outline",size:n,className:u,disabled:!i,onClick:a,...r,children:[W.jsx(hy,{}),W.jsx("span",{className:"sr-only",children:"Next slide"})]})}));function ph(e){const t=Qe({value:e,previous:e});return xs((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function hh(e){const[t,n]=st(void 0);return Hn((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}yE.displayName="CarouselNext";const u1="Checkbox",[xE,V6]=xr(u1),[wE,bE]=xE(u1),$E=me(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:u="on",onCheckedChange:s,...c}=e,[d,f]=st(null),p=yt(t,(e=>f(e))),h=Qe(!1),m=!d||!!d.closest("form"),[v=!1,g]=Ho({prop:o,defaultProp:a,onChange:s}),y=Qe(v);return ut((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),j(wE,{scope:n,state:v,disabled:l},j(rt.button,ie({type:"button",role:"checkbox","aria-checked":ys(v)?"mixed":v,"aria-required":i,"data-state":d1(v),"data-disabled":l?"":void 0,disabled:l,value:u},c,{ref:p,onKeyDown:Ve(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Ve(e.onClick,(e=>{g((e=>!!ys(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&j(CE,{control:d,bubbles:!h.current,name:r,value:u,checked:v,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))})),_E="CheckboxIndicator",SE=me(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=bE(_E,n);return j(vo,{present:r||ys(a.state)||!0===a.state},j(rt.span,ie({"data-state":d1(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),CE=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=Qe(null),i=ph(n),l=hh(t);return ut((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=ys(n),o.call(e,!ys(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),j("input",ie({type:"checkbox","aria-hidden":!0,defaultChecked:!ys(n)&&n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ys(e){return"indeterminate"===e}function d1(e){return ys(e)?"indeterminate":e?"checked":"unchecked"}const f1=$E,EE=SE,k0=ga("",{variants:{size:{default:"h-4 w-4",20:"size-[20px]",24:"size-[24px]",32:"size-[32px]"},variant:{default:"peer shrink-0 rounded-sm border border-slate-700 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:border-slate-700 data-[state=checked]:bg-slate-700 data-[state=checked]:text-primary-foreground",dark:"shrink-0 bg-slate-900_50 data-[state=checked]:bg-slate-700 rounded-[4px] border-[2px] data-[state=checked]:text-primary-foreground border-slate-100 [&_svg]:size-[24px] [&_svg]:border-none"}},defaultVariants:{size:"default",variant:"default"}}),kE=C.forwardRef((({className:e,size:t,variant:n,...r},o)=>W.jsx(f1,{ref:o,className:$e(e,k0({size:t,variant:n})),...r,children:W.jsx(EE,{className:$e("flex items-center justify-center text-current"),children:W.jsx(Lv,{className:$e(k0({size:t}))})})})));kE.displayName=f1.displayName;var P0=1,PE=.9,NE=.8,RE=.17,ov=.1,iv=.999,AE=.9999,TE=.99,OE=/[\\\/_+.#"@\[\(\{&]/,IE=/[\\\/_+.#"@\[\(\{&]/g,DE=/[\s-]/,p1=/[\s-]/g;function $v(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?P0:TE;var l=`${o},${a}`;if(void 0!==i[l])return i[l];for(var u,s,c,d,f=r.charAt(a),p=n.indexOf(f,o),h=0;p>=0;)(u=$v(e,t,n,r,p+1,a+1,i))>h&&(p===o?u*=P0:OE.test(e.charAt(p-1))?(u*=NE,(c=e.slice(o,p-1).match(IE))&&o>0&&(u*=Math.pow(iv,c.length))):DE.test(e.charAt(p-1))?(u*=PE,(d=e.slice(o,p-1).match(p1))&&o>0&&(u*=Math.pow(iv,d.length))):(u*=RE,o>0&&(u*=Math.pow(iv,p-o))),e.charAt(p)!==t.charAt(a)&&(u*=AE)),(u<ov&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&((s=$v(e,t,n,r,p+1,a+2,i))*ov>u&&(u=s*ov)),u>h&&(h=u),p=n.indexOf(f,p+1);return i[l]=h,h}function N0(e){return e.toLowerCase().replace(p1," ")}function ME(e,t,n){return $v(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,N0(e),N0(t),0,0,{})}var ld='[cmdk-group=""]',av='[cmdk-group-items=""]',LE='[cmdk-group-heading=""]',qv='[cmdk-item=""]',R0=`${qv}:not([aria-disabled="true"])`,_v="cmdk-item-select",ms="data-value",FE=(e,t,n)=>ME(e,t,n),h1=C.createContext(void 0),Ed=()=>C.useContext(h1),m1=C.createContext(void 0),Zv=()=>C.useContext(m1),v1=C.createContext(void 0),g1=C.forwardRef(((e,t)=>{let n=Zl((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Zl((()=>new Set)),o=Zl((()=>new Map)),a=Zl((()=>new Map)),i=Zl((()=>new Set)),l=y1(e),{label:u,children:s,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:v=!0,...g}=e,y=C.useId(),b=C.useId(),w=C.useId(),x=C.useRef(null),_=XE();$s((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,k.emit()}}),[c]),$s((()=>{_(6,j)}),[]);let k=C.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)R(),N(),_(1,P);else if("value"===e&&(r||_(5,j),void 0!==(null==(o=l.current)?void 0:o.value))){let e=t??"";return void(null==(i=(a=l.current).onValueChange)||i.call(a,e))}k.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),E=C.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,S(t,r)),_(2,(()=>{N(),k.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,(()=>{R(),N(),n.current.value||P(),k.emit()})),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=D();_(4,(()=>{R(),(null==t?void 0:t.getAttribute("id"))===e&&P(),k.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:m,listId:y,inputId:w,labelId:b,listInnerRef:x})),[]);function S(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:FE;return e?a(e,n.current.search,t):0}function N(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),a=0;r.forEach((t=>{let n=e.get(t);a=Math.max(n,a)})),t.push([n,a])}));let r=x.current;A().sort(((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)})).forEach((e=>{let t=e.closest(av);t?t.appendChild(e.parentElement===t?e:e.closest(`${av} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${av} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${ld}[${ms}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function P(){let e=A().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(ms);k.setState("value",t||void 0)}function R(){var e,t,i,u;if(!n.current.search||!1===l.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let s=0;for(let o of r.current){let r=S(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(i=a.current.get(o))?void 0:i.keywords)?u:[]);n.current.filtered.items.set(o,r),r>0&&s++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=s}function j(){var e,t,n;let r=D();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(ld))?void 0:t.querySelector(LE))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function D(){var e;return null==(e=x.current)?void 0:e.querySelector(`${qv}[aria-selected="true"]`)}function A(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(R0))}function O(e){let t=A()[e];t&&k.setState("value",t.getAttribute(ms))}function T(e){var t;let n=D(),r=A(),o=r.findIndex((e=>e===n)),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&k.setState("value",a.getAttribute(ms))}function L(e){let t,n=D(),r=null==n?void 0:n.closest(ld);for(;r&&!t;)r=e>0?GE(r,ld):YE(r,ld),t=null==r?void 0:r.querySelector(R0);t?k.setState("value",t.getAttribute(ms)):T(e)}let I=()=>O(A().length-1),M=e=>{e.preventDefault(),e.metaKey?I():e.altKey?L(1):T(1)},W=e=>{e.preventDefault(),e.metaKey?O(0):e.altKey?L(-1):T(-1)};return C.createElement(rt.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":v&&e.ctrlKey&&W(e);break;case"ArrowUp":W(e);break;case"Home":e.preventDefault(),O(0);break;case"End":e.preventDefault(),I();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=D();if(t){let e=new Event(_v);t.dispatchEvent(e)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:qE},u),mh(e,(e=>C.createElement(m1.Provider,{value:k},C.createElement(h1.Provider,{value:E},e)))))})),jE=C.forwardRef(((e,t)=>{var n,r;let o=C.useId(),a=C.useRef(null),i=C.useContext(v1),l=Ed(),u=y1(e),s=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;$s((()=>{if(!s)return l.item(o,null==i?void 0:i.id)}),[s]);let c=x1(o,a,[e.value,e.children,a],e.keywords),d=Zv(),f=_s((e=>e.value&&e.value===c.current)),p=_s((e=>!(!s&&!1!==l.filter())||(!e.search||e.filtered.items.get(o)>0)));function h(){var e,t;m(),null==(t=(e=u.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(C.useEffect((()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(_v,h),()=>t.removeEventListener(_v,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:v,value:g,onSelect:y,forceMount:b,keywords:w,...x}=e;return C.createElement(rt.div,{ref:gd([a,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||l.disablePointerSelection?void 0:m,onClick:v?void 0:h},e.children)})),zE=C.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=C.useId(),l=C.useRef(null),u=C.useRef(null),s=C.useId(),c=Ed(),d=_s((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i))));$s((()=>c.group(i)),[]),x1(i,l,[e.value,e.heading,u]);let f=C.useMemo((()=>({id:i,forceMount:o})),[o]);return C.createElement(rt.div,{ref:gd([l,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&C.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},n),mh(e,(e=>C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?s:void 0},C.createElement(v1.Provider,{value:f},e)))))})),WE=C.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=C.useRef(null),a=_s((e=>!e.search));return n||a?C.createElement(rt.div,{ref:gd([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),BE=C.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=Zv(),i=_s((e=>e.search)),l=_s((e=>e.value)),u=Ed(),s=C.useMemo((()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${qv}[${ms}="${encodeURIComponent(l)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return C.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),C.createElement(rt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),UE=C.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=C.useRef(null),i=C.useRef(null),l=Ed();return C.useEffect((()=>{if(i.current&&a.current){let e,t=i.current,n=a.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),C.createElement(rt.div,{ref:gd([a,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:l.listId},mh(e,(e=>C.createElement("div",{ref:gd([i,l.listInnerRef]),"cmdk-list-sizer":""},e))))})),VE=C.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...l}=e;return C.createElement(zy,{open:n,onOpenChange:r},C.createElement(Wy,{container:i},C.createElement(By,{"cmdk-overlay":"",className:o}),C.createElement(Uy,{"aria-label":e.label,"cmdk-dialog":"",className:a},C.createElement(g1,{ref:t,...l}))))})),HE=C.forwardRef(((e,t)=>_s((e=>0===e.filtered.count))?C.createElement(rt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),KE=C.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return C.createElement(rt.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},mh(e,(e=>C.createElement("div",{"aria-hidden":!0},e))))})),wr=Object.assign(g1,{List:UE,Item:jE,Input:BE,Group:zE,Separator:WE,Dialog:VE,Empty:HE,Loading:KE});function GE(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function YE(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function y1(e){let t=C.useRef(e);return $s((()=>{t.current=e})),t}var $s=typeof window>"u"?C.useEffect:C.useLayoutEffect;function Zl(e){let t=C.useRef();return void 0===t.current&&(t.current=e()),t}function gd(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function _s(e){let t=Zv(),n=()=>e(t.snapshot());return C.useSyncExternalStore(t.subscribe,n,n)}function x1(e,t,n,r=[]){let o=C.useRef(),a=Ed();return $s((()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),u=r.map((e=>e.trim()));a.value(e,l,u),null==(i=t.current)||i.setAttribute(ms,l),o.current=l})),o}var XE=()=>{let[e,t]=C.useState(),n=Zl((()=>new Map));return $s((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function QE(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function mh({asChild:e,children:t},n){return e&&C.isValidElement(t)?C.cloneElement(QE(t),{ref:t.ref},n(t.props.children)):n(t)}var qE={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function fa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function ZE(e,t){const n=C.createContext(t);function r(e){const{children:t,...r}=e,o=C.useMemo((()=>r),Object.values(r));return W.jsx(n.Provider,{value:o,children:t})}return r.displayName=e+"Provider",[r,function(r){const o=C.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function JE(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>C.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return C.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=C.createContext(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,u=C.useMemo((()=>i),Object.values(i));return W.jsx(l.Provider,{value:u,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,u=C.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},e3(r,...t)]}function e3(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return C.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var qp=null!=globalThis&&globalThis.document?C.useLayoutEffect:()=>{},t3=C.useId||(()=>{}),n3=0;function sv(e){const[t,n]=C.useState(t3());return qp((()=>{e||n((e=>e??String(n3++)))}),[e]),e||(t?`radix-${t}`:"")}function Ss(e){const t=C.useRef(e);return C.useEffect((()=>{t.current=e})),C.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function r3({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=o3({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,l=Ss(n);return[i,C.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[a,e,o,l])]}function o3({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,o=C.useRef(r),a=Ss(t);return C.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}var i3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$i=i3.reduce(((e,t)=>{const n=C.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?Sd:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),W.jsx(a,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function a3(e,t){e&&Yo.flushSync((()=>e.dispatchEvent(t)))}function s3(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ss(e);C.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var A0,l3="DismissableLayer",Sv="dismissableLayer.update",c3="dismissableLayer.pointerDownOutside",u3="dismissableLayer.focusOutside",w1=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b1=C.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,s=C.useContext(w1),[c,d]=C.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=C.useState({}),h=ks(t,(e=>d(e))),m=Array.from(s.layers),[v]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=c?m.indexOf(c):-1,b=s.layersWithOutsidePointerEventsDisabled.size>0,w=y>=g,x=p3((e=>{const t=e.target,n=[...s.branches].some((e=>e.contains(t)));!w||n||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f),_=h3((e=>{const t=e.target;[...s.branches].some((e=>e.contains(t)))||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f);return s3((e=>{y===s.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),f),C.useEffect((()=>{if(c)return n&&(0===s.layersWithOutsidePointerEventsDisabled.size&&(A0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(c)),s.layers.add(c),T0(),()=>{n&&1===s.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=A0)}}),[c,f,n,s]),C.useEffect((()=>()=>{c&&(s.layers.delete(c),s.layersWithOutsidePointerEventsDisabled.delete(c),T0())}),[c,s]),C.useEffect((()=>{const e=()=>p({});return document.addEventListener(Sv,e),()=>document.removeEventListener(Sv,e)}),[]),W.jsx($i.div,{...u,ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:fa(e.onFocusCapture,_.onFocusCapture),onBlurCapture:fa(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:fa(e.onPointerDownCapture,x.onPointerDownCapture)})}));b1.displayName=l3;var d3="DismissableLayerBranch",f3=C.forwardRef(((e,t)=>{const n=C.useContext(w1),r=C.useRef(null),o=ks(t,r);return C.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),W.jsx($i.div,{...e,ref:o})}));function p3(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ss(e),r=C.useRef(!1),o=C.useRef((()=>{}));return C.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){$1(c3,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function h3(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ss(e),r=C.useRef(!1);return C.useEffect((()=>{const e=e=>{e.target&&!r.current&&$1(u3,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function T0(){const e=new CustomEvent(Sv);document.dispatchEvent(e)}function $1(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?a3(o,a):o.dispatchEvent(a)}f3.displayName=d3;var lv="focusScope.autoFocusOnMount",cv="focusScope.autoFocusOnUnmount",O0={bubbles:!1,cancelable:!0},m3="FocusScope",_1=C.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=C.useState(null),s=Ss(o),c=Ss(a),d=C.useRef(null),f=ks(t,(e=>u(e))),p=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect((()=>{if(r){let e=function(e){if(p.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:da(d.current,{select:!0})},t=function(e){if(p.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||da(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&da(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,p.paused]),C.useEffect((()=>{if(l){D0.add(p);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(lv,O0);l.addEventListener(lv,s),l.dispatchEvent(t),t.defaultPrevented||(v3(b3(S1(l)),{select:!0}),document.activeElement===e&&da(l))}return()=>{l.removeEventListener(lv,s),setTimeout((()=>{const t=new CustomEvent(cv,O0);l.addEventListener(cv,c),l.dispatchEvent(t),t.defaultPrevented||da(e??document.body,{select:!0}),l.removeEventListener(cv,c),D0.remove(p)}),0)}}}),[l,s,c,p]);const h=C.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=g3(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&da(a,{select:!0})):(e.preventDefault(),n&&da(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return W.jsx($i.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})}));function v3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(da(r,{select:t}),document.activeElement!==n)return}function g3(e){const t=S1(e);return[I0(t,e),I0(t.reverse(),e)]}function S1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I0(e,t){for(const n of e)if(!y3(n,{upTo:t}))return n}function y3(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function x3(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&x3(e)&&t&&e.select()}}_1.displayName=m3;var D0=w3();function w3(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=M0(e,t),e.unshift(t)},remove(t){var n;e=M0(e,t),null==(n=e[0])||n.resume()}}}function M0(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function b3(e){return e.filter((e=>"A"!==e.tagName))}var $3="Portal",C1=C.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[a,i]=C.useState(!1);qp((()=>i(!0)),[]);const l=r||a&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return l?gy.createPortal(W.jsx($i.div,{...o,ref:t}),l):null}));function _3(e,t){return C.useReducer(((e,n)=>t[e][n]??e),e)}C1.displayName=$3;var vh=e=>{const{present:t,children:n}=e,r=S3(t),o="function"==typeof n?n({present:r.isPresent}):C.Children.only(n),a=ks(r.ref,C3(o));return"function"==typeof n||r.isPresent?C.cloneElement(o,{ref:a}):null};function S3(e){const[t,n]=C.useState(),r=C.useRef({}),o=C.useRef(e),a=C.useRef("none"),i=e?"mounted":"unmounted",[l,u]=_3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect((()=>{const e=zp(r.current);a.current="mounted"===l?e:"none"}),[l]),qp((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=zp(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),qp((()=>{if(t){const e=e=>{const n=zp(r.current).includes(e.animationName);e.target===t&&n&&Yo.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=zp(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:C.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function zp(e){return(null==e?void 0:e.animationName)||"none"}function C3(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}vh.displayName="Presence";var uv=0;function E3(){C.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??L0()),document.body.insertAdjacentElement("beforeend",e[1]??L0()),uv++,()=>{1===uv&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),uv--}}),[])}function L0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var E1=Sy(),dv=function(){},gh=C.forwardRef((function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:dv,onWheelCapture:dv,onTouchMoveCapture:dv}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=e.gapMode,b=Bv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=_y([n,t]),_=Vn(Vn({},b),o);return C.createElement(C.Fragment,null,c&&C.createElement(w,{sideCar:E1,removeScrollBar:s,shards:d,noIsolation:p,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:y}),i?C.cloneElement(C.Children.only(l),Vn(Vn({},_),{ref:x})):C.createElement(g,Vn({},_,{className:u,ref:x}),l))}));gh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},gh.classNames={fullWidth:dd,zeroRight:ud};var Cv=!1;if(typeof window<"u")try{var Wp=Object.defineProperty({},"passive",{get:function(){return Cv=!0,!0}});window.addEventListener("test",Wp,Wp),window.removeEventListener("test",Wp,Wp)}catch{Cv=!1}var Ql=!!Cv&&{passive:!1},k3=function(e){return"TEXTAREA"===e.tagName},k1=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!k3(e)&&"visible"===n[t])},P3=function(e){return k1(e,"overflowY")},N3=function(e){return k1(e,"overflowX")},F0=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),P1(e,r)){var o=N1(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},R3=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},A3=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},P1=function(e,t){return"v"===e?P3(t):N3(t)},N1=function(e,t){return"v"===e?R3(t):A3(t)},T3=function(e,t){return"h"===e&&"rtl"===t?-1:1},O3=function(e,t,n,r,o){var a=T3(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,u=t.contains(l),s=!1,c=i>0,d=0,f=0;do{var p=N1(e,l),h=p[0],m=p[1]-p[2]-a*h;(h||m)&&P1(e,l)&&(d+=m,f+=h),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(s=!0),s},Bp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},j0=function(e){return[e.deltaX,e.deltaY]},z0=function(e){return e&&"current"in e?e.current:e},I3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},D3=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},M3=0,ql=[];function L3(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),o=C.useState(M3++)[0],a=C.useState(Uv)[0],i=C.useRef(e);C.useEffect((function(){i.current=e}),[e]),C.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=$y([e.lockRef.current],(e.shards||[]).map(z0),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=C.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=Bp(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],s="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=F0(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=F0(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return O3(p,t,e,"h"===p?u:s,!0)}),[]),u=C.useCallback((function(e){var n=e;if(ql.length&&ql[ql.length-1]===a){var r="deltaY"in n?j0(n):Bp(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&I3(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(i.current.shards||[]).map(z0).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?l(n,u[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=C.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:F3(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),c=C.useCallback((function(e){n.current=Bp(e),r.current=void 0}),[]),d=C.useCallback((function(t){s(t.type,j0(t),t.target,l(t,e.lockRef.current))}),[]),f=C.useCallback((function(t){s(t.type,Bp(t),t.target,l(t,e.lockRef.current))}),[]);C.useEffect((function(){return ql.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Ql),document.addEventListener("touchmove",u,Ql),document.addEventListener("touchstart",c,Ql),function(){ql=ql.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Ql),document.removeEventListener("touchmove",u,Ql),document.removeEventListener("touchstart",c,Ql)}}),[]);var p=e.removeScrollBar,h=e.inert;return C.createElement(C.Fragment,null,h?C.createElement(a,{styles:D3(o)}):null,p?C.createElement(Py,{gapMode:e.gapMode}):null)}function F3(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const j3=Ey(E1,L3);var R1=C.forwardRef((function(e,t){return C.createElement(gh,Vn({},e,{ref:t,sideCar:j3}))}));R1.classNames=gh.classNames;var Jv="Dialog",[A1,H6]=JE(Jv),[z3,yo]=A1(Jv),T1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=C.useRef(null),u=C.useRef(null),[s=!1,c]=r3({prop:r,defaultProp:o,onChange:a});return W.jsx(z3,{scope:t,triggerRef:l,contentRef:u,contentId:sv(),titleId:sv(),descriptionId:sv(),open:s,onOpenChange:c,onOpenToggle:C.useCallback((()=>c((e=>!e))),[c]),modal:i,children:n})};T1.displayName=Jv;var O1="DialogTrigger",I1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(O1,n),a=ks(t,o.triggerRef);return W.jsx($i.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ng(o.open),...r,ref:a,onClick:fa(e.onClick,o.onOpenToggle)})}));I1.displayName=O1;var eg="DialogPortal",[W3,D1]=A1(eg,{forceMount:void 0}),M1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=yo(eg,t);return W.jsx(W3,{scope:t,forceMount:n,children:C.Children.map(r,(e=>W.jsx(vh,{present:n||a.open,children:W.jsx(C1,{asChild:!0,container:o,children:e})})))})};M1.displayName=eg;var Zp="DialogOverlay",L1=C.forwardRef(((e,t)=>{const n=D1(Zp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=yo(Zp,e.__scopeDialog);return a.modal?W.jsx(vh,{present:r||a.open,children:W.jsx(B3,{...o,ref:t})}):null}));L1.displayName=Zp;var B3=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(Zp,n);return W.jsx(R1,{as:Sd,allowPinchZoom:!0,shards:[o.contentRef],children:W.jsx($i.div,{"data-state":ng(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Cs="DialogContent",F1=C.forwardRef(((e,t)=>{const n=D1(Cs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=yo(Cs,e.__scopeDialog);return W.jsx(vh,{present:r||a.open,children:a.modal?W.jsx(U3,{...o,ref:t}):W.jsx(V3,{...o,ref:t})})}));F1.displayName=Cs;var U3=C.forwardRef(((e,t)=>{const n=yo(Cs,e.__scopeDialog),r=C.useRef(null),o=ks(t,n.contentRef,r);return C.useEffect((()=>{const e=r.current;if(e)return dh(e)}),[]),W.jsx(j1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fa(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:fa(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:fa(e.onFocusOutside,(e=>e.preventDefault()))})})),V3=C.forwardRef(((e,t)=>{const n=yo(Cs,e.__scopeDialog),r=C.useRef(!1),o=C.useRef(!1);return W.jsx(j1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),j1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=yo(Cs,n),u=C.useRef(null),s=ks(t,u);return E3(),W.jsxs(W.Fragment,{children:[W.jsx(_1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:W.jsx(b1,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ng(l.open),...i,ref:s,onDismiss:()=>l.onOpenChange(!1)})}),W.jsxs(W.Fragment,{children:[W.jsx(H3,{titleId:l.titleId}),W.jsx(G3,{contentRef:u,descriptionId:l.descriptionId})]})]})})),tg="DialogTitle",z1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(tg,n);return W.jsx($i.h2,{id:o.titleId,...r,ref:t})}));z1.displayName=tg;var W1="DialogDescription",B1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(W1,n);return W.jsx($i.p,{id:o.descriptionId,...r,ref:t})}));B1.displayName=W1;var U1="DialogClose",V1=C.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=yo(U1,n);return W.jsx($i.button,{type:"button",...r,ref:t,onClick:fa(e.onClick,(()=>o.onOpenChange(!1)))})}));function ng(e){return e?"open":"closed"}V1.displayName=U1;var H1="DialogTitleWarning",[K6,K1]=ZE(H1,{contentName:Cs,titleName:tg,docsSlug:"dialog"}),H3=({titleId:e})=>{const t=K1(H1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},K3="DialogDescriptionWarning",G3=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${K1(K3).contentName}}.`;return C.useEffect((()=>{var r;const o=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},G1=T1,Y1=I1,X1=M1,yh=L1,xh=F1,wh=z1,bh=B1,$h=V1;const Y3=G1,G6=Y1,X3=X1,Y6=$h,Q1=C.forwardRef((({className:e,...t},n)=>(C.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{e.forEach((e=>e&&(e.style.filter="none")))}}),[]),W.jsx(yh,{ref:n,"data-testid":"dialog_overlay",className:$e("fixed inset-0 z-50 bg-slate-900 opacity-[0.7] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));Q1.displayName=yh.displayName;const Q3=ga("",{variants:{closeVariant:{insideCard:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",outsideCard:"fixed right-[30px] top-[30px] z-50"}},defaultVariants:{closeVariant:"outsideCard"}}),q3=ga("",{variants:{closeSize:{small:"h-4 w-4",big:"h-[42px] w-[42px]"}},defaultVariants:{closeSize:"big"}}),q1=C.forwardRef((({className:e,showClose:t=!0,closeVariant:n="outsideCard",closeSize:r="big",children:o,overlayClassName:a,onOverlayClick:i,...l},u)=>{const s=W.jsxs($h,{className:$e(Q3({closeVariant:n})),children:[W.jsx(vy,{color:"#94A3B8",className:$e(q3({closeSize:r}))}),W.jsx("span",{className:"sr-only",children:"Close"})]});return W.jsxs(X3,{children:[W.jsx(Q1,{className:a,onClick:i}),t&&"outsideCard"===n&&s,W.jsxs(xh,{ref:u,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100vw-40px)] translate-x-[-50%] translate-y-[-50%] gap-4 !overflow-visible rounded-lg border bg-background p-5 shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:max-w-lg [&>div]:min-w-0",e),...l,children:[W.jsx(Z1,{className:"hidden",children:"DialogTitle"}),W.jsx(J1,{className:"hidden",children:"DialogDescription"}),o,t&&"insideCard"===n&&s]})]})}));q1.displayName=xh.displayName;const Z3=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Z3.displayName="DialogHeader";const J3=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});J3.displayName="DialogFooter";const Z1=C.forwardRef((({className:e,...t},n)=>W.jsx(wh,{ref:n,className:$e("text-lg font-semibold leading-none tracking-tight",e),...t})));Z1.displayName=wh.displayName;const J1=C.forwardRef((({className:e,...t},n)=>W.jsx(bh,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));J1.displayName=bh.displayName;const ex=C.forwardRef((({className:e,...t},n)=>W.jsx(wr,{ref:n,className:$e("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));ex.displayName=wr.displayName;const X6=({children:e,...t})=>W.jsx(Y3,{...t,children:W.jsx(q1,{className:"overflow-hidden p-0 shadow-lg",children:W.jsx(ex,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),ek=C.forwardRef((({className:e,...t},n)=>W.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:W.jsx(wr.Input,{ref:n,className:$e("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));ek.displayName=wr.Input.displayName;const tk=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.List,{ref:n,className:$e("mt-[8px] max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));tk.displayName=wr.List.displayName;const nk=C.forwardRef(((e,t)=>W.jsx(wr.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));nk.displayName=wr.Empty.displayName;const rk=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.Group,{ref:n,className:$e("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));rk.displayName=wr.Group.displayName;const ok=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.Separator,{ref:n,className:$e("-mx-1 h-px bg-border",e),...t})));ok.displayName=wr.Separator.displayName;const ik=C.forwardRef((({className:e,...t},n)=>W.jsx(wr.Item,{ref:n,className:$e("relative flex max-w-[215px] cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));ik.displayName=wr.Item.displayName;const ak=({className:e,...t})=>W.jsx("span",{className:$e("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});function rg(e){const t=e+"CollectionProvider",[n,r]=xr(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e+"CollectionSlot",l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=Jr.useRef(null),a=Jr.useRef(new Map).current;return Jr.createElement(o,{scope:t,itemMap:a,collectionRef:r},n)},Slot:Jr.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=yt(t,a(i,n).collectionRef);return Jr.createElement(ws,{ref:o},r)})),ItemSlot:Jr.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,i=Jr.useRef(null),s=yt(t,i),c=a(l,n);return Jr.useEffect((()=>(c.itemMap.set(i,{ref:i,...o}),()=>{c.itemMap.delete(i)}))),Jr.createElement(ws,{[u]:"",ref:s},r)}))},function(t){const n=a(e+"CollectionConsumer",t);return Jr.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}ak.displayName="CommandShortcut";const sk=pd(void 0);function kd(e){const t=ah(sk);return e||t||"ltr"}const lk=["top","right","bottom","left"],pa=Math.min,Mr=Math.max,Jp=Math.round,Up=Math.floor,ha=e=>({x:e,y:e}),ck={left:"right",right:"left",bottom:"top",top:"bottom"},uk={start:"end",end:"start"};function Ev(e,t,n){return Mr(e,pa(t,n))}function xi(e,t){return"function"==typeof e?e(t):e}function wi(e){return e.split("-")[0]}function ic(e){return e.split("-")[1]}function og(e){return"x"===e?"y":"x"}function ig(e){return"y"===e?"height":"width"}function ma(e){return["top","bottom"].includes(wi(e))?"y":"x"}function ag(e){return og(ma(e))}function dk(e,t,n){void 0===n&&(n=!1);const r=ic(e),o=ag(e),a=ig(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=eh(i)),[i,eh(i)]}function fk(e){const t=eh(e);return[kv(e),t,kv(t)]}function kv(e){return e.replace(/start|end/g,(e=>uk[e]))}function pk(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function hk(e,t,n,r){const o=ic(e);let a=pk(wi(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(kv)))),a}function eh(e){return e.replace(/left|right|bottom|top/g,(e=>ck[e]))}function mk(e){return{top:0,right:0,bottom:0,left:0,...e}}function tx(e){return"number"!=typeof e?mk(e):{top:e,right:e,bottom:e,left:e}}function th(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function W0(e,t,n){let{reference:r,floating:o}=e;const a=ma(t),i=ag(t),l=ig(i),u=wi(t),s="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(u){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ic(t)){case"start":p[i]-=f*(n&&s?-1:1);break;case"end":p[i]+=f*(n&&s?-1:1)}return p}const vk=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),u=await(null==i.isRTL?void 0:i.isRTL(t));let s=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=W0(s,r,u),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:a,fn:m}=l[n],{x:v,y:g,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:i,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[a]:{...p[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=W0(s,f,u))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function yd(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=xi(t,e),h=tx(p),m=l[f?"floating"===d?"reference":"floating":d],v=th(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:s,rootBoundary:c,strategy:u})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=th(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}const gk=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:u}=t,{element:s,padding:c=0}=xi(e,t)||{};if(null==s)return{};const d=tx(c),f={x:n,y:r},p=ag(o),h=ig(p),m=await i.getDimensions(s),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let _=C?C[b]:0;(!_||!await(null==i.isElement?void 0:i.isElement(C)))&&(_=l.floating[b]||a.floating[h]);const k=w/2-x/2,E=_/2-m[h]/2-1,S=pa(d[g],E),N=pa(d[y],E),P=S,R=_-m[h]-N,j=_/2-m[h]/2+k,D=Ev(P,j,R),A=!u.arrow&&null!=ic(o)&&j!==D&&a.reference[h]/2-(j<P?S:N)-m[h]/2<0,O=A?j<P?j-P:j-R:0;return{[p]:f[p]+O,data:{[p]:D,centerOffset:j-D-O,...A&&{alignmentOffset:O}},reset:A}}}),yk=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:u,elements:s}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=xi(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=wi(o),y=ma(l),b=wi(l)===l,w=await(null==u.isRTL?void 0:u.isRTL(s.floating)),x=f||(b||!m?[eh(l)]:fk(l)),C="none"!==h;!f&&C&&x.push(...hk(l,m,h,w));const _=[l,...x],k=await yd(t,v),E=[];let S=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&E.push(k[g]),d){const e=dk(o,i,w);E.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:E}],!E.every((e=>e<=0))){var N,P;const e=((null==(N=a.flip)?void 0:N.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(P=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=S.filter((e=>{if(C){const t=ma(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}};function B0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U0(e){return lk.some((t=>e[t]>=0))}const xk=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xi(e,t);switch(r){case"referenceHidden":{const e=B0(await yd(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:U0(e)}}}case"escaped":{const e=B0(await yd(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:U0(e)}}}default:return{}}}}};async function wk(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=wi(n),l=ic(n),u="y"===ma(n),s=["left","top"].includes(i)?-1:1,c=a&&u?-1:1,d=xi(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}const bk=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,u=await wk(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},$k=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=xi(e,t),s={x:n,y:r},c=await yd(t,u),d=ma(wi(o)),f=og(d);let p=s[f],h=s[d];if(a){const e="y"===f?"bottom":"right";p=Ev(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";h=Ev(h+c["y"===d?"top":"left"],h,h-c[e])}const m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},_k=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:u=!0,crossAxis:s=!0}=xi(e,t),c={x:n,y:r},d=ma(o),f=og(d);let p=c[f],h=c[d];const m=xi(l,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis,n=a.reference[f]+a.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(wi(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Sk=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:u=()=>{},...s}=xi(e,t),c=await yd(t,s),d=wi(o),f=ic(o),p="y"===ma(o),{width:h,height:m}=a.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,w=pa(m-c[v],y),x=pa(h-c[g],b),C=!t.middlewareData.shift;let _=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(_=y),C&&!f){const e=Mr(c.left,0),t=Mr(c.right,0),n=Mr(c.top,0),r=Mr(c.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Mr(c.left,c.right)):_=m-2*(0!==n||0!==r?n+r:Mr(c.top,c.bottom))}await u({...t,availableWidth:k,availableHeight:_});const E=await i.getDimensions(l.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function _h(){return typeof window<"u"}function va(e){return nx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _i(e){var t;return null==(t=(nx(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nx(e){return!!_h()&&(e instanceof Node||e instanceof Lr(e).Node)}function Ko(e){return!!_h()&&(e instanceof Element||e instanceof Lr(e).Element)}function Go(e){return!!_h()&&(e instanceof HTMLElement||e instanceof Lr(e).HTMLElement)}function V0(e){return!(!_h()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Lr(e).ShadowRoot)}function Pd(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ck(e){return["table","td","th"].includes(va(e))}function Ek(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function sg(e){const t=lg(),n=Ko(e)?no(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function rx(e){let t=tc(e);for(;Go(t)&&!Sh(t);){if(sg(t))return t;if(Ek(t))return null;t=tc(t)}return null}function lg(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Sh(e){return["html","body","#document"].includes(va(e))}function no(e){return Lr(e).getComputedStyle(e)}function Ch(e){return Ko(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tc(e){if("html"===va(e))return e;const t=e.assignedSlot||e.parentNode||V0(e)&&e.host||_i(e);return V0(t)?t.host:t}function ox(e){const t=tc(e);return Sh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Go(t)&&Pd(t)?t:ox(t)}function xd(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ox(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Lr(o);if(a){const e=kk(i);return t.concat(i,i.visualViewport||[],Pd(o)?o:[],e&&n?xd(e):[])}return t.concat(o,xd(o,[],n))}function kk(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ix(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Go(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Jp(n)!==a||Jp(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function cg(e){return Ko(e)?e:e.contextElement}function Jl(e){const t=cg(e);if(!Go(t))return ha(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ix(t);let i=(a?Jp(n.width):n.width)/r,l=(a?Jp(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Pk=ha(0);function ax(e){const t=Lr(e);return lg()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pk}function Nk(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Lr(e))&&t}function Es(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=cg(e);let i=ha(1);t&&(r?Ko(r)&&(i=Jl(r)):i=Jl(e));const l=Nk(a,n,r)?ax(a):ha(0);let u=(o.left+l.x)/i.x,s=(o.top+l.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Lr(a),t=r&&Ko(r)?Lr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Jl(n),t=n.getBoundingClientRect(),r=no(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,s*=e.y,c*=e.x,d*=e.y,u+=o,s+=a,n=Lr(n).frameElement}}return th({width:c,height:d,x:u,y:s})}const Rk=[":popover-open",":modal"];function sx(e){let t=!1,n=0,r=0;if(Rk.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=rx(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Ak(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=_i(r),[i]=t?sx(t.floating):[!1];if(r===a||i)return n;let l={scrollLeft:0,scrollTop:0},u=ha(1);const s=ha(0),c=Go(r);if((c||!c&&"fixed"!==o)&&(("body"!==va(r)||Pd(a))&&(l=Ch(r)),Go(r))){const e=Es(r);u=Jl(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+s.x,y:n.y*u.y-l.scrollTop*u.y+s.y}}function Tk(e){return Array.from(e.getClientRects())}function lx(e){return Es(_i(e)).left+Ch(e).scrollLeft}function Ok(e){const t=_i(e),n=Ch(e),r=e.ownerDocument.body,o=Mr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Mr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+lx(e);const l=-n.scrollTop;return"rtl"===no(r).direction&&(i+=Mr(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}function Ik(e,t){const n=Lr(e),r=_i(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;const e=lg();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l,y:u}}function Dk(e,t){const n=Es(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Go(e)?Jl(e):ha(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}function H0(e,t,n){let r;if("viewport"===t)r=Ik(e,n);else if("document"===t)r=Ok(_i(e));else if(Ko(t))r=Dk(t,n);else{const n=ax(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return th(r)}function cx(e,t){const n=tc(e);return!(n===t||!Ko(n)||Sh(n))&&("fixed"===no(n).position||cx(n,t))}function Mk(e,t){const n=t.get(e);if(n)return n;let r=xd(e,[],!1).filter((e=>Ko(e)&&"body"!==va(e))),o=null;const a="fixed"===no(e).position;let i=a?tc(e):e;for(;Ko(i)&&!Sh(i);){const t=no(i),n=sg(i);!n&&"fixed"===t.position&&(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Pd(i)&&!n&&cx(e,i))?r=r.filter((e=>e!==i)):o=t,i=tc(i)}return t.set(e,r),r}function Lk(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Mk(t,this._c):[].concat(n),r],i=a[0],l=a.reduce(((e,n)=>{const r=H0(t,n,o);return e.top=Mr(r.top,e.top),e.right=pa(r.right,e.right),e.bottom=pa(r.bottom,e.bottom),e.left=Mr(r.left,e.left),e}),H0(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fk(e){const{width:t,height:n}=ix(e);return{width:t,height:n}}function jk(e,t,n,r){const o=Go(t),a=_i(t),i="fixed"===n,l=Es(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const s=ha(0);if(o||!o&&!i)if(("body"!==va(t)||Pd(a))&&(u=Ch(t)),o){const e=Es(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=lx(a));let c=l.left+u.scrollLeft-s.x,d=l.top+u.scrollTop-s.y;const[f,p,h]=sx(r);return f&&(c+=p,d+=h,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:l.width,height:l.height}}function K0(e,t){return Go(e)&&"fixed"!==no(e).position?t?t(e):e.offsetParent:null}function ux(e,t){const n=Lr(e);if(!Go(e))return n;let r=K0(e,t);for(;r&&Ck(r)&&"static"===no(r).position;)r=K0(r,t);return r&&("html"===va(r)||"body"===va(r)&&"static"===no(r).position&&!sg(r))?n:r||rx(e)||n}const zk=async function(e){const t=this.getOffsetParent||ux,n=this.getDimensions;return{reference:jk(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function Wk(e){return"rtl"===no(e).direction}const Bk={convertOffsetParentRelativeRectToViewportRelativeRect:Ak,getDocumentElement:_i,getClippingRect:Lk,getOffsetParent:ux,getElementRects:zk,getClientRects:Tk,getDimensions:Fk,getScale:Jl,isElement:Ko,isRTL:Wk};function Uk(e,t){let n,r=null;const o=_i(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();const{left:s,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-Up(c)+"px "+-Up(o.clientWidth-(s+d))+"px "+-Up(o.clientHeight-(c+f))+"px "+-Up(s)+"px",threshold:Mr(0,pa(1,u))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==u){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,p)}r.observe(e)}(!0),a}function dx(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,s=cg(e),c=o||a?[...s?xd(s):[],...xd(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=s&&l?Uk(s,n):null;let f=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),s&&!u&&p.observe(s),p.observe(t));let h,m=u?Es(e):null;return u&&function t(){const r=Es(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(h)}}const Vk=$k,Hk=yk,Kk=Sk,Gk=xk,G0=gk,Yk=_k,Xk=(e,t,n)=>{const r=new Map,o={platform:Bk,...n},a={...o.platform,_c:r};return vk(e,t,{...o,platform:a})};var Yp=typeof document<"u"?ry:ut;function nh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!nh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||nh(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function fx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Y0(e,t){const n=fx(e);return Math.round(t*n)/n}function fv(e){const t=C.useRef(e);return Yp((()=>{t.current=e})),t}function px(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:u,open:s}=e,[c,d]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=C.useState(r);nh(f,r)||p(r);const[h,m]=C.useState(null),[v,g]=C.useState(null),y=C.useCallback((e=>{e!==_.current&&(_.current=e,m(e))}),[]),b=C.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=a||h,x=i||v,_=C.useRef(null),k=C.useRef(null),E=C.useRef(c),S=null!=u,N=fv(u),P=fv(o),R=fv(s),j=C.useCallback((()=>{if(!_.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};P.current&&(e.platform=P.current),Xk(_.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};D.current&&!nh(E.current,t)&&(E.current=t,Yo.flushSync((()=>{d(t)})))}))}),[f,t,n,P,R]);Yp((()=>{!1===s&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[s]);const D=C.useRef(!1);Yp((()=>(D.current=!0,()=>{D.current=!1})),[]),Yp((()=>{if(w&&(_.current=w),x&&(k.current=x),w&&x){if(N.current)return N.current(w,x,j);j()}}),[w,x,j,N,S]);const A=C.useMemo((()=>({reference:_,floating:k,setReference:y,setFloating:b})),[y,b]),O=C.useMemo((()=>({reference:w,floating:x})),[w,x]),T=C.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=Y0(O.floating,c.x),r=Y0(O.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...fx(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,O.floating,c.x,c.y]);return C.useMemo((()=>({...c,update:j,refs:A,elements:O,floatingStyles:T})),[c,j,A,O,T])}const Qk=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?G0({element:n.current,padding:r}).fn(t):{}:n?G0({element:n,padding:r}).fn(t):{}}}),hx=(e,t)=>({...bk(e),options:[e,t]}),mx=(e,t)=>({...Vk(e),options:[e,t]}),vx=(e,t)=>({...Yk(e),options:[e,t]}),gx=(e,t)=>({...Hk(e),options:[e,t]}),yx=(e,t)=>({...Kk(e),options:[e,t]}),xx=(e,t)=>({...Gk(e),options:[e,t]}),wx=(e,t)=>({...Qk(e),options:[e,t]}),bx="Popper",[$x,Eh]=xr(bx),[qk,_x]=$x(bx),Zk=e=>{const{__scopePopper:t,children:n}=e,[r,o]=st(null);return j(qk,{scope:t,anchor:r,onAnchorChange:o},n)},Jk="PopperAnchor",eP=me(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=_x(Jk,n),i=Qe(null),l=yt(t,i);return ut((()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:j(rt.div,ie({},o,{ref:l}))})),Sx="PopperContent",[tP,Q6]=$x(Sx),nP=me(((e,t)=>{var n,r,o,a,i,l,u,s;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:C,..._}=e,k=_x(Sx,c),[E,S]=st(null),N=yt(t,(e=>S(e))),[P,R]=st(null),D=hh(P),A=null!==(n=null==D?void 0:D.width)&&void 0!==n?n:0,O=null!==(r=null==D?void 0:D.height)&&void 0!==r?r:0,T=d+("center"!==p?"-"+p:""),L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(g)?g:[g],M=I.length>0,W={padding:L,boundary:I.filter(rP),altBoundary:M},{refs:z,floatingStyles:F,placement:$,isPositioned:V,middlewareData:B}=px({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>dx(...e,{animationFrame:"always"===x}),elements:{reference:k.anchor},middleware:[hx({mainAxis:f+O,alignmentAxis:h}),v&&mx({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?vx():void 0,...W}),v&&gx({...W}),yx({...W,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),P&&wx({element:P,padding:m}),oP({arrowWidth:A,arrowHeight:O}),w&&xx({strategy:"referenceHidden",...W})]}),[U,H]=Cx($),K=yr(C);Hn((()=>{V&&(null==K||K())}),[V,K]);const Q=null===(o=B.arrow)||void 0===o?void 0:o.x,q=null===(a=B.arrow)||void 0===a?void 0:a.y,G=0!==(null===(i=B.arrow)||void 0===i?void 0:i.centerOffset),[Y,X]=st();return Hn((()=>{E&&X(window.getComputedStyle(E).zIndex)}),[E]),j("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:V?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(l=B.transformOrigin)||void 0===l?void 0:l.x,null===(u=B.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},j(tP,{scope:c,placedSide:U,onArrowChange:R,arrowX:Q,arrowY:q,shouldHideArrow:G},j(rt.div,ie({"data-side":U,"data-align":H},_,{ref:N,style:{..._.style,animation:V?void 0:"none",opacity:null!==(s=B.hide)&&void 0!==s&&s.referenceHidden?0:void 0}}))))}));function rP(e){return null!==e}const oP=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:l,rects:u,middlewareData:s}=t,c=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Cx(l),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=s.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(i=s.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=-f+"px"):"top"===p?(y=c?m:`${v}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${g}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function Cx(e){const[t,n="center"]=e.split("-");return[t,n]}const ug=Zk,Ex=eP,kx=nP,pv="rovingFocusGroup.onEntryFocus",iP={bubbles:!1,cancelable:!0},dg="RovingFocusGroup",[Pv,Px,aP]=rg(dg),[sP,ac]=xr(dg,[aP]),[lP,cP]=sP(dg),uP=me(((e,t)=>j(Pv.Provider,{scope:e.__scopeRovingFocusGroup},j(Pv.Slot,{scope:e.__scopeRovingFocusGroup},j(dP,ie({},e,{ref:t})))))),dP=me(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:s,...c}=e,d=Qe(null),f=yt(t,d),p=kd(a),[h=null,m]=Ho({prop:i,defaultProp:l,onChange:u}),[v,g]=st(!1),y=yr(s),b=Px(n),w=Qe(!1),[x,C]=st(0);return ut((()=>{const e=d.current;if(e)return e.addEventListener(pv,y),()=>e.removeEventListener(pv,y)}),[y]),j(lP,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:h,onItemFocus:bt((e=>m(e)),[m]),onItemShiftTab:bt((()=>g(!0)),[]),onFocusableItemAdd:bt((()=>C((e=>e+1))),[]),onFocusableItemRemove:bt((()=>C((e=>e-1))),[])},j(rt.div,ie({tabIndex:v||0===x?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:Ve(e.onMouseDown,(()=>{w.current=!0})),onFocus:Ve(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(pv,iP);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));Nx([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:Ve(e.onBlur,(()=>g(!1)))})))})),fP="RovingFocusGroupItem",pP=me(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=to(),u=a||l,s=cP(fP,n),c=s.currentTabStopId===u,d=Px(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=s;return ut((()=>{if(r)return f(),()=>p()}),[r,f,p]),j(Pv.ItemSlot,{scope:n,id:u,focusable:r,active:o},j(rt.span,ie({tabIndex:c?0:-1,"data-orientation":s.orientation},i,{ref:t,onMouseDown:Ve(e.onMouseDown,(e=>{r?s.onItemFocus(u):e.preventDefault()})),onFocus:Ve(e.onFocus,(()=>s.onItemFocus(u))),onKeyDown:Ve(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void s.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=vP(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=s.loop?gP(n,r+1):n.slice(r+1)}setTimeout((()=>Nx(n)))}}))})))})),hP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mP(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function vP(e,t,n){const r=mP(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return hP[r]}function Nx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function gP(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const fg=uP,pg=pP,Nv=["Enter"," "],yP=["ArrowDown","PageUp","Home"],Rx=["ArrowUp","PageDown","End"],xP=[...yP,...Rx],wP={ltr:[...Nv,"ArrowRight"],rtl:[...Nv,"ArrowLeft"]},bP={ltr:["ArrowLeft"],rtl:["ArrowRight"]},kh="Menu",[wd,$P,_P]=rg(kh),[Ps,Ax]=xr(kh,[_P,Eh,ac]),Ph=Eh(),Tx=ac(),[Ox,xa]=Ps(kh),[SP,Nd]=Ps(kh),CP=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=Ph(t),[u,s]=st(null),c=Qe(!1),d=yr(a),f=kd(o);return ut((()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),j(ug,l,j(Ox,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:s},j(SP,{scope:t,onClose:bt((()=>d(!1)),[d]),isUsingKeyboardRef:c,dir:f,modal:i},r)))},Ix=me(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ph(n);return j(Ex,ie({},o,r,{ref:t}))})),Dx="MenuPortal",[EP,Mx]=Ps(Dx,{forceMount:void 0}),kP=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=xa(Dx,t);return j(EP,{scope:t,forceMount:n},j(vo,{present:n||a.open},j(zv,{asChild:!0,container:o},r)))},mo="MenuContent",[PP,hg]=Ps(mo),NP=me(((e,t)=>{const n=Mx(mo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=xa(mo,e.__scopeMenu),i=Nd(mo,e.__scopeMenu);return j(wd.Provider,{scope:e.__scopeMenu},j(vo,{present:r||a.open},j(wd.Slot,{scope:e.__scopeMenu},i.modal?j(RP,ie({},o,{ref:t})):j(AP,ie({},o,{ref:t})))))})),RP=me(((e,t)=>{const n=xa(mo,e.__scopeMenu),r=Qe(null),o=yt(t,r);return ut((()=>{const e=r.current;if(e)return dh(e)}),[]),j(mg,ie({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ve(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),AP=me(((e,t)=>{const n=xa(mo,e.__scopeMenu);return j(mg,ie({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),mg=me(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...m}=e,v=xa(mo,n),g=Nd(mo,n),y=Ph(n),b=Tx(n),w=$P(n),[x,C]=st(null),_=Qe(null),k=yt(t,_,v.onContentChange),E=Qe(0),S=Qe(""),N=Qe(0),P=Qe(null),R=Qe("right"),D=Qe(0),A=h?uh:rc,O=h?{as:ws,allowPinchZoom:!0}:void 0;ut((()=>()=>window.clearTimeout(E.current)),[]),Wv();const T=bt((e=>{var t,n;return R.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&ZP(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return j(PP,{scope:n,searchRef:S,onItemEnter:bt((e=>{T(e)&&e.preventDefault()}),[T]),onItemLeave:bt((e=>{var t;T(e)||(null===(t=_.current)||void 0===t||t.focus(),C(null))}),[T]),onTriggerLeave:bt((e=>{T(e)&&e.preventDefault()}),[T]),pointerGraceTimerRef:N,onPointerGraceIntentChange:bt((e=>{P.current=e}),[])},j(A,O,j(jv,{asChild:!0,trapped:o,onMountAutoFocus:Ve(a,(e=>{var t;e.preventDefault(),null===(t=_.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},j(Fv,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},j(fg,ie({asChild:!0},b,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:C,onEntryFocus:Ve(u,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()}))}),j(kx,ie({role:"menu","aria-orientation":"vertical","data-state":Ux(v.open),"data-radix-menu-content":"",dir:g.dir},y,m,{ref:k,style:{outline:"none",...m.style},onKeyDown:Ve(m.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=S.current+e,o=w().filter((e=>!e.disabled)),a=document.activeElement,i=null===(t=o.find((e=>e.ref.current===a)))||void 0===t?void 0:t.textValue,l=QP(o.map((e=>e.textValue)),r,i),u=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;(function e(t){S.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout((()=>e("")),1e3))})(r),u&&setTimeout((()=>u.focus()))})(e.key));const o=_.current;if(e.target!==o||!xP.includes(e.key))return;e.preventDefault();const a=w().filter((e=>!e.disabled)).map((e=>e.ref.current));Rx.includes(e.key)&&a.reverse(),YP(a)})),onBlur:Ve(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),S.current="")})),onPointerMove:Ve(e.onPointerMove,bd((e=>{const t=e.target,n=D.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>D.current?"right":"left";R.current=t,D.current=e.clientX}})))})))))))})),Lx=me(((e,t)=>{const{__scopeMenu:n,...r}=e;return j(rt.div,ie({role:"group"},r,{ref:t}))})),TP=me(((e,t)=>{const{__scopeMenu:n,...r}=e;return j(rt.div,ie({},r,{ref:t}))})),Rv="MenuItem",X0="menu.itemSelect",vg=me(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=Qe(null),i=Nd(Rv,e.__scopeMenu),l=hg(Rv,e.__scopeMenu),u=yt(t,a),s=Qe(!1);return j(Fx,ie({},o,{ref:u,disabled:n,onClick:Ve(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(X0,{bubbles:!0,cancelable:!0});e.addEventListener(X0,(e=>null==r?void 0:r(e)),{once:!0}),xy(e,t),t.defaultPrevented?s.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),s.current=!0},onPointerUp:Ve(e.onPointerUp,(e=>{var t;s.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:Ve(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||Nv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Fx=me(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=hg(Rv,n),l=Tx(n),u=Qe(null),s=yt(t,u),[c,d]=st(!1),[f,p]=st("");return ut((()=>{const e=u.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[a.children]),j(wd.ItemSlot,{scope:n,disabled:r,textValue:o??f},j(pg,ie({asChild:!0},l,{focusable:!r}),j(rt.div,ie({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:s,onPointerMove:Ve(e.onPointerMove,bd((e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:Ve(e.onPointerLeave,bd((e=>i.onItemLeave(e)))),onFocus:Ve(e.onFocus,(()=>d(!0))),onBlur:Ve(e.onBlur,(()=>d(!1)))}))))})),OP=me(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return j(zx,{scope:e.__scopeMenu,checked:n},j(vg,ie({role:"menuitemcheckbox","aria-checked":rh(n)?"mixed":n},o,{ref:t,"data-state":gg(n),onSelect:Ve(o.onSelect,(()=>null==r?void 0:r(!!rh(n)||!n)),{checkForDefaultPrevented:!1})})))})),IP="MenuRadioGroup",[DP,MP]=Ps(IP,{value:void 0,onValueChange:()=>{}}),LP=me(((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=yr(r);return j(DP,{scope:e.__scopeMenu,value:n,onValueChange:a},j(Lx,ie({},o,{ref:t})))})),FP="MenuRadioItem",jP=me(((e,t)=>{const{value:n,...r}=e,o=MP(FP,e.__scopeMenu),a=n===o.value;return j(zx,{scope:e.__scopeMenu,checked:a},j(vg,ie({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":gg(a),onSelect:Ve(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),jx="MenuItemIndicator",[zx,zP]=Ps(jx,{checked:!1}),WP=me(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=zP(jx,n);return j(vo,{present:r||rh(a.checked)||!0===a.checked},j(rt.span,ie({},o,{ref:t,"data-state":gg(a.checked)})))})),BP=me(((e,t)=>{const{__scopeMenu:n,...r}=e;return j(rt.div,ie({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Wx="MenuSub",[UP,Bx]=Ps(Wx),VP=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=xa(Wx,t),i=Ph(t),[l,u]=st(null),[s,c]=st(null),d=yr(o);return ut((()=>(!1===a.open&&d(!1),()=>d(!1))),[a.open,d]),j(ug,i,j(Ox,{scope:t,open:r,onOpenChange:d,content:s,onContentChange:c},j(UP,{scope:t,contentId:to(),triggerId:to(),trigger:l,onTriggerChange:u},n)))},Vp="MenuSubTrigger",HP=me(((e,t)=>{const n=xa(Vp,e.__scopeMenu),r=Nd(Vp,e.__scopeMenu),o=Bx(Vp,e.__scopeMenu),a=hg(Vp,e.__scopeMenu),i=Qe(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=a,s={__scopeMenu:e.__scopeMenu},c=bt((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return ut((()=>c),[c]),ut((()=>{const e=l.current;return()=>{window.clearTimeout(e),u(null)}}),[l,u]),j(Ix,ie({asChild:!0},s),j(Fx,ie({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ux(n.open)},e,{ref:lh(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ve(e.onPointerMove,bd((t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),c()}),100))}))),onPointerLeave:Ve(e.onPointerLeave,bd((e=>{var t;c();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===t,u=i?-5:5,s=r[i?"left":"right"],c=r[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+u,y:e.clientY},{x:s,y:r.top},{x:c,y:r.top},{x:c,y:r.bottom},{x:s,y:r.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:Ve(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;var i;e.disabled||o&&" "===t.key||!wP[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),KP="MenuSubContent",GP=me(((e,t)=>{const n=Mx(mo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=xa(mo,e.__scopeMenu),i=Nd(mo,e.__scopeMenu),l=Bx(KP,e.__scopeMenu),u=Qe(null),s=yt(t,u);return j(wd.Provider,{scope:e.__scopeMenu},j(vo,{present:r||a.open},j(wd.Slot,{scope:e.__scopeMenu},j(mg,ie({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:s,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=u.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Ve(e.onFocusOutside,(e=>{e.target!==l.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:Ve(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:Ve(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=bP[i.dir].includes(e.key);var r;t&&n&&(a.onOpenChange(!1),null===(r=l.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function Ux(e){return e?"open":"closed"}function rh(e){return"indeterminate"===e}function gg(e){return rh(e)?"indeterminate":e?"checked":"unchecked"}function YP(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XP(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function QP(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let a=XP(e,Math.max(o,0));1===r.length&&(a=a.filter((e=>e!==n)));const i=a.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function qP(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,l=t[e].y,u=t[a].x,s=t[a].y;l>r!=s>r&&n<(u-i)*(r-l)/(s-l)+i&&(o=!o)}return o}function ZP(e,t){if(!t)return!1;return qP({x:e.clientX,y:e.clientY},t)}function bd(e){return t=>"mouse"===t.pointerType?e(t):void 0}const JP=CP,eN=Ix,tN=kP,nN=NP,rN=Lx,oN=TP,iN=vg,aN=OP,sN=LP,lN=jP,cN=WP,uN=BP,dN=VP,fN=HP,pN=GP,Vx="DropdownMenu",[hN,q6]=xr(Vx,[Ax]),nr=Ax(),[mN,Hx]=hN(Vx),vN=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=nr(t),s=Qe(null),[c=!1,d]=Ho({prop:o,defaultProp:a,onChange:i});return j(mN,{scope:t,triggerId:to(),triggerRef:s,contentId:to(),open:c,onOpenChange:d,onOpenToggle:bt((()=>d((e=>!e))),[d]),modal:l},j(JP,ie({},u,{open:c,onOpenChange:d,dir:r,modal:l}),n))},gN="DropdownMenuTrigger",yN=me(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Hx(gN,n),i=nr(n);return j(eN,ie({asChild:!0},i),j(rt.button,ie({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:lh(t,a.triggerRef),onPointerDown:Ve(e.onPointerDown,(e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:Ve(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),xN=e=>{const{__scopeDropdownMenu:t,...n}=e,r=nr(t);return j(tN,ie({},r,n))},wN="DropdownMenuContent",bN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hx(wN,n),a=nr(n),i=Qe(!1);return j(nN,ie({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Ve(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:Ve(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(i.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),$N=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(rN,ie({},o,r,{ref:t}))})),_N=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(oN,ie({},o,r,{ref:t}))})),SN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(iN,ie({},o,r,{ref:t}))})),CN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(aN,ie({},o,r,{ref:t}))})),EN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(sN,ie({},o,r,{ref:t}))})),kN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(lN,ie({},o,r,{ref:t}))})),PN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(cN,ie({},o,r,{ref:t}))})),NN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(uN,ie({},o,r,{ref:t}))})),RN=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=nr(t),[l=!1,u]=Ho({prop:r,defaultProp:a,onChange:o});return j(dN,ie({},i,{open:l,onOpenChange:u}),n)},AN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(fN,ie({},o,r,{ref:t}))})),TN=me(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=nr(n);return j(pN,ie({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),ON=vN,IN=yN,Kx=xN,Gx=bN,DN=$N,Yx=_N,Xx=SN,Qx=CN,MN=EN,qx=kN,Zx=PN,Jx=NN,LN=RN,ew=AN,tw=TN,Z6=ON,J6=IN,eA=DN,tA=Kx,nA=LN,rA=MN,FN=C.forwardRef((({className:e,inset:t,children:n,...r},o)=>W.jsxs(ew,{ref:o,className:$e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,W.jsx(hy,{className:"ml-auto h-4 w-4"})]})));FN.displayName=ew.displayName;const jN=C.forwardRef((({className:e,...t},n)=>W.jsx(tw,{ref:n,className:$e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));jN.displayName=tw.displayName;const zN=C.forwardRef((({className:e,sideOffset:t=4,...n},r)=>W.jsx(Kx,{children:W.jsx(Gx,{ref:r,sideOffset:t,className:$e("z-[51] min-w-[8rem] overflow-hidden rounded-md border bg-popover p-[8px] text-popover-foreground shadow-md data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})));zN.displayName=Gx.displayName;const WN=C.forwardRef((({className:e,inset:t,...n},r)=>W.jsx(Xx,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));WN.displayName=Xx.displayName;const BN=C.forwardRef((({className:e,children:t,checked:n,...r},o)=>W.jsxs(Qx,{ref:o,className:$e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[W.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:W.jsx(Zx,{children:W.jsx(Lv,{className:"h-4 w-4"})})}),t]})));BN.displayName=Qx.displayName;const UN=C.forwardRef((({className:e,children:t,...n},r)=>W.jsxs(qx,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[W.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:W.jsx(Zx,{children:W.jsx(my,{className:"h-2 w-2 fill-current"})})}),t]})));UN.displayName=qx.displayName;const VN=C.forwardRef((({className:e,inset:t,...n},r)=>W.jsx(Yx,{ref:r,className:$e("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})));VN.displayName=Yx.displayName;const HN=C.forwardRef((({className:e,...t},n)=>W.jsx(Jx,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));HN.displayName=Jx.displayName;const KN=({className:e,...t})=>W.jsx("span",{className:$e("ml-auto text-xs tracking-widest opacity-60",e),...t});KN.displayName="DropdownMenuShortcut";const GN="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='NEW%20p-custom%20icons'%3e%3ccircle%20id='Ellipse%2027'%20cx='7'%20cy='7'%20r='5'%20fill='%23BD3131'%20stroke='%23BD3131'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector%2071'%20d='M5.19922%205.2002L8.73475%208.73573'%20stroke='white'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector%2072'%20d='M8.80078%205.2002L5.26525%208.73573'%20stroke='white'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",YN=me(((e,t)=>j(rt.label,ie({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),nw=YN,XN=ga("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),rw=C.forwardRef((({className:e,...t},n)=>W.jsx(nw,{ref:n,className:$e(XN(),e),...t})));rw.displayName=nw.displayName;const oA=l_,ow=C.createContext({}),iA=({...e})=>W.jsx(ow.Provider,{value:{name:e.name},children:W.jsx(c_,{...e})}),sc=()=>{const e=C.useContext(ow),t=C.useContext(iw),n=u_();e||(console.error("useFormContext must be used within a FormProvider"),console.log(111,e,"fieldContext"),console.log(111,t,"itemContext"));const{getFieldState:r,formState:o}=n,a=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},iw=C.createContext({}),QN=C.forwardRef((({className:e,...t},n)=>{const r=C.useId();return W.jsx(iw.Provider,{value:{id:r},children:W.jsx("div",{ref:n,className:$e("mt-[8px]",e),...t})})}));QN.displayName="FormItem";const qN=C.forwardRef((({className:e,isRequired:t,...n},r)=>{var o;const{formItemId:a}=sc();return W.jsx(rw,{ref:r,className:$e("mb-2 text-sm font-medium",e),htmlFor:a,...n,children:t?`*${null==(o=n.children)?void 0:o.toString()}`:n.children})}));qN.displayName="FormLabel";const ZN=C.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=sc();return W.jsx(Sd,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})}));ZN.displayName="FormControl";const JN=C.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=sc();return W.jsx("p",{ref:n,id:r,className:$e("text-sm text-muted-foreground",e),...t})}));JN.displayName="FormDescription";const eR=C.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=sc(),i=o?String(null==o?void 0:o.message):t;return i?W.jsxs("p",{ref:r,id:a,className:$e("flex items-center gap-[2px] pt-2 text-sm font-medium text-destructive",e),...n,children:[W.jsx("img",{src:GN,width:16,height:16,alt:"delete"})," ",i]}):null}));function eo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function aw(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>C.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return C.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=C.createContext(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,u=C.useMemo((()=>i),Object.values(i));return W.jsx(l.Provider,{value:u,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,u=C.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},tR(r,...t)]}function tR(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return C.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function lc(e){const t=C.useRef(e);return C.useEffect((()=>{t.current=e})),C.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function nR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=rR({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,l=lc(n);return[i,C.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[a,e,o,l])]}function rR({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,o=C.useRef(r),a=lc(t);return C.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}function oR(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function sw(...e){return t=>e.forEach((e=>oR(e,t)))}function cc(...e){return C.useCallback(sw(...e),e)}eR.displayName="FormMessage";var lw=C.forwardRef(((e,t)=>{const{children:n,...r}=e,o=C.Children.toArray(n),a=o.find(aR);if(a){const e=a.props.children,n=o.map((t=>t===a?C.Children.count(e)>1?C.Children.only(null):C.isValidElement(e)?e.props.children:null:t));return W.jsx(Av,{...r,ref:t,children:C.isValidElement(e)?C.cloneElement(e,void 0,n):null})}return W.jsx(Av,{...r,ref:t,children:n})}));lw.displayName="Slot";var Av=C.forwardRef(((e,t)=>{const{children:n,...r}=e;if(C.isValidElement(n)){const e=lR(n);return C.cloneElement(n,{...sR(r,n.props),ref:t?sw(t,e):e})}return C.Children.count(n)>1?C.Children.only(null):null}));Av.displayName="SlotClone";var iR=({children:e})=>W.jsx(W.Fragment,{children:e});function aR(e){return C.isValidElement(e)&&e.type===iR}function sR(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function lR(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var cR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],uc=cR.reduce(((e,t)=>{const n=C.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?lw:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),W.jsx(a,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function uR(e,t){e&&Yo.flushSync((()=>e.dispatchEvent(t)))}var dR="Arrow",cw=C.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return W.jsx(uc.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:W.jsx("polygon",{points:"0,0 30,0 15,10"})})}));cw.displayName=dR;var fR=cw,$d=null!=globalThis&&globalThis.document?C.useLayoutEffect:()=>{};function pR(e){const[t,n]=C.useState(void 0);return $d((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var yg="Popper",[uw,dw]=aw(yg),[hR,fw]=uw(yg),pw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=C.useState(null);return W.jsx(hR,{scope:t,anchor:r,onAnchorChange:o,children:n})};pw.displayName=yg;var hw="PopperAnchor",mw=C.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=fw(hw,n),i=C.useRef(null),l=cc(t,i);return C.useEffect((()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:W.jsx(uc.div,{...o,ref:l})}));mw.displayName=hw;var xg="PopperContent",[mR,vR]=uw(xg),vw=C.forwardRef(((e,t)=>{var n,r,o,a,i,l;const{__scopePopper:u,side:s="bottom",sideOffset:c=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:w,...x}=e,_=fw(xg,u),[k,E]=C.useState(null),S=cc(t,(e=>E(e))),[N,P]=C.useState(null),R=pR(N),j=(null==R?void 0:R.width)??0,D=(null==R?void 0:R.height)??0,A=s+("center"!==d?"-"+d:""),O="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},T=Array.isArray(m)?m:[m],L=T.length>0,I={padding:O,boundary:T.filter(yR),altBoundary:L},{refs:M,floatingStyles:z,placement:F,isPositioned:$,middlewareData:V}=px({strategy:"fixed",placement:A,whileElementsMounted:(...e)=>dx(...e,{animationFrame:"always"===b}),elements:{reference:_.anchor},middleware:[hx({mainAxis:c+D,alignmentAxis:f}),h&&mx({mainAxis:!0,crossAxis:!1,limiter:"partial"===g?vx():void 0,...I}),h&&gx({...I}),yx({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),N&&wx({element:N,padding:p}),xR({arrowWidth:j,arrowHeight:D}),y&&xx({strategy:"referenceHidden",...I})]}),[B,U]=xw(F),H=lc(w);$d((()=>{$&&(null==H||H())}),[$,H]);const K=null==(n=V.arrow)?void 0:n.x,Q=null==(r=V.arrow)?void 0:r.y,q=0!==(null==(o=V.arrow)?void 0:o.centerOffset),[G,Y]=C.useState();return $d((()=>{k&&Y(window.getComputedStyle(k).zIndex)}),[k]),W.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:$?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[null==(a=V.transformOrigin)?void 0:a.x,null==(i=V.transformOrigin)?void 0:i.y].join(" "),...(null==(l=V.hide)?void 0:l.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:W.jsx(mR,{scope:u,placedSide:B,onArrowChange:P,arrowX:K,arrowY:Q,shouldHideArrow:q,children:W.jsx(uc.div,{"data-side":B,"data-align":U,...x,ref:S,style:{...x.style,animation:$?void 0:"none"}})})})}));vw.displayName=xg;var gw="PopperArrow",gR={top:"bottom",right:"left",bottom:"top",left:"right"},yw=C.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=vR(gw,n),a=gR[o.placedSide];return W.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:W.jsx(fR,{...r,ref:t,style:{...r.style,display:"block"}})})}));function yR(e){return null!==e}yw.displayName=gw;var xR=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:a,rects:i,middlewareData:l}=t,u=0!==(null==(n=l.arrow)?void 0:n.centerOffset),s=u?0:e.arrowWidth,c=u?0:e.arrowHeight,[d,f]=xw(a),p={start:"0%",center:"50%",end:"100%"}[f],h=((null==(r=l.arrow)?void 0:r.x)??0)+s/2,m=((null==(o=l.arrow)?void 0:o.y)??0)+c/2;let v="",g="";return"bottom"===d?(v=u?p:`${h}px`,g=-c+"px"):"top"===d?(v=u?p:`${h}px`,g=`${i.floating.height+c}px`):"right"===d?(v=-c+"px",g=u?p:`${m}px`):"left"===d&&(v=`${i.floating.width+c}px`,g=u?p:`${m}px`),{data:{x:v,y:g}}}});function xw(e){const[t,n="center"]=e.split("-");return[t,n]}var wR=pw,bR=mw,$R=vw,_R=yw;function SR(e,t){return C.useReducer(((e,n)=>t[e][n]??e),e)}var ww=e=>{const{present:t,children:n}=e,r=CR(t),o="function"==typeof n?n({present:r.isPresent}):C.Children.only(n),a=cc(r.ref,ER(o));return"function"==typeof n||r.isPresent?C.cloneElement(o,{ref:a}):null};function CR(e){const[t,n]=C.useState(),r=C.useRef({}),o=C.useRef(e),a=C.useRef("none"),i=e?"mounted":"unmounted",[l,u]=SR(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect((()=>{const e=Hp(r.current);a.current="mounted"===l?e:"none"}),[l]),$d((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Hp(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),$d((()=>{if(t){const e=e=>{const n=Hp(r.current).includes(e.animationName);e.target===t&&n&&Yo.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=Hp(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:C.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Hp(e){return(null==e?void 0:e.animationName)||"none"}function ER(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function kR(e,t=(null==globalThis?void 0:globalThis.document)){const n=lc(e);C.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}ww.displayName="Presence";var Q0,PR="DismissableLayer",Tv="dismissableLayer.update",NR="dismissableLayer.pointerDownOutside",RR="dismissableLayer.focusOutside",bw=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$w=C.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,s=C.useContext(bw),[c,d]=C.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=C.useState({}),h=cc(t,(e=>d(e))),m=Array.from(s.layers),[v]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=c?m.indexOf(c):-1,b=s.layersWithOutsidePointerEventsDisabled.size>0,w=y>=g,x=OR((e=>{const t=e.target,n=[...s.branches].some((e=>e.contains(t)));!w||n||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f),_=IR((e=>{const t=e.target;[...s.branches].some((e=>e.contains(t)))||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==l||l())}),f);return kR((e=>{y===s.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),f),C.useEffect((()=>{if(c)return n&&(0===s.layersWithOutsidePointerEventsDisabled.size&&(Q0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(c)),s.layers.add(c),q0(),()=>{n&&1===s.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Q0)}}),[c,f,n,s]),C.useEffect((()=>()=>{c&&(s.layers.delete(c),s.layersWithOutsidePointerEventsDisabled.delete(c),q0())}),[c,s]),C.useEffect((()=>{const e=()=>p({});return document.addEventListener(Tv,e),()=>document.removeEventListener(Tv,e)}),[]),W.jsx(uc.div,{...u,ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:eo(e.onFocusCapture,_.onFocusCapture),onBlurCapture:eo(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:eo(e.onPointerDownCapture,x.onPointerDownCapture)})}));$w.displayName=PR;var AR="DismissableLayerBranch",TR=C.forwardRef(((e,t)=>{const n=C.useContext(bw),r=C.useRef(null),o=cc(t,r);return C.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),W.jsx(uc.div,{...e,ref:o})}));function OR(e,t=(null==globalThis?void 0:globalThis.document)){const n=lc(e),r=C.useRef(!1),o=C.useRef((()=>{}));return C.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){_w(NR,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function IR(e,t=(null==globalThis?void 0:globalThis.document)){const n=lc(e),r=C.useRef(!1);return C.useEffect((()=>{const e=e=>{e.target&&!r.current&&_w(RR,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function q0(){const e=new CustomEvent(Tv);document.dispatchEvent(e)}function _w(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uR(o,a):o.dispatchEvent(a)}TR.displayName=AR;var hv,wg="HoverCard",[Sw,aA]=aw(wg,[dw]),Nh=dw(),[DR,bg]=Sw(wg),Cw=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:l=300}=e,u=Nh(t),s=C.useRef(0),c=C.useRef(0),d=C.useRef(!1),f=C.useRef(!1),[p=!1,h]=nR({prop:r,defaultProp:o,onChange:a}),m=C.useCallback((()=>{clearTimeout(c.current),s.current=window.setTimeout((()=>h(!0)),i)}),[i,h]),v=C.useCallback((()=>{clearTimeout(s.current),!d.current&&!f.current&&(c.current=window.setTimeout((()=>h(!1)),l))}),[l,h]),g=C.useCallback((()=>h(!1)),[h]);return C.useEffect((()=>()=>{clearTimeout(s.current),clearTimeout(c.current)}),[]),W.jsx(DR,{scope:t,open:p,onOpenChange:h,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f,children:W.jsx(wR,{...u,children:n})})};Cw.displayName=wg;var Ew="HoverCardTrigger",kw=C.forwardRef(((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=bg(Ew,n),a=Nh(n);return W.jsx(bR,{asChild:!0,...a,children:W.jsx(uc.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:eo(e.onPointerEnter,ih(o.onOpen)),onPointerLeave:eo(e.onPointerLeave,ih(o.onClose)),onFocus:eo(e.onFocus,o.onOpen),onBlur:eo(e.onBlur,o.onClose),onTouchStart:eo(e.onTouchStart,(e=>e.preventDefault()))})})}));kw.displayName=Ew;var MR="HoverCardPortal",[sA,LR]=Sw(MR,{forceMount:void 0}),oh="HoverCardContent",Pw=C.forwardRef(((e,t)=>{const n=LR(oh,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=bg(oh,e.__scopeHoverCard);return W.jsx(ww,{present:r||a.open,children:W.jsx(FR,{"data-state":a.open?"open":"closed",...o,onPointerEnter:eo(e.onPointerEnter,ih(a.onOpen)),onPointerLeave:eo(e.onPointerLeave,ih(a.onClose)),ref:t})})}));Pw.displayName=oh;var FR=C.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...l}=e,u=bg(oh,n),s=Nh(n),c=C.useRef(null),d=cc(t,c),[f,p]=C.useState(!1);return C.useEffect((()=>{if(f){const e=document.body;return hv=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=hv,e.style.webkitUserSelect=hv}}}),[f]),C.useEffect((()=>{if(c.current){const e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null==(e=document.getSelection())?void 0:e.toString())&&(u.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}}),[u.isPointerDownOnContentRef,u.hasSelectionRef]),C.useEffect((()=>{c.current&&WR(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),W.jsx($w,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:eo(a,(e=>{e.preventDefault()})),onDismiss:u.onDismiss,children:W.jsx($R,{...s,...l,onPointerDown:eo(l.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0})),ref:d,style:{...l.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})})),jR="HoverCardArrow",zR=C.forwardRef(((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Nh(n);return W.jsx(_R,{...o,...r,ref:t})}));function ih(e){return t=>"touch"===t.pointerType?void 0:e()}function WR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}zR.displayName=jR;var BR=Cw,UR=kw,Nw=Pw;const lA=BR,cA=UR,VR=C.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>W.jsx(Nw,{ref:o,align:t,sideOffset:n,className:$e("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));VR.displayName=Nw.displayName;const HR=C.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=sc();return W.jsx("input",{type:t,className:$e(`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 ${!!o&&"border-red-dark focus-visible:border-input focus-visible:ring-red-dark"}`,e),ref:r,...n})}));HR.displayName="Input";const Rw="Radio",[KR,Aw]=xr(Rw),[GR,YR]=KR(Rw),XR=me(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:u,...s}=e,[c,d]=st(null),f=yt(t,(e=>d(e))),p=Qe(!1),h=!c||!!c.closest("form");return j(GR,{scope:n,checked:o,disabled:i},j(rt.button,ie({type:"button",role:"radio","aria-checked":o,"data-state":Tw(o),"data-disabled":i?"":void 0,disabled:i,value:l},s,{ref:f,onClick:Ve(e.onClick,(e=>{o||null==u||u(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&j(ZR,{control:c,bubbles:!p.current,name:r,value:l,checked:o,required:a,disabled:i,style:{transform:"translateX(-100%)"}}))})),QR="RadioIndicator",qR=me(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=YR(QR,n);return j(vo,{present:r||a.checked},j(rt.span,ie({"data-state":Tw(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))})),ZR=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=Qe(null),i=ph(n),l=hh(t);return ut((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),j("input",ie({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Tw(e){return e?"checked":"unchecked"}const JR=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ow="RadioGroup",[e7,uA]=xr(Ow,[ac,Aw]),Iw=ac(),Dw=Aw(),[t7,n7]=e7(Ow),r7=me(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:u,dir:s,loop:c=!0,onValueChange:d,...f}=e,p=Iw(n),h=kd(s),[m,v]=Ho({prop:a,defaultProp:o,onChange:d});return j(t7,{scope:n,name:r,required:i,disabled:l,value:m,onValueChange:v},j(fg,ie({asChild:!0},p,{orientation:u,dir:h,loop:c}),j(rt.div,ie({role:"radiogroup","aria-required":i,"aria-orientation":u,"data-disabled":l?"":void 0,dir:h},f,{ref:t}))))})),o7="RadioGroupItem",i7=me(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=n7(o7,n),i=a.disabled||r,l=Iw(n),u=Dw(n),s=Qe(null),c=yt(t,s),d=a.value===o.value,f=Qe(!1);return ut((()=>{const e=e=>{JR.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),j(pg,ie({asChild:!0},l,{focusable:!i,active:d}),j(XR,ie({disabled:i,required:a.required,checked:d},u,o,{name:a.name,ref:c,onCheck:()=>a.onValueChange(o.value),onKeyDown:Ve((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Ve(o.onFocus,(()=>{var e;f.current&&(null===(e=s.current)||void 0===e||e.click())}))})))})),a7=me(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Dw(n);return j(qR,ie({},o,r,{ref:t}))})),Mw=r7,Lw=i7,s7=a7,l7=C.forwardRef((({className:e,...t},n)=>W.jsx(Mw,{className:$e("grid gap-2",e),...t,ref:n})));l7.displayName=Mw.displayName;const c7=C.forwardRef((({className:e,...t},n)=>W.jsx(Lw,{ref:n,className:$e("aspect-square h-4 w-4 rounded-full border-[1.67px] border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:W.jsx(s7,{className:"flex items-center justify-center",children:W.jsx(my,{className:"h-2.5 w-2.5 fill-current text-current"})})})));function Z0(e,[t,n]){return Math.min(n,Math.max(t,e))}c7.displayName=Lw.displayName;const u7=me(((e,t)=>j(rt.span,ie({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),d7=[" ","Enter","ArrowUp","ArrowDown"],f7=[" ","Enter"],Rh="Select",[Ah,Th,p7]=rg(Rh),[dc,dA]=xr(Rh,[p7,Eh]),$g=Eh(),[h7,Ns]=dc(Rh),[m7,v7]=dc(Rh),g7=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:u,dir:s,name:c,autoComplete:d,disabled:f,required:p}=e,h=$g(t),[m,v]=st(null),[g,y]=st(null),[b,w]=st(!1),x=kd(s),[C=!1,_]=Ho({prop:r,defaultProp:o,onChange:a}),[k,E]=Ho({prop:i,defaultProp:l,onChange:u}),S=Qe(null),N=!m||!!m.closest("form"),[P,R]=st(new Set),D=Array.from(P).map((e=>e.props.value)).join(";");return j(ug,h,j(h7,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:to(),value:k,onValueChange:E,open:C,onOpenChange:_,dir:x,triggerPointerDownPosRef:S,disabled:f},j(Ah.Provider,{scope:t},j(m7,{scope:e.__scopeSelect,onNativeOptionAdd:bt((e=>{R((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:bt((e=>{R((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),N?j(Bw,{key:D,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:k,onChange:e=>E(e.target.value),disabled:f},void 0===k?j("option",{value:""}):null,Array.from(P)):null))},y7="SelectTrigger",x7=me(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=$g(n),i=Ns(y7,n),l=i.disabled||r,u=yt(t,i.onTriggerChange),s=Th(n),[c,d,f]=Uw((e=>{const t=s().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=Vw(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=()=>{l||(i.onOpenChange(!0),f())};return j(Ex,ie({asChild:!0},a),j(rt.button,ie({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Ww(i.value)?"":void 0},o,{ref:u,onClick:Ve(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:Ve(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:Ve(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&d7.includes(e.key)&&(p(),e.preventDefault())}))})))})),w7="SelectValue",b7=me(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,u=Ns(w7,n),{onValueNodeHasChildrenChange:s}=u,c=void 0!==a,d=yt(t,u.onValueNodeChange);return Hn((()=>{s(c)}),[s,c]),j(rt.span,ie({},l,{ref:d,style:{pointerEvents:"none"}}),Ww(u.value)?j(rc,null,i):a)})),$7=me(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return j(rt.span,ie({"aria-hidden":!0},o,{ref:t}),r||"▼")})),_7=e=>j(zv,ie({asChild:!0},e)),nc="SelectContent",S7=me(((e,t)=>{const n=Ns(nc,e.__scopeSelect),[r,o]=st();if(Hn((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?Yo.createPortal(j(Fw,{scope:e.__scopeSelect},j(Ah.Slot,{scope:e.__scopeSelect},j("div",null,e.children))),t):null}return j(C7,ie({},e,{ref:t}))})),yi=10,[Fw,Rs]=dc(nc),C7=me(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:u,align:s,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v,...g}=e,y=Ns(nc,n),[b,w]=st(null),[x,C]=st(null),_=yt(t,(e=>w(e))),[k,E]=st(null),[S,N]=st(null),P=Th(n),[R,D]=st(!1),A=Qe(!1);ut((()=>{if(b)return dh(b)}),[b]),Wv();const O=bt((e=>{const[t,...n]=P().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),null==n||n.focus(),document.activeElement!==o))return}),[P,x]),T=bt((()=>O([k,b])),[O,k,b]);ut((()=>{R&&T()}),[R,T]);const{onOpenChange:L,triggerPointerDownPosRef:I}=y;ut((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=I.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=I.current)||void 0===a?void 0:a.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),I.current=null};return null!==I.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,L,I]),ut((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,W]=Uw((e=>{const t=P().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=Vw(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),z=bt(((e,t,n)=>{const r=!A.current&&!n;(void 0!==y.value&&y.value===t||r)&&(E(e),r&&(A.current=!0))}),[y.value]),F=bt((()=>null==b?void 0:b.focus()),[b]),$=bt(((e,t,n)=>{const r=!A.current&&!n;(void 0!==y.value&&y.value===t||r)&&N(e)}),[y.value]),V="popper"===r?J0:E7,B=V===J0?{side:l,sideOffset:u,align:s,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v}:{};return j(Fw,{scope:n,content:b,viewport:x,onViewportChange:C,itemRefCallback:z,selectedItem:k,onItemLeave:F,itemTextRefCallback:$,focusSelectedItem:T,selectedItemText:S,position:r,isPositioned:R,searchRef:M},j(uh,{as:ws,allowPinchZoom:!0},j(jv,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Ve(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},j(Fv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},j(V,ie({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,B,{onPlaced:()=>D(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Ve(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&W(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))}))))))})),E7=me(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Ns(nc,n),i=Rs(nc,n),[l,u]=st(null),[s,c]=st(null),d=yt(t,(e=>c(e))),f=Th(n),p=Qe(!1),h=Qe(!0),{viewport:m,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=i,b=bt((()=>{if(a.trigger&&a.valueNode&&l&&s&&m&&v&&g){const e=a.trigger.getBoundingClientRect(),t=s.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,u=e.width+i,s=Math.max(u,t.width),c=window.innerWidth-yi,d=Z0(a,[yi,c-s]);l.style.minWidth=u+"px",l.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,u=e.width+i,s=Math.max(u,t.width),c=window.innerWidth-yi,d=Z0(a,[yi,c-s]);l.style.minWidth=u+"px",l.style.right=d+"px"}const i=f(),u=window.innerHeight-2*yi,c=m.scrollHeight,d=window.getComputedStyle(s),h=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+y+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*v.offsetHeight,w),C=window.getComputedStyle(m),_=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),E=e.top+e.height/2-yi,S=u-E,N=v.offsetHeight/2,P=h+y+(v.offsetTop+N),R=w-P;if(P<=E){const e=v===i[i.length-1].ref.current;l.style.bottom="0px";const t=s.clientHeight-m.offsetTop-m.offsetHeight,n=P+Math.max(S,N+(e?k:0)+t+b);l.style.height=n+"px"}else{const e=v===i[0].ref.current;l.style.top="0px";const t=Math.max(E,h+m.offsetTop+(e?_:0)+N)+R;l.style.height=t+"px",m.scrollTop=P-E+m.offsetTop}l.style.margin=`${yi}px 0`,l.style.minHeight=x+"px",l.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,a.trigger,a.valueNode,l,s,m,v,g,a.dir,r]);Hn((()=>b()),[b]);const[w,x]=st();Hn((()=>{s&&x(window.getComputedStyle(s).zIndex)}),[s]);const C=bt((e=>{e&&!0===h.current&&(b(),null==y||y(),h.current=!1)}),[b,y]);return j(k7,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:C},j("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},j(rt.div,ie({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),J0=me(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=yi,...a}=e,i=$g(n);return j(kx,ie({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[k7,_g]=dc(nc,{}),ey="SelectViewport",P7=me(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Rs(ey,n),a=_g(ey,n),i=yt(t,o.onViewportChange),l=Qe(0);return j(rc,null,j("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),j(Ah.Slot,{scope:n},j(rt.div,ie({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Ve(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(null!=r&&r.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*yi,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),l=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))}))))})),N7="SelectGroup",[R7,A7]=dc(N7),T7=me(((e,t)=>{const{__scopeSelect:n,...r}=e,o=to();return j(R7,{scope:n,id:o},j(rt.div,ie({role:"group","aria-labelledby":o},r,{ref:t})))})),O7="SelectLabel",I7=me(((e,t)=>{const{__scopeSelect:n,...r}=e,o=A7(O7,n);return j(rt.div,ie({id:o.id},r,{ref:t}))})),Ov="SelectItem",[D7,jw]=dc(Ov),M7=me(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=Ns(Ov,n),u=Rs(Ov,n),s=l.value===r,[c,d]=st(a??""),[f,p]=st(!1),h=yt(t,(e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,o)})),m=to(),v=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return j(D7,{scope:n,value:r,disabled:o,textId:m,isSelected:s,onItemTextChange:bt((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},j(Ah.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},j(rt.div,ie({role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":s&&f,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:h,onFocus:Ve(i.onFocus,(()=>p(!0))),onBlur:Ve(i.onBlur,(()=>p(!1))),onPointerUp:Ve(i.onPointerUp,v),onPointerMove:Ve(i.onPointerMove,(e=>{var t;o?null===(t=u.onItemLeave)||void 0===t||t.call(u):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Ve(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))})),onKeyDown:Ve(i.onKeyDown,(e=>{var t;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(f7.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),Kp="SelectItemText",L7=me(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Ns(Kp,n),l=Rs(Kp,n),u=jw(Kp,n),s=v7(Kp,n),[c,d]=st(null),f=yt(t,(e=>d(e)),u.onItemTextChange,(e=>{var t;return null===(t=l.itemTextRefCallback)||void 0===t?void 0:t.call(l,e,u.value,u.disabled)})),p=null==c?void 0:c.textContent,h=xs((()=>j("option",{key:u.value,value:u.value,disabled:u.disabled},p)),[u.disabled,u.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=s;return Hn((()=>(m(h),()=>v(h))),[m,v,h]),j(rc,null,j(rt.span,ie({id:u.textId},a,{ref:f})),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Yo.createPortal(a.children,i.valueNode):null)})),F7="SelectItemIndicator",j7=me(((e,t)=>{const{__scopeSelect:n,...r}=e;return jw(F7,n).isSelected?j(rt.span,ie({"aria-hidden":!0},r,{ref:t})):null})),ty="SelectScrollUpButton",z7=me(((e,t)=>{const n=Rs(ty,e.__scopeSelect),r=_g(ty,e.__scopeSelect),[o,a]=st(!1),i=yt(t,r.onScrollButtonChange);return Hn((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?j(zw,ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),ny="SelectScrollDownButton",W7=me(((e,t)=>{const n=Rs(ny,e.__scopeSelect),r=_g(ny,e.__scopeSelect),[o,a]=st(!1),i=yt(t,r.onScrollButtonChange);return Hn((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?j(zw,ie({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),zw=me(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Rs("SelectScrollButton",n),i=Qe(null),l=Th(n),u=bt((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return ut((()=>()=>u()),[u]),Hn((()=>{var e;const t=l().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[l]),j(rt.div,ie({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ve(o.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:Ve(o.onPointerMove,(()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:Ve(o.onPointerLeave,(()=>{u()}))}))})),B7=me(((e,t)=>{const{__scopeSelect:n,...r}=e;return j(rt.div,ie({"aria-hidden":!0},r,{ref:t}))}));function Ww(e){return""===e||void 0===e}const Bw=me(((e,t)=>{const{value:n,...r}=e,o=Qe(null),a=yt(t,o),i=ph(n);return ut((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),j(u7,{asChild:!0},j("select",ie({},r,{ref:a,defaultValue:n})))}));function Uw(e){const t=yr(e),n=Qe(""),r=Qe(0),o=bt((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),a=bt((()=>{n.current="",window.clearTimeout(r.current)}),[]);return ut((()=>()=>window.clearTimeout(r.current)),[]),[n,o,a]}function Vw(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let a=U7(e,Math.max(o,0));1===r.length&&(a=a.filter((e=>e!==n)));const i=a.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function U7(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}Bw.displayName="BubbleSelect";const V7=g7,Hw=x7,H7=b7,K7=$7,G7=_7,Kw=S7,Y7=P7,X7=T7,Gw=I7,Yw=M7,Q7=L7,q7=j7,Xw=z7,Qw=W7,qw=B7,fA=V7,pA=X7,hA=H7,Z7=C.forwardRef((({className:e,children:t,...n},r)=>W.jsxs(Hw,{ref:r,className:$e("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,W.jsx(K7,{asChild:!0,children:W.jsx(py,{className:"h-4 w-4 opacity-50"})})]})));Z7.displayName=Hw.displayName;const Zw=C.forwardRef((({className:e,...t},n)=>W.jsx(Xw,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:W.jsx(hS,{className:"h-4 w-4"})})));Zw.displayName=Xw.displayName;const Jw=C.forwardRef((({className:e,...t},n)=>W.jsx(Qw,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:W.jsx(py,{className:"h-4 w-4"})})));Jw.displayName=Qw.displayName;const J7=C.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>W.jsx(G7,{children:W.jsxs(Kw,{ref:o,className:$e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[W.jsx(Zw,{}),W.jsx(Y7,{className:$e("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),W.jsx(Jw,{})]})})));J7.displayName=Kw.displayName;const e6=C.forwardRef((({className:e,...t},n)=>W.jsx(Gw,{ref:n,className:$e("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})));e6.displayName=Gw.displayName;const t6=C.forwardRef((({className:e,children:t,...n},r)=>W.jsxs(Yw,{ref:r,className:$e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[W.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:W.jsx(q7,{children:W.jsx(Lv,{className:"h-4 w-4"})})}),W.jsx(Q7,{children:t})]})));t6.displayName=Yw.displayName;const n6=C.forwardRef((({className:e,...t},n)=>W.jsx(qw,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));n6.displayName=qw.displayName;const mA=G1,vA=Y1,gA=$h,r6=X1,eb=C.forwardRef((({className:e,...t},n)=>W.jsx(yh,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));eb.displayName=yh.displayName;const o6=ga("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),i6=C.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},a)=>W.jsxs(r6,{children:[W.jsx(eb,{className:$e("bg-slate-900/70",n)}),W.jsxs(xh,{ref:a,className:$e(o6({side:e}),t),...o,children:[r,W.jsxs($h,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[W.jsx(vy,{className:"h-4 w-4"}),W.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));i6.displayName=xh.displayName;const a6=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col space-y-2 text-center sm:text-left",e),...t});a6.displayName="SheetHeader";const s6=({className:e,...t})=>W.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});s6.displayName="SheetFooter";const l6=C.forwardRef((({className:e,...t},n)=>W.jsx(wh,{ref:n,className:$e("text-lg font-semibold text-foreground",e),...t})));l6.displayName=wh.displayName;const c6=C.forwardRef((({className:e,...t},n)=>W.jsx(bh,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));function yA({className:e,...t}){return W.jsx("div",{className:$e("animate-pulse rounded-md bg-muted",e),...t})}c6.displayName=bh.displayName;const tb="Switch",[u6,xA]=xr(tb),[d6,f6]=u6(tb),p6=me(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:u="on",onCheckedChange:s,...c}=e,[d,f]=st(null),p=yt(t,(e=>f(e))),h=Qe(!1),m=!d||!!d.closest("form"),[v=!1,g]=Ho({prop:o,defaultProp:a,onChange:s});return j(d6,{scope:n,checked:v,disabled:l},j(rt.button,ie({type:"button",role:"switch","aria-checked":v,"aria-required":i,"data-state":nb(v),"data-disabled":l?"":void 0,disabled:l,value:u},c,{ref:p,onClick:Ve(e.onClick,(e=>{g((e=>!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&j(v6,{control:d,bubbles:!h.current,name:r,value:u,checked:v,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))})),h6="SwitchThumb",m6=me(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=f6(h6,n);return j(rt.span,ie({"data-state":nb(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),v6=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=Qe(null),i=ph(n),l=hh(t);return ut((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),j("input",ie({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function nb(e){return e?"checked":"unchecked"}const rb=p6,g6=m6,y6=C.forwardRef((({className:e,...t},n)=>W.jsx(rb,{className:$e("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:!bg-slate-100 data-[state=checked]:bg-slate-700 data-[state=unchecked]:bg-input md:h-[18px] md:w-8",e),...t,ref:n,children:W.jsx(g6,{className:$e("pointer-events-none block size-[20px] rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0 md:size-[14px] md:data-[state=checked]:translate-x-[14px]")})})));y6.displayName=rb.displayName;const ob="Tabs",[x6,wA]=xr(ob,[ac]),ib=ac(),[w6,Sg]=x6(ob),b6=me(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:u="automatic",...s}=e,c=kd(l),[d,f]=Ho({prop:r,onChange:o,defaultProp:a});return j(w6,{scope:n,baseId:to(),value:d,onValueChange:f,orientation:i,dir:c,activationMode:u},j(rt.div,ie({dir:c,"data-orientation":i},s,{ref:t})))})),$6="TabsList",_6=me(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Sg($6,n),i=ib(n);return j(fg,ie({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),j(rt.div,ie({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))})),S6="TabsTrigger",C6=me(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=Sg(S6,n),l=ib(n),u=ab(i.baseId,r),s=sb(i.baseId,r),c=r===i.value;return j(pg,ie({asChild:!0},l,{focusable:!o,active:c}),j(rt.button,ie({type:"button",role:"tab","aria-selected":c,"aria-controls":s,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},a,{ref:t,onMouseDown:Ve(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:Ve(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:Ve(e.onFocus,(()=>{const e="manual"!==i.activationMode;!c&&!o&&e&&i.onValueChange(r)}))})))})),E6="TabsContent",k6=me(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,l=Sg(E6,n),u=ab(l.baseId,r),s=sb(l.baseId,r),c=r===l.value,d=Qe(c);return ut((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),j(vo,{present:o||c},(({present:n})=>j(rt.div,ie({"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:s,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&a)))}));function ab(e,t){return`${e}-trigger-${t}`}function sb(e,t){return`${e}-content-${t}`}const P6=b6,lb=_6,cb=C6,ub=k6,bA=P6,N6=C.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>W.jsx(lb,{ref:r,"data-testid":"tabsList",className:t?$e("inline-flex items-center justify-center border-b border-slate-200 bg-white p-0 text-muted-foreground",e):e,...n})));N6.displayName=lb.displayName;const R6=C.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>W.jsx(cb,{ref:r,className:t?$e("m-b-[-1px] inline-flex items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring border-b-2 border-transparent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-blue_100",e):e,...n})));R6.displayName=cb.displayName;const A6=C.forwardRef((({className:e,...t},n)=>W.jsx(ub,{ref:n,className:$e("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));A6.displayName=ub.displayName;const T6=C.forwardRef((({className:e,...t},n)=>{const{error:r}=sc();return W.jsx("textarea",{className:$e(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${!!r&&"border-rose-600 focus-visible:ring-rose-600"}`,e),ref:n,...t})}));T6.displayName="Textarea";const $A=_d.Provider,O6=_d.Root,I6=_d.Trigger,D6=ga("z-50 overflow-hidden shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md border text-sm px-3 py-1.5",small:"rounded-md border px-[11px] py-[3px] text-[12px] leading-[16px]"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-slate-900_90 text-slate-50"},defaultVariants:{size:"small",theme:"dark"}}}),db=C.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,...o},a)=>W.jsx(_d.Content,{ref:a,sideOffset:t,className:$e(D6({size:n,theme:r,className:e})),...o})));db.displayName=_d.Content.displayName;const _A=({children:e,tooltipText:t,triggerClassname:n,...r})=>W.jsxs(O6,{children:[W.jsx(I6,{className:n,children:e}),t&&W.jsx(db,{...r,children:t})]}),SA=({accept:e="*",multiple:t,handleUpload:n,disabled:r})=>W.jsx("div",{className:"hidden",children:W.jsx("input",{type:"file","data-button":"input file",accept:e,multiple:t,onChange:({target:e})=>{if(!e.files)return;const t=Array.from(e.files).map((e=>({file:e,objectUrl:URL.createObjectURL(e)})));n(t),e.value=""},onClick:e=>{e.stopPropagation(),r&&e.preventDefault()}})}),CA=({as:e="div",children:t,className:n,...r})=>j(e,{className:$e(n),...r},t);export{W6 as AlertDialog,m2 as AlertDialogAction,v2 as AlertDialogCancel,u2 as AlertDialogContent,h2 as AlertDialogDescription,f2 as AlertDialogFooter,d2 as AlertDialogHeader,Zy as AlertDialogOverlay,c2 as AlertDialogPortal,p2 as AlertDialogTitle,B6 as AlertDialogTrigger,C2 as Avatar,k2 as AvatarFallback,E2 as AvatarImage,sh as Button,F6 as ButtonLoader,P2 as Card,T2 as CardContent,A2 as CardDescription,O2 as CardFooter,N2 as CardHeader,R2 as CardTitle,hE as Carousel,mE as CarouselContent,vE as CarouselItem,yE as CarouselNext,gE as CarouselPrevious,kE as Checkbox,ex as Command,X6 as CommandDialog,nk as CommandEmpty,rk as CommandGroup,ek as CommandInput,ik as CommandItem,tk as CommandList,ok as CommandSeparator,ak as CommandShortcut,Y3 as Dialog,Y6 as DialogClose,q1 as DialogContent,J1 as DialogDescription,J3 as DialogFooter,Z3 as DialogHeader,Q1 as DialogOverlay,X3 as DialogPortal,Z1 as DialogTitle,G6 as DialogTrigger,Z6 as DropdownMenu,BN as DropdownMenuCheckboxItem,zN as DropdownMenuContent,eA as DropdownMenuGroup,WN as DropdownMenuItem,VN as DropdownMenuLabel,tA as DropdownMenuPortal,rA as DropdownMenuRadioGroup,UN as DropdownMenuRadioItem,HN as DropdownMenuSeparator,KN as DropdownMenuShortcut,nA as DropdownMenuSub,jN as DropdownMenuSubContent,FN as DropdownMenuSubTrigger,J6 as DropdownMenuTrigger,oA as Form,ZN as FormControl,JN as FormDescription,iA as FormField,QN as FormItem,qN as FormLabel,eR as FormMessage,lA as HoverCard,VR as HoverCardContent,cA as HoverCardTrigger,HR as Input,SA as InputFile,rw as Label,l7 as RadioGroup,c7 as RadioGroupItem,fA as Select,J7 as SelectContent,pA as SelectGroup,t6 as SelectItem,e6 as SelectLabel,Jw as SelectScrollDownButton,Zw as SelectScrollUpButton,n6 as SelectSeparator,Z7 as SelectTrigger,hA as SelectValue,mA as Sheet,gA as SheetClose,i6 as SheetContent,c6 as SheetDescription,s6 as SheetFooter,a6 as SheetHeader,eb as SheetOverlay,r6 as SheetPortal,l6 as SheetTitle,vA as SheetTrigger,yA as Skeleton,y6 as Switch,bA as Tabs,A6 as TabsContent,N6 as TabsList,R6 as TabsTrigger,T6 as Textarea,O6 as Tooltip,db as TooltipContent,$A as TooltipProvider,I6 as TooltipTrigger,_A as TooltipWrapper,Mv as buttonVariants,$e as cn,CA as styledElement,fh as useCarousel,sc as useFormField};
|