function lx(n,o){for(var s=0;sa[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&a(p)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function eh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fl={exports:{}},Lo={},zl={exports:{}},Ce={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Yf;function cx(){if(Yf)return Ce;Yf=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.iterator;function b(k){return k===null||typeof k!="object"?null:(k=S&&k[S]||k["@@iterator"],typeof k=="function"?k:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,x={};function C(k,F,ue){this.props=k,this.context=F,this.refs=x,this.updater=ue||P}C.prototype.isReactComponent={},C.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,F,"setState")},C.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=C.prototype;function O(k,F,ue){this.props=k,this.context=F,this.refs=x,this.updater=ue||P}var _=O.prototype=new T;_.constructor=O,R(_,C.prototype),_.isPureReactComponent=!0;var D=Array.isArray,z=Object.prototype.hasOwnProperty,W={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function X(k,F,ue){var de,we={},ye=null,q=null;if(F!=null)for(de in F.ref!==void 0&&(q=F.ref),F.key!==void 0&&(ye=""+F.key),F)z.call(F,de)&&!U.hasOwnProperty(de)&&(we[de]=F[de]);var ae=arguments.length-2;if(ae===1)we.children=ue;else if(1>>1,F=L[k];if(0>>1;ku(we,K))yeu(q,we)?(L[k]=q,L[ye]=K,k=ye):(L[k]=we,L[de]=K,k=de);else if(yeu(q,K))L[k]=q,L[ye]=K,k=ye;else break e}}return $}function u(L,$){var K=L.sortIndex-$.sortIndex;return K!==0?K:L.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();n.unstable_now=function(){return p.now()-h}}var v=[],y=[],w=1,S=null,b=3,P=!1,R=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(L){for(var $=s(y);$!==null;){if($.callback===null)a(y);else if($.startTime<=L)a(y),$.sortIndex=$.expirationTime,o(v,$);else break;$=s(y)}}function D(L){if(x=!1,_(L),!R)if(s(v)!==null)R=!0,te(z);else{var $=s(y);$!==null&&re(D,$.startTime-L)}}function z(L,$){R=!1,x&&(x=!1,T(X),X=-1),P=!0;var K=b;try{for(_($),S=s(v);S!==null&&(!(S.expirationTime>$)||L&&!me());){var k=S.callback;if(typeof k=="function"){S.callback=null,b=S.priorityLevel;var F=k(S.expirationTime<=$);$=n.unstable_now(),typeof F=="function"?S.callback=F:S===s(v)&&a(v),_($)}else a(v);S=s(v)}if(S!==null)var ue=!0;else{var de=s(y);de!==null&&re(D,de.startTime-$),ue=!1}return ue}finally{S=null,b=K,P=!1}}var W=!1,U=null,X=-1,se=5,ie=-1;function me(){return!(n.unstable_now()-ieL||125k?(L.sortIndex=K,o(y,L),s(v)===null&&L===s(y)&&(x?(T(X),X=-1):x=!0,re(D,K-k))):(L.sortIndex=F,o(v,L),R||P||(R=!0,te(z))),L},n.unstable_shouldYield=me,n.unstable_wrapCallback=function(L){var $=b;return function(){var K=b;b=$;try{return L.apply(this,arguments)}finally{b=K}}}}(Hl)),Hl}var tp;function px(){return tp||(tp=1,Bl.exports=fx()),Bl.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var np;function hx(){if(np)return pt;np=1;var n=Oi(),o=px();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,y=/^[: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]*$/,w={},S={};function b(e){return v.call(S,e)?!0:v.call(w,e)?!1:y.test(e)?S[e]=!0:(w[e]=!0,!1)}function P(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R(e,t,r,i){if(t===null||typeof t>"u"||P(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function x(e,t,r,i,c,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=c,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new x(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new x(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new x(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new x(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){C[e]=new x(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new x(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new x(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new x(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new x(e,5,!1,e.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function O(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(T,O);C[t]=new x(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(T,O);C[t]=new x(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(T,O);C[t]=new x(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new x(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new x(e,1,!1,e.toLowerCase(),null,!0,!0)});function _(e,t,r,i){var c=C.hasOwnProperty(t)?C[t]:null;(c!==null?c.type!==0:i||!(2N||c[m]!==d[N]){var E=` `+c[m].replace(" at new "," at ");return e.displayName&&E.includes("")&&(E=E.replace("",e.displayName)),E}while(1<=m&&0<=N);break}}}finally{ue=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?F(e):""}function we(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function ye(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case W:return"Portal";case se:return"Profiler";case X:return"StrictMode";case fe:return"Suspense";case G:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case me:return(e.displayName||"Context")+".Consumer";case ie:return(e._context.displayName||"Context")+".Provider";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case he:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ae(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Se(e){var t=xe(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){i=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function je(e){e._valueTracker||(e._valueTracker=Se(e))}function Le(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=xe(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function qe(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Rt(e,t){var r=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function sr(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=ae(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ir(e,t){t=t.checked,t!=null&&_(e,"checked",t,!1)}function zn(e,t){ir(e,t);var r=ae(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ki(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ki(e,t.type,ae(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ou(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ki(e,t,r){(t!=="number"||qe(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Xr=Array.isArray;function ar(e,t,r,i){if(e=e.options,t){t={};for(var c=0;c"+t.valueOf().toString()+"",t=Zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Zr={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},fv=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function uu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function du(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,c=uu(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,c):e[r]=c}}var pv=K({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 Yi(e,t){if(t){if(pv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Xi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ji=null;function Zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ea=null,lr=null,cr=null;function fu(e){if(e=Co(e)){if(typeof ea!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Cs(t),ea(e.stateNode,e.type,t))}}function pu(e){lr?cr?cr.push(e):cr=[e]:lr=e}function hu(){if(lr){var e=lr,t=cr;if(cr=lr=null,fu(e),t)for(e=0;e>>=0,e===0?32:31-(Nv(e)/Ev|0)|0}var os=64,ss=4194304;function ro(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function is(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,c=e.suspendedLanes,d=e.pingedLanes,m=r&268435455;if(m!==0){var N=m&~c;N!==0?i=ro(N):(d&=m,d!==0&&(i=ro(d)))}else m=r&~c,m!==0?i=ro(m):d!==0&&(i=ro(d));if(i===0)return 0;if(t!==0&&t!==i&&(t&c)===0&&(c=i&-i,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((i&4)!==0&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0r;r++)t.push(e);return t}function oo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=r}function Rv(e,t){var r=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 i=e.eventTimes;for(e=e.expirationTimes;0=po),Hu=" ",Vu=!1;function Wu(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fr=!1;function sy(e,t){switch(e){case"compositionend":return Qu(t);case"keypress":return t.which!==32?null:(Vu=!0,Hu);case"textInput":return e=t.data,e===Hu&&Vu?null:e;default:return null}}function iy(e,t){if(fr)return e==="compositionend"||!ya&&Wu(e,t)?(e=Du(),ds=fa=mn=null,fr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ju(r)}}function ed(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ed(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function td(){for(var e=window,t=qe();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=qe(e.document)}return t}function Sa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function my(e){var t=td(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&ed(r.ownerDocument.documentElement,r)){if(i!==null&&Sa(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=r.textContent.length,d=Math.min(i.start,c);i=i.end===void 0?d:Math.min(i.end,c),!e.extend&&d>i&&(c=i,i=d,d=c),c=Zu(r,d);var m=Zu(r,i);c&&m&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>i?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,pr=null,Ca=null,vo=null,ba=!1;function nd(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ba||pr==null||pr!==qe(i)||(i=pr,"selectionStart"in i&&Sa(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),vo&&go(vo,i)||(vo=i,i=xs(Ca,"onSelect"),0yr||(e.current=Ma[yr],Ma[yr]=null,yr--)}function Te(e,t){yr++,Ma[yr]=e.current,e.current=t}var xn={},tt=yn(xn),lt=yn(!1),Hn=xn;function xr(e,t){var r=e.type.contextTypes;if(!r)return xn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in r)c[d]=t[d];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function ct(e){return e=e.childContextTypes,e!=null}function bs(){Ae(lt),Ae(tt)}function vd(e,t,r){if(tt.current!==xn)throw Error(s(168));Te(tt,t),Te(lt,r)}function yd(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var c in i)if(!(c in t))throw Error(s(108,q(e)||"Unknown",c));return K({},r,i)}function Ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Hn=tt.current,Te(tt,e),Te(lt,lt.current),!0}function xd(e,t,r){var i=e.stateNode;if(!i)throw Error(s(169));r?(e=yd(e,t,Hn),i.__reactInternalMemoizedMergedChildContext=e,Ae(lt),Ae(tt),Te(tt,e)):Ae(lt),Te(lt,r)}var en=null,Es=!1,Da=!1;function wd(e){en===null?en=[e]:en.push(e)}function ky(e){Es=!0,wd(e)}function wn(){if(!Da&&en!==null){Da=!0;var e=0,t=ke;try{var r=en;for(ke=1;e>=m,c-=m,tn=1<<32-Tt(t)+c|r<pe?(Ge=ce,ce=null):Ge=ce.sibling;var Ee=B(A,ce,I[pe],Q);if(Ee===null){ce===null&&(ce=Ge);break}e&&ce&&Ee.alternate===null&&t(A,ce),j=d(Ee,j,pe),le===null?oe=Ee:le.sibling=Ee,le=Ee,ce=Ge}if(pe===I.length)return r(A,ce),Me&&Wn(A,pe),oe;if(ce===null){for(;pepe?(Ge=ce,ce=null):Ge=ce.sibling;var Rn=B(A,ce,Ee.value,Q);if(Rn===null){ce===null&&(ce=Ge);break}e&&ce&&Rn.alternate===null&&t(A,ce),j=d(Rn,j,pe),le===null?oe=Rn:le.sibling=Rn,le=Rn,ce=Ge}if(Ee.done)return r(A,ce),Me&&Wn(A,pe),oe;if(ce===null){for(;!Ee.done;pe++,Ee=I.next())Ee=V(A,Ee.value,Q),Ee!==null&&(j=d(Ee,j,pe),le===null?oe=Ee:le.sibling=Ee,le=Ee);return Me&&Wn(A,pe),oe}for(ce=i(A,ce);!Ee.done;pe++,Ee=I.next())Ee=Y(ce,A,pe,Ee.value,Q),Ee!==null&&(e&&Ee.alternate!==null&&ce.delete(Ee.key===null?pe:Ee.key),j=d(Ee,j,pe),le===null?oe=Ee:le.sibling=Ee,le=Ee);return e&&ce.forEach(function(ax){return t(A,ax)}),Me&&Wn(A,pe),oe}function He(A,j,I,Q){if(typeof I=="object"&&I!==null&&I.type===U&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case z:e:{for(var oe=I.key,le=j;le!==null;){if(le.key===oe){if(oe=I.type,oe===U){if(le.tag===7){r(A,le.sibling),j=c(le,I.props.children),j.return=A,A=j;break e}}else if(le.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===te&&jd(oe)===le.type){r(A,le.sibling),j=c(le,I.props),j.ref=bo(A,le,I),j.return=A,A=j;break e}r(A,le);break}else t(A,le);le=le.sibling}I.type===U?(j=Jn(I.props.children,A.mode,Q,I.key),j.return=A,A=j):(Q=Zs(I.type,I.key,I.props,null,A.mode,Q),Q.ref=bo(A,j,I),Q.return=A,A=Q)}return m(A);case W:e:{for(le=I.key;j!==null;){if(j.key===le)if(j.tag===4&&j.stateNode.containerInfo===I.containerInfo&&j.stateNode.implementation===I.implementation){r(A,j.sibling),j=c(j,I.children||[]),j.return=A,A=j;break e}else{r(A,j);break}else t(A,j);j=j.sibling}j=Il(I,A.mode,Q),j.return=A,A=j}return m(A);case te:return le=I._init,He(A,j,le(I._payload),Q)}if(Xr(I))return ee(A,j,I,Q);if($(I))return ne(A,j,I,Q);Rs(A,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,j!==null&&j.tag===6?(r(A,j.sibling),j=c(j,I),j.return=A,A=j):(r(A,j),j=Al(I,A.mode,Q),j.return=A,A=j),m(A)):r(A,j)}return He}var br=kd(!0),Pd=kd(!1),Ts=yn(null),Os=null,Nr=null,Ha=null;function Va(){Ha=Nr=Os=null}function Wa(e){var t=Ts.current;Ae(Ts),e._currentValue=t}function Qa(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function Er(e,t){Os=e,Ha=Nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ut=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(Ha!==e)if(e={context:e,memoizedValue:t,next:null},Nr===null){if(Os===null)throw Error(s(308));Nr=e,Os.dependencies={lanes:0,firstContext:e}}else Nr=Nr.next=e;return t}var Qn=null;function $a(e){Qn===null?Qn=[e]:Qn.push(e)}function Rd(e,t,r,i){var c=t.interleaved;return c===null?(r.next=r,$a(t)):(r.next=c.next,c.next=r),t.interleaved=r,rn(e,i)}function rn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Sn=!1;function Ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Td(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(be&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,rn(e,r)}return c=i.interleaved,c===null?(t.next=t,$a(i)):(t.next=c.next,c.next=t),i.interleaved=t,rn(e,r)}function As(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,aa(e,r)}}function Od(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var m={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?c=d=m:d=d.next=m,r=r.next}while(r!==null);d===null?c=d=t:d=d.next=t}else c=d=t;r={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Is(e,t,r,i){var c=e.updateQueue;Sn=!1;var d=c.firstBaseUpdate,m=c.lastBaseUpdate,N=c.shared.pending;if(N!==null){c.shared.pending=null;var E=N,M=E.next;E.next=null,m===null?d=M:m.next=M,m=E;var H=e.alternate;H!==null&&(H=H.updateQueue,N=H.lastBaseUpdate,N!==m&&(N===null?H.firstBaseUpdate=M:N.next=M,H.lastBaseUpdate=E))}if(d!==null){var V=c.baseState;m=0,H=M=E=null,N=d;do{var B=N.lane,Y=N.eventTime;if((i&B)===B){H!==null&&(H=H.next={eventTime:Y,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var ee=e,ne=N;switch(B=t,Y=r,ne.tag){case 1:if(ee=ne.payload,typeof ee=="function"){V=ee.call(Y,V,B);break e}V=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ne.payload,B=typeof ee=="function"?ee.call(Y,V,B):ee,B==null)break e;V=K({},V,B);break e;case 2:Sn=!0}}N.callback!==null&&N.lane!==0&&(e.flags|=64,B=c.effects,B===null?c.effects=[N]:B.push(N))}else Y={eventTime:Y,lane:B,tag:N.tag,payload:N.payload,callback:N.callback,next:null},H===null?(M=H=Y,E=V):H=H.next=Y,m|=B;if(N=N.next,N===null){if(N=c.shared.pending,N===null)break;B=N,N=B.next,B.next=null,c.lastBaseUpdate=B,c.shared.pending=null}}while(!0);if(H===null&&(E=V),c.baseState=E,c.firstBaseUpdate=M,c.lastBaseUpdate=H,t=c.shared.interleaved,t!==null){c=t;do m|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);Gn|=m,e.lanes=m,e.memoizedState=V}}function Ad(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var i=Ja.transition;Ja.transition={};try{e(!1),t()}finally{ke=r,Ja.transition=i}}function Xd(){return Et().memoizedState}function Oy(e,t,r){var i=jn(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},Jd(e))Zd(t,r);else if(r=Rd(e,t,r,i),r!==null){var c=at();Dt(r,e,i,c),ef(r,t,i)}}function Ay(e,t,r){var i=jn(e),c={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(Jd(e))Zd(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,N=d(m,r);if(c.hasEagerState=!0,c.eagerState=N,Ot(N,m)){var E=t.interleaved;E===null?(c.next=c,$a(t)):(c.next=E.next,E.next=c),t.interleaved=c;return}}catch{}finally{}r=Rd(e,t,c,i),r!==null&&(c=at(),Dt(r,e,i,c),ef(r,t,i))}}function Jd(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function Zd(e,t){ko=Ds=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ef(e,t,r){if((r&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,aa(e,r)}}var zs={readContext:Nt,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},Iy={readContext:Nt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Vd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ls(4194308,4,$d.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var r=Qt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=Qt();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Oy.bind(null,ze,e),[i.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Bd,useDebugValue:sl,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Bd(!1),t=e[0];return e=Ty.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=ze,c=Qt();if(Me){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ke===null)throw Error(s(349));(Kn&30)!==0||Dd(i,t,r)}c.memoizedState=r;var d={value:r,getSnapshot:t};return c.queue=d,Vd(Fd.bind(null,i,d,e),[e]),i.flags|=2048,To(9,Ld.bind(null,i,d,r,t),void 0,null),r},useId:function(){var e=Qt(),t=Ke.identifierPrefix;if(Me){var r=nn,i=tn;r=(i&~(1<<32-Tt(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=Po++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=m.createElement(r,{is:i.is}):(e=m.createElement(r),r==="select"&&(m=e,i.multiple?m.multiple=!0:i.size&&(m.size=i.size))):e=m.createElementNS(e,r),e[Vt]=t,e[So]=i,Sf(e,t,!1,!1),t.stateNode=e;e:{switch(m=Xi(r,i),r){case"dialog":Oe("cancel",e),Oe("close",e),c=i;break;case"iframe":case"object":case"embed":Oe("load",e),c=i;break;case"video":case"audio":for(c=0;cTr&&(t.flags|=128,i=!0,Oo(d,!1),t.lanes=4194304)}else{if(!i)if(e=_s(m),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Oo(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!Me)return rt(t),null}else 2*Be()-d.renderingStartTime>Tr&&r!==1073741824&&(t.flags|=128,i=!0,Oo(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(r=d.last,r!==null?r.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Be(),t.sibling=null,r=Fe.current,Te(Fe,i?r&1|2:r&1),t):(rt(t),null);case 22:case 23:return Rl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(yt&1073741824)!==0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function By(e,t){switch(Fa(t),t.tag){case 1:return ct(t.type)&&bs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jr(),Ae(lt),Ae(tt),Xa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return qa(t),null;case 13:if(Ae(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Fe),null;case 4:return jr(),null;case 10:return Wa(t.type._context),null;case 22:case 23:return Rl(),null;case 24:return null;default:return null}}var Vs=!1,ot=!1,Hy=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Pr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){Ue(e,t,i)}else r.current=null}function vl(e,t,r){try{r()}catch(i){Ue(e,t,i)}}var Nf=!1;function Vy(e,t){if(Ra=cs,e=td(),Sa(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var m=0,N=-1,E=-1,M=0,H=0,V=e,B=null;t:for(;;){for(var Y;V!==r||c!==0&&V.nodeType!==3||(N=m+c),V!==d||i!==0&&V.nodeType!==3||(E=m+i),V.nodeType===3&&(m+=V.nodeValue.length),(Y=V.firstChild)!==null;)B=V,V=Y;for(;;){if(V===e)break t;if(B===r&&++M===c&&(N=m),B===d&&++H===i&&(E=m),(Y=V.nextSibling)!==null)break;V=B,B=V.parentNode}V=Y}r=N===-1||E===-1?null:{start:N,end:E}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ta={focusedElem:e,selectionRange:r},cs=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var ne=ee.memoizedProps,He=ee.memoizedState,A=t.stateNode,j=A.getSnapshotBeforeUpdate(t.elementType===t.type?ne:It(t.type,ne),He);A.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var I=t.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(Q){Ue(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return ee=Nf,Nf=!1,ee}function Ao(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&vl(t,r,d)}c=c.next}while(c!==i)}}function Ws(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function yl(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Ef(e){var t=e.alternate;t!==null&&(e.alternate=null,Ef(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[So],delete t[_a],delete t[Ey],delete t[jy])),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 jf(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xl(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ss));else if(i!==4&&(e=e.child,e!==null))for(xl(e,t,r),e=e.sibling;e!==null;)xl(e,t,r),e=e.sibling}function wl(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(wl(e,t,r),e=e.sibling;e!==null;)wl(e,t,r),e=e.sibling}var Ye=null,_t=!1;function bn(e,t,r){for(r=r.child;r!==null;)Pf(e,t,r),r=r.sibling}function Pf(e,t,r){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(rs,r)}catch{}switch(r.tag){case 5:ot||Pr(r,t);case 6:var i=Ye,c=_t;Ye=null,bn(e,t,r),Ye=i,_t=c,Ye!==null&&(_t?(e=Ye,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ye.removeChild(r.stateNode));break;case 18:Ye!==null&&(_t?(e=Ye,r=r.stateNode,e.nodeType===8?Ia(e.parentNode,r):e.nodeType===1&&Ia(e,r),co(e)):Ia(Ye,r.stateNode));break;case 4:i=Ye,c=_t,Ye=r.stateNode.containerInfo,_t=!0,bn(e,t,r),Ye=i,_t=c;break;case 0:case 11:case 14:case 15:if(!ot&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){c=i=i.next;do{var d=c,m=d.destroy;d=d.tag,m!==void 0&&((d&2)!==0||(d&4)!==0)&&vl(r,t,m),c=c.next}while(c!==i)}bn(e,t,r);break;case 1:if(!ot&&(Pr(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(N){Ue(r,t,N)}bn(e,t,r);break;case 21:bn(e,t,r);break;case 22:r.mode&1?(ot=(i=ot)||r.memoizedState!==null,bn(e,t,r),ot=i):bn(e,t,r);break;default:bn(e,t,r)}}function Rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Hy),t.forEach(function(i){var c=Jy.bind(null,e,i);r.has(i)||(r.add(i),i.then(c,c))})}}function Mt(e,t){var r=t.deletions;if(r!==null)for(var i=0;ic&&(c=m),i&=~d}if(i=c,i=Be()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Qy(i/1960))-i,10e?16:e,En===null)var i=!1;else{if(e=En,En=null,qs=0,(be&6)!==0)throw Error(s(331));var c=be;for(be|=4,Z=e.current;Z!==null;){var d=Z,m=d.child;if((Z.flags&16)!==0){var N=d.deletions;if(N!==null){for(var E=0;EBe()-bl?Yn(e,0):Cl|=r),ft(e,t)}function Hf(e,t){t===0&&((e.mode&1)===0?t=1:(t=ss,ss<<=1,(ss&130023424)===0&&(ss=4194304)));var r=at();e=rn(e,t),e!==null&&(oo(e,t,r),ft(e,r))}function Xy(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Hf(e,r)}function Jy(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),Hf(e,r)}var Vf;Vf=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)ut=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return ut=!1,zy(e,t,r);ut=(e.flags&131072)!==0}else ut=!1,Me&&(t.flags&1048576)!==0&&Sd(t,ks,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Hs(e,t),e=t.pendingProps;var c=xr(t,tt.current);Er(t,r),c=el(null,t,i,e,c,r);var d=tl();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ct(i)?(d=!0,Ns(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Ka(t),c.updater=Us,t.stateNode=c,c._reactInternals=t,al(t,i,e,r),t=dl(null,t,i,!0,d,r)):(t.tag=0,Me&&d&&La(t),it(null,t,c,r),t=t.child),t;case 16:i=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,c=i._init,i=c(i._payload),t.type=i,c=t.tag=ex(i),e=It(i,e),c){case 0:t=ul(null,t,i,e,r);break e;case 1:t=mf(null,t,i,e,r);break e;case 11:t=uf(null,t,i,e,r);break e;case 14:t=df(null,t,i,It(i.type,e),r);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:It(i,c),ul(e,t,i,c,r);case 1:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:It(i,c),mf(e,t,i,c,r);case 3:e:{if(gf(t),e===null)throw Error(s(387));i=t.pendingProps,d=t.memoizedState,c=d.element,Td(e,t),Is(t,i,null,r);var m=t.memoizedState;if(i=m.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=kr(Error(s(423)),t),t=vf(e,t,i,r,c);break e}else if(i!==c){c=kr(Error(s(424)),t),t=vf(e,t,i,r,c);break e}else for(vt=vn(t.stateNode.containerInfo.firstChild),gt=t,Me=!0,At=null,r=Pd(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Cr(),i===c){t=sn(e,t,r);break e}it(e,t,i,r)}t=t.child}return t;case 5:return Id(t),e===null&&Ua(t),i=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,m=c.children,Oa(i,c)?m=null:d!==null&&Oa(i,d)&&(t.flags|=32),hf(e,t),it(e,t,m,r),t.child;case 6:return e===null&&Ua(t),null;case 13:return yf(e,t,r);case 4:return Ga(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=br(t,null,i,r):it(e,t,i,r),t.child;case 11:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:It(i,c),uf(e,t,i,c,r);case 7:return it(e,t,t.pendingProps,r),t.child;case 8:return it(e,t,t.pendingProps.children,r),t.child;case 12:return it(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,c=t.pendingProps,d=t.memoizedProps,m=c.value,Te(Ts,i._currentValue),i._currentValue=m,d!==null)if(Ot(d.value,m)){if(d.children===c.children&&!lt.current){t=sn(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var N=d.dependencies;if(N!==null){m=d.child;for(var E=N.firstContext;E!==null;){if(E.context===i){if(d.tag===1){E=on(-1,r&-r),E.tag=2;var M=d.updateQueue;if(M!==null){M=M.shared;var H=M.pending;H===null?E.next=E:(E.next=H.next,H.next=E),M.pending=E}}d.lanes|=r,E=d.alternate,E!==null&&(E.lanes|=r),Qa(d.return,r,t),N.lanes|=r;break}E=E.next}}else if(d.tag===10)m=d.type===t.type?null:d.child;else if(d.tag===18){if(m=d.return,m===null)throw Error(s(341));m.lanes|=r,N=m.alternate,N!==null&&(N.lanes|=r),Qa(m,r,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}if(d=m.sibling,d!==null){d.return=m.return,m=d;break}m=m.return}d=m}it(e,t,c.children,r),t=t.child}return t;case 9:return c=t.type,i=t.pendingProps.children,Er(t,r),c=Nt(c),i=i(c),t.flags|=1,it(e,t,i,r),t.child;case 14:return i=t.type,c=It(i,t.pendingProps),c=It(i.type,c),df(e,t,i,c,r);case 15:return ff(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:It(i,c),Hs(e,t),t.tag=1,ct(i)?(e=!0,Ns(t)):e=!1,Er(t,r),nf(t,i,c),al(t,i,c,r),dl(null,t,i,!0,e,r);case 19:return wf(e,t,r);case 22:return pf(e,t,r)}throw Error(s(156,t.tag))};function Wf(e,t){return Cu(e,t)}function Zy(e,t,r,i){this.tag=e,this.key=r,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,r,i){return new Zy(e,t,r,i)}function Ol(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ex(e){if(typeof e=="function")return Ol(e)?1:0;if(e!=null){if(e=e.$$typeof,e===J)return 11;if(e===he)return 14}return 2}function Pn(e,t){var r=e.alternate;return r===null?(r=kt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zs(e,t,r,i,c,d){var m=2;if(i=e,typeof e=="function")Ol(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case U:return Jn(r.children,c,d,t);case X:m=8,c|=8;break;case se:return e=kt(12,r,t,c|2),e.elementType=se,e.lanes=d,e;case fe:return e=kt(13,r,t,c),e.elementType=fe,e.lanes=d,e;case G:return e=kt(19,r,t,c),e.elementType=G,e.lanes=d,e;case re:return ei(r,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ie:m=10;break e;case me:m=9;break e;case J:m=11;break e;case he:m=14;break e;case te:m=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=kt(m,r,t,c),t.elementType=e,t.type=i,t.lanes=d,t}function Jn(e,t,r,i){return e=kt(7,e,i,t),e.lanes=r,e}function ei(e,t,r,i){return e=kt(22,e,i,t),e.elementType=re,e.lanes=r,e.stateNode={isHidden:!1},e}function Al(e,t,r){return e=kt(6,e,null,t),e.lanes=r,e}function Il(e,t,r){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tx(e,t,r,i,c){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=ia(0),this.expirationTimes=ia(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ia(0),this.identifierPrefix=i,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function _l(e,t,r,i,c,d,m,N,E){return e=new tx(e,t,r,N,E),t===1?(t=1,d===!0&&(t|=8)):t=0,d=kt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ka(d),e}function nx(e,t,r){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),Ul.exports=hx(),Ul.exports}var op;function mx(){if(op)return ai;op=1;var n=th();return ai.createRoot=n.createRoot,ai.hydrateRoot=n.hydrateRoot,ai}var gx=mx();function vx(n,o){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,a,u,f,p=[],h="",v=n.split("/");for(v[0]||v.shift();u=v.shift();)s=u[0],s==="*"?(p.push(s),h+=u[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(a=u.indexOf("?",1),f=u.indexOf(".",1),p.push(u.substring(1,~a?a:~f?f:u.length)),h+=~a&&!~f?"(?:/([^/]+?))?":"/([^/]+?)",~f&&(h+=(~a?"?":"")+"\\"+u.substring(f))):h+="/"+u;return{keys:p,pattern:new RegExp("^"+h+(o?"(?=$|/)":"/?$"),"i")}}var g=Oi();const An=eh(g),nh=lx({__proto__:null,default:An},[g]);var Vl={exports:{}},Wl={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var sp;function yx(){if(sp)return Wl;sp=1;var n=Oi();function o(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var s=typeof Object.is=="function"?Object.is:o,a=n.useState,u=n.useEffect,f=n.useLayoutEffect,p=n.useDebugValue;function h(S,b){var P=b(),R=a({inst:{value:P,getSnapshot:b}}),x=R[0].inst,C=R[1];return f(function(){x.value=P,x.getSnapshot=b,v(x)&&C({inst:x})},[S,P,b]),u(function(){return v(x)&&C({inst:x}),S(function(){v(x)&&C({inst:x})})},[S]),p(P),P}function v(S){var b=S.getSnapshot;S=S.value;try{var P=b();return!s(S,P)}catch{return!0}}function y(S,b){return b()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:h;return Wl.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,Wl}var ip;function xx(){return ip||(ip=1,Vl.exports=yx()),Vl.exports}var wx=xx();const Sx=nh.useInsertionEffect,Cx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bx=Cx?g.useLayoutEffect:g.useEffect,Nx=Sx||bx,rh=n=>{const o=g.useRef([n,(...s)=>o[0](...s)]).current;return Nx(()=>{o[0]=n}),o[1]},Ex="popstate",Rc="pushState",Tc="replaceState",jx="hashchange",ap=[Ex,Rc,Tc,jx],kx=n=>{for(const o of ap)addEventListener(o,n);return()=>{for(const o of ap)removeEventListener(o,n)}},oh=(n,o)=>wx.useSyncExternalStore(kx,n,o),Px=()=>location.search,Rx=({ssrSearch:n=""}={})=>oh(Px,()=>n),lp=()=>location.pathname,Tx=({ssrPath:n}={})=>oh(lp,n?()=>n:lp),Ox=(n,{replace:o=!1,state:s=null}={})=>history[o?Tc:Rc](s,"",n),Ax=(n={})=>[Tx(n),Ox],cp=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[cp]>"u"){for(const n of[Rc,Tc]){const o=history[n];history[n]=function(){const s=o.apply(this,arguments),a=new Event(n);return a.arguments=arguments,dispatchEvent(a),s}}Object.defineProperty(window,cp,{value:!0})}const Ix=(n,o)=>o.toLowerCase().indexOf(n.toLowerCase())?"~"+o:o.slice(n.length)||"/",sh=(n="")=>n==="/"?"":n,_x=(n,o)=>n[0]==="~"?n.slice(1):sh(o)+n,Mx=(n="",o)=>Ix(up(sh(n)),up(o)),up=n=>{try{return decodeURI(n)}catch{return n}},ih={hook:Ax,searchHook:Rx,parser:vx,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},ah=g.createContext(ih),$o=()=>g.useContext(ah),lh={},ch=g.createContext(lh),uh=()=>g.useContext(ch),Ai=n=>{const[o,s]=n.hook(n);return[Mx(n.base,o),rh((a,u)=>s(_x(a,n.base),u))]},Dx=()=>Ai($o()),dh=(n,o,s,a)=>{const{pattern:u,keys:f}=o instanceof RegExp?{keys:!1,pattern:o}:n(o||"*",a),p=u.exec(s)||[],[h,...v]=p;return h!==void 0?[!0,(()=>{const y=f!==!1?Object.fromEntries(f.map((S,b)=>[S,v[b]])):p.groups;let w={...v};return y&&Object.assign(w,y),w})(),...a?[h]:[]]:[!1,null]},Lx=({children:n,...o})=>{const s=$o(),a=o.hook?ih:s;let u=a;const[f,p]=o.ssrPath?.split("?")??[];p&&(o.ssrSearch=p,o.ssrPath=f),o.hrefs=o.hrefs??o.hook?.hrefs;let h=g.useRef({}),v=h.current,y=v;for(let w in a){const S=w==="base"?a[w]+(o[w]||""):o[w]||a[w];v===y&&S!==y[w]&&(h.current=y={...y}),y[w]=S,S!==a[w]&&(u=y)}return g.createElement(ah.Provider,{value:u,children:n})},dp=({children:n,component:o},s)=>o?g.createElement(o,{params:s}):typeof n=="function"?n(s):n,Fx=n=>{let o=g.useRef(lh),s=o.current;for(const a in n)n[a]!==s[a]&&(s=n);return Object.keys(n).length===0&&(s=n),o.current=s},Ar=({path:n,nest:o,match:s,...a})=>{const u=$o(),[f]=Ai(u),[p,h,v]=s??dh(u.parser,n,f,o),y=Fx({...uh(),...h});if(!p)return null;const w=v?g.createElement(Lx,{base:v},dp(a,y)):dp(a,y);return g.createElement(ch.Provider,{value:y,children:w})},ht=g.forwardRef((n,o)=>{const s=$o(),[a,u]=Ai(s),{to:f="",href:p=f,onClick:h,asChild:v,children:y,className:w,replace:S,state:b,...P}=n,R=rh(C=>{C.ctrlKey||C.metaKey||C.altKey||C.shiftKey||C.button!==0||(h?.(C),C.defaultPrevented||(C.preventDefault(),u(p,n)))}),x=s.hrefs(p[0]==="~"?p.slice(1):s.base+p,s);return v&&g.isValidElement(y)?g.cloneElement(y,{onClick:R,href:x}):g.createElement("a",{...P,onClick:R,href:x,className:w?.call?w(a===p):w,children:y,ref:o})}),fh=n=>Array.isArray(n)?n.flatMap(o=>fh(o&&o.type===g.Fragment?o.props.children:o)):[n],zx=({children:n,location:o})=>{const s=$o(),[a]=Ai(s);for(const u of fh(n)){let f=0;if(g.isValidElement(u)&&(f=dh(s.parser,u.props.path,o||a,u.props.nest))[0])return g.cloneElement(u,{match:f})}return null};var Ko=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tr=typeof window>"u"||"Deno"in globalThis;function Pt(){}function Ux(n,o){return typeof n=="function"?n(o):n}function ic(n){return typeof n=="number"&&n>=0&&n!==1/0}function ph(n,o){return Math.max(n+(o||0)-Date.now(),0)}function Dr(n,o){return typeof n=="function"?n(o):n}function Ft(n,o){return typeof n=="function"?n(o):n}function fp(n,o){const{type:s="all",exact:a,fetchStatus:u,predicate:f,queryKey:p,stale:h}=n;if(p){if(a){if(o.queryHash!==Oc(p,o.options))return!1}else if(!Vo(o.queryKey,p))return!1}if(s!=="all"){const v=o.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof h=="boolean"&&o.isStale()!==h||u&&u!==o.state.fetchStatus||f&&!f(o))}function pp(n,o){const{exact:s,status:a,predicate:u,mutationKey:f}=n;if(f){if(!o.options.mutationKey)return!1;if(s){if(Ho(o.options.mutationKey)!==Ho(f))return!1}else if(!Vo(o.options.mutationKey,f))return!1}return!(a&&o.state.status!==a||u&&!u(o))}function Oc(n,o){return(o?.queryKeyHashFn||Ho)(n)}function Ho(n){return JSON.stringify(n,(o,s)=>lc(s)?Object.keys(s).sort().reduce((a,u)=>(a[u]=s[u],a),{}):s)}function Vo(n,o){return n===o?!0:typeof n!=typeof o?!1:n&&o&&typeof n=="object"&&typeof o=="object"?!Object.keys(o).some(s=>!Vo(n[s],o[s])):!1}function hh(n,o){if(n===o)return n;const s=hp(n)&&hp(o);if(s||lc(n)&&lc(o)){const a=s?n:Object.keys(n),u=a.length,f=s?o:Object.keys(o),p=f.length,h=s?[]:{};let v=0;for(let y=0;y{setTimeout(o,n)})}function cc(n,o,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,o):s.structuralSharing!==!1?hh(n,o):o}function Hx(n,o,s=0){const a=[...n,o];return s&&a.length>s?a.slice(1):a}function Vx(n,o,s=0){const a=[o,...n];return s&&a.length>s?a.slice(0,-1):a}var Ac=Symbol();function mh(n,o){return!n.queryFn&&o?.initialPromise?()=>o.initialPromise:!n.queryFn||n.queryFn===Ac?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Wx=class extends Ko{#e;#t;#r;constructor(){super(),this.#r=n=>{if(!tr&&window.addEventListener){const o=()=>n();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#r=n,this.#t?.(),this.#t=n(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(o=>{o(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ic=new Wx,Qx=class extends Ko{#e=!0;#t;#r;constructor(){super(),this.#r=n=>{if(!tr&&window.addEventListener){const o=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#r=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},Si=new Qx;function uc(){let n,o;const s=new Promise((u,f)=>{n=u,o=f});s.status="pending",s.catch(()=>{});function a(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{a({status:"fulfilled",value:u}),n(u)},s.reject=u=>{a({status:"rejected",reason:u}),o(u)},s}function $x(n){return Math.min(1e3*2**n,3e4)}function gh(n){return(n??"online")==="online"?Si.isOnline():!0}var vh=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Ql(n){return n instanceof vh}function yh(n){let o=!1,s=0,a=!1,u;const f=uc(),p=x=>{a||(b(new vh(x)),n.abort?.())},h=()=>{o=!0},v=()=>{o=!1},y=()=>Ic.isFocused()&&(n.networkMode==="always"||Si.isOnline())&&n.canRun(),w=()=>gh(n.networkMode)&&n.canRun(),S=x=>{a||(a=!0,n.onSuccess?.(x),u?.(),f.resolve(x))},b=x=>{a||(a=!0,n.onError?.(x),u?.(),f.reject(x))},P=()=>new Promise(x=>{u=C=>{(a||y())&&x(C)},n.onPause?.()}).then(()=>{u=void 0,a||n.onContinue?.()}),R=()=>{if(a)return;let x;const C=s===0?n.initialPromise:void 0;try{x=C??n.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(S).catch(T=>{if(a)return;const O=n.retry??(tr?0:3),_=n.retryDelay??$x,D=typeof _=="function"?_(s,T):_,z=O===!0||typeof O=="number"&&sy()?void 0:P()).then(()=>{o?b(T):R()})})};return{promise:f,cancel:p,continue:()=>(u?.(),f),cancelRetry:h,continueRetry:v,canStart:w,start:()=>(w()?R():P().then(R),f)}}function Kx(){let n=[],o=0,s=h=>{h()},a=h=>{h()},u=h=>setTimeout(h,0);const f=h=>{o?n.push(h):u(()=>{s(h)})},p=()=>{const h=n;n=[],h.length&&u(()=>{a(()=>{h.forEach(v=>{s(v)})})})};return{batch:h=>{let v;o++;try{v=h()}finally{o--,o||p()}return v},batchCalls:h=>(...v)=>{f(()=>{h(...v)})},schedule:f,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{u=h}}}var Je=Kx(),xh=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ic(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(tr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},Gx=class extends xh{#e;#t;#r;#n;#i;#s;constructor(n){super(),this.#s=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#r=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=qx(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(n,o){const s=cc(this.state.data,n,this.options);return this.#o({data:s,type:"success",dataUpdatedAt:o?.updatedAt,manual:o?.manual}),s}setState(n,o){this.#o({type:"setState",state:n,setStateOptions:o})}cancel(n){const o=this.#n?.promise;return this.#n?.cancel(n),o?o.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Ft(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ac||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!ph(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(o=>o.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(o=>o.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(o=>o!==n),this.observers.length||(this.#n&&(this.#s?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(n,o){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&o?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,s.signal)})},u=()=>{const h=mh(this.options,o),v={queryKey:this.queryKey,meta:this.meta};return a(v),this.#s=!1,this.options.persister?this.options.persister(h,v,this):h(v)},f={fetchOptions:o,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};a(f),this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#o({type:"fetch",meta:f.fetchOptions?.meta});const p=h=>{Ql(h)&&h.silent||this.#o({type:"error",error:h}),Ql(h)||(this.#r.config.onError?.(h,this),this.#r.config.onSettled?.(this.state.data,h,this)),this.scheduleGc()};return this.#n=yh({initialPromise:o?.initialPromise,fn:f.fetchFn,abort:s.abort.bind(s),onSuccess:h=>{if(h===void 0){p(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){p(v);return}this.#r.config.onSuccess?.(h,this),this.#r.config.onSettled?.(h,this.state.error,this),this.scheduleGc()},onError:p,onFail:(h,v)=>{this.#o({type:"failed",failureCount:h,error:v})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}),this.#n.start()}#o(n){const o=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...wh(s.data,this.options),fetchMeta:n.meta??null};case"success":return{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=n.error;return Ql(a)&&a.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=o(this.state),Je.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:n})})}};function wh(n,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gh(o.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function qx(n){const o=typeof n.initialData=="function"?n.initialData():n.initialData,s=o!==void 0,a=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Yx=class extends Ko{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,o,s){const a=o.queryKey,u=o.queryHash??Oc(a,o);let f=this.get(u);return f||(f=new Gx({cache:this,queryKey:a,queryHash:u,options:n.defaultQueryOptions(o),state:s,defaultOptions:n.getQueryDefaults(a)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const o=this.#e.get(n.queryHash);o&&(n.destroy(),o===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Je.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const o={exact:!0,...n};return this.getAll().find(s=>fp(o,s))}findAll(n={}){const o=this.getAll();return Object.keys(n).length>0?o.filter(s=>fp(n,s)):o}notify(n){Je.batch(()=>{this.listeners.forEach(o=>{o(n)})})}onFocus(){Je.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Je.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Xx=class extends xh{#e;#t;#r;constructor(n){super(),this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#e=[],this.state=n.state||Jx(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(o=>o!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(n){this.#r=yh({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(a,u)=>{this.#n({type:"failed",failureCount:a,error:u})},onPause:()=>{this.#n({type:"pause"})},onContinue:()=>{this.#n({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const o=this.state.status==="pending",s=!this.#r.canStart();try{if(!o){this.#n({type:"pending",variables:n,isPaused:s}),await this.#t.config.onMutate?.(n,this);const u=await this.options.onMutate?.(n);u!==this.state.context&&this.#n({type:"pending",context:u,variables:n,isPaused:s})}const a=await this.#r.start();return await this.#t.config.onSuccess?.(a,n,this.state.context,this),await this.options.onSuccess?.(a,n,this.state.context),await this.#t.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,n,this.state.context),this.#n({type:"success",data:a}),a}catch(a){try{throw await this.#t.config.onError?.(a,n,this.state.context,this),await this.options.onError?.(a,n,this.state.context),await this.#t.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,n,this.state.context),a}finally{this.#n({type:"error",error:a})}}finally{this.#t.runNext(this)}}#n(n){const o=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=o(this.state),Je.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function Jx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Zx=class extends Ko{constructor(n={}){super(),this.config=n,this.#e=new Map,this.#t=Date.now()}#e;#t;build(n,o,s){const a=new Xx({mutationCache:this,mutationId:++this.#t,options:n.defaultMutationOptions(o),state:s});return this.add(a),a}add(n){const o=li(n),s=this.#e.get(o)??[];s.push(n),this.#e.set(o,s),this.notify({type:"added",mutation:n})}remove(n){const o=li(n);if(this.#e.has(o)){const s=this.#e.get(o)?.filter(a=>a!==n);s&&(s.length===0?this.#e.delete(o):this.#e.set(o,s))}this.notify({type:"removed",mutation:n})}canRun(n){const o=this.#e.get(li(n))?.find(s=>s.state.status==="pending");return!o||o===n}runNext(n){return this.#e.get(li(n))?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve()}clear(){Je.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}getAll(){return[...this.#e.values()].flat()}find(n){const o={exact:!0,...n};return this.getAll().find(s=>pp(o,s))}findAll(n={}){return this.getAll().filter(o=>pp(n,o))}notify(n){Je.batch(()=>{this.listeners.forEach(o=>{o(n)})})}resumePausedMutations(){const n=this.getAll().filter(o=>o.state.isPaused);return Je.batch(()=>Promise.all(n.map(o=>o.continue().catch(Pt))))}};function li(n){return n.options.scope?.id??String(n.mutationId)}function gp(n){return{onFetch:(o,s)=>{const a=o.options,u=o.fetchOptions?.meta?.fetchMore?.direction,f=o.state.data?.pages||[],p=o.state.data?.pageParams||[];let h={pages:[],pageParams:[]},v=0;const y=async()=>{let w=!1;const S=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(o.signal.aborted?w=!0:o.signal.addEventListener("abort",()=>{w=!0}),o.signal)})},b=mh(o.options,o.fetchOptions),P=async(R,x,C)=>{if(w)return Promise.reject();if(x==null&&R.pages.length)return Promise.resolve(R);const T={queryKey:o.queryKey,pageParam:x,direction:C?"backward":"forward",meta:o.options.meta};S(T);const O=await b(T),{maxPages:_}=o.options,D=C?Vx:Hx;return{pages:D(R.pages,O,_),pageParams:D(R.pageParams,x,_)}};if(u&&f.length){const R=u==="backward",x=R?e0:vp,C={pages:f,pageParams:p},T=x(a,C);h=await P(C,T,R)}else{const R=n??f.length;do{const x=v===0?p[0]??a.initialPageParam:vp(a,h);if(v>0&&x==null)break;h=await P(h,x),v++}while(vo.options.persister?.(y,{queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},s):o.fetchFn=y}}}function vp(n,{pages:o,pageParams:s}){const a=o.length-1;return o.length>0?n.getNextPageParam(o[a],o,s[a],s):void 0}function e0(n,{pages:o,pageParams:s}){return o.length>0?n.getPreviousPageParam?.(o[0],o,s[0],s):void 0}var t0=class{#e;#t;#r;#n;#i;#s;#o;#a;constructor(n={}){this.#e=n.queryCache||new Yx,this.#t=n.mutationCache||new Zx,this.#r=n.defaultOptions||{},this.#n=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=Ic.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Si.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state.data}ensureQueryData(n){const o=this.getQueryData(n.queryKey);if(o===void 0)return this.fetchQuery(n);{const s=this.defaultQueryOptions(n),a=this.#e.build(this,s);return n.revalidateIfStale&&a.isStaleByTime(Dr(s.staleTime,a))&&this.prefetchQuery(s),Promise.resolve(o)}}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:o,state:s})=>{const a=s.data;return[o,a]})}setQueryData(n,o,s){const a=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(a.queryHash)?.state.data,p=Ux(o,f);if(p!==void 0)return this.#e.build(this,a).setData(p,{...s,manual:!0})}setQueriesData(n,o,s){return Je.batch(()=>this.#e.findAll(n).map(({queryKey:a})=>[a,this.setQueryData(a,o,s)]))}getQueryState(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state}removeQueries(n){const o=this.#e;Je.batch(()=>{o.findAll(n).forEach(s=>{o.remove(s)})})}resetQueries(n,o){const s=this.#e,a={type:"active",...n};return Je.batch(()=>(s.findAll(n).forEach(u=>{u.reset()}),this.refetchQueries(a,o)))}cancelQueries(n={},o={}){const s={revert:!0,...o},a=Je.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(a).then(Pt).catch(Pt)}invalidateQueries(n={},o={}){return Je.batch(()=>{if(this.#e.findAll(n).forEach(a=>{a.invalidate()}),n.refetchType==="none")return Promise.resolve();const s={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(s,o)})}refetchQueries(n={},o){const s={...o,cancelRefetch:o?.cancelRefetch??!0},a=Je.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(Pt)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(a).then(Pt)}fetchQuery(n){const o=this.defaultQueryOptions(n);o.retry===void 0&&(o.retry=!1);const s=this.#e.build(this,o);return s.isStaleByTime(Dr(o.staleTime,s))?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Pt).catch(Pt)}fetchInfiniteQuery(n){return n.behavior=gp(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Pt).catch(Pt)}ensureInfiniteQueryData(n){return n.behavior=gp(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Si.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(n){this.#r=n}setQueryDefaults(n,o){this.#n.set(Ho(n),{queryKey:n,defaultOptions:o})}getQueryDefaults(n){const o=[...this.#n.values()];let s={};return o.forEach(a=>{Vo(n,a.queryKey)&&(s={...s,...a.defaultOptions})}),s}setMutationDefaults(n,o){this.#i.set(Ho(n),{mutationKey:n,defaultOptions:o})}getMutationDefaults(n){const o=[...this.#i.values()];let s={};return o.forEach(a=>{Vo(n,a.mutationKey)&&(s={...s,...a.defaultOptions})}),s}defaultQueryOptions(n){if(n._defaulted)return n;const o={...this.#r.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return o.queryHash||(o.queryHash=Oc(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.enabled!==!0&&o.queryFn===Ac&&(o.enabled=!1),o}defaultMutationOptions(n){return n?._defaulted?n:{...this.#r.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},n0=class extends Ko{constructor(n,o){super(),this.options=o,this.#e=n,this.#a=null,this.#o=uc(),this.options.experimental_prefetchInRender||this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o)}#e;#t=void 0;#r=void 0;#n=void 0;#i;#s;#o;#a;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),yp(this.#t,this.options)?this.#d():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#S(),this.#t.removeObserver(this)}setOptions(n,o){const s=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ft(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),s._defaulted&&!ac(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const u=this.hasListeners();u&&xp(this.#t,a,this.options,s)&&this.#d(),this.updateResult(o),u&&(this.#t!==a||Ft(this.options.enabled,this.#t)!==Ft(s.enabled,this.#t)||Dr(this.options.staleTime,this.#t)!==Dr(s.staleTime,this.#t))&&this.#g();const f=this.#v();u&&(this.#t!==a||Ft(this.options.enabled,this.#t)!==Ft(s.enabled,this.#t)||f!==this.#l)&&this.#y(f)}getOptimisticResult(n){const o=this.#e.getQueryCache().build(this.#e,n),s=this.createResult(o,n);return o0(this,s)&&(this.#n=s,this.#s=this.options,this.#i=this.#t.state),s}getCurrentResult(){return this.#n}trackResult(n,o){const s={};return Object.keys(n).forEach(a=>{Object.defineProperty(s,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),o?.(a),n[a])})}),s}trackProp(n){this.#h.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const o=this.#e.defaultQueryOptions(n),s=this.#e.getQueryCache().build(this.#e,o);return s.fetch().then(()=>this.createResult(s,o))}fetch(n){return this.#d({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#d(n){this.#C();let o=this.#t.fetch(this.options,n);return n?.throwOnError||(o=o.catch(Pt)),o}#g(){this.#w();const n=Dr(this.options.staleTime,this.#t);if(tr||this.#n.isStale||!ic(n))return;const s=ph(this.#n.dataUpdatedAt,n)+1;this.#c=setTimeout(()=>{this.#n.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#l=n,!(tr||Ft(this.options.enabled,this.#t)===!1||!ic(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Ic.isFocused())&&this.#d()},this.#l))}#x(){this.#g(),this.#y(this.#v())}#w(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(n,o){const s=this.#t,a=this.options,u=this.#n,f=this.#i,p=this.#s,v=n!==s?n.state:this.#r,{state:y}=n;let w={...y},S=!1,b;if(o._optimisticResults){const U=this.hasListeners(),X=!U&&yp(n,o),se=U&&xp(n,s,o,a);(X||se)&&(w={...w,...wh(y.data,n.options)}),o._optimisticResults==="isRestoring"&&(w.fetchStatus="idle")}let{error:P,errorUpdatedAt:R,status:x}=w;if(o.select&&w.data!==void 0)if(u&&w.data===f?.data&&o.select===this.#m)b=this.#f;else try{this.#m=o.select,b=o.select(w.data),b=cc(u?.data,b,o),this.#f=b,this.#a=null}catch(U){this.#a=U}else b=w.data;if(o.placeholderData!==void 0&&b===void 0&&x==="pending"){let U;if(u?.isPlaceholderData&&o.placeholderData===p?.placeholderData)U=u.data;else if(U=typeof o.placeholderData=="function"?o.placeholderData(this.#p?.state.data,this.#p):o.placeholderData,o.select&&U!==void 0)try{U=o.select(U),this.#a=null}catch(X){this.#a=X}U!==void 0&&(x="success",b=cc(u?.data,U,o),S=!0)}this.#a&&(P=this.#a,b=this.#f,R=Date.now(),x="error");const C=w.fetchStatus==="fetching",T=x==="pending",O=x==="error",_=T&&C,D=b!==void 0,W={status:x,fetchStatus:w.fetchStatus,isPending:T,isSuccess:x==="success",isError:O,isInitialLoading:_,isLoading:_,data:b,dataUpdatedAt:w.dataUpdatedAt,error:P,errorUpdatedAt:R,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>v.dataUpdateCount||w.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:O&&!D,isPaused:w.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:O&&D,isStale:_c(n,o),refetch:this.refetch,promise:this.#o};if(this.options.experimental_prefetchInRender){const U=ie=>{W.status==="error"?ie.reject(W.error):W.data!==void 0&&ie.resolve(W.data)},X=()=>{const ie=this.#o=W.promise=uc();U(ie)},se=this.#o;switch(se.status){case"pending":n.queryHash===s.queryHash&&U(se);break;case"fulfilled":(W.status==="error"||W.data!==se.value)&&X();break;case"rejected":(W.status!=="error"||W.error!==se.reason)&&X();break}}return W}updateResult(n){const o=this.#n,s=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#s=this.options,this.#i.data!==void 0&&(this.#p=this.#t),ac(s,o))return;this.#n=s;const a={},u=()=>{if(!o)return!0;const{notifyOnChangeProps:f}=this.options,p=typeof f=="function"?f():f;if(p==="all"||!p&&!this.#h.size)return!0;const h=new Set(p??this.#h);return this.options.throwOnError&&h.add("error"),Object.keys(this.#n).some(v=>{const y=v;return this.#n[y]!==o[y]&&h.has(y)})};n?.listeners!==!1&&u()&&(a.listeners=!0),this.#b({...a,...n})}#C(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const o=this.#t;this.#t=n,this.#r=n.state,this.hasListeners()&&(o?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#b(n){Je.batch(()=>{n.listeners&&this.listeners.forEach(o=>{o(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function r0(n,o){return Ft(o.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&o.retryOnMount===!1)}function yp(n,o){return r0(n,o)||n.state.data!==void 0&&dc(n,o,o.refetchOnMount)}function dc(n,o,s){if(Ft(o.enabled,n)!==!1){const a=typeof s=="function"?s(n):s;return a==="always"||a!==!1&&_c(n,o)}return!1}function xp(n,o,s,a){return(n!==o||Ft(a.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&_c(n,s)}function _c(n,o){return Ft(o.enabled,n)!==!1&&n.isStaleByTime(Dr(o.staleTime,n))}function o0(n,o){return!ac(n.getCurrentResult(),o)}var Sh=g.createContext(void 0),s0=n=>{const o=g.useContext(Sh);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},i0=({client:n,children:o})=>(g.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),l.jsx(Sh.Provider,{value:n,children:o})),Ch=g.createContext(!1),a0=()=>g.useContext(Ch);Ch.Provider;function l0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var c0=g.createContext(l0()),u0=()=>g.useContext(c0);function d0(n,o){return typeof n=="function"?n(...o):!!n}function wp(){}var f0=(n,o)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(o.isReset()||(n.retryOnMount=!1))},p0=n=>{g.useEffect(()=>{n.clearReset()},[n])},h0=({result:n,errorResetBoundary:o,throwOnError:s,query:a})=>n.isError&&!o.isReset()&&!n.isFetching&&a&&d0(s,[n.error,a]),m0=n=>{n.suspense&&(n.staleTime===void 0&&(n.staleTime=1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},g0=(n,o)=>n.isLoading&&n.isFetching&&!o,v0=(n,o)=>n?.suspense&&o.isPending,Sp=(n,o,s)=>o.fetchOptimistic(n).catch(()=>{s.clearReset()});function y0(n,o,s){const a=s0(),u=a0(),f=u0(),p=a.defaultQueryOptions(n);a.getDefaultOptions().queries?._experimental_beforeQuery?.(p),p._optimisticResults=u?"isRestoring":"optimistic",m0(p),f0(p,f),p0(f);const h=!a.getQueryCache().get(p.queryHash),[v]=g.useState(()=>new o(a,p)),y=v.getOptimisticResult(p);if(g.useSyncExternalStore(g.useCallback(w=>{const S=u?wp:v.subscribe(Je.batchCalls(w));return v.updateResult(),S},[v,u]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),g.useEffect(()=>{v.setOptions(p,{listeners:!1})},[p,v]),v0(p,y))throw Sp(p,v,f);if(h0({result:y,errorResetBoundary:f,throwOnError:p.throwOnError,query:a.getQueryCache().get(p.queryHash)}))throw y.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(p,y),p.experimental_prefetchInRender&&!tr&&g0(y,u)&&(h?Sp(p,v,f):a.getQueryCache().get(p.queryHash)?.promise)?.catch(wp).finally(()=>{v.updateResult()}),p.notifyOnChangeProps?y:v.trackResult(y)}function Mc(n,o){return y0(n,n0)}async function x0(n){if(!n.ok){const o=await n.text()||n.statusText;throw new Error(`${n.status}: ${o}`)}}const w0=({on401:n})=>async({queryKey:o})=>{const s=await fetch(o.join("/"),{credentials:"include"});return await x0(s),await s.json()},S0=new t0({defaultOptions:{queries:{queryFn:w0({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),C0=1,b0=1e6;let $l=0;function N0(){return $l=($l+1)%Number.MAX_SAFE_INTEGER,$l.toString()}const Kl=new Map,Cp=n=>{if(Kl.has(n))return;const o=setTimeout(()=>{Kl.delete(n),Bo({type:"REMOVE_TOAST",toastId:n})},b0);Kl.set(n,o)},E0=(n,o)=>{switch(o.type){case"ADD_TOAST":return{...n,toasts:[o.toast,...n.toasts].slice(0,C0)};case"UPDATE_TOAST":return{...n,toasts:n.toasts.map(s=>s.id===o.toast.id?{...s,...o.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=o;return s?Cp(s):n.toasts.forEach(a=>{Cp(a.id)}),{...n,toasts:n.toasts.map(a=>a.id===s||s===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(s=>s.id!==o.toastId)}}},gi=[];let vi={toasts:[]};function Bo(n){vi=E0(vi,n),gi.forEach(o=>{o(vi)})}function j0({...n}){const o=N0(),s=u=>Bo({type:"UPDATE_TOAST",toast:{...u,id:o}}),a=()=>Bo({type:"DISMISS_TOAST",toastId:o});return Bo({type:"ADD_TOAST",toast:{...n,id:o,open:!0,onOpenChange:u=>{u||a()}}}),{id:o,dismiss:a,update:s}}function k0(){const[n,o]=g.useState(vi);return g.useEffect(()=>(gi.push(o),()=>{const s=gi.indexOf(o);s>-1&&gi.splice(s,1)}),[n]),{...n,toast:j0,dismiss:s=>Bo({type:"DISMISS_TOAST",toastId:s})}}var Wr=th();const P0=eh(Wr);function ve(n,o,{checkForDefaultPrevented:s=!0}={}){return function(u){if(n?.(u),s===!1||!u.defaultPrevented)return o?.(u)}}function bp(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function bh(...n){return o=>{let s=!1;const a=n.map(u=>{const f=bp(u,o);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u{const{children:p,...h}=f,v=g.useMemo(()=>h,Object.values(h));return l.jsx(s.Provider,{value:v,children:p})};a.displayName=n+"Provider";function u(f){const p=g.useContext(s);if(p)return p;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[a,u]}function Qr(n,o=[]){let s=[];function a(f,p){const h=g.createContext(p),v=s.length;s=[...s,p];const y=S=>{const{scope:b,children:P,...R}=S,x=b?.[n]?.[v]||h,C=g.useMemo(()=>R,Object.values(R));return l.jsx(x.Provider,{value:C,children:P})};y.displayName=f+"Provider";function w(S,b){const P=b?.[n]?.[v]||h,R=g.useContext(P);if(R)return R;if(p!==void 0)return p;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[y,w]}const u=()=>{const f=s.map(p=>g.createContext(p));return function(h){const v=h?.[n]||f;return g.useMemo(()=>({[`__scope${n}`]:{...h,[n]:v}}),[h,v])}};return u.scopeName=n,[a,T0(u,...o)]}function T0(...n){const o=n[0];if(n.length===1)return o;const s=()=>{const a=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const p=a.reduce((h,{useScope:v,scopeName:y})=>{const S=v(f)[`__scope${y}`];return{...h,...S}},{});return g.useMemo(()=>({[`__scope${o.scopeName}`]:p}),[p])}};return s.scopeName=o.scopeName,s}function Br(n){const o=A0(n),s=g.forwardRef((a,u)=>{const{children:f,...p}=a,h=g.Children.toArray(f),v=h.find(_0);if(v){const y=v.props.children,w=h.map(S=>S===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:S);return l.jsx(o,{...p,ref:u,children:g.isValidElement(y)?g.cloneElement(y,void 0,w):null})}return l.jsx(o,{...p,ref:u,children:f})});return s.displayName=`${n}.Slot`,s}var O0=Br("Slot");function A0(n){const o=g.forwardRef((s,a)=>{const{children:u,...f}=s;if(g.isValidElement(u)){const p=D0(u),h=M0(f,u.props);return u.type!==g.Fragment&&(h.ref=a?bh(a,p):p),g.cloneElement(u,h)}return g.Children.count(u)>1?g.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Nh=Symbol("radix.slottable");function I0(n){const o=({children:s})=>l.jsx(l.Fragment,{children:s});return o.displayName=`${n}.Slottable`,o.__radixId=Nh,o}function _0(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Nh}function M0(n,o){const s={...o};for(const a in o){const u=n[a],f=o[a];/^on[A-Z]/.test(a)?u&&f?s[a]=(...h)=>{f(...h),u(...h)}:u&&(s[a]=u):a==="style"?s[a]={...u,...f}:a==="className"&&(s[a]=[u,f].filter(Boolean).join(" "))}return{...n,...s}}function D0(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Eh(n){const o=n+"CollectionProvider",[s,a]=Qr(o),[u,f]=s(o,{collectionRef:{current:null},itemMap:new Map}),p=x=>{const{scope:C,children:T}=x,O=An.useRef(null),_=An.useRef(new Map).current;return l.jsx(u,{scope:C,itemMap:_,collectionRef:O,children:T})};p.displayName=o;const h=n+"CollectionSlot",v=Br(h),y=An.forwardRef((x,C)=>{const{scope:T,children:O}=x,_=f(h,T),D=_e(C,_.collectionRef);return l.jsx(v,{ref:D,children:O})});y.displayName=h;const w=n+"CollectionItemSlot",S="data-radix-collection-item",b=Br(w),P=An.forwardRef((x,C)=>{const{scope:T,children:O,..._}=x,D=An.useRef(null),z=_e(C,D),W=f(w,T);return An.useEffect(()=>(W.itemMap.set(D,{ref:D,..._}),()=>void W.itemMap.delete(D))),l.jsx(b,{[S]:"",ref:z,children:O})});P.displayName=w;function R(x){const C=f(n+"CollectionConsumer",x);return An.useCallback(()=>{const O=C.collectionRef.current;if(!O)return[];const _=Array.from(O.querySelectorAll(`[${S}]`));return Array.from(C.itemMap.values()).sort((W,U)=>_.indexOf(W.ref.current)-_.indexOf(U.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:p,Slot:y,ItemSlot:P},R,a]}var L0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ne=L0.reduce((n,o)=>{const s=Br(`Primitive.${o}`),a=g.forwardRef((u,f)=>{const{asChild:p,...h}=u,v=p?s:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(v,{...h,ref:f})});return a.displayName=`Primitive.${o}`,{...n,[o]:a}},{});function jh(n,o){n&&Wr.flushSync(()=>n.dispatchEvent(o))}function St(n){const o=g.useRef(n);return g.useEffect(()=>{o.current=n}),g.useMemo(()=>(...s)=>o.current?.(...s),[])}function F0(n,o=globalThis?.document){const s=St(n);g.useEffect(()=>{const a=u=>{u.key==="Escape"&&s(u)};return o.addEventListener("keydown",a,{capture:!0}),()=>o.removeEventListener("keydown",a,{capture:!0})},[s,o])}var z0="DismissableLayer",fc="dismissableLayer.update",U0="dismissableLayer.pointerDownOutside",B0="dismissableLayer.focusOutside",Np,kh=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Go=g.forwardRef((n,o)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:p,onDismiss:h,...v}=n,y=g.useContext(kh),[w,S]=g.useState(null),b=w?.ownerDocument??globalThis?.document,[,P]=g.useState({}),R=_e(o,U=>S(U)),x=Array.from(y.layers),[C]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),T=x.indexOf(C),O=w?x.indexOf(w):-1,_=y.layersWithOutsidePointerEventsDisabled.size>0,D=O>=T,z=V0(U=>{const X=U.target,se=[...y.branches].some(ie=>ie.contains(X));!D||se||(u?.(U),p?.(U),U.defaultPrevented||h?.())},b),W=W0(U=>{const X=U.target;[...y.branches].some(ie=>ie.contains(X))||(f?.(U),p?.(U),U.defaultPrevented||h?.())},b);return F0(U=>{O===y.layers.size-1&&(a?.(U),!U.defaultPrevented&&h&&(U.preventDefault(),h()))},b),g.useEffect(()=>{if(w)return s&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Np=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),Ep(),()=>{s&&y.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Np)}},[w,b,s,y]),g.useEffect(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),Ep())},[w,y]),g.useEffect(()=>{const U=()=>P({});return document.addEventListener(fc,U),()=>document.removeEventListener(fc,U)},[]),l.jsx(Ne.div,{...v,ref:R,style:{pointerEvents:_?D?"auto":"none":void 0,...n.style},onFocusCapture:ve(n.onFocusCapture,W.onFocusCapture),onBlurCapture:ve(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:ve(n.onPointerDownCapture,z.onPointerDownCapture)})});Go.displayName=z0;var H0="DismissableLayerBranch",Ph=g.forwardRef((n,o)=>{const s=g.useContext(kh),a=g.useRef(null),u=_e(o,a);return g.useEffect(()=>{const f=a.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),l.jsx(Ne.div,{...n,ref:u})});Ph.displayName=H0;function V0(n,o=globalThis?.document){const s=St(n),a=g.useRef(!1),u=g.useRef(()=>{});return g.useEffect(()=>{const f=h=>{if(h.target&&!a.current){let v=function(){Rh(U0,s,y,{discrete:!0})};const y={originalEvent:h};h.pointerType==="touch"?(o.removeEventListener("click",u.current),u.current=v,o.addEventListener("click",u.current,{once:!0})):v()}else o.removeEventListener("click",u.current);a.current=!1},p=window.setTimeout(()=>{o.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(p),o.removeEventListener("pointerdown",f),o.removeEventListener("click",u.current)}},[o,s]),{onPointerDownCapture:()=>a.current=!0}}function W0(n,o=globalThis?.document){const s=St(n),a=g.useRef(!1);return g.useEffect(()=>{const u=f=>{f.target&&!a.current&&Rh(B0,s,{originalEvent:f},{discrete:!1})};return o.addEventListener("focusin",u),()=>o.removeEventListener("focusin",u)},[o,s]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Ep(){const n=new CustomEvent(fc);document.dispatchEvent(n)}function Rh(n,o,s,{discrete:a}){const u=s.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),a?jh(u,f):u.dispatchEvent(f)}var Q0=Go,$0=Ph,st=globalThis?.document?g.useLayoutEffect:()=>{},K0="Portal",Ii=g.forwardRef((n,o)=>{const{container:s,...a}=n,[u,f]=g.useState(!1);st(()=>f(!0),[]);const p=s||u&&globalThis?.document?.body;return p?P0.createPortal(l.jsx(Ne.div,{...a,ref:o}),p):null});Ii.displayName=K0;function G0(n,o){return g.useReducer((s,a)=>o[s][a]??s,n)}var $r=n=>{const{present:o,children:s}=n,a=q0(o),u=typeof s=="function"?s({present:a.isPresent}):g.Children.only(s),f=_e(a.ref,Y0(u));return typeof s=="function"||a.isPresent?g.cloneElement(u,{ref:f}):null};$r.displayName="Presence";function q0(n){const[o,s]=g.useState(),a=g.useRef({}),u=g.useRef(n),f=g.useRef("none"),p=n?"mounted":"unmounted",[h,v]=G0(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const y=ci(a.current);f.current=h==="mounted"?y:"none"},[h]),st(()=>{const y=a.current,w=u.current;if(w!==n){const b=f.current,P=ci(y);n?v("MOUNT"):P==="none"||y?.display==="none"?v("UNMOUNT"):v(w&&b!==P?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,v]),st(()=>{if(o){let y;const w=o.ownerDocument.defaultView??window,S=P=>{const x=ci(a.current).includes(P.animationName);if(P.target===o&&x&&(v("ANIMATION_END"),!u.current)){const C=o.style.animationFillMode;o.style.animationFillMode="forwards",y=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=C)})}},b=P=>{P.target===o&&(f.current=ci(a.current))};return o.addEventListener("animationstart",b),o.addEventListener("animationcancel",S),o.addEventListener("animationend",S),()=>{w.clearTimeout(y),o.removeEventListener("animationstart",b),o.removeEventListener("animationcancel",S),o.removeEventListener("animationend",S)}}else v("ANIMATION_END")},[o,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:g.useCallback(y=>{y&&(a.current=getComputedStyle(y)),s(y)},[])}}function ci(n){return n?.animationName||"none"}function Y0(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Ci({prop:n,defaultProp:o,onChange:s=()=>{}}){const[a,u]=X0({defaultProp:o,onChange:s}),f=n!==void 0,p=f?n:a,h=St(s),v=g.useCallback(y=>{if(f){const S=typeof y=="function"?y(n):y;S!==n&&h(S)}else u(y)},[f,n,u,h]);return[p,v]}function X0({defaultProp:n,onChange:o}){const s=g.useState(n),[a]=s,u=g.useRef(a),f=St(o);return g.useEffect(()=>{u.current!==a&&(f(a),u.current=a)},[a,u,f]),s}var J0="VisuallyHidden",qo=g.forwardRef((n,o)=>l.jsx(Ne.span,{...n,ref:o,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",...n.style}}));qo.displayName=J0;var Z0=qo,Dc="ToastProvider",[Lc,ew,tw]=Eh("Toast"),[Th,mN]=Qr("Toast",[tw]),[nw,_i]=Th(Dc),Oh=n=>{const{__scopeToast:o,label:s="Notification",duration:a=5e3,swipeDirection:u="right",swipeThreshold:f=50,children:p}=n,[h,v]=g.useState(null),[y,w]=g.useState(0),S=g.useRef(!1),b=g.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Dc}\`. Expected non-empty \`string\`.`),l.jsx(Lc.Provider,{scope:o,children:l.jsx(nw,{scope:o,label:s,duration:a,swipeDirection:u,swipeThreshold:f,toastCount:y,viewport:h,onViewportChange:v,onToastAdd:g.useCallback(()=>w(P=>P+1),[]),onToastRemove:g.useCallback(()=>w(P=>P-1),[]),isFocusedToastEscapeKeyDownRef:S,isClosePausedRef:b,children:p})})};Oh.displayName=Dc;var Ah="ToastViewport",rw=["F8"],pc="toast.viewportPause",hc="toast.viewportResume",Ih=g.forwardRef((n,o)=>{const{__scopeToast:s,hotkey:a=rw,label:u="Notifications ({hotkey})",...f}=n,p=_i(Ah,s),h=ew(s),v=g.useRef(null),y=g.useRef(null),w=g.useRef(null),S=g.useRef(null),b=_e(o,S,p.onViewportChange),P=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=p.toastCount>0;g.useEffect(()=>{const C=T=>{a.length!==0&&a.every(_=>T[_]||T.code===_)&&S.current?.focus()};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[a]),g.useEffect(()=>{const C=v.current,T=S.current;if(R&&C&&T){const O=()=>{if(!p.isClosePausedRef.current){const W=new CustomEvent(pc);T.dispatchEvent(W),p.isClosePausedRef.current=!0}},_=()=>{if(p.isClosePausedRef.current){const W=new CustomEvent(hc);T.dispatchEvent(W),p.isClosePausedRef.current=!1}},D=W=>{!C.contains(W.relatedTarget)&&_()},z=()=>{C.contains(document.activeElement)||_()};return C.addEventListener("focusin",O),C.addEventListener("focusout",D),C.addEventListener("pointermove",O),C.addEventListener("pointerleave",z),window.addEventListener("blur",O),window.addEventListener("focus",_),()=>{C.removeEventListener("focusin",O),C.removeEventListener("focusout",D),C.removeEventListener("pointermove",O),C.removeEventListener("pointerleave",z),window.removeEventListener("blur",O),window.removeEventListener("focus",_)}}},[R,p.isClosePausedRef]);const x=g.useCallback(({tabbingDirection:C})=>{const O=h().map(_=>{const D=_.ref.current,z=[D,...gw(D)];return C==="forwards"?z:z.reverse()});return(C==="forwards"?O.reverse():O).flat()},[h]);return g.useEffect(()=>{const C=S.current;if(C){const T=O=>{const _=O.altKey||O.ctrlKey||O.metaKey;if(O.key==="Tab"&&!_){const z=document.activeElement,W=O.shiftKey;if(O.target===C&&W){y.current?.focus();return}const se=x({tabbingDirection:W?"backwards":"forwards"}),ie=se.findIndex(me=>me===z);Gl(se.slice(ie+1))?O.preventDefault():W?y.current?.focus():w.current?.focus()}};return C.addEventListener("keydown",T),()=>C.removeEventListener("keydown",T)}},[h,x]),l.jsxs($0,{ref:v,role:"region","aria-label":u.replace("{hotkey}",P),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&l.jsx(mc,{ref:y,onFocusFromOutsideViewport:()=>{const C=x({tabbingDirection:"forwards"});Gl(C)}}),l.jsx(Lc.Slot,{scope:s,children:l.jsx(Ne.ol,{tabIndex:-1,...f,ref:b})}),R&&l.jsx(mc,{ref:w,onFocusFromOutsideViewport:()=>{const C=x({tabbingDirection:"backwards"});Gl(C)}})]})});Ih.displayName=Ah;var _h="ToastFocusProxy",mc=g.forwardRef((n,o)=>{const{__scopeToast:s,onFocusFromOutsideViewport:a,...u}=n,f=_i(_h,s);return l.jsx(qo,{"aria-hidden":!0,tabIndex:0,...u,ref:o,style:{position:"fixed"},onFocus:p=>{const h=p.relatedTarget;!f.viewport?.contains(h)&&a()}})});mc.displayName=_h;var Mi="Toast",ow="toast.swipeStart",sw="toast.swipeMove",iw="toast.swipeCancel",aw="toast.swipeEnd",Mh=g.forwardRef((n,o)=>{const{forceMount:s,open:a,defaultOpen:u,onOpenChange:f,...p}=n,[h=!0,v]=Ci({prop:a,defaultProp:u,onChange:f});return l.jsx($r,{present:s||h,children:l.jsx(uw,{open:h,...p,ref:o,onClose:()=>v(!1),onPause:St(n.onPause),onResume:St(n.onResume),onSwipeStart:ve(n.onSwipeStart,y=>{y.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(n.onSwipeMove,y=>{const{x:w,y:S}=y.detail.delta;y.currentTarget.setAttribute("data-swipe","move"),y.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${w}px`),y.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${S}px`)}),onSwipeCancel:ve(n.onSwipeCancel,y=>{y.currentTarget.setAttribute("data-swipe","cancel"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),y.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),y.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(n.onSwipeEnd,y=>{const{x:w,y:S}=y.detail.delta;y.currentTarget.setAttribute("data-swipe","end"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),y.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${w}px`),y.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${S}px`),v(!1)})})})});Mh.displayName=Mi;var[lw,cw]=Th(Mi,{onClose(){}}),uw=g.forwardRef((n,o)=>{const{__scopeToast:s,type:a="foreground",duration:u,open:f,onClose:p,onEscapeKeyDown:h,onPause:v,onResume:y,onSwipeStart:w,onSwipeMove:S,onSwipeCancel:b,onSwipeEnd:P,...R}=n,x=_i(Mi,s),[C,T]=g.useState(null),O=_e(o,G=>T(G)),_=g.useRef(null),D=g.useRef(null),z=u||x.duration,W=g.useRef(0),U=g.useRef(z),X=g.useRef(0),{onToastAdd:se,onToastRemove:ie}=x,me=St(()=>{C?.contains(document.activeElement)&&x.viewport?.focus(),p()}),J=g.useCallback(G=>{!G||G===1/0||(window.clearTimeout(X.current),W.current=new Date().getTime(),X.current=window.setTimeout(me,G))},[me]);g.useEffect(()=>{const G=x.viewport;if(G){const he=()=>{J(U.current),y?.()},te=()=>{const re=new Date().getTime()-W.current;U.current=U.current-re,window.clearTimeout(X.current),v?.()};return G.addEventListener(pc,te),G.addEventListener(hc,he),()=>{G.removeEventListener(pc,te),G.removeEventListener(hc,he)}}},[x.viewport,z,v,y,J]),g.useEffect(()=>{f&&!x.isClosePausedRef.current&&J(z)},[f,z,x.isClosePausedRef,J]),g.useEffect(()=>(se(),()=>ie()),[se,ie]);const fe=g.useMemo(()=>C?Hh(C):null,[C]);return x.viewport?l.jsxs(l.Fragment,{children:[fe&&l.jsx(dw,{__scopeToast:s,role:"status","aria-live":a==="foreground"?"assertive":"polite","aria-atomic":!0,children:fe}),l.jsx(lw,{scope:s,onClose:me,children:Wr.createPortal(l.jsx(Lc.ItemSlot,{scope:s,children:l.jsx(Q0,{asChild:!0,onEscapeKeyDown:ve(h,()=>{x.isFocusedToastEscapeKeyDownRef.current||me(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(Ne.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":f?"open":"closed","data-swipe-direction":x.swipeDirection,...R,ref:O,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:ve(n.onKeyDown,G=>{G.key==="Escape"&&(h?.(G.nativeEvent),G.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,me()))}),onPointerDown:ve(n.onPointerDown,G=>{G.button===0&&(_.current={x:G.clientX,y:G.clientY})}),onPointerMove:ve(n.onPointerMove,G=>{if(!_.current)return;const he=G.clientX-_.current.x,te=G.clientY-_.current.y,re=!!D.current,L=["left","right"].includes(x.swipeDirection),$=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,K=L?$(0,he):0,k=L?0:$(0,te),F=G.pointerType==="touch"?10:2,ue={x:K,y:k},de={originalEvent:G,delta:ue};re?(D.current=ue,ui(sw,S,de,{discrete:!1})):jp(ue,x.swipeDirection,F)?(D.current=ue,ui(ow,w,de,{discrete:!1}),G.target.setPointerCapture(G.pointerId)):(Math.abs(he)>F||Math.abs(te)>F)&&(_.current=null)}),onPointerUp:ve(n.onPointerUp,G=>{const he=D.current,te=G.target;if(te.hasPointerCapture(G.pointerId)&&te.releasePointerCapture(G.pointerId),D.current=null,_.current=null,he){const re=G.currentTarget,L={originalEvent:G,delta:he};jp(he,x.swipeDirection,x.swipeThreshold)?ui(aw,P,L,{discrete:!0}):ui(iw,b,L,{discrete:!0}),re.addEventListener("click",$=>$.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),dw=n=>{const{__scopeToast:o,children:s,...a}=n,u=_i(Mi,o),[f,p]=g.useState(!1),[h,v]=g.useState(!1);return hw(()=>p(!0)),g.useEffect(()=>{const y=window.setTimeout(()=>v(!0),1e3);return()=>window.clearTimeout(y)},[]),h?null:l.jsx(Ii,{asChild:!0,children:l.jsx(qo,{...a,children:f&&l.jsxs(l.Fragment,{children:[u.label," ",s]})})})},fw="ToastTitle",Dh=g.forwardRef((n,o)=>{const{__scopeToast:s,...a}=n;return l.jsx(Ne.div,{...a,ref:o})});Dh.displayName=fw;var pw="ToastDescription",Lh=g.forwardRef((n,o)=>{const{__scopeToast:s,...a}=n;return l.jsx(Ne.div,{...a,ref:o})});Lh.displayName=pw;var Fh="ToastAction",zh=g.forwardRef((n,o)=>{const{altText:s,...a}=n;return s.trim()?l.jsx(Bh,{altText:s,asChild:!0,children:l.jsx(Fc,{...a,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${Fh}\`. Expected non-empty \`string\`.`),null)});zh.displayName=Fh;var Uh="ToastClose",Fc=g.forwardRef((n,o)=>{const{__scopeToast:s,...a}=n,u=cw(Uh,s);return l.jsx(Bh,{asChild:!0,children:l.jsx(Ne.button,{type:"button",...a,ref:o,onClick:ve(n.onClick,u.onClose)})})});Fc.displayName=Uh;var Bh=g.forwardRef((n,o)=>{const{__scopeToast:s,altText:a,...u}=n;return l.jsx(Ne.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...u,ref:o})});function Hh(n){const o=[];return Array.from(n.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&o.push(a.textContent),mw(a)){const u=a.ariaHidden||a.hidden||a.style.display==="none",f=a.dataset.radixToastAnnounceExclude==="";if(!u)if(f){const p=a.dataset.radixToastAnnounceAlt;p&&o.push(p)}else o.push(...Hh(a))}}),o}function ui(n,o,s,{discrete:a}){const u=s.originalEvent.currentTarget,f=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),a?jh(u,f):u.dispatchEvent(f)}var jp=(n,o,s=0)=>{const a=Math.abs(n.x),u=Math.abs(n.y),f=a>u;return o==="left"||o==="right"?f&&a>s:!f&&u>s};function hw(n=()=>{}){const o=St(n);st(()=>{let s=0,a=0;return s=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(a)}},[o])}function mw(n){return n.nodeType===n.ELEMENT_NODE}function gw(n){const o=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const u=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||u?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function Gl(n){const o=document.activeElement;return n.some(s=>s===o?!0:(s.focus(),document.activeElement!==o))}var vw=Oh,Vh=Ih,Wh=Mh,Qh=Dh,$h=Lh,Kh=zh,Gh=Fc;function qh(n){var o,s,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(o=0;otypeof n=="boolean"?`${n}`:n===0?"0":n,Pp=Yh,Di=(n,o)=>s=>{var a;if(o?.variants==null)return Pp(n,s?.class,s?.className);const{variants:u,defaultVariants:f}=o,p=Object.keys(u).map(y=>{const w=s?.[y],S=f?.[y];if(w===null)return null;const b=kp(w)||kp(S);return u[y][b]}),h=s&&Object.entries(s).reduce((y,w)=>{let[S,b]=w;return b===void 0||(y[S]=b),y},{}),v=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((y,w)=>{let{class:S,className:b,...P}=w;return Object.entries(P).every(R=>{let[x,C]=R;return Array.isArray(C)?C.includes({...f,...h}[x]):{...f,...h}[x]===C})?[...y,S,b]:y},[]);return Pp(n,p,v,s?.class,s?.className)};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yw=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xh=(...n)=>n.filter((o,s,a)=>!!o&&a.indexOf(o)===s).join(" ");/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var xw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ww=g.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:u="",children:f,iconNode:p,...h},v)=>g.createElement("svg",{ref:v,...xw,width:o,height:o,stroke:n,strokeWidth:a?Number(s)*24/Number(o):s,className:Xh("lucide",u),...h},[...p.map(([y,w])=>g.createElement(y,w)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const De=(n,o)=>{const s=g.forwardRef(({className:a,...u},f)=>g.createElement(ww,{ref:f,iconNode:o,className:Xh(`lucide-${yw(n)}`,a),...u}));return s.displayName=`${n}`,s};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bi=De("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sw=De("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jh=De("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cw=De("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bw=De("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nw=De("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ew=De("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jw=De("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kw=De("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gc=De("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pw=De("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rw=De("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ql=De("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tw=De("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ow=De("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rp=De("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zh=De("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Aw=De("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vc=De("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const em=De("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zc=De("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zn=De("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tp=De("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tm=De("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Uc="-",Iw=n=>{const o=Mw(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:a}=n;return{getClassGroupId:p=>{const h=p.split(Uc);return h[0]===""&&h.length!==1&&h.shift(),nm(h,o)||_w(p)},getConflictingClassGroupIds:(p,h)=>{const v=s[p]||[];return h&&a[p]?[...v,...a[p]]:v}}},nm=(n,o)=>{if(n.length===0)return o.classGroupId;const s=n[0],a=o.nextPart.get(s),u=a?nm(n.slice(1),a):void 0;if(u)return u;if(o.validators.length===0)return;const f=n.join(Uc);return o.validators.find(({validator:p})=>p(f))?.classGroupId},Op=/^\[(.+)\]$/,_w=n=>{if(Op.test(n)){const o=Op.exec(n)[1],s=o?.substring(0,o.indexOf(":"));if(s)return"arbitrary.."+s}},Mw=n=>{const{theme:o,prefix:s}=n,a={nextPart:new Map,validators:[]};return Lw(Object.entries(n.classGroups),s).forEach(([f,p])=>{yc(p,a,f,o)}),a},yc=(n,o,s,a)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?o:Ap(o,u);f.classGroupId=s;return}if(typeof u=="function"){if(Dw(u)){yc(u(a),o,s,a);return}o.validators.push({validator:u,classGroupId:s});return}Object.entries(u).forEach(([f,p])=>{yc(p,Ap(o,f),s,a)})})},Ap=(n,o)=>{let s=n;return o.split(Uc).forEach(a=>{s.nextPart.has(a)||s.nextPart.set(a,{nextPart:new Map,validators:[]}),s=s.nextPart.get(a)}),s},Dw=n=>n.isThemeGetter,Lw=(n,o)=>o?n.map(([s,a])=>{const u=a.map(f=>typeof f=="string"?o+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([p,h])=>[o+p,h])):f);return[s,u]}):n,Fw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,s=new Map,a=new Map;const u=(f,p)=>{s.set(f,p),o++,o>n&&(o=0,a=s,s=new Map)};return{get(f){let p=s.get(f);if(p!==void 0)return p;if((p=a.get(f))!==void 0)return u(f,p),p},set(f,p){s.has(f)?s.set(f,p):u(f,p)}}},rm="!",zw=n=>{const{separator:o,experimentalParseClassName:s}=n,a=o.length===1,u=o[0],f=o.length,p=h=>{const v=[];let y=0,w=0,S;for(let C=0;Cw?S-w:void 0;return{modifiers:v,hasImportantModifier:P,baseClassName:R,maybePostfixModifierPosition:x}};return s?h=>s({className:h,parseClassName:p}):p},Uw=n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(a=>{a[0]==="["?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o},Bw=n=>({cache:Fw(n.cacheSize),parseClassName:zw(n),...Iw(n)}),Hw=/\s+/,Vw=(n,o)=>{const{parseClassName:s,getClassGroupId:a,getConflictingClassGroupIds:u}=o,f=[],p=n.trim().split(Hw);let h="";for(let v=p.length-1;v>=0;v-=1){const y=p[v],{modifiers:w,hasImportantModifier:S,baseClassName:b,maybePostfixModifierPosition:P}=s(y);let R=!!P,x=a(R?b.substring(0,P):b);if(!x){if(!R){h=y+(h.length>0?" "+h:h);continue}if(x=a(b),!x){h=y+(h.length>0?" "+h:h);continue}R=!1}const C=Uw(w).join(":"),T=S?C+rm:C,O=T+x;if(f.includes(O))continue;f.push(O);const _=u(x,R);for(let D=0;D<_.length;++D){const z=_[D];f.push(T+z)}h=y+(h.length>0?" "+h:h)}return h};function Ww(){let n=0,o,s,a="";for(;n{if(typeof n=="string")return n;let o,s="";for(let a=0;aS(w),n());return s=Bw(y),a=s.cache.get,u=s.cache.set,f=h,h(v)}function h(v){const y=a(v);if(y)return y;const w=Vw(v,s);return u(v,w),w}return function(){return f(Ww.apply(null,arguments))}}const Ie=n=>{const o=s=>s[n]||[];return o.isThemeGetter=!0,o},sm=/^\[(?:([a-z-]+):)?(.+)\]$/i,$w=/^\d+\/\d+$/,Kw=new Set(["px","full","screen"]),Gw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=n=>Lr(n)||Kw.has(n)||$w.test(n),Tn=n=>Kr(n,"length",i1),Lr=n=>!!n&&!Number.isNaN(Number(n)),Yl=n=>Kr(n,"number",Lr),Fo=n=>!!n&&Number.isInteger(Number(n)),Zw=n=>n.endsWith("%")&&Lr(n.slice(0,-1)),ge=n=>sm.test(n),On=n=>Gw.test(n),e1=new Set(["length","size","percentage"]),t1=n=>Kr(n,e1,im),n1=n=>Kr(n,"position",im),r1=new Set(["image","url"]),o1=n=>Kr(n,r1,l1),s1=n=>Kr(n,"",a1),zo=()=>!0,Kr=(n,o,s)=>{const a=sm.exec(n);return a?a[1]?typeof o=="string"?a[1]===o:o.has(a[1]):s(a[2]):!1},i1=n=>qw.test(n)&&!Yw.test(n),im=()=>!1,a1=n=>Xw.test(n),l1=n=>Jw.test(n),c1=()=>{const n=Ie("colors"),o=Ie("spacing"),s=Ie("blur"),a=Ie("brightness"),u=Ie("borderColor"),f=Ie("borderRadius"),p=Ie("borderSpacing"),h=Ie("borderWidth"),v=Ie("contrast"),y=Ie("grayscale"),w=Ie("hueRotate"),S=Ie("invert"),b=Ie("gap"),P=Ie("gradientColorStops"),R=Ie("gradientColorStopPositions"),x=Ie("inset"),C=Ie("margin"),T=Ie("opacity"),O=Ie("padding"),_=Ie("saturate"),D=Ie("scale"),z=Ie("sepia"),W=Ie("skew"),U=Ie("space"),X=Ie("translate"),se=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",ge,o],J=()=>[ge,o],fe=()=>["",ln,Tn],G=()=>["auto",Lr,ge],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],te=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",ge],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[Lr,ge];return{cacheSize:500,separator:":",theme:{colors:[zo],spacing:[ln,Tn],blur:["none","",On,ge],brightness:k(),borderColor:[n],borderRadius:["none","","full",On,ge],borderSpacing:J(),borderWidth:fe(),contrast:k(),grayscale:$(),hueRotate:k(),invert:$(),gap:J(),gradientColorStops:[n],gradientColorStopPositions:[Zw,Tn],inset:me(),margin:me(),opacity:k(),padding:J(),saturate:k(),scale:k(),sepia:$(),skew:k(),space:J(),translate:J()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[On]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),ge]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:se()}],"overscroll-x":[{"overscroll-x":se()}],"overscroll-y":[{"overscroll-y":se()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fo,ge]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",Fo,ge]}],"grid-cols":[{"grid-cols":[zo]}],"col-start-end":[{col:["auto",{span:["full",Fo,ge]},ge]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[zo]}],"row-start-end":[{row:["auto",{span:[Fo,ge]},ge]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,o]}],"min-w":[{"min-w":[ge,o,"min","max","fit"]}],"max-w":[{"max-w":[ge,o,"none","full","min","max","fit","prose",{screen:[On]},On]}],h:[{h:[ge,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,o,"auto","min","max","fit"]}],"font-size":[{text:["base",On,Tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yl]}],"font-family":[{font:[zo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",Lr,Yl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Tn]}],"underline-offset":[{"underline-offset":["auto",ln,ge]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),n1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",t1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},o1]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...te(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:te()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...te()]}],"outline-offset":[{"outline-offset":[ln,ge]}],"outline-w":[{outline:[ln,Tn]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[ln,Tn]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",On,s1]}],"shadow-color":[{shadow:[zo]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[a]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",On,ge]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[S]}],saturate:[{saturate:[_]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-y":[{"border-spacing-y":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[Fo,ge]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[W]}],"skew-y":[{"skew-y":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[ln,Tn,Yl]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},u1=Qw(c1);function Pe(...n){return u1(Yh(n))}const d1=vw,am=g.forwardRef(({className:n,...o},s)=>l.jsx(Vh,{ref:s,className:Pe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...o}));am.displayName=Vh.displayName;const f1=Di("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),lm=g.forwardRef(({className:n,variant:o,...s},a)=>l.jsx(Wh,{ref:a,className:Pe(f1({variant:o}),n),...s}));lm.displayName=Wh.displayName;const p1=g.forwardRef(({className:n,...o},s)=>l.jsx(Kh,{ref:s,className:Pe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...o}));p1.displayName=Kh.displayName;const cm=g.forwardRef(({className:n,...o},s)=>l.jsx(Gh,{ref:s,className:Pe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...o,children:l.jsx(tm,{className:"h-4 w-4"})}));cm.displayName=Gh.displayName;const um=g.forwardRef(({className:n,...o},s)=>l.jsx(Qh,{ref:s,className:Pe("text-sm font-semibold",n),...o}));um.displayName=Qh.displayName;const dm=g.forwardRef(({className:n,...o},s)=>l.jsx($h,{ref:s,className:Pe("text-sm opacity-90",n),...o}));dm.displayName=$h.displayName;function h1(){const{toasts:n}=k0();return l.jsxs(d1,{children:[n.map(function({id:o,title:s,description:a,action:u,...f}){return l.jsxs(lm,{...f,children:[l.jsxs("div",{className:"grid gap-1",children:[s&&l.jsx(um,{children:s}),a&&l.jsx(dm,{children:a})]}),u,l.jsx(cm,{})]},o)}),l.jsx(am,{})]})}var m1=nh[" useId ".trim().toString()]||(()=>{}),g1=0;function Fr(n){const[o,s]=g.useState(m1());return st(()=>{s(a=>a??String(g1++))},[n]),o?`radix-${o}`:""}const v1=["top","right","bottom","left"],_n=Math.min,xt=Math.max,Ni=Math.round,di=Math.floor,Yt=n=>({x:n,y:n}),y1={left:"right",right:"left",bottom:"top",top:"bottom"},x1={start:"end",end:"start"};function xc(n,o,s){return xt(n,_n(o,s))}function cn(n,o){return typeof n=="function"?n(o):n}function un(n){return n.split("-")[0]}function Gr(n){return n.split("-")[1]}function Bc(n){return n==="x"?"y":"x"}function Hc(n){return n==="y"?"height":"width"}function Mn(n){return["top","bottom"].includes(un(n))?"y":"x"}function Vc(n){return Bc(Mn(n))}function w1(n,o,s){s===void 0&&(s=!1);const a=Gr(n),u=Vc(n),f=Hc(u);let p=u==="x"?a===(s?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[f]>o.floating[f]&&(p=Ei(p)),[p,Ei(p)]}function S1(n){const o=Ei(n);return[wc(n),o,wc(o)]}function wc(n){return n.replace(/start|end/g,o=>x1[o])}function C1(n,o,s){const a=["left","right"],u=["right","left"],f=["top","bottom"],p=["bottom","top"];switch(n){case"top":case"bottom":return s?o?u:a:o?a:u;case"left":case"right":return o?f:p;default:return[]}}function b1(n,o,s,a){const u=Gr(n);let f=C1(un(n),s==="start",a);return u&&(f=f.map(p=>p+"-"+u),o&&(f=f.concat(f.map(wc)))),f}function Ei(n){return n.replace(/left|right|bottom|top/g,o=>y1[o])}function N1(n){return{top:0,right:0,bottom:0,left:0,...n}}function fm(n){return typeof n!="number"?N1(n):{top:n,right:n,bottom:n,left:n}}function ji(n){const{x:o,y:s,width:a,height:u}=n;return{width:a,height:u,top:s,left:o,right:o+a,bottom:s+u,x:o,y:s}}function Ip(n,o,s){let{reference:a,floating:u}=n;const f=Mn(o),p=Vc(o),h=Hc(p),v=un(o),y=f==="y",w=a.x+a.width/2-u.width/2,S=a.y+a.height/2-u.height/2,b=a[h]/2-u[h]/2;let P;switch(v){case"top":P={x:w,y:a.y-u.height};break;case"bottom":P={x:w,y:a.y+a.height};break;case"right":P={x:a.x+a.width,y:S};break;case"left":P={x:a.x-u.width,y:S};break;default:P={x:a.x,y:a.y}}switch(Gr(o)){case"start":P[p]-=b*(s&&y?-1:1);break;case"end":P[p]+=b*(s&&y?-1:1);break}return P}const E1=async(n,o,s)=>{const{placement:a="bottom",strategy:u="absolute",middleware:f=[],platform:p}=s,h=f.filter(Boolean),v=await(p.isRTL==null?void 0:p.isRTL(o));let y=await p.getElementRects({reference:n,floating:o,strategy:u}),{x:w,y:S}=Ip(y,a,v),b=a,P={},R=0;for(let x=0;x({name:"arrow",options:n,async fn(o){const{x:s,y:a,placement:u,rects:f,platform:p,elements:h,middlewareData:v}=o,{element:y,padding:w=0}=cn(n,o)||{};if(y==null)return{};const S=fm(w),b={x:s,y:a},P=Vc(u),R=Hc(P),x=await p.getDimensions(y),C=P==="y",T=C?"top":"left",O=C?"bottom":"right",_=C?"clientHeight":"clientWidth",D=f.reference[R]+f.reference[P]-b[P]-f.floating[R],z=b[P]-f.reference[P],W=await(p.getOffsetParent==null?void 0:p.getOffsetParent(y));let U=W?W[_]:0;(!U||!await(p.isElement==null?void 0:p.isElement(W)))&&(U=h.floating[_]||f.floating[R]);const X=D/2-z/2,se=U/2-x[R]/2-1,ie=_n(S[T],se),me=_n(S[O],se),J=ie,fe=U-x[R]-me,G=U/2-x[R]/2+X,he=xc(J,G,fe),te=!v.arrow&&Gr(u)!=null&&G!==he&&f.reference[R]/2-(GG<=0)){var me,J;const G=(((me=f.flip)==null?void 0:me.index)||0)+1,he=U[G];if(he)return{data:{index:G,overflows:ie},reset:{placement:he}};let te=(J=ie.filter(re=>re.overflows[0]<=0).sort((re,L)=>re.overflows[1]-L.overflows[1])[0])==null?void 0:J.placement;if(!te)switch(P){case"bestFit":{var fe;const re=(fe=ie.filter(L=>{if(W){const $=Mn(L.placement);return $===O||$==="y"}return!0}).map(L=>[L.placement,L.overflows.filter($=>$>0).reduce(($,K)=>$+K,0)]).sort((L,$)=>L[1]-$[1])[0])==null?void 0:fe[0];re&&(te=re);break}case"initialPlacement":te=h;break}if(u!==te)return{reset:{placement:te}}}return{}}}};function _p(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function Mp(n){return v1.some(o=>n[o]>=0)}const P1=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:s}=o,{strategy:a="referenceHidden",...u}=cn(n,o);switch(a){case"referenceHidden":{const f=await Wo(o,{...u,elementContext:"reference"}),p=_p(f,s.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Mp(p)}}}case"escaped":{const f=await Wo(o,{...u,altBoundary:!0}),p=_p(f,s.floating);return{data:{escapedOffsets:p,escaped:Mp(p)}}}default:return{}}}}};async function R1(n,o){const{placement:s,platform:a,elements:u}=n,f=await(a.isRTL==null?void 0:a.isRTL(u.floating)),p=un(s),h=Gr(s),v=Mn(s)==="y",y=["left","top"].includes(p)?-1:1,w=f&&v?-1:1,S=cn(o,n);let{mainAxis:b,crossAxis:P,alignmentAxis:R}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return h&&typeof R=="number"&&(P=h==="end"?R*-1:R),v?{x:P*w,y:b*y}:{x:b*y,y:P*w}}const T1=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var s,a;const{x:u,y:f,placement:p,middlewareData:h}=o,v=await R1(o,n);return p===((s=h.offset)==null?void 0:s.placement)&&(a=h.arrow)!=null&&a.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:p}}}}},O1=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:s,y:a,placement:u}=o,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:C=>{let{x:T,y:O}=C;return{x:T,y:O}}},...v}=cn(n,o),y={x:s,y:a},w=await Wo(o,v),S=Mn(un(u)),b=Bc(S);let P=y[b],R=y[S];if(f){const C=b==="y"?"top":"left",T=b==="y"?"bottom":"right",O=P+w[C],_=P-w[T];P=xc(O,P,_)}if(p){const C=S==="y"?"top":"left",T=S==="y"?"bottom":"right",O=R+w[C],_=R-w[T];R=xc(O,R,_)}const x=h.fn({...o,[b]:P,[S]:R});return{...x,data:{x:x.x-s,y:x.y-a,enabled:{[b]:f,[S]:p}}}}}},A1=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:s,y:a,placement:u,rects:f,middlewareData:p}=o,{offset:h=0,mainAxis:v=!0,crossAxis:y=!0}=cn(n,o),w={x:s,y:a},S=Mn(u),b=Bc(S);let P=w[b],R=w[S];const x=cn(h,o),C=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(v){const _=b==="y"?"height":"width",D=f.reference[b]-f.floating[_]+C.mainAxis,z=f.reference[b]+f.reference[_]-C.mainAxis;Pz&&(P=z)}if(y){var T,O;const _=b==="y"?"width":"height",D=["top","left"].includes(un(u)),z=f.reference[S]-f.floating[_]+(D&&((T=p.offset)==null?void 0:T[S])||0)+(D?0:C.crossAxis),W=f.reference[S]+f.reference[_]+(D?0:((O=p.offset)==null?void 0:O[S])||0)-(D?C.crossAxis:0);RW&&(R=W)}return{[b]:P,[S]:R}}}},I1=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var s,a;const{placement:u,rects:f,platform:p,elements:h}=o,{apply:v=()=>{},...y}=cn(n,o),w=await Wo(o,y),S=un(u),b=Gr(u),P=Mn(u)==="y",{width:R,height:x}=f.floating;let C,T;S==="top"||S==="bottom"?(C=S,T=b===(await(p.isRTL==null?void 0:p.isRTL(h.floating))?"start":"end")?"left":"right"):(T=S,C=b==="end"?"top":"bottom");const O=x-w.top-w.bottom,_=R-w.left-w.right,D=_n(x-w[C],O),z=_n(R-w[T],_),W=!o.middlewareData.shift;let U=D,X=z;if((s=o.middlewareData.shift)!=null&&s.enabled.x&&(X=_),(a=o.middlewareData.shift)!=null&&a.enabled.y&&(U=O),W&&!b){const ie=xt(w.left,0),me=xt(w.right,0),J=xt(w.top,0),fe=xt(w.bottom,0);P?X=R-2*(ie!==0||me!==0?ie+me:xt(w.left,w.right)):U=x-2*(J!==0||fe!==0?J+fe:xt(w.top,w.bottom))}await v({...o,availableWidth:X,availableHeight:U});const se=await p.getDimensions(h.floating);return R!==se.width||x!==se.height?{reset:{rects:!0}}:{}}}};function Li(){return typeof window<"u"}function qr(n){return pm(n)?(n.nodeName||"").toLowerCase():"#document"}function wt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Jt(n){var o;return(o=(pm(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function pm(n){return Li()?n instanceof Node||n instanceof wt(n).Node:!1}function zt(n){return Li()?n instanceof Element||n instanceof wt(n).Element:!1}function Xt(n){return Li()?n instanceof HTMLElement||n instanceof wt(n).HTMLElement:!1}function Dp(n){return!Li()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof wt(n).ShadowRoot}function Yo(n){const{overflow:o,overflowX:s,overflowY:a,display:u}=Ut(n);return/auto|scroll|overlay|hidden|clip/.test(o+a+s)&&!["inline","contents"].includes(u)}function _1(n){return["table","td","th"].includes(qr(n))}function Fi(n){return[":popover-open",":modal"].some(o=>{try{return n.matches(o)}catch{return!1}})}function Wc(n){const o=Qc(),s=zt(n)?Ut(n):n;return["transform","translate","scale","rotate","perspective"].some(a=>s[a]?s[a]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!o&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!o&&(s.filter?s.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(a=>(s.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(s.contain||"").includes(a))}function M1(n){let o=Dn(n);for(;Xt(o)&&!Hr(o);){if(Wc(o))return o;if(Fi(o))return null;o=Dn(o)}return null}function Qc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Hr(n){return["html","body","#document"].includes(qr(n))}function Ut(n){return wt(n).getComputedStyle(n)}function zi(n){return zt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dn(n){if(qr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||Dp(n)&&n.host||Jt(n);return Dp(o)?o.host:o}function hm(n){const o=Dn(n);return Hr(o)?n.ownerDocument?n.ownerDocument.body:n.body:Xt(o)&&Yo(o)?o:hm(o)}function Qo(n,o,s){var a;o===void 0&&(o=[]),s===void 0&&(s=!0);const u=hm(n),f=u===((a=n.ownerDocument)==null?void 0:a.body),p=wt(u);if(f){const h=Sc(p);return o.concat(p,p.visualViewport||[],Yo(u)?u:[],h&&s?Qo(h):[])}return o.concat(u,Qo(u,[],s))}function Sc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function mm(n){const o=Ut(n);let s=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const u=Xt(n),f=u?n.offsetWidth:s,p=u?n.offsetHeight:a,h=Ni(s)!==f||Ni(a)!==p;return h&&(s=f,a=p),{width:s,height:a,$:h}}function $c(n){return zt(n)?n:n.contextElement}function zr(n){const o=$c(n);if(!Xt(o))return Yt(1);const s=o.getBoundingClientRect(),{width:a,height:u,$:f}=mm(o);let p=(f?Ni(s.width):s.width)/a,h=(f?Ni(s.height):s.height)/u;return(!p||!Number.isFinite(p))&&(p=1),(!h||!Number.isFinite(h))&&(h=1),{x:p,y:h}}const D1=Yt(0);function gm(n){const o=wt(n);return!Qc()||!o.visualViewport?D1:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function L1(n,o,s){return o===void 0&&(o=!1),!s||o&&s!==wt(n)?!1:o}function nr(n,o,s,a){o===void 0&&(o=!1),s===void 0&&(s=!1);const u=n.getBoundingClientRect(),f=$c(n);let p=Yt(1);o&&(a?zt(a)&&(p=zr(a)):p=zr(n));const h=L1(f,s,a)?gm(f):Yt(0);let v=(u.left+h.x)/p.x,y=(u.top+h.y)/p.y,w=u.width/p.x,S=u.height/p.y;if(f){const b=wt(f),P=a&&zt(a)?wt(a):a;let R=b,x=Sc(R);for(;x&&a&&P!==R;){const C=zr(x),T=x.getBoundingClientRect(),O=Ut(x),_=T.left+(x.clientLeft+parseFloat(O.paddingLeft))*C.x,D=T.top+(x.clientTop+parseFloat(O.paddingTop))*C.y;v*=C.x,y*=C.y,w*=C.x,S*=C.y,v+=_,y+=D,R=wt(x),x=Sc(R)}}return ji({width:w,height:S,x:v,y})}function Kc(n,o){const s=zi(n).scrollLeft;return o?o.left+s:nr(Jt(n)).left+s}function vm(n,o,s){s===void 0&&(s=!1);const a=n.getBoundingClientRect(),u=a.left+o.scrollLeft-(s?0:Kc(n,a)),f=a.top+o.scrollTop;return{x:u,y:f}}function F1(n){let{elements:o,rect:s,offsetParent:a,strategy:u}=n;const f=u==="fixed",p=Jt(a),h=o?Fi(o.floating):!1;if(a===p||h&&f)return s;let v={scrollLeft:0,scrollTop:0},y=Yt(1);const w=Yt(0),S=Xt(a);if((S||!S&&!f)&&((qr(a)!=="body"||Yo(p))&&(v=zi(a)),Xt(a))){const P=nr(a);y=zr(a),w.x=P.x+a.clientLeft,w.y=P.y+a.clientTop}const b=p&&!S&&!f?vm(p,v,!0):Yt(0);return{width:s.width*y.x,height:s.height*y.y,x:s.x*y.x-v.scrollLeft*y.x+w.x+b.x,y:s.y*y.y-v.scrollTop*y.y+w.y+b.y}}function z1(n){return Array.from(n.getClientRects())}function U1(n){const o=Jt(n),s=zi(n),a=n.ownerDocument.body,u=xt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),f=xt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let p=-s.scrollLeft+Kc(n);const h=-s.scrollTop;return Ut(a).direction==="rtl"&&(p+=xt(o.clientWidth,a.clientWidth)-u),{width:u,height:f,x:p,y:h}}function B1(n,o){const s=wt(n),a=Jt(n),u=s.visualViewport;let f=a.clientWidth,p=a.clientHeight,h=0,v=0;if(u){f=u.width,p=u.height;const y=Qc();(!y||y&&o==="fixed")&&(h=u.offsetLeft,v=u.offsetTop)}return{width:f,height:p,x:h,y:v}}function H1(n,o){const s=nr(n,!0,o==="fixed"),a=s.top+n.clientTop,u=s.left+n.clientLeft,f=Xt(n)?zr(n):Yt(1),p=n.clientWidth*f.x,h=n.clientHeight*f.y,v=u*f.x,y=a*f.y;return{width:p,height:h,x:v,y}}function Lp(n,o,s){let a;if(o==="viewport")a=B1(n,s);else if(o==="document")a=U1(Jt(n));else if(zt(o))a=H1(o,s);else{const u=gm(n);a={x:o.x-u.x,y:o.y-u.y,width:o.width,height:o.height}}return ji(a)}function ym(n,o){const s=Dn(n);return s===o||!zt(s)||Hr(s)?!1:Ut(s).position==="fixed"||ym(s,o)}function V1(n,o){const s=o.get(n);if(s)return s;let a=Qo(n,[],!1).filter(h=>zt(h)&&qr(h)!=="body"),u=null;const f=Ut(n).position==="fixed";let p=f?Dn(n):n;for(;zt(p)&&!Hr(p);){const h=Ut(p),v=Wc(p);!v&&h.position==="fixed"&&(u=null),(f?!v&&!u:!v&&h.position==="static"&&!!u&&["absolute","fixed"].includes(u.position)||Yo(p)&&!v&&ym(n,p))?a=a.filter(w=>w!==p):u=h,p=Dn(p)}return o.set(n,a),a}function W1(n){let{element:o,boundary:s,rootBoundary:a,strategy:u}=n;const p=[...s==="clippingAncestors"?Fi(o)?[]:V1(o,this._c):[].concat(s),a],h=p[0],v=p.reduce((y,w)=>{const S=Lp(o,w,u);return y.top=xt(S.top,y.top),y.right=_n(S.right,y.right),y.bottom=_n(S.bottom,y.bottom),y.left=xt(S.left,y.left),y},Lp(o,h,u));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function Q1(n){const{width:o,height:s}=mm(n);return{width:o,height:s}}function $1(n,o,s){const a=Xt(o),u=Jt(o),f=s==="fixed",p=nr(n,!0,f,o);let h={scrollLeft:0,scrollTop:0};const v=Yt(0);if(a||!a&&!f)if((qr(o)!=="body"||Yo(u))&&(h=zi(o)),a){const b=nr(o,!0,f,o);v.x=b.x+o.clientLeft,v.y=b.y+o.clientTop}else u&&(v.x=Kc(u));const y=u&&!a&&!f?vm(u,h):Yt(0),w=p.left+h.scrollLeft-v.x-y.x,S=p.top+h.scrollTop-v.y-y.y;return{x:w,y:S,width:p.width,height:p.height}}function Xl(n){return Ut(n).position==="static"}function Fp(n,o){if(!Xt(n)||Ut(n).position==="fixed")return null;if(o)return o(n);let s=n.offsetParent;return Jt(n)===s&&(s=s.ownerDocument.body),s}function xm(n,o){const s=wt(n);if(Fi(n))return s;if(!Xt(n)){let u=Dn(n);for(;u&&!Hr(u);){if(zt(u)&&!Xl(u))return u;u=Dn(u)}return s}let a=Fp(n,o);for(;a&&_1(a)&&Xl(a);)a=Fp(a,o);return a&&Hr(a)&&Xl(a)&&!Wc(a)?s:a||M1(n)||s}const K1=async function(n){const o=this.getOffsetParent||xm,s=this.getDimensions,a=await s(n.floating);return{reference:$1(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function G1(n){return Ut(n).direction==="rtl"}const q1={convertOffsetParentRelativeRectToViewportRelativeRect:F1,getDocumentElement:Jt,getClippingRect:W1,getOffsetParent:xm,getElementRects:K1,getClientRects:z1,getDimensions:Q1,getScale:zr,isElement:zt,isRTL:G1};function wm(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function Y1(n,o){let s=null,a;const u=Jt(n);function f(){var h;clearTimeout(a),(h=s)==null||h.disconnect(),s=null}function p(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),f();const y=n.getBoundingClientRect(),{left:w,top:S,width:b,height:P}=y;if(h||o(),!b||!P)return;const R=di(S),x=di(u.clientWidth-(w+b)),C=di(u.clientHeight-(S+P)),T=di(w),_={rootMargin:-R+"px "+-x+"px "+-C+"px "+-T+"px",threshold:xt(0,_n(1,v))||1};let D=!0;function z(W){const U=W[0].intersectionRatio;if(U!==v){if(!D)return p();U?p(!1,U):a=setTimeout(()=>{p(!1,1e-7)},1e3)}U===1&&!wm(y,n.getBoundingClientRect())&&p(),D=!1}try{s=new IntersectionObserver(z,{..._,root:u.ownerDocument})}catch{s=new IntersectionObserver(z,_)}s.observe(n)}return p(!0),f}function X1(n,o,s,a){a===void 0&&(a={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=a,y=$c(n),w=u||f?[...y?Qo(y):[],...Qo(o)]:[];w.forEach(T=>{u&&T.addEventListener("scroll",s,{passive:!0}),f&&T.addEventListener("resize",s)});const S=y&&h?Y1(y,s):null;let b=-1,P=null;p&&(P=new ResizeObserver(T=>{let[O]=T;O&&O.target===y&&P&&(P.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var _;(_=P)==null||_.observe(o)})),s()}),y&&!v&&P.observe(y),P.observe(o));let R,x=v?nr(n):null;v&&C();function C(){const T=nr(n);x&&!wm(x,T)&&s(),x=T,R=requestAnimationFrame(C)}return s(),()=>{var T;w.forEach(O=>{u&&O.removeEventListener("scroll",s),f&&O.removeEventListener("resize",s)}),S?.(),(T=P)==null||T.disconnect(),P=null,v&&cancelAnimationFrame(R)}}const J1=T1,Z1=O1,eS=k1,tS=I1,nS=P1,zp=j1,rS=A1,oS=(n,o,s)=>{const a=new Map,u={platform:q1,...s},f={...u.platform,_c:a};return E1(n,o,{...u,platform:f})};var yi=typeof document<"u"?g.useLayoutEffect:g.useEffect;function ki(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let s,a,u;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==o.length)return!1;for(a=s;a--!==0;)if(!ki(n[a],o[a]))return!1;return!0}if(u=Object.keys(n),s=u.length,s!==Object.keys(o).length)return!1;for(a=s;a--!==0;)if(!{}.hasOwnProperty.call(o,u[a]))return!1;for(a=s;a--!==0;){const f=u[a];if(!(f==="_owner"&&n.$$typeof)&&!ki(n[f],o[f]))return!1}return!0}return n!==n&&o!==o}function Sm(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Up(n,o){const s=Sm(n);return Math.round(o*s)/s}function Jl(n){const o=g.useRef(n);return yi(()=>{o.current=n}),o}function sS(n){n===void 0&&(n={});const{placement:o="bottom",strategy:s="absolute",middleware:a=[],platform:u,elements:{reference:f,floating:p}={},transform:h=!0,whileElementsMounted:v,open:y}=n,[w,S]=g.useState({x:0,y:0,strategy:s,placement:o,middlewareData:{},isPositioned:!1}),[b,P]=g.useState(a);ki(b,a)||P(a);const[R,x]=g.useState(null),[C,T]=g.useState(null),O=g.useCallback(L=>{L!==W.current&&(W.current=L,x(L))},[]),_=g.useCallback(L=>{L!==U.current&&(U.current=L,T(L))},[]),D=f||R,z=p||C,W=g.useRef(null),U=g.useRef(null),X=g.useRef(w),se=v!=null,ie=Jl(v),me=Jl(u),J=Jl(y),fe=g.useCallback(()=>{if(!W.current||!U.current)return;const L={placement:o,strategy:s,middleware:b};me.current&&(L.platform=me.current),oS(W.current,U.current,L).then($=>{const K={...$,isPositioned:J.current!==!1};G.current&&!ki(X.current,K)&&(X.current=K,Wr.flushSync(()=>{S(K)}))})},[b,o,s,me,J]);yi(()=>{y===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,S(L=>({...L,isPositioned:!1})))},[y]);const G=g.useRef(!1);yi(()=>(G.current=!0,()=>{G.current=!1}),[]),yi(()=>{if(D&&(W.current=D),z&&(U.current=z),D&&z){if(ie.current)return ie.current(D,z,fe);fe()}},[D,z,fe,ie,se]);const he=g.useMemo(()=>({reference:W,floating:U,setReference:O,setFloating:_}),[O,_]),te=g.useMemo(()=>({reference:D,floating:z}),[D,z]),re=g.useMemo(()=>{const L={position:s,left:0,top:0};if(!te.floating)return L;const $=Up(te.floating,w.x),K=Up(te.floating,w.y);return h?{...L,transform:"translate("+$+"px, "+K+"px)",...Sm(te.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:$,top:K}},[s,h,te.floating,w.x,w.y]);return g.useMemo(()=>({...w,update:fe,refs:he,elements:te,floatingStyles:re}),[w,fe,he,te,re])}const iS=n=>{function o(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:a,padding:u}=typeof n=="function"?n(s):n;return a&&o(a)?a.current!=null?zp({element:a.current,padding:u}).fn(s):{}:a?zp({element:a,padding:u}).fn(s):{}}}},aS=(n,o)=>({...J1(n),options:[n,o]}),lS=(n,o)=>({...Z1(n),options:[n,o]}),cS=(n,o)=>({...rS(n),options:[n,o]}),uS=(n,o)=>({...eS(n),options:[n,o]}),dS=(n,o)=>({...tS(n),options:[n,o]}),fS=(n,o)=>({...nS(n),options:[n,o]}),pS=(n,o)=>({...iS(n),options:[n,o]});var hS="Arrow",Cm=g.forwardRef((n,o)=>{const{children:s,width:a=10,height:u=5,...f}=n;return l.jsx(Ne.svg,{...f,ref:o,width:a,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cm.displayName=hS;var mS=Cm;function gS(n){const[o,s]=g.useState(void 0);return st(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const a=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let p,h;if("borderBoxSize"in f){const v=f.borderBoxSize,y=Array.isArray(v)?v[0]:v;p=y.inlineSize,h=y.blockSize}else p=n.offsetWidth,h=n.offsetHeight;s({width:p,height:h})});return a.observe(n,{box:"border-box"}),()=>a.unobserve(n)}else s(void 0)},[n]),o}var Gc="Popper",[bm,Ui]=Qr(Gc),[vS,Nm]=bm(Gc),Em=n=>{const{__scopePopper:o,children:s}=n,[a,u]=g.useState(null);return l.jsx(vS,{scope:o,anchor:a,onAnchorChange:u,children:s})};Em.displayName=Gc;var jm="PopperAnchor",km=g.forwardRef((n,o)=>{const{__scopePopper:s,virtualRef:a,...u}=n,f=Nm(jm,s),p=g.useRef(null),h=_e(o,p);return g.useEffect(()=>{f.onAnchorChange(a?.current||p.current)}),a?null:l.jsx(Ne.div,{...u,ref:h})});km.displayName=jm;var qc="PopperContent",[yS,xS]=bm(qc),Pm=g.forwardRef((n,o)=>{const{__scopePopper:s,side:a="bottom",sideOffset:u=0,align:f="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:S="partial",hideWhenDetached:b=!1,updatePositionStrategy:P="optimized",onPlaced:R,...x}=n,C=Nm(qc,s),[T,O]=g.useState(null),_=_e(o,q=>O(q)),[D,z]=g.useState(null),W=gS(D),U=W?.width??0,X=W?.height??0,se=a+(f!=="center"?"-"+f:""),ie=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},me=Array.isArray(y)?y:[y],J=me.length>0,fe={padding:ie,boundary:me.filter(SS),altBoundary:J},{refs:G,floatingStyles:he,placement:te,isPositioned:re,middlewareData:L}=sS({strategy:"fixed",placement:se,whileElementsMounted:(...q)=>X1(...q,{animationFrame:P==="always"}),elements:{reference:C.anchor},middleware:[aS({mainAxis:u+X,alignmentAxis:p}),v&&lS({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?cS():void 0,...fe}),v&&uS({...fe}),dS({...fe,apply:({elements:q,rects:ae,availableWidth:xe,availableHeight:Se})=>{const{width:je,height:Le}=ae.reference,qe=q.floating.style;qe.setProperty("--radix-popper-available-width",`${xe}px`),qe.setProperty("--radix-popper-available-height",`${Se}px`),qe.setProperty("--radix-popper-anchor-width",`${je}px`),qe.setProperty("--radix-popper-anchor-height",`${Le}px`)}}),D&&pS({element:D,padding:h}),CS({arrowWidth:U,arrowHeight:X}),b&&fS({strategy:"referenceHidden",...fe})]}),[$,K]=Om(te),k=St(R);st(()=>{re&&k?.()},[re,k]);const F=L.arrow?.x,ue=L.arrow?.y,de=L.arrow?.centerOffset!==0,[we,ye]=g.useState();return st(()=>{T&&ye(window.getComputedStyle(T).zIndex)},[T]),l.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:re?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:l.jsx(yS,{scope:s,placedSide:$,onArrowChange:z,arrowX:F,arrowY:ue,shouldHideArrow:de,children:l.jsx(Ne.div,{"data-side":$,"data-align":K,...x,ref:_,style:{...x.style,animation:re?void 0:"none"}})})})});Pm.displayName=qc;var Rm="PopperArrow",wS={top:"bottom",right:"left",bottom:"top",left:"right"},Tm=g.forwardRef(function(o,s){const{__scopePopper:a,...u}=o,f=xS(Rm,a),p=wS[f.placedSide];return l.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[p]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:l.jsx(mS,{...u,ref:s,style:{...u.style,display:"block"}})})});Tm.displayName=Rm;function SS(n){return n!==null}var CS=n=>({name:"transformOrigin",options:n,fn(o){const{placement:s,rects:a,middlewareData:u}=o,p=u.arrow?.centerOffset!==0,h=p?0:n.arrowWidth,v=p?0:n.arrowHeight,[y,w]=Om(s),S={start:"0%",center:"50%",end:"100%"}[w],b=(u.arrow?.x??0)+h/2,P=(u.arrow?.y??0)+v/2;let R="",x="";return y==="bottom"?(R=p?S:`${b}px`,x=`${-v}px`):y==="top"?(R=p?S:`${b}px`,x=`${a.floating.height+v}px`):y==="right"?(R=`${-v}px`,x=p?S:`${P}px`):y==="left"&&(R=`${a.floating.width+v}px`,x=p?S:`${P}px`),{data:{x:R,y:x}}}});function Om(n){const[o,s="center"]=n.split("-");return[o,s]}var bS=Em,Am=km,Im=Pm,_m=Tm,[Bi,gN]=Qr("Tooltip",[Ui]),Yc=Ui(),Mm="TooltipProvider",NS=700,Bp="tooltip.open",[ES,Dm]=Bi(Mm),Lm=n=>{const{__scopeTooltip:o,delayDuration:s=NS,skipDelayDuration:a=300,disableHoverableContent:u=!1,children:f}=n,p=g.useRef(!0),h=g.useRef(!1),v=g.useRef(0);return g.useEffect(()=>{const y=v.current;return()=>window.clearTimeout(y)},[]),l.jsx(ES,{scope:o,isOpenDelayedRef:p,delayDuration:s,onOpen:g.useCallback(()=>{window.clearTimeout(v.current),p.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>p.current=!0,a)},[a]),isPointerInTransitRef:h,onPointerInTransitChange:g.useCallback(y=>{h.current=y},[]),disableHoverableContent:u,children:f})};Lm.displayName=Mm;var Fm="Tooltip",[vN,Hi]=Bi(Fm),Cc="TooltipTrigger",jS=g.forwardRef((n,o)=>{const{__scopeTooltip:s,...a}=n,u=Hi(Cc,s),f=Dm(Cc,s),p=Yc(s),h=g.useRef(null),v=_e(o,h,u.onTriggerChange),y=g.useRef(!1),w=g.useRef(!1),S=g.useCallback(()=>y.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",S),[S]),l.jsx(Am,{asChild:!0,...p,children:l.jsx(Ne.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...a,ref:v,onPointerMove:ve(n.onPointerMove,b=>{b.pointerType!=="touch"&&!w.current&&!f.isPointerInTransitRef.current&&(u.onTriggerEnter(),w.current=!0)}),onPointerLeave:ve(n.onPointerLeave,()=>{u.onTriggerLeave(),w.current=!1}),onPointerDown:ve(n.onPointerDown,()=>{u.open&&u.onClose(),y.current=!0,document.addEventListener("pointerup",S,{once:!0})}),onFocus:ve(n.onFocus,()=>{y.current||u.onOpen()}),onBlur:ve(n.onBlur,u.onClose),onClick:ve(n.onClick,u.onClose)})})});jS.displayName=Cc;var kS="TooltipPortal",[yN,PS]=Bi(kS,{forceMount:void 0}),Vr="TooltipContent",zm=g.forwardRef((n,o)=>{const s=PS(Vr,n.__scopeTooltip),{forceMount:a=s.forceMount,side:u="top",...f}=n,p=Hi(Vr,n.__scopeTooltip);return l.jsx($r,{present:a||p.open,children:p.disableHoverableContent?l.jsx(Um,{side:u,...f,ref:o}):l.jsx(RS,{side:u,...f,ref:o})})}),RS=g.forwardRef((n,o)=>{const s=Hi(Vr,n.__scopeTooltip),a=Dm(Vr,n.__scopeTooltip),u=g.useRef(null),f=_e(o,u),[p,h]=g.useState(null),{trigger:v,onClose:y}=s,w=u.current,{onPointerInTransitChange:S}=a,b=g.useCallback(()=>{h(null),S(!1)},[S]),P=g.useCallback((R,x)=>{const C=R.currentTarget,T={x:R.clientX,y:R.clientY},O=_S(T,C.getBoundingClientRect()),_=MS(T,O),D=DS(x.getBoundingClientRect()),z=FS([..._,...D]);h(z),S(!0)},[S]);return g.useEffect(()=>()=>b(),[b]),g.useEffect(()=>{if(v&&w){const R=C=>P(C,w),x=C=>P(C,v);return v.addEventListener("pointerleave",R),w.addEventListener("pointerleave",x),()=>{v.removeEventListener("pointerleave",R),w.removeEventListener("pointerleave",x)}}},[v,w,P,b]),g.useEffect(()=>{if(p){const R=x=>{const C=x.target,T={x:x.clientX,y:x.clientY},O=v?.contains(C)||w?.contains(C),_=!LS(T,p);O?b():_&&(b(),y())};return document.addEventListener("pointermove",R),()=>document.removeEventListener("pointermove",R)}},[v,w,p,y,b]),l.jsx(Um,{...n,ref:f})}),[TS,OS]=Bi(Fm,{isInside:!1}),AS=I0("TooltipContent"),Um=g.forwardRef((n,o)=>{const{__scopeTooltip:s,children:a,"aria-label":u,onEscapeKeyDown:f,onPointerDownOutside:p,...h}=n,v=Hi(Vr,s),y=Yc(s),{onClose:w}=v;return g.useEffect(()=>(document.addEventListener(Bp,w),()=>document.removeEventListener(Bp,w)),[w]),g.useEffect(()=>{if(v.trigger){const S=b=>{b.target?.contains(v.trigger)&&w()};return window.addEventListener("scroll",S,{capture:!0}),()=>window.removeEventListener("scroll",S,{capture:!0})}},[v.trigger,w]),l.jsx(Go,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:S=>S.preventDefault(),onDismiss:w,children:l.jsxs(Im,{"data-state":v.stateAttribute,...y,...h,ref:o,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(AS,{children:a}),l.jsx(TS,{scope:s,isInside:!0,children:l.jsx(Z0,{id:v.contentId,role:"tooltip",children:u||a})})]})})});zm.displayName=Vr;var Bm="TooltipArrow",IS=g.forwardRef((n,o)=>{const{__scopeTooltip:s,...a}=n,u=Yc(s);return OS(Bm,s).isInside?null:l.jsx(_m,{...u,...a,ref:o})});IS.displayName=Bm;function _S(n,o){const s=Math.abs(o.top-n.y),a=Math.abs(o.bottom-n.y),u=Math.abs(o.right-n.x),f=Math.abs(o.left-n.x);switch(Math.min(s,a,u,f)){case f:return"left";case u:return"right";case s:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function MS(n,o,s=5){const a=[];switch(o){case"top":a.push({x:n.x-s,y:n.y+s},{x:n.x+s,y:n.y+s});break;case"bottom":a.push({x:n.x-s,y:n.y-s},{x:n.x+s,y:n.y-s});break;case"left":a.push({x:n.x+s,y:n.y-s},{x:n.x+s,y:n.y+s});break;case"right":a.push({x:n.x-s,y:n.y-s},{x:n.x-s,y:n.y+s});break}return a}function DS(n){const{top:o,right:s,bottom:a,left:u}=n;return[{x:u,y:o},{x:s,y:o},{x:s,y:a},{x:u,y:a}]}function LS(n,o){const{x:s,y:a}=n;let u=!1;for(let f=0,p=o.length-1;fa!=w>a&&s<(y-h)*(a-v)/(w-v)+h&&(u=!u)}return u}function FS(n){const o=n.slice();return o.sort((s,a)=>s.xa.x?1:s.ya.y?1:0),zS(o)}function zS(n){if(n.length<=1)return n.slice();const o=[];for(let a=0;a=2;){const f=o[o.length-1],p=o[o.length-2];if((f.x-p.x)*(u.y-p.y)>=(f.y-p.y)*(u.x-p.x))o.pop();else break}o.push(u)}o.pop();const s=[];for(let a=n.length-1;a>=0;a--){const u=n[a];for(;s.length>=2;){const f=s[s.length-1],p=s[s.length-2];if((f.x-p.x)*(u.y-p.y)>=(f.y-p.y)*(u.x-p.x))s.pop();else break}s.push(u)}return s.pop(),o.length===1&&s.length===1&&o[0].x===s[0].x&&o[0].y===s[0].y?o:o.concat(s)}var US=Lm,Hm=zm;const BS=US,HS=g.forwardRef(({className:n,sideOffset:o=4,...s},a)=>l.jsx(Hm,{ref:a,sideOffset:o,className:Pe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground 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-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 origin-[--radix-tooltip-content-transform-origin]",n),...s}));HS.displayName=Hm.displayName;const VS=Di("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Re=g.forwardRef(({className:n,variant:o,size:s,asChild:a=!1,...u},f)=>{const p=a?O0:"button";return l.jsx(p,{className:Pe(VS({variant:o,size:s,className:n})),ref:f,...u})});Re.displayName="Button";var Zl="focusScope.autoFocusOnMount",ec="focusScope.autoFocusOnUnmount",Hp={bubbles:!1,cancelable:!0},WS="FocusScope",Xc=g.forwardRef((n,o)=>{const{loop:s=!1,trapped:a=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...p}=n,[h,v]=g.useState(null),y=St(u),w=St(f),S=g.useRef(null),b=_e(o,x=>v(x)),P=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(a){let x=function(_){if(P.paused||!h)return;const D=_.target;h.contains(D)?S.current=D:In(S.current,{select:!0})},C=function(_){if(P.paused||!h)return;const D=_.relatedTarget;D!==null&&(h.contains(D)||In(S.current,{select:!0}))},T=function(_){if(document.activeElement===document.body)for(const z of _)z.removedNodes.length>0&&In(h)};document.addEventListener("focusin",x),document.addEventListener("focusout",C);const O=new MutationObserver(T);return h&&O.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",C),O.disconnect()}}},[a,h,P.paused]),g.useEffect(()=>{if(h){Wp.add(P);const x=document.activeElement;if(!h.contains(x)){const T=new CustomEvent(Zl,Hp);h.addEventListener(Zl,y),h.dispatchEvent(T),T.defaultPrevented||(QS(YS(Vm(h)),{select:!0}),document.activeElement===x&&In(h))}return()=>{h.removeEventListener(Zl,y),setTimeout(()=>{const T=new CustomEvent(ec,Hp);h.addEventListener(ec,w),h.dispatchEvent(T),T.defaultPrevented||In(x??document.body,{select:!0}),h.removeEventListener(ec,w),Wp.remove(P)},0)}}},[h,y,w,P]);const R=g.useCallback(x=>{if(!s&&!a||P.paused)return;const C=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,T=document.activeElement;if(C&&T){const O=x.currentTarget,[_,D]=$S(O);_&&D?!x.shiftKey&&T===D?(x.preventDefault(),s&&In(_,{select:!0})):x.shiftKey&&T===_&&(x.preventDefault(),s&&In(D,{select:!0})):T===O&&x.preventDefault()}},[s,a,P.paused]);return l.jsx(Ne.div,{tabIndex:-1,...p,ref:b,onKeyDown:R})});Xc.displayName=WS;function QS(n,{select:o=!1}={}){const s=document.activeElement;for(const a of n)if(In(a,{select:o}),document.activeElement!==s)return}function $S(n){const o=Vm(n),s=Vp(o,n),a=Vp(o.reverse(),n);return[s,a]}function Vm(n){const o=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const u=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||u?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function Vp(n,o){for(const s of n)if(!KS(s,{upTo:o}))return s}function KS(n,{upTo:o}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(o!==void 0&&n===o)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function GS(n){return n instanceof HTMLInputElement&&"select"in n}function In(n,{select:o=!1}={}){if(n&&n.focus){const s=document.activeElement;n.focus({preventScroll:!0}),n!==s&&GS(n)&&o&&n.select()}}var Wp=qS();function qS(){let n=[];return{add(o){const s=n[0];o!==s&&s?.pause(),n=Qp(n,o),n.unshift(o)},remove(o){n=Qp(n,o),n[0]?.resume()}}}function Qp(n,o){const s=[...n],a=s.indexOf(o);return a!==-1&&s.splice(a,1),s}function YS(n){return n.filter(o=>o.tagName!=="A")}var tc=0;function Wm(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??$p()),document.body.insertAdjacentElement("beforeend",n[1]??$p()),tc++,()=>{tc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),tc--}},[])}function $p(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Kt=function(){return Kt=Object.assign||function(o){for(var s,a=1,u=arguments.length;a"u")return pC;var o=hC(n),s=document.documentElement.clientWidth,a=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,a-s+o[2]-o[0])}},gC=Gm(),Ur="data-scroll-locked",vC=function(n,o,s,a){var u=n.left,f=n.top,p=n.right,h=n.gap;return s===void 0&&(s="margin"),` .`.concat(JS,` { overflow: hidden `).concat(a,`; padding-right: `).concat(h,"px ").concat(a,`; } body[`).concat(Ur,`] { overflow: hidden `).concat(a,`; overscroll-behavior: contain; `).concat([o&&"position: relative ".concat(a,";"),s==="margin"&&` padding-left: `.concat(u,`px; padding-top: `).concat(f,`px; padding-right: `).concat(p,`px; margin-left:0; margin-top:0; margin-right: `).concat(h,"px ").concat(a,`; `),s==="padding"&&"padding-right: ".concat(h,"px ").concat(a,";")].filter(Boolean).join(""),` } .`).concat(xi,` { right: `).concat(h,"px ").concat(a,`; } .`).concat(wi,` { margin-right: `).concat(h,"px ").concat(a,`; } .`).concat(xi," .").concat(xi,` { right: 0 `).concat(a,`; } .`).concat(wi," .").concat(wi,` { margin-right: 0 `).concat(a,`; } body[`).concat(Ur,`] { `).concat(ZS,": ").concat(h,`px; } `)},Gp=function(){var n=parseInt(document.body.getAttribute(Ur)||"0",10);return isFinite(n)?n:0},yC=function(){g.useEffect(function(){return document.body.setAttribute(Ur,(Gp()+1).toString()),function(){var n=Gp()-1;n<=0?document.body.removeAttribute(Ur):document.body.setAttribute(Ur,n.toString())}},[])},xC=function(n){var o=n.noRelative,s=n.noImportant,a=n.gapMode,u=a===void 0?"margin":a;yC();var f=g.useMemo(function(){return mC(u)},[u]);return g.createElement(gC,{styles:vC(f,!o,u,s?"":"!important")})},bc=!1;if(typeof window<"u")try{var fi=Object.defineProperty({},"passive",{get:function(){return bc=!0,!0}});window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{bc=!1}var Ir=bc?{passive:!1}:!1,wC=function(n){return n.tagName==="TEXTAREA"},qm=function(n,o){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[o]!=="hidden"&&!(s.overflowY===s.overflowX&&!wC(n)&&s[o]==="visible")},SC=function(n){return qm(n,"overflowY")},CC=function(n){return qm(n,"overflowX")},qp=function(n,o){var s=o.ownerDocument,a=o;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var u=Ym(n,a);if(u){var f=Xm(n,a),p=f[1],h=f[2];if(p>h)return!0}a=a.parentNode}while(a&&a!==s.body);return!1},bC=function(n){var o=n.scrollTop,s=n.scrollHeight,a=n.clientHeight;return[o,s,a]},NC=function(n){var o=n.scrollLeft,s=n.scrollWidth,a=n.clientWidth;return[o,s,a]},Ym=function(n,o){return n==="v"?SC(o):CC(o)},Xm=function(n,o){return n==="v"?bC(o):NC(o)},EC=function(n,o){return n==="h"&&o==="rtl"?-1:1},jC=function(n,o,s,a,u){var f=EC(n,window.getComputedStyle(o).direction),p=f*a,h=s.target,v=o.contains(h),y=!1,w=p>0,S=0,b=0;do{var P=Xm(n,h),R=P[0],x=P[1],C=P[2],T=x-C-f*R;(R||T)&&Ym(n,h)&&(S+=T,b+=R),h instanceof ShadowRoot?h=h.host:h=h.parentNode}while(!v&&h!==document.body||v&&(o.contains(h)||o===h));return(w&&Math.abs(S)<1||!w&&Math.abs(b)<1)&&(y=!0),y},pi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Yp=function(n){return[n.deltaX,n.deltaY]},Xp=function(n){return n&&"current"in n?n.current:n},kC=function(n,o){return n[0]===o[0]&&n[1]===o[1]},PC=function(n){return` .block-interactivity-`.concat(n,` {pointer-events: none;} .allow-interactivity-`).concat(n,` {pointer-events: all;} `)},RC=0,_r=[];function TC(n){var o=g.useRef([]),s=g.useRef([0,0]),a=g.useRef(),u=g.useState(RC++)[0],f=g.useState(Gm)[0],p=g.useRef(n);g.useEffect(function(){p.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var x=XS([n.lockRef.current],(n.shards||[]).map(Xp),!0).filter(Boolean);return x.forEach(function(C){return C.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),x.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var h=g.useCallback(function(x,C){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!p.current.allowPinchZoom;var T=pi(x),O=s.current,_="deltaX"in x?x.deltaX:O[0]-T[0],D="deltaY"in x?x.deltaY:O[1]-T[1],z,W=x.target,U=Math.abs(_)>Math.abs(D)?"h":"v";if("touches"in x&&U==="h"&&W.type==="range")return!1;var X=qp(U,W);if(!X)return!0;if(X?z=U:(z=U==="v"?"h":"v",X=qp(U,W)),!X)return!1;if(!a.current&&"changedTouches"in x&&(_||D)&&(a.current=z),!z)return!0;var se=a.current||z;return jC(se,C,x,se==="h"?_:D)},[]),v=g.useCallback(function(x){var C=x;if(!(!_r.length||_r[_r.length-1]!==f)){var T="deltaY"in C?Yp(C):pi(C),O=o.current.filter(function(z){return z.name===C.type&&(z.target===C.target||C.target===z.shadowParent)&&kC(z.delta,T)})[0];if(O&&O.should){C.cancelable&&C.preventDefault();return}if(!O){var _=(p.current.shards||[]).map(Xp).filter(Boolean).filter(function(z){return z.contains(C.target)}),D=_.length>0?h(C,_[0]):!p.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),y=g.useCallback(function(x,C,T,O){var _={name:x,delta:C,target:T,should:O,shadowParent:OC(T)};o.current.push(_),setTimeout(function(){o.current=o.current.filter(function(D){return D!==_})},1)},[]),w=g.useCallback(function(x){s.current=pi(x),a.current=void 0},[]),S=g.useCallback(function(x){y(x.type,Yp(x),x.target,h(x,n.lockRef.current))},[]),b=g.useCallback(function(x){y(x.type,pi(x),x.target,h(x,n.lockRef.current))},[]);g.useEffect(function(){return _r.push(f),n.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:b}),document.addEventListener("wheel",v,Ir),document.addEventListener("touchmove",v,Ir),document.addEventListener("touchstart",w,Ir),function(){_r=_r.filter(function(x){return x!==f}),document.removeEventListener("wheel",v,Ir),document.removeEventListener("touchmove",v,Ir),document.removeEventListener("touchstart",w,Ir)}},[]);var P=n.removeScrollBar,R=n.inert;return g.createElement(g.Fragment,null,R?g.createElement(f,{styles:PC(u)}):null,P?g.createElement(xC,{gapMode:n.gapMode}):null)}function OC(n){for(var o=null;n!==null;)n instanceof ShadowRoot&&(o=n.host,n=n.host),n=n.parentNode;return o}const AC=iC(Km,TC);var Jc=g.forwardRef(function(n,o){return g.createElement(Vi,Kt({},n,{ref:o,sideCar:AC}))});Jc.classNames=Vi.classNames;var IC=function(n){if(typeof document>"u")return null;var o=Array.isArray(n)?n[0]:n;return o.ownerDocument.body},Mr=new WeakMap,hi=new WeakMap,mi={},sc=0,Jm=function(n){return n&&(n.host||Jm(n.parentNode))},_C=function(n,o){return o.map(function(s){if(n.contains(s))return s;var a=Jm(s);return a&&n.contains(a)?a:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},MC=function(n,o,s,a){var u=_C(o,Array.isArray(n)?n:[n]);mi[s]||(mi[s]=new WeakMap);var f=mi[s],p=[],h=new Set,v=new Set(u),y=function(S){!S||h.has(S)||(h.add(S),y(S.parentNode))};u.forEach(y);var w=function(S){!S||v.has(S)||Array.prototype.forEach.call(S.children,function(b){if(h.has(b))w(b);else try{var P=b.getAttribute(a),R=P!==null&&P!=="false",x=(Mr.get(b)||0)+1,C=(f.get(b)||0)+1;Mr.set(b,x),f.set(b,C),p.push(b),x===1&&R&&hi.set(b,!0),C===1&&b.setAttribute(s,"true"),R||b.setAttribute(a,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return w(o),h.clear(),sc++,function(){p.forEach(function(S){var b=Mr.get(S)-1,P=f.get(S)-1;Mr.set(S,b),f.set(S,P),b||(hi.has(S)||S.removeAttribute(a),hi.delete(S)),P||S.removeAttribute(s)}),sc--,sc||(Mr=new WeakMap,Mr=new WeakMap,hi=new WeakMap,mi={})}},Zm=function(n,o,s){s===void 0&&(s="data-aria-hidden");var a=Array.from(Array.isArray(n)?n:[n]),u=IC(n);return u?(a.push.apply(a,Array.from(u.querySelectorAll("[aria-live]"))),MC(a,u,s,"aria-hidden")):function(){return null}},Zc="Dialog",[eg,xN]=Qr(Zc),[DC,Bt]=eg(Zc),tg=n=>{const{__scopeDialog:o,children:s,open:a,defaultOpen:u,onOpenChange:f,modal:p=!0}=n,h=g.useRef(null),v=g.useRef(null),[y=!1,w]=Ci({prop:a,defaultProp:u,onChange:f});return l.jsx(DC,{scope:o,triggerRef:h,contentRef:v,contentId:Fr(),titleId:Fr(),descriptionId:Fr(),open:y,onOpenChange:w,onOpenToggle:g.useCallback(()=>w(S=>!S),[w]),modal:p,children:s})};tg.displayName=Zc;var ng="DialogTrigger",rg=g.forwardRef((n,o)=>{const{__scopeDialog:s,...a}=n,u=Bt(ng,s),f=_e(o,u.triggerRef);return l.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":nu(u.open),...a,ref:f,onClick:ve(n.onClick,u.onOpenToggle)})});rg.displayName=ng;var eu="DialogPortal",[LC,og]=eg(eu,{forceMount:void 0}),sg=n=>{const{__scopeDialog:o,forceMount:s,children:a,container:u}=n,f=Bt(eu,o);return l.jsx(LC,{scope:o,forceMount:s,children:g.Children.map(a,p=>l.jsx($r,{present:s||f.open,children:l.jsx(Ii,{asChild:!0,container:u,children:p})}))})};sg.displayName=eu;var Pi="DialogOverlay",ig=g.forwardRef((n,o)=>{const s=og(Pi,n.__scopeDialog),{forceMount:a=s.forceMount,...u}=n,f=Bt(Pi,n.__scopeDialog);return f.modal?l.jsx($r,{present:a||f.open,children:l.jsx(zC,{...u,ref:o})}):null});ig.displayName=Pi;var FC=Br("DialogOverlay.RemoveScroll"),zC=g.forwardRef((n,o)=>{const{__scopeDialog:s,...a}=n,u=Bt(Pi,s);return l.jsx(Jc,{as:FC,allowPinchZoom:!0,shards:[u.contentRef],children:l.jsx(Ne.div,{"data-state":nu(u.open),...a,ref:o,style:{pointerEvents:"auto",...a.style}})})}),rr="DialogContent",ag=g.forwardRef((n,o)=>{const s=og(rr,n.__scopeDialog),{forceMount:a=s.forceMount,...u}=n,f=Bt(rr,n.__scopeDialog);return l.jsx($r,{present:a||f.open,children:f.modal?l.jsx(UC,{...u,ref:o}):l.jsx(BC,{...u,ref:o})})});ag.displayName=rr;var UC=g.forwardRef((n,o)=>{const s=Bt(rr,n.__scopeDialog),a=g.useRef(null),u=_e(o,s.contentRef,a);return g.useEffect(()=>{const f=a.current;if(f)return Zm(f)},[]),l.jsx(lg,{...n,ref:u,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(n.onCloseAutoFocus,f=>{f.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:ve(n.onPointerDownOutside,f=>{const p=f.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0;(p.button===2||h)&&f.preventDefault()}),onFocusOutside:ve(n.onFocusOutside,f=>f.preventDefault())})}),BC=g.forwardRef((n,o)=>{const s=Bt(rr,n.__scopeDialog),a=g.useRef(!1),u=g.useRef(!1);return l.jsx(lg,{...n,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{n.onCloseAutoFocus?.(f),f.defaultPrevented||(a.current||s.triggerRef.current?.focus(),f.preventDefault()),a.current=!1,u.current=!1},onInteractOutside:f=>{n.onInteractOutside?.(f),f.defaultPrevented||(a.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const p=f.target;s.triggerRef.current?.contains(p)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),lg=g.forwardRef((n,o)=>{const{__scopeDialog:s,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:f,...p}=n,h=Bt(rr,s),v=g.useRef(null),y=_e(o,v);return Wm(),l.jsxs(l.Fragment,{children:[l.jsx(Xc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:u,onUnmountAutoFocus:f,children:l.jsx(Go,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":nu(h.open),...p,ref:y,onDismiss:()=>h.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(HC,{titleId:h.titleId}),l.jsx(WC,{contentRef:v,descriptionId:h.descriptionId})]})]})}),tu="DialogTitle",cg=g.forwardRef((n,o)=>{const{__scopeDialog:s,...a}=n,u=Bt(tu,s);return l.jsx(Ne.h2,{id:u.titleId,...a,ref:o})});cg.displayName=tu;var ug="DialogDescription",dg=g.forwardRef((n,o)=>{const{__scopeDialog:s,...a}=n,u=Bt(ug,s);return l.jsx(Ne.p,{id:u.descriptionId,...a,ref:o})});dg.displayName=ug;var fg="DialogClose",pg=g.forwardRef((n,o)=>{const{__scopeDialog:s,...a}=n,u=Bt(fg,s);return l.jsx(Ne.button,{type:"button",...a,ref:o,onClick:ve(n.onClick,()=>u.onOpenChange(!1))})});pg.displayName=fg;function nu(n){return n?"open":"closed"}var hg="DialogTitleWarning",[wN,mg]=R0(hg,{contentName:rr,titleName:tu,docsSlug:"dialog"}),HC=({titleId:n})=>{const o=mg(hg),s=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return g.useEffect(()=>{n&&(document.getElementById(n)||console.error(s))},[s,n]),null},VC="DialogDescriptionWarning",WC=({contentRef:n,descriptionId:o})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mg(VC).contentName}}.`;return g.useEffect(()=>{const u=n.current?.getAttribute("aria-describedby");o&&u&&(document.getElementById(o)||console.warn(a))},[a,n,o]),null},QC=tg,$C=rg,KC=sg,gg=ig,vg=ag,yg=cg,xg=dg,GC=pg;const qC=QC,YC=$C,XC=KC,wg=g.forwardRef(({className:n,...o},s)=>l.jsx(gg,{className:Pe("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",n),...o,ref:s}));wg.displayName=gg.displayName;const JC=Di("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"}}),Sg=g.forwardRef(({side:n="right",className:o,children:s,...a},u)=>l.jsxs(XC,{children:[l.jsx(wg,{}),l.jsxs(vg,{ref:u,className:Pe(JC({side:n}),o),...a,children:[s,l.jsxs(GC,{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:[l.jsx(tm,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Sg.displayName=vg.displayName;const ZC=g.forwardRef(({className:n,...o},s)=>l.jsx(yg,{ref:s,className:Pe("text-lg font-semibold text-foreground",n),...o}));ZC.displayName=yg.displayName;const eb=g.forwardRef(({className:n,...o},s)=>l.jsx(xg,{ref:s,className:Pe("text-sm text-muted-foreground",n),...o}));eb.displayName=xg.displayName;const tb="/assets/alphabeta%20triangle%20small_1754577235912-3BhPa9Dh.jpg";function er(){const[n]=Dx(),[o,s]=g.useState(!1),a=f=>{if(n!=="/"){window.location.href=`/#${f}`;return}const p=document.getElementById(f);p&&(p.scrollIntoView({behavior:"smooth"}),s(!1))},u=[{label:"Home",href:"#home"},{label:"Team",href:"#team"},{label:"Projects",href:"#projects"},{label:"Contact",href:"#contact"}];return l.jsx("nav",{className:"fixed top-0 w-full z-50 bg-alpha-bg/90 backdrop-blur-lg border-b border-alpha-primary/30",children:l.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:l.jsxs("div",{className:"flex justify-between items-center h-16",children:[l.jsx(ht,{href:"/",children:l.jsxs("div",{className:"flex items-center space-x-3 cursor-pointer",children:[l.jsx("div",{className:"w-10 h-10 rounded-lg overflow-hidden",children:l.jsx("img",{src:tb,alt:"Alphabeta Team",className:"w-full h-full object-cover"})}),l.jsx("span",{className:"font-poppins font-bold text-xl",children:"Alphabeta Team"})]})}),l.jsx("div",{className:"hidden md:flex items-center space-x-8",children:u.map(f=>l.jsx("button",{onClick:()=>a(f.href.slice(1)),className:"hover:text-alpha-secondary transition-colors duration-300 text-alpha-text",children:f.label},f.label))}),l.jsx("div",{className:"md:hidden",children:l.jsxs(qC,{open:o,onOpenChange:s,children:[l.jsx(YC,{asChild:!0,children:l.jsx(Re,{variant:"ghost",size:"icon",className:"text-alpha-text hover:text-alpha-secondary",children:l.jsx(Tw,{className:"h-6 w-6"})})}),l.jsx(Sg,{side:"right",className:"bg-alpha-card border-alpha-accent/30",children:l.jsx("div",{className:"flex flex-col space-y-4 mt-8",children:u.map(f=>l.jsx("button",{onClick:()=>a(f.href.slice(1)),className:"text-left hover:text-alpha-secondary transition-colors duration-300 text-alpha-text text-lg py-2",children:f.label},f.label))})})]})})]})})})}function nb(){const n=()=>{const o=document.getElementById("projects");o&&o.scrollIntoView({behavior:"smooth"})};return l.jsxs("section",{id:"home",className:"min-h-screen flex items-center gradient-bg relative overflow-hidden",children:[l.jsxs("div",{className:"absolute inset-0 opacity-10",children:[l.jsx("div",{className:"absolute top-20 left-10 w-20 h-20 border-2 border-alpha-secondary rounded-lg animate-float"}),l.jsx("div",{className:"absolute top-40 right-20 w-16 h-16 border-2 border-alpha-accent rounded-full animate-float",style:{animationDelay:"1s"}}),l.jsx("div",{className:"absolute bottom-20 left-1/4 w-12 h-12 bg-alpha-secondary/20 rounded-lg animate-float",style:{animationDelay:"2s"}})]}),l.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:l.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[l.jsxs("div",{className:"text-center lg:text-left",children:[l.jsxs("h1",{className:"font-poppins font-bold text-5xl lg:text-7xl mb-6 leading-tight",children:[l.jsx("span",{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:"Alphabeta"}),l.jsx("br",{}),l.jsx("span",{className:"text-alpha-text",children:"Projects"})]}),l.jsx("p",{className:"text-xl lg:text-2xl text-gray-300 mb-8 max-w-2xl",children:"Crafting innovative projects that enhance community experiences across multiple platforms - See and try them out here!"}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:[l.jsxs(Re,{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent px-8 py-4 rounded-xl font-semibold text-lg hover:shadow-neon transition-all duration-300 transform hover:scale-105",onClick:n,children:[l.jsx(Zh,{className:"mr-2 h-5 w-5"}),"Explore Projects"]}),l.jsxs(Re,{variant:"outline",className:"border-2 border-alpha-accent text-alpha-accent px-8 py-4 rounded-xl font-semibold text-lg hover:bg-alpha-accent hover:text-alpha-bg transition-all duration-300",onClick:()=>window.open("https://discord.gg/fHksB4VZ4q","_blank"),children:[l.jsx(Ow,{className:"mr-2 h-5 w-5"}),"Join Community"]})]})]}),l.jsxs("div",{className:"relative",children:[l.jsx("img",{src:"https://cdn.discordapp.com/attachments/767817622925344808/1403075615028023336/aafdfdafaddafdaff.png?ex=68963b7e&is=6894e9fe&hm=1ac4acee0e57505fde38f3f69fa8d793887b734ff6f4fbf02f5c908eab764a46&",alt:"Discord bot interface dashboard",className:"rounded-2xl shadow-2xl w-full animate-float"}),l.jsx("div",{className:"absolute -bottom-6 -right-6 w-24 h-24 bg-gradient-to-br from-alpha-secondary to-alpha-accent rounded-2xl flex items-center justify-center shadow-neon",children:l.jsx("i",{className:"fas fa-code text-2xl text-alpha-bg"})})]})]})})]})}const Ze=g.forwardRef(({className:n,...o},s)=>l.jsx("div",{ref:s,className:Pe("rounded-lg border bg-card text-card-foreground shadow-sm",n),...o}));Ze.displayName="Card";const Gt=g.forwardRef(({className:n,...o},s)=>l.jsx("div",{ref:s,className:Pe("flex flex-col space-y-1.5 p-6",n),...o}));Gt.displayName="CardHeader";const qt=g.forwardRef(({className:n,...o},s)=>l.jsx("div",{ref:s,className:Pe("text-2xl font-semibold leading-none tracking-tight",n),...o}));qt.displayName="CardTitle";const rb=g.forwardRef(({className:n,...o},s)=>l.jsx("div",{ref:s,className:Pe("text-sm text-muted-foreground",n),...o}));rb.displayName="CardDescription";const et=g.forwardRef(({className:n,...o},s)=>l.jsx("div",{ref:s,className:Pe("p-6 pt-0",n),...o}));et.displayName="CardContent";const ob=g.forwardRef(({className:n,...o},s)=>l.jsx("div",{ref:s,className:Pe("flex items-center p-6 pt-0",n),...o}));ob.displayName="CardFooter";const sb="data:image/webp;base64,UklGRuIGAABXRUJQVlA4INYGAABQJgCdASqAAIAAPm0qk0WkIqGYOm4wQAbEs4Bk3nM/APQAywCZO18r/hLTMav6s+zZpDlghJ8BKUnMAZjkLswfgVA2KtuzMqy9KtjqluxfF3tWpzIkGQkc2Ohne/9Nf43zM9+Jkdvpf9/JbHCUUoumh17nXTRouF3SCBIkGRSi0w3l3yw6crJENZa10K/vF6cPcSyccT/iD3S5/fcaprh+TN8WBUUJ5/IIcMi+JPjGlEsA3iF6mpOeSjqPk+fZJUhsxCy18a8XlJo6IIxvb74Yfdo2UL/GLOyKdPmeqbU0X+kM1Vdt2iy3XI7+g3AV1o9zAdYUoAg96WRCgTxyguJ3ypnT20CYZdy2xdj4AAsHiEmVme+3rgg0+pyMs/2EAnp8Ynfv/jn0m/g8f9lwwJwmxHpJCTPAFNW4ZAAA/vOs7UH6pZHk2v9DLr6SVz6jwkyhSJu03cyJ4ZPA0NcjeIP4lGry/4YYHsC9++LJ/xdMmZypbR8SAAt4vZrS0eZz6ZVXRQyLcMZsxJaGlsjhg0G5poN46VF/pr5phj3HjflhLGAuPImt4lgJ3xqHmZwkNCRq9eCFg4L+WSh8kF+LWsJLTdITJGGcJA9PMOuxkqERCl1cTjxMfY3dp6bN2TT0oHkXAgu5voT1xAGgJAovkvyDgjXrrLnXKS3B8wGQo5zSPkKDKRbf8guL3MiOJB/VRXjO5w2swoYEmtPp4fr5/i837hxkqOWs+HJGe0eQn5DytNEMNOKd7izd/FvjH7BxsTO9P23NPSHGz3HeQt5NGdfH+HraWjRNe/La/3EeGTfkF/JIoo4skUhzC+HNrbMVAJycO4F8PjnoO3yzhRLNRmp3AsTXv2Y13OUexNNnDXflBzhsCfiERgTaWkfNq/5+kE9ssZH4E7Gx79qnP/QCx04El/nQotRnc4ciYl4EHWBPUGmv4e3E0y2Yqu3uKZTL8cbl2biJoP1TjVSF9y2y2tXYqrKg4XGymZG7nHAc2Qo/sS24HOXglPjKvBQ/8yQnei4K1w5je8Pu2ooqAAASMVS9Fazh+ndDqkXj8AexgufgQ9QEXFTYrLg9QPWauBM1fh2MEKzSqSOfyPxbZOv6mXO99fs+rPunuhBKAquwGUA3HeFQfO1GV+eQ6Wez45jzbLVrwBkx8XRumX6I5PBhFaQtM46pFYJVyrOnh0VF25B9Iwn+0lAk7R5ifCgzb3cZeCRogJezV7TCdydzg51cc8tiCm42l/JEL3sj9Vne0mEEbEoHuh6ecdLBzPqa2QCl2xc9QM9/8RdfVs2mOxeQuBOguTP3Ck+xoMQtXlXb/rwV24P+Zwb6GE3jAnL/uBTii3tDwcXVPSv0tFf+wHMm+EI69BX706r/G5f2ArCN5sV4zzSL3PusMbPqXEMtJ53SGl8N5ybyrNYohINR0Yrz7pCs3Ht9JB2+fp9KqdCawQdGFicX7xHFu4YXYgxbvjc8Tt9VCt61Hebf6bJh/ha6H5BCvDzPuwXI1GY/tqrT+byi11r8NKToX2gYJ/wmtEh/fOxNDr2178M1jL2L4jiYNI44JvzLHnljzooAokDCouypsznHO3+PcrmK3G60yquuy3C+JN05+LZkZzPnj9Ckn+23VGPGr2plxNeQ1pKTDZ49JkEPiCe5hXVLnkY1S55OqeJ64rYJ1bWxs0Oy4gY+K7LW66pYlxk+Xk+V518T44tFGePCmIS2fFDGCsvdb90uwNnMEYrpW+sd1lxXQX8o+IPt0wWkf7ncst5Csk3M35jtgBi2vBsdyroE0mVg1ezMnUrLllGBjknE3H0ypfy/E7sn1L0UiDFd4pBsuYVbnk2MguPhSaF9FgZe1J6o48EgP3JJEP6Rvy8OKXvsg2n7U7bco1QTEgGSoPyP5ytCcofAxJ3raWZo3iacxOk0mllrG14iwiEiU5YCV9je5cFb2Xs1NP1Ob0rr7HxL1fZoAcX7c/MIVwRkhIj721IGI6PcCeU1/oIgZxdYf59T7O5+G821s3utUUoH/b8tUzpG1GPBWSJ6D6gr7zrRm/urGL/4yCxrE1P1spli0RvKv65pfGBKMV3euQP2Bk96JQjUZ1BhEQkbe7siN3KNPNfYcs+uB5CgYiJ58rbtY3avhHOPqeiZQ90zzm+C6PnY3a9VIHhP+zJ59Dr/sc8LuKD5/+AeA3RlwO+IzYf/sCA5DgUsTB2pbTwm3WBi/QNM3bfK2Fbn2GMwf91zhiocP/5cnHX/96f8/WX3L/KE5YVYfBef+S1eF8BHivL9S8/a8N9VcYRLXaiZP6ZGngDIDsrfJa6bFn57VNUfXIgR5PAqNgiPXtOgczUOOAAA",ib="data:image/webp;base64,UklGRm4MAABXRUJQVlA4IGIMAABwNQCdASqAAIAAPm0qkkWkIqGXy15sQAbEs4BnJopM1i5EfrfDPzFfHtAbKXad9jf4/re/tfCHgFvW7Re0w1bvEHRz/z/GHoEfpf0kNF37X6iHTQSiHqqAXhoxuSc5sEF9KJp5kEhJtX6Pa1bBXwP/CMoGtNwhvNdiiaS1rbGa/5/gHUAO04ScsOPecGNeZckJRBPZkxCVJgELgPZDDuQzvAGGs660/4JPhpwq1j5ehUhd0EVbC7RsWTCdtLN4f6I0KKX/JRROByC5BpgAeQAEbuFK6fZG25lsOwD/2JjkEW0hJTQjBI2PDLy0C81CisDdkoUAq8A1KmZ9yBthczAJkwMMfhu51B2FKKzHncj+0LWfd5jugSInV0VjhxC7HTe75POdTrzoeyNox0/iQMRd4Mla30kYLikqa4ogzRTIh22wA0xk6f6g7v86JnpzJMVH/omN8QqhVi9UhVyBEMyZoF2RI9le0/5d1yMh/4veIMG7mRxLI6oW/FDCzIQPut0cJdDLI8jMJDiohYltAo+RNkKF4pt7LN6/Ha8bMMHM/3v3Rd7DoIKyexd+zFCzovCtbuwwAP7/DDRMdYcp8cuKPQa1MFPmn5AJeAxHKpiauUCuRDiBVPaa2HDNXiYGGQQyevRRV4gqtLphL2gqJcO6OI46hvAHSDfWni3/IzvV5QgjCkpASJKzthfVvJ6oovNJC/633bulUKuvW434kiEGPdD8raRNcv4qmbwj8K78jzutwhGv6Ou+vBrrTwU9xJ21zn09o5mF5fd06uDv1kpqJu7xllLdBpzEGGMzVRrTellis+afA/n5v9Cc6VlSScnoXziMrvd7ajXdw4X5GCnjx8tpCqDQSAKWpbwmi/p35hWAx3t8nXRRFcuv9kaDeL5PKk/bJNxl8dI2FAYc+U2chMPUsi6Zp8Cs6KCILNT8WyyWhkflKoQZKo11bRawq5GhF7uCh3euyqJSJ9z3TGWex0MD70TU+7Bggz5NEBltjfA/UsbMm0TyoXHNyhIY9UWfZc3hMRYTuz0EeDl8xnMVQON8SZ+KuKkjD/Oh/u7AEUEAsoz08L6Uitnch2DWCGNkQrPLrlRPjEPlY3XHNaEiafMUgZRkrKglNRJvplloAEoRRZDhsAPn6Mbs7pYRhP20+zcT4zN/vbbHoagm4DKaikVKgS/XN5tZLlw89lSmCQHbCeA2qXjCayo4k+8EKBbvIvXgteNWU1LG1P/cPVMO0vErxKUPrO2DDpv5t+xASfD4m7B8BPvZHEFB8k4iOvFedrh/nGyNliL9EyIFR9kVu3rjlCyMwb/PZ4YiE/L/Ku8zAgEGqYDeLY9SghZh+6fSkyFIlzITdmtcKK6/NMTN6EUVOERVhElMqV+So2EaTbUAsK9NEs4CTkuFTczwL6Y6iocmb4PPKPRQ83LZLwIPyCl02q5ZiWB/fE533wkgAsVslskAME83TwiWceVhvTBOSDSwpiaODhUq5kUUB902lGce2p8ILNy5H13VbWj2blrfoPkKCeP5YWJfLNy/NBecCN+A0Xt+jN8OOC7VplCLTuJj+/tKqU+FZu4KY18gFOP20UolHN5Oq0OEnfZ7NVcH/4j8TCfeL7jqA8Qln+RefBCx+bpZ+bhdI5FEu500H/r87AxLT0aKLc+Imr7p7RUYH2r17H1/3JI+d7vAxU/aooBUeBMbCz9hrWtwKP5NFJAgJI+Nk/IUOksJN1hMu5lsYP9oUzygjHbJ3qq+kgGOtzhlZIgohSuQxsdm0sX9rWR7Xe++AiAVk9pnAzPpvHXjpKkY5+XDPjKBjIhvOVkfwms4NvlQIzh/9xIZ1kGFXZPHXRMo1PP0BQF+X8Kk0+M6feCFxovXs8VYy2RdsPfjZqcCQ57FKPYbs6Kac8PT7YDhzpKuGoitvJgcg8pLMQV8mqVjT2YucAlmU7vCttpFc/RoBepgdk6m5vF9na4WfUWzDtWrU9nH0/V/CJLQEvOhqHw2eFnEgqir80pPAqruGCp5ZTnsuqlr/s5koOrhyq0OVAEQ+nwvl0ieucs5gAnnGR46HjzKJWE49bNHJvqJzYDy1G2s9vzXMxpfO5rvuVOHb4FNNHAkrCm3SFPIlGosK92SQwZ18Dn1nPX9uXuhWaj9P+gQq1m1RTIUG2nkIaMPBUBsYfodiNcvro6VTIS38ezV4Re05NYhA7HByg7PxfGoX7HvaAXSSAEOhVM6YmaZhqEzuJTwnNNZo3O4az4HuH4s5DYnfMF9BwKmvUFZe073H4FRnV6z0zvJfvx6aGQOETxazNk25JSHMXEU0gB776WzqC+XHCuUXFbMo0SHJ+JY8nkHGodAs+BbYji6zIDUFHGv54HjC+d2mvO4QpuureVOwsvPYigoEQ7HqhKfxWmFHYf0mmPChAKgV/2d2rfK9rd+5ndcnEd4Afo8Synl3JC1LSZes6GTkNO95IJ8zo4XhQqTLweka4YmawoBylEBRTEXmmWJTHuWbqqs1jf99NMcEupM1sIksIjIRK3lbBW/vSrVhHrCpYvXIr2XsI088Pyukk+WGGx8aVKdXrNAn7v/e0zq/wa/EaLdMBuiD41ofbHU2edEtuqCn/l3SvxkHsYF+JmQx6mitUicpSwfMBuEi7gs7v1yRww4dPdkBQDR4e3nOsOKGhsl0/VkFCO/+DVgQnSBZ3rYlTvIsc4O/cYWUVXJNGm7NMxHhIv82uHqJLIUW4TPZ9eF1NfCPyiEkJ2Tvtpp5ZZfSEYeqlT6Kp34xHAbvPthK26VHD4rt5BncvDsNYXXCzUeHXBveCO/WD4/DqfcNTAAa7upGrm4Gk8AMhSz/aozgVDiNtWMoD2q2FBQG7IwttnzRvVgV4PeHCcqfoqlLkZ2d/G2jUaUubDdbw3DUc6Wu7XkktcvsFepyeUoE8RQfwF6GkDMQl9uicsEzsRDaf1LnvRBa4nyleIXjZAKbYkD9NUWOeYmbs39rMvCKMGCJbZ6aZXiEf9zADlsHrjdtQS5x5gDQ3G7NTeyHRC3ExVI1h3NhrC0VLPBH5JJaP2VB8ZjkQzj0qLKsEVVp7jtVg2kfmycjXadGj87sWA1+OqNao9VJI3Eaqazql+FkMym6WVNu5XRtrSEPhDRY3k8qHtjjmtFR7XMif+Fc+tBJiNrHVFyew3M46jdJiwaPThPbqBgvn9KzT0vfWBh742Nm5etcLn0GcfJlQGjgFqyscpJdXAM8fUbh/1CX6JWPcdRR9wZqn1YuzPZyniEpCgk9wQijs+NCYwkRLd42Fde48e2DjT3iwPZzSVjrI5OVGu6PssMc2MSA/RjMqYJfjsA/xQfvRrId0nlPUxvrSOGy5eCwZkI/zsDiOWcb01ti9ezdutHWJo9Pw6cJ78gjCRT4gSNiuDSg98J2SgRqVi+VvrG5XRUJCDe5S51DQ6BU2x+UcLILJdvgR3o/ysdnJQYYWftzF8juqNFn5slRuCWEaBzNkaifzNRi2DvGsBZpFWoWriZA1F7TaDrPhrmFGnF/nO7e+IygRH3LFlgrHC+7Er4NocQdAf7jUAVntUXVtGlYI4OPg5QMHOrD7FEvUdQUFePOZPScea5vaPD/EGZVpT28fel/zBNFYU7eD8N45vHx0Uz0tiRcgZAUDOesc1YiKnQSuBsUTA6LZ7J5i9+BeRWofSMmfCisx44iDcgTDb5vxRc2JmrQ7x41ldaVpwbV9/xaQ1ogz9RY8qD6xBEaIvGAG3iHk5BrZ3o8oOPNlTb/47/do8yx3xsLCqwZDAtg7ihnQhkFs1YGaUMutA/Vtnlca82FnqQa6nfcfnK1eD49/ORzCBT8NlWMBeED+/fJUqk9HXZeT7ozGkKdHRNOTJxHIrvsBVrzZ9/8IWeXZmXs+Vu0CRE5MRR72DxEaJ7RDKGJX9e8YsAPWzMiiLflbcwOIvtfqQq3hutRyurWWKZlO85JyiviRD3FBY+QUG6ZkLAfloMP/CT4MloTu1fwStzbLD5T0etFBELFMWSqb8+z6RfbQcLL3Vbg2J2GIV8kkpMaie29MOOEIqKeQ/j90pNN/DjXooTrTD+Q+y5pf5LiI2cYQLId0H4pSutyQ60q364i82NDsP4+POp0jDBUIjjgVef79VflrGCEz86VbKFHBzZa8EiT8nRSmvi0ENcp5I3P1XjuKIGE4si/qRQhVkEsj0FUPPvPmORgFQ8nM8/UMPkuEW7v06e/QZdGpwxtQ3h+wCAUd4AAA==",ab="/assets/earth%20gif%20STATIC_1754581699726-CNaxNMtC.png";function lb(){const{data:n,isLoading:o}=Mc({queryKey:["/api/team"]}),s=a=>{switch(a){case"Heroo":return ab;case"ant1climaks":return sb;case"n":return ib;default:return"https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=300&h=300"}};return o?l.jsx("section",{id:"team",className:"py-20 bg-alpha-bg",children:l.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:l.jsx("div",{className:"text-center",children:l.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-alpha-secondary mx-auto"})})})}):l.jsx("section",{id:"team",className:"py-20 bg-alpha-bg",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsxs("h2",{className:"font-poppins font-bold text-4xl lg:text-5xl mb-6",children:["Meet the"," ",l.jsx("span",{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:"Alphabeta Team"})]}),l.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"Our passionate team of developers and designers work tirelessly to create exceptional experiences that bring communities together."})]}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:n?.map((a,u)=>l.jsx(Ze,{className:"card-gradient border-alpha-accent/30 text-center hover:shadow-card-hover transition-all duration-300 transform hover:scale-105",children:l.jsxs(et,{className:"pt-6",children:[l.jsx("img",{src:s(a.name),alt:a.name,className:"w-24 h-24 rounded-full mx-auto mb-4 object-cover border-4 border-alpha-secondary"}),l.jsx("h3",{className:"font-poppins font-semibold text-xl mb-2",children:a.name}),l.jsx("p",{className:"text-alpha-secondary mb-3",children:a.role}),l.jsx("p",{className:"text-gray-300 text-sm",children:a.description})]})},a.id))}),l.jsx("div",{className:"text-center",children:l.jsx(Ze,{className:"inline-block card-gradient border-alpha-accent/30 max-w-4xl",children:l.jsxs(et,{className:"p-8",children:[l.jsx("h3",{className:"font-poppins font-bold text-2xl mb-4",children:"Our Mission"}),l.jsx("p",{className:"text-lg text-gray-300 leading-relaxed",children:"At Alphabeta, we believe communities deserve tools that are both powerful and intuitive. Our mission is to create products that enhance social interaction, streamline management, and provide engaging experiences that bring people together. Every line of code we write is crafted with the community in mind."})]})})})]})})}const Cg=g.forwardRef(({className:n,type:o,...s},a)=>l.jsx("input",{type:o,className:Pe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:a,...s}));Cg.displayName="Input";function Jp(n,[o,s]){return Math.min(s,Math.max(o,n))}var cb=g.createContext(void 0);function ub(n){const o=g.useContext(cb);return n||o||"ltr"}function db(n){const o=g.useRef({value:n,previous:n});return g.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}var fb=[" ","Enter","ArrowUp","ArrowDown"],pb=[" ","Enter"],Xo="Select",[Wi,Qi,hb]=Eh(Xo),[Yr,SN]=Qr(Xo,[hb,Ui]),$i=Ui(),[mb,Ln]=Yr(Xo),[gb,vb]=Yr(Xo),bg=n=>{const{__scopeSelect:o,children:s,open:a,defaultOpen:u,onOpenChange:f,value:p,defaultValue:h,onValueChange:v,dir:y,name:w,autoComplete:S,disabled:b,required:P,form:R}=n,x=$i(o),[C,T]=g.useState(null),[O,_]=g.useState(null),[D,z]=g.useState(!1),W=ub(y),[U=!1,X]=Ci({prop:a,defaultProp:u,onChange:f}),[se,ie]=Ci({prop:p,defaultProp:h,onChange:v}),me=g.useRef(null),J=C?R||!!C.closest("form"):!0,[fe,G]=g.useState(new Set),he=Array.from(fe).map(te=>te.props.value).join(";");return l.jsx(bS,{...x,children:l.jsxs(mb,{required:P,scope:o,trigger:C,onTriggerChange:T,valueNode:O,onValueNodeChange:_,valueNodeHasChildren:D,onValueNodeHasChildrenChange:z,contentId:Fr(),value:se,onValueChange:ie,open:U,onOpenChange:X,dir:W,triggerPointerDownPosRef:me,disabled:b,children:[l.jsx(Wi.Provider,{scope:o,children:l.jsx(gb,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(te=>{G(re=>new Set(re).add(te))},[]),onNativeOptionRemove:g.useCallback(te=>{G(re=>{const L=new Set(re);return L.delete(te),L})},[]),children:s})}),J?l.jsxs(Gg,{"aria-hidden":!0,required:P,tabIndex:-1,name:w,autoComplete:S,value:se,onChange:te=>ie(te.target.value),disabled:b,form:R,children:[se===void 0?l.jsx("option",{value:""}):null,Array.from(fe)]},he):null]})})};bg.displayName=Xo;var Ng="SelectTrigger",Eg=g.forwardRef((n,o)=>{const{__scopeSelect:s,disabled:a=!1,...u}=n,f=$i(s),p=Ln(Ng,s),h=p.disabled||a,v=_e(o,p.onTriggerChange),y=Qi(s),w=g.useRef("touch"),[S,b,P]=qg(x=>{const C=y().filter(_=>!_.disabled),T=C.find(_=>_.value===p.value),O=Yg(C,x,T);O!==void 0&&p.onValueChange(O.value)}),R=x=>{h||(p.onOpenChange(!0),P()),x&&(p.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return l.jsx(Am,{asChild:!0,...f,children:l.jsx(Ne.button,{type:"button",role:"combobox","aria-controls":p.contentId,"aria-expanded":p.open,"aria-required":p.required,"aria-autocomplete":"none",dir:p.dir,"data-state":p.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Kg(p.value)?"":void 0,...u,ref:v,onClick:ve(u.onClick,x=>{x.currentTarget.focus(),w.current!=="mouse"&&R(x)}),onPointerDown:ve(u.onPointerDown,x=>{w.current=x.pointerType;const C=x.target;C.hasPointerCapture(x.pointerId)&&C.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(R(x),x.preventDefault())}),onKeyDown:ve(u.onKeyDown,x=>{const C=S.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&b(x.key),!(C&&x.key===" ")&&fb.includes(x.key)&&(R(),x.preventDefault())})})})});Eg.displayName=Ng;var jg="SelectValue",kg=g.forwardRef((n,o)=>{const{__scopeSelect:s,className:a,style:u,children:f,placeholder:p="",...h}=n,v=Ln(jg,s),{onValueNodeHasChildrenChange:y}=v,w=f!==void 0,S=_e(o,v.onValueNodeChange);return st(()=>{y(w)},[y,w]),l.jsx(Ne.span,{...h,ref:S,style:{pointerEvents:"none"},children:Kg(v.value)?l.jsx(l.Fragment,{children:p}):f})});kg.displayName=jg;var yb="SelectIcon",Pg=g.forwardRef((n,o)=>{const{__scopeSelect:s,children:a,...u}=n;return l.jsx(Ne.span,{"aria-hidden":!0,...u,ref:o,children:a||"▼"})});Pg.displayName=yb;var xb="SelectPortal",Rg=n=>l.jsx(Ii,{asChild:!0,...n});Rg.displayName=xb;var or="SelectContent",Tg=g.forwardRef((n,o)=>{const s=Ln(or,n.__scopeSelect),[a,u]=g.useState();if(st(()=>{u(new DocumentFragment)},[]),!s.open){const f=a;return f?Wr.createPortal(l.jsx(Og,{scope:n.__scopeSelect,children:l.jsx(Wi.Slot,{scope:n.__scopeSelect,children:l.jsx("div",{children:n.children})})}),f):null}return l.jsx(Ag,{...n,ref:o})});Tg.displayName=or;var Lt=10,[Og,Fn]=Yr(or),wb="SelectContentImpl",Sb=Br("SelectContent.RemoveScroll"),Ag=g.forwardRef((n,o)=>{const{__scopeSelect:s,position:a="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:p,side:h,sideOffset:v,align:y,alignOffset:w,arrowPadding:S,collisionBoundary:b,collisionPadding:P,sticky:R,hideWhenDetached:x,avoidCollisions:C,...T}=n,O=Ln(or,s),[_,D]=g.useState(null),[z,W]=g.useState(null),U=_e(o,q=>D(q)),[X,se]=g.useState(null),[ie,me]=g.useState(null),J=Qi(s),[fe,G]=g.useState(!1),he=g.useRef(!1);g.useEffect(()=>{if(_)return Zm(_)},[_]),Wm();const te=g.useCallback(q=>{const[ae,...xe]=J().map(Le=>Le.ref.current),[Se]=xe.slice(-1),je=document.activeElement;for(const Le of q)if(Le===je||(Le?.scrollIntoView({block:"nearest"}),Le===ae&&z&&(z.scrollTop=0),Le===Se&&z&&(z.scrollTop=z.scrollHeight),Le?.focus(),document.activeElement!==je))return},[J,z]),re=g.useCallback(()=>te([X,_]),[te,X,_]);g.useEffect(()=>{fe&&re()},[fe,re]);const{onOpenChange:L,triggerPointerDownPosRef:$}=O;g.useEffect(()=>{if(_){let q={x:0,y:0};const ae=Se=>{q={x:Math.abs(Math.round(Se.pageX)-($.current?.x??0)),y:Math.abs(Math.round(Se.pageY)-($.current?.y??0))}},xe=Se=>{q.x<=10&&q.y<=10?Se.preventDefault():_.contains(Se.target)||L(!1),document.removeEventListener("pointermove",ae),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",xe,{capture:!0})}}},[_,L,$]),g.useEffect(()=>{const q=()=>L(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[L]);const[K,k]=qg(q=>{const ae=J().filter(je=>!je.disabled),xe=ae.find(je=>je.ref.current===document.activeElement),Se=Yg(ae,q,xe);Se&&setTimeout(()=>Se.ref.current.focus())}),F=g.useCallback((q,ae,xe)=>{const Se=!he.current&&!xe;(O.value!==void 0&&O.value===ae||Se)&&(se(q),Se&&(he.current=!0))},[O.value]),ue=g.useCallback(()=>_?.focus(),[_]),de=g.useCallback((q,ae,xe)=>{const Se=!he.current&&!xe;(O.value!==void 0&&O.value===ae||Se)&&me(q)},[O.value]),we=a==="popper"?Nc:Ig,ye=we===Nc?{side:h,sideOffset:v,align:y,alignOffset:w,arrowPadding:S,collisionBoundary:b,collisionPadding:P,sticky:R,hideWhenDetached:x,avoidCollisions:C}:{};return l.jsx(Og,{scope:s,content:_,viewport:z,onViewportChange:W,itemRefCallback:F,selectedItem:X,onItemLeave:ue,itemTextRefCallback:de,focusSelectedItem:re,selectedItemText:ie,position:a,isPositioned:fe,searchRef:K,children:l.jsx(Jc,{as:Sb,allowPinchZoom:!0,children:l.jsx(Xc,{asChild:!0,trapped:O.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:ve(u,q=>{O.trigger?.focus({preventScroll:!0}),q.preventDefault()}),children:l.jsx(Go,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:l.jsx(we,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:q=>q.preventDefault(),...T,...ye,onPlaced:()=>G(!0),ref:U,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:ve(T.onKeyDown,q=>{const ae=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!ae&&q.key.length===1&&k(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let Se=J().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(q.key)&&(Se=Se.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const je=q.target,Le=Se.indexOf(je);Se=Se.slice(Le+1)}setTimeout(()=>te(Se)),q.preventDefault()}})})})})})})});Ag.displayName=wb;var Cb="SelectItemAlignedPosition",Ig=g.forwardRef((n,o)=>{const{__scopeSelect:s,onPlaced:a,...u}=n,f=Ln(or,s),p=Fn(or,s),[h,v]=g.useState(null),[y,w]=g.useState(null),S=_e(o,U=>w(U)),b=Qi(s),P=g.useRef(!1),R=g.useRef(!0),{viewport:x,selectedItem:C,selectedItemText:T,focusSelectedItem:O}=p,_=g.useCallback(()=>{if(f.trigger&&f.valueNode&&h&&y&&x&&C&&T){const U=f.trigger.getBoundingClientRect(),X=y.getBoundingClientRect(),se=f.valueNode.getBoundingClientRect(),ie=T.getBoundingClientRect();if(f.dir!=="rtl"){const je=ie.left-X.left,Le=se.left-je,qe=U.left-Le,Rt=U.width+qe,sr=Math.max(Rt,X.width),ir=window.innerWidth-Lt,zn=Jp(Le,[Lt,Math.max(Lt,ir-sr)]);h.style.minWidth=Rt+"px",h.style.left=zn+"px"}else{const je=X.right-ie.right,Le=window.innerWidth-se.right-je,qe=window.innerWidth-U.right-Le,Rt=U.width+qe,sr=Math.max(Rt,X.width),ir=window.innerWidth-Lt,zn=Jp(Le,[Lt,Math.max(Lt,ir-sr)]);h.style.minWidth=Rt+"px",h.style.right=zn+"px"}const me=b(),J=window.innerHeight-Lt*2,fe=x.scrollHeight,G=window.getComputedStyle(y),he=parseInt(G.borderTopWidth,10),te=parseInt(G.paddingTop,10),re=parseInt(G.borderBottomWidth,10),L=parseInt(G.paddingBottom,10),$=he+te+fe+L+re,K=Math.min(C.offsetHeight*5,$),k=window.getComputedStyle(x),F=parseInt(k.paddingTop,10),ue=parseInt(k.paddingBottom,10),de=U.top+U.height/2-Lt,we=J-de,ye=C.offsetHeight/2,q=C.offsetTop+ye,ae=he+te+q,xe=$-ae;if(ae<=de){const je=me.length>0&&C===me[me.length-1].ref.current;h.style.bottom="0px";const Le=y.clientHeight-x.offsetTop-x.offsetHeight,qe=Math.max(we,ye+(je?ue:0)+Le+re),Rt=ae+qe;h.style.height=Rt+"px"}else{const je=me.length>0&&C===me[0].ref.current;h.style.top="0px";const qe=Math.max(de,he+x.offsetTop+(je?F:0)+ye)+xe;h.style.height=qe+"px",x.scrollTop=ae-de+x.offsetTop}h.style.margin=`${Lt}px 0`,h.style.minHeight=K+"px",h.style.maxHeight=J+"px",a?.(),requestAnimationFrame(()=>P.current=!0)}},[b,f.trigger,f.valueNode,h,y,x,C,T,f.dir,a]);st(()=>_(),[_]);const[D,z]=g.useState();st(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]);const W=g.useCallback(U=>{U&&R.current===!0&&(_(),O?.(),R.current=!1)},[_,O]);return l.jsx(Nb,{scope:s,contentWrapper:h,shouldExpandOnScrollRef:P,onScrollButtonChange:W,children:l.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:l.jsx(Ne.div,{...u,ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Ig.displayName=Cb;var bb="SelectPopperPosition",Nc=g.forwardRef((n,o)=>{const{__scopeSelect:s,align:a="start",collisionPadding:u=Lt,...f}=n,p=$i(s);return l.jsx(Im,{...p,...f,ref:o,align:a,collisionPadding:u,style:{boxSizing:"border-box",...f.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)"}})});Nc.displayName=bb;var[Nb,ru]=Yr(or,{}),Ec="SelectViewport",_g=g.forwardRef((n,o)=>{const{__scopeSelect:s,nonce:a,...u}=n,f=Fn(Ec,s),p=ru(Ec,s),h=_e(o,f.onViewportChange),v=g.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("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}"},nonce:a}),l.jsx(Wi.Slot,{scope:s,children:l.jsx(Ne.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:ve(u.onScroll,y=>{const w=y.currentTarget,{contentWrapper:S,shouldExpandOnScrollRef:b}=p;if(b?.current&&S){const P=Math.abs(v.current-w.scrollTop);if(P>0){const R=window.innerHeight-Lt*2,x=parseFloat(S.style.minHeight),C=parseFloat(S.style.height),T=Math.max(x,C);if(T0?D:0,S.style.justifyContent="flex-end")}}}v.current=w.scrollTop})})})]})});_g.displayName=Ec;var Mg="SelectGroup",[Eb,jb]=Yr(Mg),kb=g.forwardRef((n,o)=>{const{__scopeSelect:s,...a}=n,u=Fr();return l.jsx(Eb,{scope:s,id:u,children:l.jsx(Ne.div,{role:"group","aria-labelledby":u,...a,ref:o})})});kb.displayName=Mg;var Dg="SelectLabel",Lg=g.forwardRef((n,o)=>{const{__scopeSelect:s,...a}=n,u=jb(Dg,s);return l.jsx(Ne.div,{id:u.id,...a,ref:o})});Lg.displayName=Dg;var Ri="SelectItem",[Pb,Fg]=Yr(Ri),zg=g.forwardRef((n,o)=>{const{__scopeSelect:s,value:a,disabled:u=!1,textValue:f,...p}=n,h=Ln(Ri,s),v=Fn(Ri,s),y=h.value===a,[w,S]=g.useState(f??""),[b,P]=g.useState(!1),R=_e(o,O=>v.itemRefCallback?.(O,a,u)),x=Fr(),C=g.useRef("touch"),T=()=>{u||(h.onValueChange(a),h.onOpenChange(!1))};if(a==="")throw new Error("A 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 l.jsx(Pb,{scope:s,value:a,disabled:u,textId:x,isSelected:y,onItemTextChange:g.useCallback(O=>{S(_=>_||(O?.textContent??"").trim())},[]),children:l.jsx(Wi.ItemSlot,{scope:s,value:a,disabled:u,textValue:w,children:l.jsx(Ne.div,{role:"option","aria-labelledby":x,"data-highlighted":b?"":void 0,"aria-selected":y&&b,"data-state":y?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...p,ref:R,onFocus:ve(p.onFocus,()=>P(!0)),onBlur:ve(p.onBlur,()=>P(!1)),onClick:ve(p.onClick,()=>{C.current!=="mouse"&&T()}),onPointerUp:ve(p.onPointerUp,()=>{C.current==="mouse"&&T()}),onPointerDown:ve(p.onPointerDown,O=>{C.current=O.pointerType}),onPointerMove:ve(p.onPointerMove,O=>{C.current=O.pointerType,u?v.onItemLeave?.():C.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(p.onPointerLeave,O=>{O.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:ve(p.onKeyDown,O=>{v.searchRef?.current!==""&&O.key===" "||(pb.includes(O.key)&&T(),O.key===" "&&O.preventDefault())})})})})});zg.displayName=Ri;var Uo="SelectItemText",Ug=g.forwardRef((n,o)=>{const{__scopeSelect:s,className:a,style:u,...f}=n,p=Ln(Uo,s),h=Fn(Uo,s),v=Fg(Uo,s),y=vb(Uo,s),[w,S]=g.useState(null),b=_e(o,T=>S(T),v.onItemTextChange,T=>h.itemTextRefCallback?.(T,v.value,v.disabled)),P=w?.textContent,R=g.useMemo(()=>l.jsx("option",{value:v.value,disabled:v.disabled,children:P},v.value),[v.disabled,v.value,P]),{onNativeOptionAdd:x,onNativeOptionRemove:C}=y;return st(()=>(x(R),()=>C(R)),[x,C,R]),l.jsxs(l.Fragment,{children:[l.jsx(Ne.span,{id:v.textId,...f,ref:b}),v.isSelected&&p.valueNode&&!p.valueNodeHasChildren?Wr.createPortal(f.children,p.valueNode):null]})});Ug.displayName=Uo;var Bg="SelectItemIndicator",Hg=g.forwardRef((n,o)=>{const{__scopeSelect:s,...a}=n;return Fg(Bg,s).isSelected?l.jsx(Ne.span,{"aria-hidden":!0,...a,ref:o}):null});Hg.displayName=Bg;var jc="SelectScrollUpButton",Vg=g.forwardRef((n,o)=>{const s=Fn(jc,n.__scopeSelect),a=ru(jc,n.__scopeSelect),[u,f]=g.useState(!1),p=_e(o,a.onScrollButtonChange);return st(()=>{if(s.viewport&&s.isPositioned){let h=function(){const y=v.scrollTop>0;f(y)};const v=s.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[s.viewport,s.isPositioned]),u?l.jsx(Qg,{...n,ref:p,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=s;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});Vg.displayName=jc;var kc="SelectScrollDownButton",Wg=g.forwardRef((n,o)=>{const s=Fn(kc,n.__scopeSelect),a=ru(kc,n.__scopeSelect),[u,f]=g.useState(!1),p=_e(o,a.onScrollButtonChange);return st(()=>{if(s.viewport&&s.isPositioned){let h=function(){const y=v.scrollHeight-v.clientHeight,w=Math.ceil(v.scrollTop)v.removeEventListener("scroll",h)}},[s.viewport,s.isPositioned]),u?l.jsx(Qg,{...n,ref:p,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=s;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});Wg.displayName=kc;var Qg=g.forwardRef((n,o)=>{const{__scopeSelect:s,onAutoScroll:a,...u}=n,f=Fn("SelectScrollButton",s),p=g.useRef(null),h=Qi(s),v=g.useCallback(()=>{p.current!==null&&(window.clearInterval(p.current),p.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),st(()=>{h().find(w=>w.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),l.jsx(Ne.div,{"aria-hidden":!0,...u,ref:o,style:{flexShrink:0,...u.style},onPointerDown:ve(u.onPointerDown,()=>{p.current===null&&(p.current=window.setInterval(a,50))}),onPointerMove:ve(u.onPointerMove,()=>{f.onItemLeave?.(),p.current===null&&(p.current=window.setInterval(a,50))}),onPointerLeave:ve(u.onPointerLeave,()=>{v()})})}),Rb="SelectSeparator",$g=g.forwardRef((n,o)=>{const{__scopeSelect:s,...a}=n;return l.jsx(Ne.div,{"aria-hidden":!0,...a,ref:o})});$g.displayName=Rb;var Pc="SelectArrow",Tb=g.forwardRef((n,o)=>{const{__scopeSelect:s,...a}=n,u=$i(s),f=Ln(Pc,s),p=Fn(Pc,s);return f.open&&p.position==="popper"?l.jsx(_m,{...u,...a,ref:o}):null});Tb.displayName=Pc;function Kg(n){return n===""||n===void 0}var Gg=g.forwardRef((n,o)=>{const{value:s,...a}=n,u=g.useRef(null),f=_e(o,u),p=db(s);return g.useEffect(()=>{const h=u.current,v=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(v,"value").set;if(p!==s&&w){const S=new Event("change",{bubbles:!0});w.call(h,s),h.dispatchEvent(S)}},[p,s]),l.jsx(qo,{asChild:!0,children:l.jsx("select",{...a,ref:f,defaultValue:s})})});Gg.displayName="BubbleSelect";function qg(n){const o=St(n),s=g.useRef(""),a=g.useRef(0),u=g.useCallback(p=>{const h=s.current+p;o(h),function v(y){s.current=y,window.clearTimeout(a.current),y!==""&&(a.current=window.setTimeout(()=>v(""),1e3))}(h)},[o]),f=g.useCallback(()=>{s.current="",window.clearTimeout(a.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(a.current),[]),[s,u,f]}function Yg(n,o,s){const u=o.length>1&&Array.from(o).every(y=>y===o[0])?o[0]:o,f=s?n.indexOf(s):-1;let p=Ob(n,Math.max(f,0));u.length===1&&(p=p.filter(y=>y!==s));const v=p.find(y=>y.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==s?v:void 0}function Ob(n,o){return n.map((s,a)=>n[(o+a)%n.length])}var Ab=bg,Xg=Eg,Ib=kg,_b=Pg,Mb=Rg,Jg=Tg,Db=_g,Zg=Lg,ev=zg,Lb=Ug,Fb=Hg,tv=Vg,nv=Wg,rv=$g;const zb=Ab,Ub=Ib,ov=g.forwardRef(({className:n,children:o,...s},a)=>l.jsxs(Xg,{ref:a,className:Pe("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 data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...s,children:[o,l.jsx(_b,{asChild:!0,children:l.jsx(Jh,{className:"h-4 w-4 opacity-50"})})]}));ov.displayName=Xg.displayName;const sv=g.forwardRef(({className:n,...o},s)=>l.jsx(tv,{ref:s,className:Pe("flex cursor-default items-center justify-center py-1",n),...o,children:l.jsx(Nw,{className:"h-4 w-4"})}));sv.displayName=tv.displayName;const iv=g.forwardRef(({className:n,...o},s)=>l.jsx(nv,{ref:s,className:Pe("flex cursor-default items-center justify-center py-1",n),...o,children:l.jsx(Jh,{className:"h-4 w-4"})}));iv.displayName=nv.displayName;const av=g.forwardRef(({className:n,children:o,position:s="popper",...a},u)=>l.jsx(Mb,{children:l.jsxs(Jg,{ref:u,className:Pe("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:s,...a,children:[l.jsx(sv,{}),l.jsx(Db,{className:Pe("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),l.jsx(iv,{})]})}));av.displayName=Jg.displayName;const Bb=g.forwardRef(({className:n,...o},s)=>l.jsx(Zg,{ref:s,className:Pe("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...o}));Bb.displayName=Zg.displayName;const lv=g.forwardRef(({className:n,children:o,...s},a)=>l.jsxs(ev,{ref:a,className:Pe("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",n),...s,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Fb,{children:l.jsx(Sw,{className:"h-4 w-4"})})}),l.jsx(Lb,{children:o})]}));lv.displayName=ev.displayName;const Hb=g.forwardRef(({className:n,...o},s)=>l.jsx(rv,{ref:s,className:Pe("-mx-1 my-1 h-px bg-muted",n),...o}));Hb.displayName=rv.displayName;const Vb=Di("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ti({className:n,variant:o,...s}){return l.jsx("div",{className:Pe(Vb({variant:o}),n),...s})}const Wb="/assets/Earth-Vector-Illustration-BIG-B-tAGhtd.jpg";function Qb(){const[n,o]=g.useState(""),[s,a]=g.useState("All Categories"),{data:u,isLoading:f}=Mc({queryKey:["/api/bots"]});if(f)return l.jsx("section",{id:"projects",className:"py-20 gradient-bg",children:l.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:l.jsx("div",{className:"text-center",children:l.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-alpha-secondary mx-auto"})})})});const p=u?.find(b=>b.isFlagship),h=u?.filter(b=>!b.isFlagship)||[],v=["All Categories",...Array.from(new Set(u?.map(b=>b.category)||[]))],y=h.filter(b=>{const P=b.name.toLowerCase().includes(n.toLowerCase())||b.description.toLowerCase().includes(n.toLowerCase()),R=s==="All Categories"||b.category===s;return P&&R}),w=b=>{switch(b){case"Economy":return"fas fa-coins";case"Moderation":return"fas fa-shield-alt";case"Entertainment":return"fas fa-music";case"Utility":return"fas fa-tools";default:return"fas fa-robot"}},S=b=>{switch(b){case"Economy":return"bg-alpha-secondary/20 text-alpha-secondary";case"Moderation":return"bg-alpha-accent/20 text-alpha-accent";case"Entertainment":return"bg-alpha-secondary/20 text-alpha-secondary";case"Utility":return"bg-alpha-primary/20 text-alpha-accent";default:return"bg-alpha-accent/20 text-alpha-accent"}};return l.jsx("section",{id:"projects",className:"py-20 gradient-bg",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsxs("h2",{className:"font-poppins font-bold text-4xl lg:text-5xl mb-6",children:["Our"," ",l.jsx("span",{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:"Projects"})]}),l.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto mb-8",children:"Discover our collection of innovative projects designed to enhance your user experience"}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center mb-12",children:[l.jsxs("div",{className:"relative",children:[l.jsx(Cg,{type:"text",placeholder:"Search projects...",value:n,onChange:b=>o(b.target.value),className:"bg-alpha-card border border-alpha-accent/30 rounded-xl px-4 py-3 pl-12 w-80 focus:outline-none focus:border-alpha-secondary focus:shadow-neon transition-all duration-300"}),l.jsx(Aw,{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"})]}),l.jsxs(zb,{value:s,onValueChange:a,children:[l.jsx(ov,{className:"bg-alpha-card border border-alpha-accent/30 rounded-xl w-48 focus:border-alpha-secondary",children:l.jsx(Ub,{})}),l.jsx(av,{className:"bg-alpha-card border-alpha-accent/30",children:v.map(b=>l.jsx(lv,{value:b,children:b},b))})]})]})]}),p&&l.jsxs("div",{className:"mb-16",children:[l.jsx("div",{className:"text-center mb-8",children:l.jsxs(Ti,{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent px-4 py-2 rounded-full text-sm font-semibold",children:[l.jsx(Zn,{className:"w-4 h-4 mr-2"}),"FLAGSHIP PROJECT"]})}),l.jsx(Ze,{className:"card-gradient border-alpha-accent/30 hover:shadow-card-hover transition-all duration-300",children:l.jsx(et,{className:"p-8 lg:p-12",children:l.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"font-poppins font-bold text-3xl lg:text-4xl mb-4",children:l.jsx("span",{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:p.name})}),l.jsxs("p",{className:"text-alpha-secondary text-xl font-semibold mb-4",children:[p.category," Discord Bot"]}),l.jsx("p",{className:"text-gray-300 text-lg mb-6 leading-relaxed",children:p.description}),l.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8",children:[l.jsxs("div",{className:"text-center",children:[l.jsxs("div",{className:"text-2xl font-bold text-alpha-secondary",children:[p.servers.toLocaleString(),"+"]}),l.jsxs("div",{className:"text-sm text-gray-400 flex items-center justify-center",children:[l.jsx(vc,{className:"w-4 h-4 mr-1"}),"Active Servers"]})]}),l.jsxs("div",{className:"text-center",children:[l.jsxs("div",{className:"text-2xl font-bold text-alpha-secondary",children:[(p.rating/10).toFixed(1),"/5"]}),l.jsxs("div",{className:"text-sm text-gray-400 flex items-center justify-center",children:[l.jsx(Zn,{className:"w-4 h-4 mr-1"}),"User Rating"]})]})]}),l.jsxs("div",{className:"flex flex-wrap gap-4",children:[p.inviteUrl&&l.jsxs(Re,{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent hover:shadow-neon transition-all duration-300 transform hover:scale-105",onClick:()=>window.open(p.inviteUrl,"_blank"),children:[l.jsx(Rp,{className:"w-4 h-4 mr-2"}),"Add to Server"]}),p.voteUrl&&l.jsxs(Re,{variant:"outline",className:"border-2 border-alpha-accent text-alpha-accent hover:bg-alpha-accent hover:text-alpha-bg transition-all duration-300",onClick:()=>window.open(p.voteUrl,"_blank"),children:[l.jsx(Tp,{className:"w-4 h-4 mr-2"}),"Vote on Top.gg"]}),p.name==="HeroBruh"&&l.jsxs(Re,{variant:"outline",className:"border-2 border-alpha-accent text-alpha-accent hover:bg-alpha-accent hover:text-alpha-bg transition-all duration-300",onClick:()=>window.open("https://discordbotlist.com/bots/herobruh/upvote","_blank"),children:[l.jsx(Tp,{className:"w-4 h-4 mr-2"}),"Vote on DBL"]}),l.jsx(ht,{href:`/bot/${encodeURIComponent(p.name)}`,children:l.jsxs(Re,{variant:"ghost",className:"text-alpha-accent hover:bg-alpha-accent/10",children:[l.jsx(ql,{className:"w-4 h-4 mr-2"}),"Learn More"]})})]})]}),l.jsxs("div",{className:"relative",children:[p.profileImage?l.jsx("img",{src:Wb,alt:`${p.name} Profile`,className:"rounded-2xl shadow-2xl w-full object-cover h-80"}):l.jsx("img",{src:"https://images.unsplash.com/photo-1560472354-b33ff0c44a43?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=800&h=600",alt:"Gaming UI interface with neon elements",className:"rounded-2xl shadow-2xl w-full"}),l.jsx("div",{className:"absolute -top-4 -right-4 bg-gradient-to-br from-alpha-secondary to-alpha-accent rounded-full w-16 h-16 flex items-center justify-center animate-pulse",children:l.jsx("i",{className:`${p.iconClass} text-2xl text-alpha-bg`})})]})]})})})]}),y.length>0&&l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:y.map(b=>l.jsx(Ze,{className:"card-gradient border-alpha-accent/30 hover:shadow-card-hover transition-all duration-300 transform hover:scale-105",children:l.jsxs(et,{className:"p-6",children:[l.jsxs("div",{className:"flex items-center justify-between mb-4",children:[l.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-alpha-accent to-alpha-secondary rounded-lg flex items-center justify-center",children:l.jsx("i",{className:`${w(b.category)} text-alpha-text text-lg`})}),l.jsx(Ti,{className:S(b.category),children:b.category.toUpperCase()})]}),l.jsx("h3",{className:"font-poppins font-bold text-xl mb-2",children:b.name}),l.jsx("p",{className:"text-gray-300 mb-4 text-sm line-clamp-3",children:b.description}),l.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-400 mb-4",children:[l.jsxs("span",{className:"flex items-center",children:[l.jsx(vc,{className:"w-4 h-4 mr-1"}),b.servers.toLocaleString()," servers"]}),l.jsxs("span",{className:"flex items-center",children:[l.jsx(Zn,{className:"w-4 h-4 mr-1"}),(b.rating/10).toFixed(1),"/5"]})]}),l.jsxs("div",{className:"flex gap-2",children:[b.inviteUrl&&l.jsx(Re,{className:"flex-1 bg-alpha-accent hover:bg-alpha-accent/80 text-sm font-semibold",onClick:()=>window.open(b.inviteUrl,"_blank"),children:"Add Bot"}),l.jsx(ht,{href:`/bot/${encodeURIComponent(b.name)}`,children:l.jsx(Re,{variant:"outline",size:"icon",className:"border border-alpha-accent/30 hover:border-alpha-accent transition-colors",children:l.jsx(ql,{className:"w-4 h-4"})})})]})]})},b.id))}),y.length===0&&p&&l.jsxs("div",{className:"text-center mt-12",children:[l.jsxs("p",{className:"text-gray-300 text-lg mb-6",children:["Experience the power of ",p.name," today!"]}),l.jsxs("div",{className:"flex justify-center gap-4",children:[p.inviteUrl&&l.jsxs(Re,{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent px-8 py-4 rounded-xl font-semibold text-lg hover:shadow-neon transition-all duration-300 transform hover:scale-105",onClick:()=>window.open(p.inviteUrl,"_blank"),children:[l.jsx(Rp,{className:"w-5 h-5 mr-2"}),"Add to Discord"]}),l.jsx(ht,{href:`/bot/${encodeURIComponent(p.name)}`,children:l.jsxs(Re,{variant:"outline",className:"border-2 border-alpha-accent text-alpha-accent hover:bg-alpha-accent hover:text-alpha-bg px-8 py-4 rounded-xl font-semibold text-lg transition-all duration-300",children:[l.jsx(ql,{className:"w-5 h-5 mr-2"}),"Learn More"]})})]})]}),y.length>0&&l.jsx("div",{className:"text-center mt-12",children:l.jsxs(Re,{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent px-8 py-4 rounded-xl font-semibold text-lg hover:shadow-neon transition-all duration-300 transform hover:scale-105",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:[l.jsx(gc,{className:"w-5 h-5 mr-2"}),"Browse All Projects"]})})]})})}function $b(){const n=[{icon:Zh,title:"High Performance",description:"Optimized code and infrastructure ensure lightning-fast response times"},{icon:zc,title:"Secure & Reliable",description:"Enterprise-grade security with 99.9% uptime guarantee"},{icon:em,title:"Easy Setup",description:"One-click installation with intuitive configuration options"},{icon:Rw,title:"24/7 Support",description:"Dedicated support team ready to help whenever you need assistance"}];return l.jsx("section",{className:"py-20 bg-alpha-bg",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsx("div",{className:"text-center mb-16",children:l.jsxs("h2",{className:"font-poppins font-bold text-4xl lg:text-5xl mb-6",children:["Why Choose ",l.jsx("span",{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:"Alphabeta?"})]})}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:n.map((o,s)=>l.jsxs("div",{className:"text-center group",children:[l.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-alpha-secondary to-alpha-accent rounded-2xl flex items-center justify-center mx-auto mb-4 group-hover:animate-pulse",children:l.jsx(o.icon,{className:"w-8 h-8 text-alpha-bg"})}),l.jsx("h3",{className:"font-poppins font-semibold text-xl mb-3",children:o.title}),l.jsx("p",{className:"text-gray-300",children:o.description})]},s))})]})})}const Kb="/assets/alphabeta%20small_1754577235911-B_hS5_SA.jpg",Gb="/assets/discord%20icon_1754588162100-BCF4rYh_.png",qb="/assets/email%20icon_1754588162100-DajJKeUN.png",Yb="/assets/instagram%20icon_1754588162101-BQTwYxtU.png";function Jo(){return l.jsx("footer",{id:"contact",className:"bg-alpha-card py-16",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"grid md:grid-cols-4 gap-8",children:[l.jsxs("div",{className:"md:col-span-2",children:[l.jsxs("div",{className:"flex items-center space-x-3 mb-6",children:[l.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden",children:l.jsx("img",{src:Kb,alt:"Alphabeta Team",className:"w-full h-full object-cover"})}),l.jsx("span",{className:"font-poppins font-bold text-2xl",children:"Alphabeta Team"})]}),l.jsx("p",{className:"text-gray-300 mb-6 max-w-md",children:"Creating innovative projects that bring communities together through engaging features and seamless experiences."}),l.jsxs("div",{className:"flex space-x-4",children:[l.jsx(Re,{variant:"ghost",size:"icon",className:"w-10 h-10 bg-alpha-accent/20 hover:bg-alpha-accent transition-colors",onClick:()=>window.open("https://discord.gg/fHksB4VZ4q","_blank"),children:l.jsx("img",{src:Gb,alt:"Discord",className:"w-8 h-6"})}),l.jsx(Re,{variant:"ghost",size:"icon",className:"w-10 h-10 bg-alpha-accent/20 hover:bg-alpha-accent transition-colors",onClick:()=>window.open("mailto:support@alphabetateam.org","_blank"),children:l.jsx("img",{src:qb,alt:"Email",className:"w-8 h-8"})}),l.jsx(Re,{variant:"ghost",size:"icon",className:"w-10 h-10 bg-alpha-accent/20 hover:bg-alpha-accent transition-colors",onClick:()=>window.open("https://www.instagram.com/alphabeta_bot_team","_blank"),children:l.jsx("img",{src:Yb,alt:"Instagram",className:"w-9 h-9"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-poppins font-semibold text-lg mb-4",children:"Quick Links"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsx("li",{children:l.jsx(ht,{href:"/",children:l.jsx("button",{className:"text-gray-300 hover:text-alpha-secondary transition-colors text-left",children:"All Projects"})})}),l.jsx("li",{children:l.jsx("button",{className:"text-gray-300 hover:text-alpha-secondary transition-colors",onClick:()=>window.open("https://changelog.alphabeta.dev","_blank"),children:"Changelog"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-poppins font-semibold text-lg mb-4",children:"Legal"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsx("li",{children:l.jsx(ht,{href:"/terms",children:l.jsx("button",{className:"text-gray-300 hover:text-alpha-secondary transition-colors text-left",children:"Terms of Service"})})}),l.jsx("li",{children:l.jsx(ht,{href:"/privacy",children:l.jsx("button",{className:"text-gray-300 hover:text-alpha-secondary transition-colors text-left",children:"Privacy Policy"})})}),l.jsx("li",{children:l.jsx(ht,{href:"/cookies",children:l.jsx("button",{className:"text-gray-300 hover:text-alpha-secondary transition-colors text-left",children:"Cookie Policy"})})})]})]})]}),l.jsx("div",{className:"border-t border-alpha-accent/30 mt-12 pt-8 text-center",children:l.jsxs("p",{className:"text-gray-400",children:["© 2024 Alphabeta Discord Bot Team. All rights reserved. Made with"," ",l.jsx("i",{className:"fas fa-heart text-alpha-secondary"})," for the Discord community."]})})]})})}function Xb(){return l.jsxs("div",{className:"min-h-screen bg-alpha-bg text-alpha-text",children:[l.jsx(er,{}),l.jsx(nb,{}),l.jsx(lb,{}),l.jsx(Qb,{}),l.jsx($b,{}),l.jsx(Jo,{})]})}var Jb="Separator",Zp="horizontal",Zb=["horizontal","vertical"],cv=g.forwardRef((n,o)=>{const{decorative:s,orientation:a=Zp,...u}=n,f=eN(a)?a:Zp,h=s?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return l.jsx(Ne.div,{"data-orientation":f,...h,...u,ref:o})});cv.displayName=Jb;function eN(n){return Zb.includes(n)}var uv=cv;const dv=g.forwardRef(({className:n,orientation:o="horizontal",decorative:s=!0,...a},u)=>l.jsx(uv,{ref:u,decorative:s,orientation:o,className:Pe("shrink-0 bg-border",o==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...a}));dv.displayName=uv.displayName;function tN({images:n,autoPlay:o=!0,interval:s=4e3,className:a=""}){const[u,f]=g.useState(0),p=()=>{f(y=>y===n.length-1?0:y+1)},h=()=>{f(y=>y===0?n.length-1:y-1)},v=y=>{f(y)};return g.useEffect(()=>{if(o&&n.length>1){const y=setInterval(p,s);return()=>clearInterval(y)}},[o,s,n.length]),n.length===0?l.jsx("div",{className:"w-full h-64 bg-alpha-card rounded-lg flex items-center justify-center",children:l.jsx("p",{className:"text-gray-400",children:"No images available"})}):l.jsxs("div",{className:`relative group ${a}`,children:[l.jsxs("div",{className:"relative w-full overflow-hidden rounded-lg bg-alpha-card",children:[l.jsx("img",{src:n[u],alt:`HeroBruh functionality ${u+1}`,className:"w-full h-auto object-contain transition-all duration-700 transform hover:scale-105 shadow-2xl",style:{maxHeight:"500px",minHeight:"300px",filter:"brightness(1.05) contrast(1.1)"}}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-alpha-bg/40 to-transparent pointer-events-none"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-alpha-secondary/10 via-transparent to-alpha-accent/10 opacity-50 pointer-events-none"}),n.length>1&&l.jsxs(l.Fragment,{children:[l.jsx(Re,{variant:"ghost",size:"icon",className:"absolute left-2 top-1/2 transform -translate-y-1/2 bg-alpha-bg/80 hover:bg-alpha-bg opacity-0 group-hover:opacity-100 transition-opacity duration-300",onClick:h,children:l.jsx(Cw,{className:"w-6 h-6"})}),l.jsx(Re,{variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 transform -translate-y-1/2 bg-alpha-bg/80 hover:bg-alpha-bg opacity-0 group-hover:opacity-100 transition-opacity duration-300",onClick:p,children:l.jsx(bw,{className:"w-6 h-6"})})]}),n.length>1&&l.jsxs("div",{className:"absolute top-4 right-4 bg-alpha-bg/80 rounded-full px-3 py-1 text-sm font-medium",children:[u+1," / ",n.length]})]}),n.length>1&&l.jsx("div",{className:"flex justify-center space-x-2 mt-4",children:n.map((y,w)=>l.jsx("button",{className:`w-3 h-3 rounded-full transition-all duration-300 ${w===u?"bg-alpha-secondary scale-110 shadow-lg shadow-alpha-secondary/50":"bg-alpha-accent/30 hover:bg-alpha-accent/70 hover:scale-105"}`,onClick:()=>v(w)},w))})]})}const nN="/assets/Earth%20Vector%20Illustration_1754579556542-DTGKK0wI.jpg",rN="/assets/image_1754583603790-DpNdd07Y.png",oN="/assets/image_1754583671930-B2O7idl3.png",sN="/assets/image_1754583756665-D44DNRXr.png",iN="/assets/image_1754583797373-Cm_PzkgE.png",aN="/assets/image_1754583866121-QT9CpFep.png";function lN(){const{name:n}=uh(),{data:o,isLoading:s,error:a}=Mc({queryKey:["/api/bots/name",n],enabled:!!n});if(s)return l.jsxs("div",{className:"min-h-screen bg-alpha-bg text-alpha-text",children:[l.jsx(er,{}),l.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:l.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-alpha-secondary"})})]});if(a||!o)return l.jsxs("div",{className:"min-h-screen bg-alpha-bg text-alpha-text",children:[l.jsx(er,{}),l.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:l.jsx(Ze,{className:"max-w-md mx-4 bg-alpha-card border-alpha-accent/30",children:l.jsxs(et,{className:"pt-6 text-center",children:[l.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Bot Not Found"}),l.jsx("p",{className:"text-gray-300 mb-4",children:"The bot you're looking for doesn't exist."}),l.jsx(ht,{href:"/",children:l.jsxs(Re,{variant:"outline",className:"border-alpha-secondary text-alpha-secondary hover:bg-alpha-secondary hover:text-alpha-bg",children:[l.jsx(bi,{className:"w-4 h-4 mr-2"}),"Back to Home"]})})]})})})]});const u=(o.rating/10).toFixed(1);return l.jsxs("div",{className:"min-h-screen bg-alpha-bg text-alpha-text",children:[l.jsx(er,{}),l.jsx("main",{className:"pt-20 pb-16",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsx("div",{className:"mb-8",children:l.jsx(ht,{href:"/",children:l.jsxs(Re,{variant:"ghost",className:"text-alpha-secondary hover:bg-alpha-secondary/10",children:[l.jsx(bi,{className:"w-4 h-4 mr-2"}),"Back to Home"]})})}),l.jsx("div",{className:"card-gradient rounded-3xl p-8 lg:p-12 mb-12",children:l.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[o.profileImage?l.jsx("div",{className:"w-16 h-16 rounded-2xl overflow-hidden",children:l.jsx("img",{src:nN,alt:`${o.name} Profile`,className:"w-full h-full object-cover"})}):l.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-alpha-secondary to-alpha-accent rounded-2xl flex items-center justify-center",children:l.jsx("i",{className:`${o.iconClass} text-2xl text-alpha-text`})}),l.jsxs("div",{children:[l.jsx("h1",{className:"font-poppins font-bold text-4xl lg:text-5xl bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:o.name}),l.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[l.jsx(Ti,{variant:"secondary",className:"bg-alpha-accent/20 text-alpha-accent",children:o.category}),o.isFlagship&&l.jsxs(Ti,{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent",children:[l.jsx(Zn,{className:"w-3 h-3 mr-1"}),"Flagship"]})]})]})]}),l.jsx("p",{className:"text-gray-300 text-lg mb-8 leading-relaxed",children:o.description}),l.jsxs("div",{className:"grid grid-cols-2 gap-6 mb-8",children:[l.jsxs("div",{className:"text-center",children:[l.jsxs("div",{className:"text-3xl font-bold text-alpha-secondary mb-1",children:[o.servers.toLocaleString(),"+"]}),l.jsxs("div",{className:"text-sm text-gray-400 flex items-center justify-center",children:[l.jsx(vc,{className:"w-4 h-4 mr-1"}),"Active Servers"]})]}),l.jsxs("div",{className:"text-center",children:[l.jsxs("div",{className:"text-3xl font-bold text-alpha-secondary mb-1",children:[u,"/5"]}),l.jsxs("div",{className:"text-sm text-gray-400 flex items-center justify-center",children:[l.jsx(Zn,{className:"w-4 h-4 mr-1"}),"User Rating"]})]})]}),l.jsxs("div",{className:"flex flex-wrap gap-4",children:[o.inviteUrl&&l.jsxs(Re,{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent hover:shadow-neon",onClick:()=>window.open(o.inviteUrl,"_blank"),children:[l.jsx(gc,{className:"w-4 h-4 mr-2"}),"Add to Server"]}),o.voteUrl&&l.jsxs(Re,{variant:"outline",className:"border-alpha-accent text-alpha-accent hover:bg-alpha-accent hover:text-alpha-bg",onClick:()=>window.open(o.voteUrl,"_blank"),children:[l.jsx(Zn,{className:"w-4 h-4 mr-2"}),"Vote on Top.gg"]}),o.name==="HeroBruh"&&l.jsxs(Re,{variant:"outline",className:"border-alpha-accent text-alpha-accent hover:bg-alpha-accent hover:text-alpha-bg",onClick:()=>window.open("https://discordbotlist.com/bots/herobruh/upvote","_blank"),children:[l.jsx(Zn,{className:"w-4 h-4 mr-2"}),"Vote on DBL"]})]})]}),l.jsx("div",{className:"relative",children:o.name==="HeroBruh"?l.jsx(tN,{images:[rN,oN,sN,iN,aN],autoPlay:!0,interval:4e3,className:"w-full"}):l.jsx("img",{src:"https://images.unsplash.com/photo-1614680376593-902f74cf0d41?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=800&h=600",alt:`${o.name} interface`,className:"rounded-2xl shadow-2xl w-full animate-float"})})]})}),l.jsxs("div",{className:"grid lg:grid-cols-3 gap-8 mb-12",children:[l.jsx("div",{className:"lg:col-span-2",children:l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30 h-full",children:[l.jsx(Gt,{children:l.jsx(qt,{className:"text-2xl font-poppins",children:"Popular Commands"})}),l.jsxs(et,{children:[l.jsx("div",{className:"grid md:grid-cols-3 gap-4 mb-8",children:["/gamble","/mine","/balance","/work","/leaderboard","/sell"].map((f,p)=>l.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-alpha-bg/50",children:[l.jsx("div",{className:"w-2 h-2 bg-alpha-accent rounded-full"}),l.jsx("code",{className:"text-alpha-secondary font-mono",children:f})]},p))}),l.jsxs("div",{className:"border-t border-alpha-accent/30 pt-6",children:[l.jsx("h3",{className:"text-xl font-poppins font-semibold mb-4",children:"Key Features"}),l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:o.features.map((f,p)=>l.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-alpha-bg/50",children:[l.jsx("div",{className:"w-2 h-2 bg-alpha-secondary rounded-full"}),l.jsx("span",{className:"text-gray-300",children:f})]},p))})]})]})]})}),l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30",children:[l.jsx(Gt,{children:l.jsx(qt,{className:"text-xl font-poppins",children:"Quick Actions"})}),l.jsxs(et,{className:"space-y-3",children:[l.jsx(ht,{href:"/terms",children:l.jsxs(Re,{variant:"ghost",className:"w-full justify-start text-gray-300 hover:text-alpha-secondary",children:[l.jsx(Pw,{className:"w-4 h-4 mr-2"}),"Terms of Service"]})}),l.jsx(ht,{href:"/privacy",children:l.jsxs(Re,{variant:"ghost",className:"w-full justify-start text-gray-300 hover:text-alpha-secondary",children:[l.jsx(zc,{className:"w-4 h-4 mr-2"}),"Privacy Policy"]})}),l.jsx(dv,{className:"bg-alpha-accent/30"}),l.jsxs(Re,{variant:"ghost",className:"w-full justify-start text-gray-300 hover:text-alpha-secondary",onClick:()=>window.open("https://discord.gg/fHksB4VZ4q","_blank"),children:[l.jsx(gc,{className:"w-4 h-4 mr-2"}),"Support Server"]})]})]}),l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30",children:[l.jsx(Gt,{children:l.jsx(qt,{className:"text-xl font-poppins",children:"Bot Statistics"})}),l.jsxs(et,{className:"space-y-4",children:[l.jsxs("div",{className:"flex justify-between",children:[l.jsx("span",{className:"text-gray-400",children:"Category"}),l.jsx("span",{className:"text-alpha-secondary",children:o.category})]}),l.jsxs("div",{className:"flex justify-between",children:[l.jsx("span",{className:"text-gray-400",children:"Servers"}),l.jsx("span",{className:"text-alpha-secondary",children:o.servers.toLocaleString()})]}),l.jsxs("div",{className:"flex justify-between",children:[l.jsx("span",{className:"text-gray-400",children:"Rating"}),l.jsxs("span",{className:"text-alpha-secondary",children:[u,"/5"]})]}),l.jsxs("div",{className:"flex justify-between",children:[l.jsx("span",{className:"text-gray-400",children:"Status"}),l.jsx("span",{className:"text-green-400",children:"Online"})]})]})]})]})]})]})}),l.jsx(Jo,{})]})}function cN(){return l.jsxs("div",{className:"min-h-screen bg-alpha-bg text-alpha-text",children:[l.jsx(er,{}),l.jsx("main",{className:"pt-20 pb-16",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsx("div",{className:"mb-8",children:l.jsx(ht,{href:"/",children:l.jsxs(Re,{variant:"ghost",className:"text-alpha-secondary hover:bg-alpha-secondary/10",children:[l.jsx(bi,{className:"w-4 h-4 mr-2"}),"Back to Home"]})})}),l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30",children:[l.jsxs(Gt,{children:[l.jsx(qt,{className:"text-4xl font-poppins text-center bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:"Terms of Service"}),l.jsxs("p",{className:"text-center text-gray-300 mt-4",children:["Last updated: ",new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]})]}),l.jsxs(et,{className:"prose prose-invert max-w-none space-y-6",children:[l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"1. Acceptance of Terms"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"By using any of Alphabeta's products, you agree to be bound by these Terms of Service. If you do not agree to these terms, please do not use our products."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"2. Description of Service"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"Alphabeta provides bots designed to enhance server functionality and user experience. Our bots include features for economy systems, moderation, entertainment, and utility functions."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"3. User Responsibilities"}),l.jsxs("div",{className:"text-gray-300 leading-relaxed space-y-3",children:[l.jsx("p",{children:"Users must:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"Use the bots in compliance with the respective platform's Terms of Service (for example, Discord bot usage must comply with Discord's Terms of Service"}),l.jsx("li",{children:"Not attempt to exploit, hack, or abuse bot functionality"}),l.jsx("li",{children:"Report any bugs or security vulnerabilities responsibly"}),l.jsx("li",{children:"Respect other users and maintain appropriate conduct"})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"4. Prohibited Activities"}),l.jsxs("div",{className:"text-gray-300 leading-relaxed space-y-3",children:[l.jsx("p",{children:"The following activities are strictly prohibited:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"Attempting to reverse engineer or modify bot code"}),l.jsx("li",{children:"Using bots for spam, harassment, or malicious purposes"}),l.jsx("li",{children:"Violating any applicable laws or regulations"}),l.jsx("li",{children:"Interfering with bot operations or server infrastructure"})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"5. Premium Services"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"Some bots may offer premium features for a fee. Premium subscriptions are non-refundable unless explicitly stated otherwise. Premium benefits are subject to change with reasonable notice."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"6. Limitation of Liability"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:'Alphabeta provides bots "as is" without warranties. We are not liable for any damages resulting from bot usage, including but not limited to data loss, server disruption, or service interruptions.'})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"7. Termination"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"We reserve the right to terminate or suspend access to our bots at any time for violations of these terms or at our discretion."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"8. Changes to Terms"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"These terms may be updated periodically. Continued use of our bots after changes constitutes acceptance of the new terms."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"9. Contact Information"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"For questions about these Terms of Service, please contact us through our Discord support server or email us at support@alphabeta.dev"})]})]})]})]})}),l.jsx(Jo,{})]})}function uN(){return l.jsxs("div",{className:"min-h-screen bg-alpha-bg text-alpha-text",children:[l.jsx(er,{}),l.jsx("main",{className:"pt-20 pb-16",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsx("div",{className:"mb-8",children:l.jsx(ht,{href:"/",children:l.jsxs(Re,{variant:"ghost",className:"text-alpha-secondary hover:bg-alpha-secondary/10",children:[l.jsx(bi,{className:"w-4 h-4 mr-2"}),"Back to Home"]})})}),l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30",children:[l.jsxs(Gt,{children:[l.jsx(qt,{className:"text-4xl font-poppins text-center bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:"Privacy Policy"}),l.jsxs("p",{className:"text-center text-gray-300 mt-4",children:["Last updated: ",new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]})]}),l.jsxs(et,{className:"prose prose-invert max-w-none space-y-6",children:[l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"1. Information We Collect"}),l.jsxs("div",{className:"text-gray-300 leading-relaxed space-y-3",children:[l.jsx("p",{children:"We collect the following types of information:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Discord User Data:"})," User IDs, usernames, and server membership information"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Bot Interaction Data:"})," Commands used, preferences, and bot configuration settings"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Usage Analytics:"})," Bot usage statistics and performance metrics"]})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"2. How We Use Your Information"}),l.jsxs("div",{className:"text-gray-300 leading-relaxed space-y-3",children:[l.jsx("p",{children:"We use collected information to:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"Provide and maintain bot functionality"}),l.jsx("li",{children:"Improve bot features and user experience"}),l.jsx("li",{children:"Prevent abuse and ensure service security"}),l.jsx("li",{children:"Provide customer support and technical assistance"}),l.jsx("li",{children:"Analyze usage patterns for service optimization"})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"3. Data Storage and Security"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"We implement industry-standard security measures to protect your data. Information is stored on secure servers with encryption and access controls. We retain data only as long as necessary for bot functionality and service provision."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"4. Data Sharing"}),l.jsxs("div",{className:"text-gray-300 leading-relaxed space-y-3",children:[l.jsx("p",{children:"We do not sell, trade, or rent your personal information. We may share data only in these circumstances:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"With your explicit consent"}),l.jsx("li",{children:"To comply with legal obligations"}),l.jsx("li",{children:"To protect our rights and prevent abuse"}),l.jsx("li",{children:"In connection with business transfers (with notice)"})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"5. Third-Party Services"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"Our bots integrate with Discord's API and may use third-party services for functionality. These services have their own privacy policies, and we encourage you to review them."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"6. Your Rights"}),l.jsxs("div",{className:"text-gray-300 leading-relaxed space-y-3",children:[l.jsx("p",{children:"You have the right to:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"Access your personal data"}),l.jsx("li",{children:"Request data correction or deletion"}),l.jsx("li",{children:"Opt-out of data collection (may limit bot functionality)"}),l.jsx("li",{children:"Receive data in a portable format"})]})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"7. Data Retention"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"We retain your data for as long as you use our bots or as needed for legitimate business purposes. Inactive data may be automatically deleted after extended periods of non-use."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"8. Children's Privacy"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"Our services are not intended for children under 13. We do not knowingly collect personal information from children. If we become aware of such collection, we will delete the information promptly."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"9. Changes to Privacy Policy"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"We may update this privacy policy periodically. Significant changes will be announced through our Discord server or website."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-poppins text-alpha-secondary mb-4",children:"10. Contact Us"}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"For privacy-related questions or to exercise your rights, contact us at support@alphabetateam.org or through our Discord support server."})]})]})]})]})}),l.jsx(Jo,{})]})}function dN(){return l.jsxs("div",{className:"min-h-screen bg-alpha-bg text-alpha-text",children:[l.jsx(er,{}),l.jsx("main",{className:"pt-20 pb-16",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-alpha-secondary to-alpha-accent rounded-2xl flex items-center justify-center mx-auto mb-6",children:l.jsx(kw,{className:"w-8 h-8 text-alpha-bg"})}),l.jsx("h1",{className:"font-poppins font-bold text-4xl lg:text-5xl mb-4",children:l.jsx("span",{className:"bg-gradient-to-r from-alpha-secondary to-alpha-accent bg-clip-text text-transparent",children:"Cookies Policy"})}),l.jsx("p",{className:"text-gray-300 text-lg",children:"Last updated: August 07, 2025"})]}),l.jsx(Ze,{className:"bg-alpha-card border-alpha-accent/30 mb-8",children:l.jsxs(et,{className:"p-8",children:[l.jsx("p",{className:"text-gray-300 text-lg leading-relaxed mb-4",children:"This Cookies Policy explains what Cookies are and how We use them. You should read this policy so You can understand what type of cookies We use, or the information We collect using Cookies and how that information is used."}),l.jsx("p",{className:"text-gray-300 leading-relaxed",children:"Cookies do not typically contain any information that personally identifies a user, but personal information that we store about You may be linked to the information stored in and obtained from Cookies. For further information on how We use, store and keep your personal data secure, see our Privacy Policy."})]})}),l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30 mb-8",children:[l.jsx(Gt,{children:l.jsxs(qt,{className:"text-2xl font-poppins flex items-center gap-3",children:[l.jsx(jw,{className:"w-6 h-6 text-alpha-secondary"}),"Definitions"]})}),l.jsx(et,{children:l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-alpha-secondary mb-2",children:"Company"}),l.jsx("p",{className:"text-gray-300",children:'Refers to Alphabeta Team (referred to as "the Company", "We", "Us" or "Our" in this Cookies Policy).'})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-alpha-secondary mb-2",children:"Cookies"}),l.jsx("p",{className:"text-gray-300",children:"Small files that are placed on Your computer, mobile device or any other device by a website, containing details of your browsing history on that website among its many uses."})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-alpha-secondary mb-2",children:"Website"}),l.jsx("p",{className:"text-gray-300",children:"Refers to Alphabeta Team, accessible from alphabetateam.org"})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-alpha-secondary mb-2",children:"You"}),l.jsx("p",{className:"text-gray-300",children:"The individual accessing or using the Website, or a company, or any legal entity on behalf of which such individual is accessing or using the Website."})]})]})})]}),l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30 mb-8",children:[l.jsx(Gt,{children:l.jsxs(qt,{className:"text-2xl font-poppins flex items-center gap-3",children:[l.jsx(em,{className:"w-6 h-6 text-alpha-secondary"}),"Types of Cookies We Use"]})}),l.jsxs(et,{children:[l.jsx("p",{className:"text-gray-300 mb-6",children:'Cookies can be "Persistent" or "Session" Cookies. Persistent Cookies remain on your personal computer or mobile device when You go offline, while Session Cookies are deleted as soon as You close your web browser.'}),l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"p-4 rounded-lg bg-alpha-bg/50",children:[l.jsx("h4",{className:"font-semibold text-alpha-secondary mb-2",children:"Necessary / Essential Cookies"}),l.jsx("p",{className:"text-sm text-alpha-accent mb-2",children:"Type: Session Cookies | Administered by: Us"}),l.jsx("p",{className:"text-gray-300",children:"These Cookies are essential to provide You with services available through the Website and to enable You to use some of its features. They help to authenticate users and prevent fraudulent use of user accounts. Without these Cookies, the services that You have asked for cannot be provided."})]}),l.jsxs("div",{className:"p-4 rounded-lg bg-alpha-bg/50",children:[l.jsx("h4",{className:"font-semibold text-alpha-secondary mb-2",children:"Functionality Cookies"}),l.jsx("p",{className:"text-sm text-alpha-accent mb-2",children:"Type: Persistent Cookies | Administered by: Us"}),l.jsx("p",{className:"text-gray-300",children:"These Cookies allow us to remember choices You make when You use the Website, such as remembering your login details or language preference. The purpose of these Cookies is to provide You with a more personal experience and to avoid You having to re-enter your preferences every time You use the Website."})]})]})]})]}),l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30 mb-8",children:[l.jsx(Gt,{children:l.jsxs(qt,{className:"text-2xl font-poppins flex items-center gap-3",children:[l.jsx(zc,{className:"w-6 h-6 text-alpha-secondary"}),"Your Choices Regarding Cookies"]})}),l.jsx(et,{children:l.jsxs("div",{className:"space-y-4",children:[l.jsx("p",{className:"text-gray-300",children:"If You prefer to avoid the use of Cookies on the Website, first You must disable the use of Cookies in your browser and then delete the Cookies saved in your browser associated with this website."}),l.jsx("p",{className:"text-gray-300",children:"If You do not accept Our Cookies, You may experience some inconvenience in your use of the Website and some features may not function properly."}),l.jsxs("div",{className:"mt-6",children:[l.jsx("h4",{className:"font-semibold text-alpha-secondary mb-4",children:"Browser-Specific Instructions:"}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"p-3 rounded-lg bg-alpha-bg/30",children:[l.jsx("h5",{className:"font-medium text-alpha-accent mb-1",children:"Chrome"}),l.jsx("p",{className:"text-sm text-gray-300",children:"Visit Google's help page for Chrome cookie settings"})]}),l.jsxs("div",{className:"p-3 rounded-lg bg-alpha-bg/30",children:[l.jsx("h5",{className:"font-medium text-alpha-accent mb-1",children:"Firefox"}),l.jsx("p",{className:"text-sm text-gray-300",children:"Visit Mozilla's help page for Firefox cookie settings"})]}),l.jsxs("div",{className:"p-3 rounded-lg bg-alpha-bg/30",children:[l.jsx("h5",{className:"font-medium text-alpha-accent mb-1",children:"Safari"}),l.jsx("p",{className:"text-sm text-gray-300",children:"Visit Apple's help page for Safari cookie settings"})]}),l.jsxs("div",{className:"p-3 rounded-lg bg-alpha-bg/30",children:[l.jsx("h5",{className:"font-medium text-alpha-accent mb-1",children:"Internet Explorer"}),l.jsx("p",{className:"text-sm text-gray-300",children:"Visit Microsoft's help page for IE cookie settings"})]})]})]})]})})]}),l.jsxs(Ze,{className:"bg-alpha-card border-alpha-accent/30",children:[l.jsx(Gt,{children:l.jsx(qt,{className:"text-2xl font-poppins",children:"Contact Us"})}),l.jsxs(et,{children:[l.jsx("p",{className:"text-gray-300 mb-4",children:"If you have any questions about this Cookies Policy, You can contact us:"}),l.jsxs("div",{className:"flex items-center gap-2 text-alpha-secondary",children:[l.jsx("span",{className:"font-semibold",children:"Email:"}),l.jsx("a",{href:"mailto:support@alphabetateam.org",className:"hover:text-alpha-accent transition-colors",children:"support@alphabetateam.org"})]})]})]})]})}),l.jsx(Jo,{})]})}function fN(){return l.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:l.jsx(Ze,{className:"w-full max-w-md mx-4",children:l.jsxs(et,{className:"pt-6",children:[l.jsxs("div",{className:"flex mb-4 gap-2",children:[l.jsx(Ew,{className:"h-8 w-8 text-red-500"}),l.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),l.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}function pN(){return l.jsxs(zx,{children:[l.jsx(Ar,{path:"/",component:Xb}),l.jsx(Ar,{path:"/bot/:name",component:lN}),l.jsx(Ar,{path:"/terms",component:cN}),l.jsx(Ar,{path:"/privacy",component:uN}),l.jsx(Ar,{path:"/cookies",component:dN}),l.jsx(Ar,{component:fN})]})}function hN(){return l.jsx(i0,{client:S0,children:l.jsxs(BS,{children:[l.jsx(h1,{}),l.jsx(pN,{})]})})}gx.createRoot(document.getElementById("root")).render(l.jsx(hN,{}));