better-auth-studio 1.0.9-beta.3 → 1.0.9-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,326 @@
1
+ function gp(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(s,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function Ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qu={exports:{}},Ii={},Yu={exports:{}},le={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var da=Symbol.for("react.element"),vp=Symbol.for("react.portal"),yp=Symbol.for("react.fragment"),wp=Symbol.for("react.strict_mode"),bp=Symbol.for("react.profiler"),jp=Symbol.for("react.provider"),Np=Symbol.for("react.context"),kp=Symbol.for("react.forward_ref"),Sp=Symbol.for("react.suspense"),Cp=Symbol.for("react.memo"),Ep=Symbol.for("react.lazy"),nd=Symbol.iterator;function Tp(e){return e===null||typeof e!="object"?null:(e=nd&&e[nd]||e["@@iterator"],typeof e=="function"?e:null)}var Gu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xu=Object.assign,Ju={};function cs(e,t,r){this.props=e,this.context=t,this.refs=Ju,this.updater=r||Gu}cs.prototype.isReactComponent={};cs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zu(){}Zu.prototype=cs.prototype;function Go(e,t,r){this.props=e,this.context=t,this.refs=Ju,this.updater=r||Gu}var Xo=Go.prototype=new Zu;Xo.constructor=Go;Xu(Xo,cs.prototype);Xo.isPureReactComponent=!0;var sd=Array.isArray,qu=Object.prototype.hasOwnProperty,Jo={current:null},eh={key:!0,ref:!0,__self:!0,__source:!0};function th(e,t,r){var s,a={},i=null,l=null;if(t!=null)for(s in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)qu.call(t,s)&&!eh.hasOwnProperty(s)&&(a[s]=t[s]);var o=arguments.length-2;if(o===1)a.children=r;else if(1<o){for(var c=Array(o),d=0;d<o;d++)c[d]=arguments[d+2];a.children=c}if(e&&e.defaultProps)for(s in o=e.defaultProps,o)a[s]===void 0&&(a[s]=o[s]);return{$$typeof:da,type:e,key:i,ref:l,props:a,_owner:Jo.current}}function Pp(e,t){return{$$typeof:da,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zo(e){return typeof e=="object"&&e!==null&&e.$$typeof===da}function zp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var ad=/\/+/g;function il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zp(""+e.key):t.toString(36)}function Ka(e,t,r,s,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case da:case vp:l=!0}}if(l)return l=e,a=a(l),e=s===""?"."+il(l,0):s,sd(a)?(r="",e!=null&&(r=e.replace(ad,"$&/")+"/"),Ka(a,t,r,"",function(d){return d})):a!=null&&(Zo(a)&&(a=Pp(a,r+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(ad,"$&/")+"/")+e)),t.push(a)),1;if(l=0,s=s===""?".":s+":",sd(e))for(var o=0;o<e.length;o++){i=e[o];var c=s+il(i,o);l+=Ka(i,t,r,c,a)}else if(c=Tp(e),typeof c=="function")for(e=c.call(e),o=0;!(i=e.next()).done;)i=i.value,c=s+il(i,o++),l+=Ka(i,t,r,c,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Na(e,t,r){if(e==null)return e;var s=[],a=0;return Ka(e,s,"","",function(i){return t.call(r,i,a++)}),s}function Dp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var nt={current:null},Qa={transition:null},Mp={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Qa,ReactCurrentOwner:Jo};function rh(){throw Error("act(...) is not supported in production builds of React.")}le.Children={map:Na,forEach:function(e,t,r){Na(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Na(e,function(){t++}),t},toArray:function(e){return Na(e,function(t){return t})||[]},only:function(e){if(!Zo(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=cs;le.Fragment=yp;le.Profiler=bp;le.PureComponent=Go;le.StrictMode=wp;le.Suspense=Sp;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mp;le.act=rh;le.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=Xu({},e.props),a=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Jo.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(c in t)qu.call(t,c)&&!eh.hasOwnProperty(c)&&(s[c]=t[c]===void 0&&o!==void 0?o[c]:t[c])}var c=arguments.length-2;if(c===1)s.children=r;else if(1<c){o=Array(c);for(var d=0;d<c;d++)o[d]=arguments[d+2];s.children=o}return{$$typeof:da,type:e.type,key:a,ref:i,props:s,_owner:l}};le.createContext=function(e){return e={$$typeof:Np,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jp,_context:e},e.Consumer=e};le.createElement=th;le.createFactory=function(e){var t=th.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:kp,render:e}};le.isValidElement=Zo;le.lazy=function(e){return{$$typeof:Ep,_payload:{_status:-1,_result:e},_init:Dp}};le.memo=function(e,t){return{$$typeof:Cp,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=Qa.transition;Qa.transition={};try{e()}finally{Qa.transition=t}};le.unstable_act=rh;le.useCallback=function(e,t){return nt.current.useCallback(e,t)};le.useContext=function(e){return nt.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};le.useEffect=function(e,t){return nt.current.useEffect(e,t)};le.useId=function(){return nt.current.useId()};le.useImperativeHandle=function(e,t,r){return nt.current.useImperativeHandle(e,t,r)};le.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return nt.current.useMemo(e,t)};le.useReducer=function(e,t,r){return nt.current.useReducer(e,t,r)};le.useRef=function(e){return nt.current.useRef(e)};le.useState=function(e){return nt.current.useState(e)};le.useSyncExternalStore=function(e,t,r){return nt.current.useSyncExternalStore(e,t,r)};le.useTransition=function(){return nt.current.useTransition()};le.version="18.3.1";Yu.exports=le;var h=Yu.exports;const F=Ku(h),qo=gp({__proto__:null,default:F},[h]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Rp=h,Ip=Symbol.for("react.element"),Lp=Symbol.for("react.fragment"),_p=Object.prototype.hasOwnProperty,Op=Rp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ap={key:!0,ref:!0,__self:!0,__source:!0};function nh(e,t,r){var s,a={},i=null,l=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(s in t)_p.call(t,s)&&!Ap.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)a[s]===void 0&&(a[s]=t[s]);return{$$typeof:Ip,type:e,key:i,ref:l,props:a,_owner:Op.current}}Ii.Fragment=Lp;Ii.jsx=nh;Ii.jsxs=nh;Qu.exports=Ii;var n=Qu.exports,Hl={},sh={exports:{}},yt={},ah={exports:{}},ih={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(S,A){var _=S.length;S.push(A);e:for(;0<_;){var W=_-1>>>1,E=S[W];if(0<a(E,A))S[W]=A,S[_]=E,_=W;else break e}}function r(S){return S.length===0?null:S[0]}function s(S){if(S.length===0)return null;var A=S[0],_=S.pop();if(_!==A){S[0]=_;e:for(var W=0,E=S.length,z=E>>>1;W<z;){var R=2*(W+1)-1,k=S[R],B=R+1,Y=S[B];if(0>a(k,_))B<E&&0>a(Y,k)?(S[W]=Y,S[B]=_,W=B):(S[W]=k,S[R]=_,W=R);else if(B<E&&0>a(Y,_))S[W]=Y,S[B]=_,W=B;else break e}}return A}function a(S,A){var _=S.sortIndex-A.sortIndex;return _!==0?_:S.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],d=[],m=1,u=null,x=3,w=!1,y=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(S){for(var A=r(d);A!==null;){if(A.callback===null)s(d);else if(A.startTime<=S)s(d),A.sortIndex=A.expirationTime,t(c,A);else break;A=r(d)}}function j(S){if(v=!1,g(S),!y)if(r(c)!==null)y=!0,M(N);else{var A=r(d);A!==null&&V(j,A.startTime-S)}}function N(S,A){y=!1,v&&(v=!1,f(I),I=-1),w=!0;var _=x;try{for(g(A),u=r(c);u!==null&&(!(u.expirationTime>A)||S&&!Z());){var W=u.callback;if(typeof W=="function"){u.callback=null,x=u.priorityLevel;var E=W(u.expirationTime<=A);A=e.unstable_now(),typeof E=="function"?u.callback=E:u===r(c)&&s(c),g(A)}else s(c);u=r(c)}if(u!==null)var z=!0;else{var R=r(d);R!==null&&V(j,R.startTime-A),z=!1}return z}finally{u=null,x=_,w=!1}}var T=!1,C=null,I=-1,G=5,U=-1;function Z(){return!(e.unstable_now()-U<G)}function H(){if(C!==null){var S=e.unstable_now();U=S;var A=!0;try{A=C(!0,S)}finally{A?q():(T=!1,C=null)}}else T=!1}var q;if(typeof p=="function")q=function(){p(H)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ae=se.port2;se.port1.onmessage=H,q=function(){ae.postMessage(null)}}else q=function(){b(H,0)};function M(S){C=S,T||(T=!0,q())}function V(S,A){I=b(function(){S(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){y||w||(y=!0,M(N))},e.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(S){switch(x){case 1:case 2:case 3:var A=3;break;default:A=x}var _=x;x=A;try{return S()}finally{x=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,A){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=x;x=S;try{return A()}finally{x=_}},e.unstable_scheduleCallback=function(S,A,_){var W=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?W+_:W):_=W,S){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=_+E,S={id:m++,callback:A,priorityLevel:S,startTime:_,expirationTime:E,sortIndex:-1},_>W?(S.sortIndex=_,t(d,S),r(c)===null&&S===r(d)&&(v?(f(I),I=-1):v=!0,V(j,_-W))):(S.sortIndex=E,t(c,S),y||w||(y=!0,M(N))),S},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(S){var A=x;return function(){var _=x;x=A;try{return S.apply(this,arguments)}finally{x=_}}}})(ih);ah.exports=ih;var $p=ah.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Fp=h,vt=$p;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var lh=new Set,Bs={};function xn(e,t){Jn(e,t),Jn(e+"Capture",t)}function Jn(e,t){for(Bs[e]=t,e=0;e<t.length;e++)lh.add(t[e])}var lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Up=/^[: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]*$/,id={},ld={};function Bp(e){return Kl.call(ld,e)?!0:Kl.call(id,e)?!1:Up.test(e)?ld[e]=!0:(id[e]=!0,!1)}function Vp(e,t,r,s){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wp(e,t,r,s){if(t===null||typeof t>"u"||Vp(e,t,r,s))return!0;if(s)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 st(e,t,r,s,a,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new st(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){Ke[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var ec=/[\-:]([a-z])/g;function tc(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(ec,tc);Ke[t]=new st(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(ec,tc);Ke[t]=new st(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(ec,tc);Ke[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function rc(e,t,r,s){var a=Ke.hasOwnProperty(t)?Ke[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Wp(t,r,a,s)&&(r=null),s||a===null?Bp(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,s=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,s?e.setAttributeNS(s,t,r):e.setAttribute(t,r))))}var ur=Fp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ka=Symbol.for("react.element"),Tn=Symbol.for("react.portal"),Pn=Symbol.for("react.fragment"),nc=Symbol.for("react.strict_mode"),Ql=Symbol.for("react.profiler"),oh=Symbol.for("react.provider"),ch=Symbol.for("react.context"),sc=Symbol.for("react.forward_ref"),Yl=Symbol.for("react.suspense"),Gl=Symbol.for("react.suspense_list"),ac=Symbol.for("react.memo"),br=Symbol.for("react.lazy"),dh=Symbol.for("react.offscreen"),od=Symbol.iterator;function ps(e){return e===null||typeof e!="object"?null:(e=od&&e[od]||e["@@iterator"],typeof e=="function"?e:null)}var Ee=Object.assign,ll;function Ts(e){if(ll===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ll=t&&t[1]||""}return`
34
+ `+ll+e}var ol=!1;function cl(e,t){if(!e||ol)return"";ol=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var s=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){s=d}e.call(t.prototype)}else{try{throw Error()}catch(d){s=d}e()}}catch(d){if(d&&s&&typeof d.stack=="string"){for(var a=d.stack.split(`
35
+ `),i=s.stack.split(`
36
+ `),l=a.length-1,o=i.length-1;1<=l&&0<=o&&a[l]!==i[o];)o--;for(;1<=l&&0<=o;l--,o--)if(a[l]!==i[o]){if(l!==1||o!==1)do if(l--,o--,0>o||a[l]!==i[o]){var c=`
37
+ `+a[l].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=l&&0<=o);break}}}finally{ol=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ts(e):""}function Hp(e){switch(e.tag){case 5:return Ts(e.type);case 16:return Ts("Lazy");case 13:return Ts("Suspense");case 19:return Ts("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Xl(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 Pn:return"Fragment";case Tn:return"Portal";case Ql:return"Profiler";case nc:return"StrictMode";case Yl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ch:return(e.displayName||"Context")+".Consumer";case oh:return(e._context.displayName||"Context")+".Provider";case sc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ac:return t=e.displayName||null,t!==null?t:Xl(e.type)||"Memo";case br:t=e._payload,e=e._init;try{return Xl(e(t))}catch{}}return null}function Kp(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 Xl(t);case 8:return t===nc?"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 $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qp(e){var t=uh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){s=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(l){s=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sa(e){e._valueTracker||(e._valueTracker=Qp(e))}function hh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=uh(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function li(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 Jl(e,t){var r=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function cd(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=$r(t.value!=null?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mh(e,t){t=t.checked,t!=null&&rc(e,"checked",t,!1)}function Zl(e,t){mh(e,t);var r=$r(t.value),s=t.type;if(r!=null)s==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ql(e,t.type,r):t.hasOwnProperty("defaultValue")&&ql(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dd(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="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 ql(e,t,r){(t!=="number"||li(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ps=Array.isArray;function Un(e,t,r,s){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&s&&(e[r].defaultSelected=!0)}else{for(r=""+$r(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function eo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return Ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ud(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error($(92));if(Ps(r)){if(1<r.length)throw Error($(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:$r(r)}}function fh(e,t){var r=$r(t.value),s=$r(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),s!=null&&(e.defaultValue=""+s)}function hd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ph(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function to(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ph(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ca,xh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,s,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ca=Ca||document.createElement("div"),Ca.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ca.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vs(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Rs={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},Yp=["Webkit","ms","Moz","O"];Object.keys(Rs).forEach(function(e){Yp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rs[t]=Rs[e]})});function gh(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Rs.hasOwnProperty(e)&&Rs[e]?(""+t).trim():t+"px"}function vh(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,a=gh(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,a):e[r]=a}}var Gp=Ee({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 ro(e,t){if(t){if(Gp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function no(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 so=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ao=null,Bn=null,Vn=null;function md(e){if(e=ma(e)){if(typeof ao!="function")throw Error($(280));var t=e.stateNode;t&&(t=$i(t),ao(e.stateNode,e.type,t))}}function yh(e){Bn?Vn?Vn.push(e):Vn=[e]:Bn=e}function wh(){if(Bn){var e=Bn,t=Vn;if(Vn=Bn=null,md(e),t)for(e=0;e<t.length;e++)md(t[e])}}function bh(e,t){return e(t)}function jh(){}var dl=!1;function Nh(e,t,r){if(dl)return e(t,r);dl=!0;try{return bh(e,t,r)}finally{dl=!1,(Bn!==null||Vn!==null)&&(jh(),wh())}}function Ws(e,t){var r=e.stateNode;if(r===null)return null;var s=$i(r);if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error($(231,t,typeof r));return r}var io=!1;if(lr)try{var xs={};Object.defineProperty(xs,"passive",{get:function(){io=!0}}),window.addEventListener("test",xs,xs),window.removeEventListener("test",xs,xs)}catch{io=!1}function Xp(e,t,r,s,a,i,l,o,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(m){this.onError(m)}}var Is=!1,oi=null,ci=!1,lo=null,Jp={onError:function(e){Is=!0,oi=e}};function Zp(e,t,r,s,a,i,l,o,c){Is=!1,oi=null,Xp.apply(Jp,arguments)}function qp(e,t,r,s,a,i,l,o,c){if(Zp.apply(this,arguments),Is){if(Is){var d=oi;Is=!1,oi=null}else throw Error($(198));ci||(ci=!0,lo=d)}}function gn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function kh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fd(e){if(gn(e)!==e)throw Error($(188))}function ex(e){var t=e.alternate;if(!t){if(t=gn(e),t===null)throw Error($(188));return t!==e?null:e}for(var r=e,s=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(s=a.return,s!==null){r=s;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return fd(a),e;if(i===s)return fd(a),t;i=i.sibling}throw Error($(188))}if(r.return!==s.return)r=a,s=i;else{for(var l=!1,o=a.child;o;){if(o===r){l=!0,r=a,s=i;break}if(o===s){l=!0,s=a,r=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===r){l=!0,r=i,s=a;break}if(o===s){l=!0,s=i,r=a;break}o=o.sibling}if(!l)throw Error($(189))}}if(r.alternate!==s)throw Error($(190))}if(r.tag!==3)throw Error($(188));return r.stateNode.current===r?e:t}function Sh(e){return e=ex(e),e!==null?Ch(e):null}function Ch(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ch(e);if(t!==null)return t;e=e.sibling}return null}var Eh=vt.unstable_scheduleCallback,pd=vt.unstable_cancelCallback,tx=vt.unstable_shouldYield,rx=vt.unstable_requestPaint,De=vt.unstable_now,nx=vt.unstable_getCurrentPriorityLevel,lc=vt.unstable_ImmediatePriority,Th=vt.unstable_UserBlockingPriority,di=vt.unstable_NormalPriority,sx=vt.unstable_LowPriority,Ph=vt.unstable_IdlePriority,Li=null,Gt=null;function ax(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Li,e,void 0,(e.current.flags&128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:ox,ix=Math.log,lx=Math.LN2;function ox(e){return e>>>=0,e===0?32:31-(ix(e)/lx|0)|0}var Ea=64,Ta=4194304;function zs(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 ui(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,a=e.suspendedLanes,i=e.pingedLanes,l=r&268435455;if(l!==0){var o=l&~a;o!==0?s=zs(o):(i&=l,i!==0&&(s=zs(i)))}else l=r&~a,l!==0?s=zs(l):i!==0&&(s=zs(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(s&4&&(s|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)r=31-Ot(t),a=1<<r,s|=e[r],t&=~a;return s}function cx(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dx(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Ot(i),o=1<<l,c=a[l];c===-1?(!(o&r)||o&s)&&(a[l]=cx(o,t)):c<=t&&(e.expiredLanes|=o),i&=~o}}function oo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zh(){var e=Ea;return Ea<<=1,!(Ea&4194240)&&(Ea=64),e}function ul(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ua(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=r}function ux(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 s=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-Ot(r),i=1<<a;t[a]=0,s[a]=-1,e[a]=-1,r&=~i}}function oc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-Ot(r),a=1<<s;a&t|e[s]&t&&(e[s]|=t),r&=~a}}var me=0;function Dh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Mh,cc,Rh,Ih,Lh,co=!1,Pa=[],Tr=null,Pr=null,zr=null,Hs=new Map,Ks=new Map,Nr=[],hx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function xd(e,t){switch(e){case"focusin":case"focusout":Tr=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":Hs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ks.delete(t.pointerId)}}function gs(e,t,r,s,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:i,targetContainers:[a]},t!==null&&(t=ma(t),t!==null&&cc(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function mx(e,t,r,s,a){switch(t){case"focusin":return Tr=gs(Tr,e,t,r,s,a),!0;case"dragenter":return Pr=gs(Pr,e,t,r,s,a),!0;case"mouseover":return zr=gs(zr,e,t,r,s,a),!0;case"pointerover":var i=a.pointerId;return Hs.set(i,gs(Hs.get(i)||null,e,t,r,s,a)),!0;case"gotpointercapture":return i=a.pointerId,Ks.set(i,gs(Ks.get(i)||null,e,t,r,s,a)),!0}return!1}function _h(e){var t=en(e.target);if(t!==null){var r=gn(t);if(r!==null){if(t=r.tag,t===13){if(t=kh(r),t!==null){e.blockedOn=t,Lh(e.priority,function(){Rh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ya(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=uo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);so=s,r.target.dispatchEvent(s),so=null}else return t=ma(r),t!==null&&cc(t),e.blockedOn=r,!1;t.shift()}return!0}function gd(e,t,r){Ya(e)&&r.delete(t)}function fx(){co=!1,Tr!==null&&Ya(Tr)&&(Tr=null),Pr!==null&&Ya(Pr)&&(Pr=null),zr!==null&&Ya(zr)&&(zr=null),Hs.forEach(gd),Ks.forEach(gd)}function vs(e,t){e.blockedOn===t&&(e.blockedOn=null,co||(co=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,fx)))}function Qs(e){function t(a){return vs(a,e)}if(0<Pa.length){vs(Pa[0],e);for(var r=1;r<Pa.length;r++){var s=Pa[r];s.blockedOn===e&&(s.blockedOn=null)}}for(Tr!==null&&vs(Tr,e),Pr!==null&&vs(Pr,e),zr!==null&&vs(zr,e),Hs.forEach(t),Ks.forEach(t),r=0;r<Nr.length;r++)s=Nr[r],s.blockedOn===e&&(s.blockedOn=null);for(;0<Nr.length&&(r=Nr[0],r.blockedOn===null);)_h(r),r.blockedOn===null&&Nr.shift()}var Wn=ur.ReactCurrentBatchConfig,hi=!0;function px(e,t,r,s){var a=me,i=Wn.transition;Wn.transition=null;try{me=1,dc(e,t,r,s)}finally{me=a,Wn.transition=i}}function xx(e,t,r,s){var a=me,i=Wn.transition;Wn.transition=null;try{me=4,dc(e,t,r,s)}finally{me=a,Wn.transition=i}}function dc(e,t,r,s){if(hi){var a=uo(e,t,r,s);if(a===null)bl(e,t,s,mi,r),xd(e,s);else if(mx(a,e,t,r,s))s.stopPropagation();else if(xd(e,s),t&4&&-1<hx.indexOf(e)){for(;a!==null;){var i=ma(a);if(i!==null&&Mh(i),i=uo(e,t,r,s),i===null&&bl(e,t,s,mi,r),i===a)break;a=i}a!==null&&s.stopPropagation()}else bl(e,t,s,null,r)}}var mi=null;function uo(e,t,r,s){if(mi=null,e=ic(s),e=en(e),e!==null)if(t=gn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=kh(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mi=e,null}function Oh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nx()){case lc:return 1;case Th:return 4;case di:case sx:return 16;case Ph:return 536870912;default:return 16}default:return 16}}var Sr=null,uc=null,Ga=null;function Ah(){if(Ga)return Ga;var e,t=uc,r=t.length,s,a="value"in Sr?Sr.value:Sr.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var l=r-e;for(s=1;s<=l&&t[r-s]===a[i-s];s++);return Ga=a.slice(e,1<s?1-s:void 0)}function Xa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function za(){return!0}function vd(){return!1}function wt(e){function t(r,s,a,i,l){this._reactName=r,this._targetInst=a,this.type=s,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(r=e[o],this[o]=r?r(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?za:vd,this.isPropagationStopped=vd,this}return Ee(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=za)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=za)},persist:function(){},isPersistent:za}),t}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=wt(ds),ha=Ee({},ds,{view:0,detail:0}),gx=wt(ha),hl,ml,ys,_i=Ee({},ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ys&&(ys&&e.type==="mousemove"?(hl=e.screenX-ys.screenX,ml=e.screenY-ys.screenY):ml=hl=0,ys=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:ml}}),yd=wt(_i),vx=Ee({},_i,{dataTransfer:0}),yx=wt(vx),wx=Ee({},ha,{relatedTarget:0}),fl=wt(wx),bx=Ee({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),jx=wt(bx),Nx=Ee({},ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kx=wt(Nx),Sx=Ee({},ds,{data:0}),wd=wt(Sx),Cx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ex={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Px(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tx[e])?!!t[e]:!1}function mc(){return Px}var zx=Ee({},ha,{key:function(e){if(e.key){var t=Cx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ex[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mc,charCode:function(e){return e.type==="keypress"?Xa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dx=wt(zx),Mx=Ee({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bd=wt(Mx),Rx=Ee({},ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mc}),Ix=wt(Rx),Lx=Ee({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),_x=wt(Lx),Ox=Ee({},_i,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ax=wt(Ox),$x=[9,13,27,32],fc=lr&&"CompositionEvent"in window,Ls=null;lr&&"documentMode"in document&&(Ls=document.documentMode);var Fx=lr&&"TextEvent"in window&&!Ls,$h=lr&&(!fc||Ls&&8<Ls&&11>=Ls),jd=" ",Nd=!1;function Fh(e,t){switch(e){case"keyup":return $x.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function Ux(e,t){switch(e){case"compositionend":return Uh(t);case"keypress":return t.which!==32?null:(Nd=!0,jd);case"textInput":return e=t.data,e===jd&&Nd?null:e;default:return null}}function Bx(e,t){if(zn)return e==="compositionend"||!fc&&Fh(e,t)?(e=Ah(),Ga=uc=Sr=null,zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $h&&t.locale!=="ko"?null:t.data;default:return null}}var Vx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vx[e.type]:t==="textarea"}function Bh(e,t,r,s){yh(s),t=fi(t,"onChange"),0<t.length&&(r=new hc("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var _s=null,Ys=null;function Wx(e){qh(e,0)}function Oi(e){var t=Rn(e);if(hh(t))return e}function Hx(e,t){if(e==="change")return t}var Vh=!1;if(lr){var pl;if(lr){var xl="oninput"in document;if(!xl){var Sd=document.createElement("div");Sd.setAttribute("oninput","return;"),xl=typeof Sd.oninput=="function"}pl=xl}else pl=!1;Vh=pl&&(!document.documentMode||9<document.documentMode)}function Cd(){_s&&(_s.detachEvent("onpropertychange",Wh),Ys=_s=null)}function Wh(e){if(e.propertyName==="value"&&Oi(Ys)){var t=[];Bh(t,Ys,e,ic(e)),Nh(Wx,t)}}function Kx(e,t,r){e==="focusin"?(Cd(),_s=t,Ys=r,_s.attachEvent("onpropertychange",Wh)):e==="focusout"&&Cd()}function Qx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oi(Ys)}function Yx(e,t){if(e==="click")return Oi(t)}function Gx(e,t){if(e==="input"||e==="change")return Oi(t)}function Xx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:Xx;function Gs(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var a=r[s];if(!Kl.call(t,a)||!$t(e[a],t[a]))return!1}return!0}function Ed(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Td(e,t){var r=Ed(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ed(r)}}function Hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kh(){for(var e=window,t=li();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=li(e.document)}return t}function pc(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 Jx(e){var t=Kh(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Hh(r.ownerDocument.documentElement,r)){if(s!==null&&pc(r)){if(t=s.start,e=s.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 a=r.textContent.length,i=Math.min(s.start,a);s=s.end===void 0?i:Math.min(s.end,a),!e.extend&&i>s&&(a=s,s=i,i=a),a=Td(r,i);var l=Td(r,s);a&&l&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zx=lr&&"documentMode"in document&&11>=document.documentMode,Dn=null,ho=null,Os=null,mo=!1;function Pd(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;mo||Dn==null||Dn!==li(s)||(s=Dn,"selectionStart"in s&&pc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Os&&Gs(Os,s)||(Os=s,s=fi(ho,"onSelect"),0<s.length&&(t=new hc("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=Dn)))}function Da(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Mn={animationend:Da("Animation","AnimationEnd"),animationiteration:Da("Animation","AnimationIteration"),animationstart:Da("Animation","AnimationStart"),transitionend:Da("Transition","TransitionEnd")},gl={},Qh={};lr&&(Qh=document.createElement("div").style,"AnimationEvent"in window||(delete Mn.animationend.animation,delete Mn.animationiteration.animation,delete Mn.animationstart.animation),"TransitionEvent"in window||delete Mn.transitionend.transition);function Ai(e){if(gl[e])return gl[e];if(!Mn[e])return e;var t=Mn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Qh)return gl[e]=t[r];return e}var Yh=Ai("animationend"),Gh=Ai("animationiteration"),Xh=Ai("animationstart"),Jh=Ai("transitionend"),Zh=new Map,zd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Br(e,t){Zh.set(e,t),xn(t,[e])}for(var vl=0;vl<zd.length;vl++){var yl=zd[vl],qx=yl.toLowerCase(),eg=yl[0].toUpperCase()+yl.slice(1);Br(qx,"on"+eg)}Br(Yh,"onAnimationEnd");Br(Gh,"onAnimationIteration");Br(Xh,"onAnimationStart");Br("dblclick","onDoubleClick");Br("focusin","onFocus");Br("focusout","onBlur");Br(Jh,"onTransitionEnd");Jn("onMouseEnter",["mouseout","mouseover"]);Jn("onMouseLeave",["mouseout","mouseover"]);Jn("onPointerEnter",["pointerout","pointerover"]);Jn("onPointerLeave",["pointerout","pointerover"]);xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xn("onBeforeInput",["compositionend","keypress","textInput","paste"]);xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ds));function Dd(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,qp(s,t,void 0,e),e.currentTarget=null}function qh(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],a=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var l=s.length-1;0<=l;l--){var o=s[l],c=o.instance,d=o.currentTarget;if(o=o.listener,c!==i&&a.isPropagationStopped())break e;Dd(a,o,d),i=c}else for(l=0;l<s.length;l++){if(o=s[l],c=o.instance,d=o.currentTarget,o=o.listener,c!==i&&a.isPropagationStopped())break e;Dd(a,o,d),i=c}}}if(ci)throw e=lo,ci=!1,lo=null,e}function ye(e,t){var r=t[vo];r===void 0&&(r=t[vo]=new Set);var s=e+"__bubble";r.has(s)||(em(t,e,2,!1),r.add(s))}function wl(e,t,r){var s=0;t&&(s|=4),em(r,e,s,t)}var Ma="_reactListening"+Math.random().toString(36).slice(2);function Xs(e){if(!e[Ma]){e[Ma]=!0,lh.forEach(function(r){r!=="selectionchange"&&(tg.has(r)||wl(r,!1,e),wl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ma]||(t[Ma]=!0,wl("selectionchange",!1,t))}}function em(e,t,r,s){switch(Oh(t)){case 1:var a=px;break;case 4:a=xx;break;default:a=dc}r=a.bind(null,t,r,e),a=void 0,!io||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function bl(e,t,r,s,a){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var l=s.tag;if(l===3||l===4){var o=s.stateNode.containerInfo;if(o===a||o.nodeType===8&&o.parentNode===a)break;if(l===4)for(l=s.return;l!==null;){var c=l.tag;if((c===3||c===4)&&(c=l.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;l=l.return}for(;o!==null;){if(l=en(o),l===null)return;if(c=l.tag,c===5||c===6){s=i=l;continue e}o=o.parentNode}}s=s.return}Nh(function(){var d=i,m=ic(r),u=[];e:{var x=Zh.get(e);if(x!==void 0){var w=hc,y=e;switch(e){case"keypress":if(Xa(r)===0)break e;case"keydown":case"keyup":w=Dx;break;case"focusin":y="focus",w=fl;break;case"focusout":y="blur",w=fl;break;case"beforeblur":case"afterblur":w=fl;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=yx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Ix;break;case Yh:case Gh:case Xh:w=jx;break;case Jh:w=_x;break;case"scroll":w=gx;break;case"wheel":w=Ax;break;case"copy":case"cut":case"paste":w=kx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=bd}var v=(t&4)!==0,b=!v&&e==="scroll",f=v?x!==null?x+"Capture":null:x;v=[];for(var p=d,g;p!==null;){g=p;var j=g.stateNode;if(g.tag===5&&j!==null&&(g=j,f!==null&&(j=Ws(p,f),j!=null&&v.push(Js(p,j,g)))),b)break;p=p.return}0<v.length&&(x=new w(x,y,null,r,m),u.push({event:x,listeners:v}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",x&&r!==so&&(y=r.relatedTarget||r.fromElement)&&(en(y)||y[or]))break e;if((w||x)&&(x=m.window===m?m:(x=m.ownerDocument)?x.defaultView||x.parentWindow:window,w?(y=r.relatedTarget||r.toElement,w=d,y=y?en(y):null,y!==null&&(b=gn(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(w=null,y=d),w!==y)){if(v=yd,j="onMouseLeave",f="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=bd,j="onPointerLeave",f="onPointerEnter",p="pointer"),b=w==null?x:Rn(w),g=y==null?x:Rn(y),x=new v(j,p+"leave",w,r,m),x.target=b,x.relatedTarget=g,j=null,en(m)===d&&(v=new v(f,p+"enter",y,r,m),v.target=g,v.relatedTarget=b,j=v),b=j,w&&y)t:{for(v=w,f=y,p=0,g=v;g;g=bn(g))p++;for(g=0,j=f;j;j=bn(j))g++;for(;0<p-g;)v=bn(v),p--;for(;0<g-p;)f=bn(f),g--;for(;p--;){if(v===f||f!==null&&v===f.alternate)break t;v=bn(v),f=bn(f)}v=null}else v=null;w!==null&&Md(u,x,w,v,!1),y!==null&&b!==null&&Md(u,b,y,v,!0)}}e:{if(x=d?Rn(d):window,w=x.nodeName&&x.nodeName.toLowerCase(),w==="select"||w==="input"&&x.type==="file")var N=Hx;else if(kd(x))if(Vh)N=Gx;else{N=Qx;var T=Kx}else(w=x.nodeName)&&w.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(N=Yx);if(N&&(N=N(e,d))){Bh(u,N,r,m);break e}T&&T(e,x,d),e==="focusout"&&(T=x._wrapperState)&&T.controlled&&x.type==="number"&&ql(x,"number",x.value)}switch(T=d?Rn(d):window,e){case"focusin":(kd(T)||T.contentEditable==="true")&&(Dn=T,ho=d,Os=null);break;case"focusout":Os=ho=Dn=null;break;case"mousedown":mo=!0;break;case"contextmenu":case"mouseup":case"dragend":mo=!1,Pd(u,r,m);break;case"selectionchange":if(Zx)break;case"keydown":case"keyup":Pd(u,r,m)}var C;if(fc)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else zn?Fh(e,r)&&(I="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(I="onCompositionStart");I&&($h&&r.locale!=="ko"&&(zn||I!=="onCompositionStart"?I==="onCompositionEnd"&&zn&&(C=Ah()):(Sr=m,uc="value"in Sr?Sr.value:Sr.textContent,zn=!0)),T=fi(d,I),0<T.length&&(I=new wd(I,e,null,r,m),u.push({event:I,listeners:T}),C?I.data=C:(C=Uh(r),C!==null&&(I.data=C)))),(C=Fx?Ux(e,r):Bx(e,r))&&(d=fi(d,"onBeforeInput"),0<d.length&&(m=new wd("onBeforeInput","beforeinput",null,r,m),u.push({event:m,listeners:d}),m.data=C))}qh(u,t)})}function Js(e,t,r){return{instance:e,listener:t,currentTarget:r}}function fi(e,t){for(var r=t+"Capture",s=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Ws(e,r),i!=null&&s.unshift(Js(e,i,a)),i=Ws(e,t),i!=null&&s.push(Js(e,i,a))),e=e.return}return s}function bn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Md(e,t,r,s,a){for(var i=t._reactName,l=[];r!==null&&r!==s;){var o=r,c=o.alternate,d=o.stateNode;if(c!==null&&c===s)break;o.tag===5&&d!==null&&(o=d,a?(c=Ws(r,i),c!=null&&l.unshift(Js(r,c,o))):a||(c=Ws(r,i),c!=null&&l.push(Js(r,c,o)))),r=r.return}l.length!==0&&e.push({event:t,listeners:l})}var rg=/\r\n?/g,ng=/\u0000|\uFFFD/g;function Rd(e){return(typeof e=="string"?e:""+e).replace(rg,`
38
+ `).replace(ng,"")}function Ra(e,t,r){if(t=Rd(t),Rd(e)!==t&&r)throw Error($(425))}function pi(){}var fo=null,po=null;function xo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var go=typeof setTimeout=="function"?setTimeout:void 0,sg=typeof clearTimeout=="function"?clearTimeout:void 0,Id=typeof Promise=="function"?Promise:void 0,ag=typeof queueMicrotask=="function"?queueMicrotask:typeof Id<"u"?function(e){return Id.resolve(null).then(e).catch(ig)}:go;function ig(e){setTimeout(function(){throw e})}function jl(e,t){var r=t,s=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(s===0){e.removeChild(a),Qs(t);return}s--}else r!=="$"&&r!=="$?"&&r!=="$!"||s++;r=a}while(r);Qs(t)}function Dr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ld(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var us=Math.random().toString(36).slice(2),Qt="__reactFiber$"+us,Zs="__reactProps$"+us,or="__reactContainer$"+us,vo="__reactEvents$"+us,lg="__reactListeners$"+us,og="__reactHandles$"+us;function en(e){var t=e[Qt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[or]||r[Qt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ld(e);e!==null;){if(r=e[Qt])return r;e=Ld(e)}return t}e=r,r=e.parentNode}return null}function ma(e){return e=e[Qt]||e[or],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function $i(e){return e[Zs]||null}var yo=[],In=-1;function Vr(e){return{current:e}}function be(e){0>In||(e.current=yo[In],yo[In]=null,In--)}function ge(e,t){In++,yo[In]=e.current,e.current=t}var Fr={},et=Vr(Fr),ut=Vr(!1),ln=Fr;function Zn(e,t){var r=e.type.contextTypes;if(!r)return Fr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return e=e.childContextTypes,e!=null}function xi(){be(ut),be(et)}function _d(e,t,r){if(et.current!==Fr)throw Error($(168));ge(et,t),ge(ut,r)}function tm(e,t,r){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return r;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error($(108,Kp(e)||"Unknown",a));return Ee({},r,s)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fr,ln=et.current,ge(et,e),ge(ut,ut.current),!0}function Od(e,t,r){var s=e.stateNode;if(!s)throw Error($(169));r?(e=tm(e,t,ln),s.__reactInternalMemoizedMergedChildContext=e,be(ut),be(et),ge(et,e)):be(ut),ge(ut,r)}var rr=null,Fi=!1,Nl=!1;function rm(e){rr===null?rr=[e]:rr.push(e)}function cg(e){Fi=!0,rm(e)}function Wr(){if(!Nl&&rr!==null){Nl=!0;var e=0,t=me;try{var r=rr;for(me=1;e<r.length;e++){var s=r[e];do s=s(!0);while(s!==null)}rr=null,Fi=!1}catch(a){throw rr!==null&&(rr=rr.slice(e+1)),Eh(lc,Wr),a}finally{me=t,Nl=!1}}return null}var Ln=[],_n=0,vi=null,yi=0,jt=[],Nt=0,on=null,nr=1,sr="";function Xr(e,t){Ln[_n++]=yi,Ln[_n++]=vi,vi=e,yi=t}function nm(e,t,r){jt[Nt++]=nr,jt[Nt++]=sr,jt[Nt++]=on,on=e;var s=nr;e=sr;var a=32-Ot(s)-1;s&=~(1<<a),r+=1;var i=32-Ot(t)+a;if(30<i){var l=a-a%5;i=(s&(1<<l)-1).toString(32),s>>=l,a-=l,nr=1<<32-Ot(t)+a|r<<a|s,sr=i+e}else nr=1<<i|r<<a|s,sr=e}function xc(e){e.return!==null&&(Xr(e,1),nm(e,1,0))}function gc(e){for(;e===vi;)vi=Ln[--_n],Ln[_n]=null,yi=Ln[--_n],Ln[_n]=null;for(;e===on;)on=jt[--Nt],jt[Nt]=null,sr=jt[--Nt],jt[Nt]=null,nr=jt[--Nt],jt[Nt]=null}var gt=null,xt=null,je=!1,_t=null;function sm(e,t){var r=kt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Ad(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,gt=e,xt=Dr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,gt=e,xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=on!==null?{id:nr,overflow:sr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=kt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,gt=e,xt=null,!0):!1;default:return!1}}function wo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bo(e){if(je){var t=xt;if(t){var r=t;if(!Ad(e,t)){if(wo(e))throw Error($(418));t=Dr(r.nextSibling);var s=gt;t&&Ad(e,t)?sm(s,r):(e.flags=e.flags&-4097|2,je=!1,gt=e)}}else{if(wo(e))throw Error($(418));e.flags=e.flags&-4097|2,je=!1,gt=e}}}function $d(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gt=e}function Ia(e){if(e!==gt)return!1;if(!je)return $d(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xo(e.type,e.memoizedProps)),t&&(t=xt)){if(wo(e))throw am(),Error($(418));for(;t;)sm(e,t),t=Dr(t.nextSibling)}if($d(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){xt=Dr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}xt=null}}else xt=gt?Dr(e.stateNode.nextSibling):null;return!0}function am(){for(var e=xt;e;)e=Dr(e.nextSibling)}function qn(){xt=gt=null,je=!1}function vc(e){_t===null?_t=[e]:_t.push(e)}var dg=ur.ReactCurrentBatchConfig;function ws(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error($(309));var s=r.stateNode}if(!s)throw Error($(147,e));var a=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var o=a.refs;l===null?delete o[i]:o[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error($(284));if(!r._owner)throw Error($(290,e))}return e}function La(e,t){throw e=Object.prototype.toString.call(t),Error($(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fd(e){var t=e._init;return t(e._payload)}function im(e){function t(f,p){if(e){var g=f.deletions;g===null?(f.deletions=[p],f.flags|=16):g.push(p)}}function r(f,p){if(!e)return null;for(;p!==null;)t(f,p),p=p.sibling;return null}function s(f,p){for(f=new Map;p!==null;)p.key!==null?f.set(p.key,p):f.set(p.index,p),p=p.sibling;return f}function a(f,p){return f=Lr(f,p),f.index=0,f.sibling=null,f}function i(f,p,g){return f.index=g,e?(g=f.alternate,g!==null?(g=g.index,g<p?(f.flags|=2,p):g):(f.flags|=2,p)):(f.flags|=1048576,p)}function l(f){return e&&f.alternate===null&&(f.flags|=2),f}function o(f,p,g,j){return p===null||p.tag!==6?(p=zl(g,f.mode,j),p.return=f,p):(p=a(p,g),p.return=f,p)}function c(f,p,g,j){var N=g.type;return N===Pn?m(f,p,g.props.children,j,g.key):p!==null&&(p.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===br&&Fd(N)===p.type)?(j=a(p,g.props),j.ref=ws(f,p,g),j.return=f,j):(j=ni(g.type,g.key,g.props,null,f.mode,j),j.ref=ws(f,p,g),j.return=f,j)}function d(f,p,g,j){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Dl(g,f.mode,j),p.return=f,p):(p=a(p,g.children||[]),p.return=f,p)}function m(f,p,g,j,N){return p===null||p.tag!==7?(p=sn(g,f.mode,j,N),p.return=f,p):(p=a(p,g),p.return=f,p)}function u(f,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=zl(""+p,f.mode,g),p.return=f,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ka:return g=ni(p.type,p.key,p.props,null,f.mode,g),g.ref=ws(f,null,p),g.return=f,g;case Tn:return p=Dl(p,f.mode,g),p.return=f,p;case br:var j=p._init;return u(f,j(p._payload),g)}if(Ps(p)||ps(p))return p=sn(p,f.mode,g,null),p.return=f,p;La(f,p)}return null}function x(f,p,g,j){var N=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return N!==null?null:o(f,p,""+g,j);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ka:return g.key===N?c(f,p,g,j):null;case Tn:return g.key===N?d(f,p,g,j):null;case br:return N=g._init,x(f,p,N(g._payload),j)}if(Ps(g)||ps(g))return N!==null?null:m(f,p,g,j,null);La(f,g)}return null}function w(f,p,g,j,N){if(typeof j=="string"&&j!==""||typeof j=="number")return f=f.get(g)||null,o(p,f,""+j,N);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case ka:return f=f.get(j.key===null?g:j.key)||null,c(p,f,j,N);case Tn:return f=f.get(j.key===null?g:j.key)||null,d(p,f,j,N);case br:var T=j._init;return w(f,p,g,T(j._payload),N)}if(Ps(j)||ps(j))return f=f.get(g)||null,m(p,f,j,N,null);La(p,j)}return null}function y(f,p,g,j){for(var N=null,T=null,C=p,I=p=0,G=null;C!==null&&I<g.length;I++){C.index>I?(G=C,C=null):G=C.sibling;var U=x(f,C,g[I],j);if(U===null){C===null&&(C=G);break}e&&C&&U.alternate===null&&t(f,C),p=i(U,p,I),T===null?N=U:T.sibling=U,T=U,C=G}if(I===g.length)return r(f,C),je&&Xr(f,I),N;if(C===null){for(;I<g.length;I++)C=u(f,g[I],j),C!==null&&(p=i(C,p,I),T===null?N=C:T.sibling=C,T=C);return je&&Xr(f,I),N}for(C=s(f,C);I<g.length;I++)G=w(C,f,I,g[I],j),G!==null&&(e&&G.alternate!==null&&C.delete(G.key===null?I:G.key),p=i(G,p,I),T===null?N=G:T.sibling=G,T=G);return e&&C.forEach(function(Z){return t(f,Z)}),je&&Xr(f,I),N}function v(f,p,g,j){var N=ps(g);if(typeof N!="function")throw Error($(150));if(g=N.call(g),g==null)throw Error($(151));for(var T=N=null,C=p,I=p=0,G=null,U=g.next();C!==null&&!U.done;I++,U=g.next()){C.index>I?(G=C,C=null):G=C.sibling;var Z=x(f,C,U.value,j);if(Z===null){C===null&&(C=G);break}e&&C&&Z.alternate===null&&t(f,C),p=i(Z,p,I),T===null?N=Z:T.sibling=Z,T=Z,C=G}if(U.done)return r(f,C),je&&Xr(f,I),N;if(C===null){for(;!U.done;I++,U=g.next())U=u(f,U.value,j),U!==null&&(p=i(U,p,I),T===null?N=U:T.sibling=U,T=U);return je&&Xr(f,I),N}for(C=s(f,C);!U.done;I++,U=g.next())U=w(C,f,I,U.value,j),U!==null&&(e&&U.alternate!==null&&C.delete(U.key===null?I:U.key),p=i(U,p,I),T===null?N=U:T.sibling=U,T=U);return e&&C.forEach(function(H){return t(f,H)}),je&&Xr(f,I),N}function b(f,p,g,j){if(typeof g=="object"&&g!==null&&g.type===Pn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ka:e:{for(var N=g.key,T=p;T!==null;){if(T.key===N){if(N=g.type,N===Pn){if(T.tag===7){r(f,T.sibling),p=a(T,g.props.children),p.return=f,f=p;break e}}else if(T.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===br&&Fd(N)===T.type){r(f,T.sibling),p=a(T,g.props),p.ref=ws(f,T,g),p.return=f,f=p;break e}r(f,T);break}else t(f,T);T=T.sibling}g.type===Pn?(p=sn(g.props.children,f.mode,j,g.key),p.return=f,f=p):(j=ni(g.type,g.key,g.props,null,f.mode,j),j.ref=ws(f,p,g),j.return=f,f=j)}return l(f);case Tn:e:{for(T=g.key;p!==null;){if(p.key===T)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){r(f,p.sibling),p=a(p,g.children||[]),p.return=f,f=p;break e}else{r(f,p);break}else t(f,p);p=p.sibling}p=Dl(g,f.mode,j),p.return=f,f=p}return l(f);case br:return T=g._init,b(f,p,T(g._payload),j)}if(Ps(g))return y(f,p,g,j);if(ps(g))return v(f,p,g,j);La(f,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(r(f,p.sibling),p=a(p,g),p.return=f,f=p):(r(f,p),p=zl(g,f.mode,j),p.return=f,f=p),l(f)):r(f,p)}return b}var es=im(!0),lm=im(!1),wi=Vr(null),bi=null,On=null,yc=null;function wc(){yc=On=bi=null}function bc(e){var t=wi.current;be(wi),e._currentValue=t}function jo(e,t,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===r)break;e=e.return}}function Hn(e,t){bi=e,yc=On=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},On===null){if(bi===null)throw Error($(308));On=e,bi.dependencies={lanes:0,firstContext:e}}else On=On.next=e;return t}var tn=null;function jc(e){tn===null?tn=[e]:tn.push(e)}function om(e,t,r,s){var a=t.interleaved;return a===null?(r.next=r,jc(t)):(r.next=a.next,a.next=r),t.interleaved=r,cr(e,s)}function cr(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 jr=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cm(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 ar(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mr(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,ce&2){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,cr(e,r)}return a=s.interleaved,a===null?(t.next=t,jc(s)):(t.next=a.next,a.next=t),s.interleaved=t,cr(e,r)}function Ja(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,oc(e,r)}}function Ud(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=l:i=i.next=l,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ji(e,t,r,s){var a=e.updateQueue;jr=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var c=o,d=c.next;c.next=null,l===null?i=d:l.next=d,l=c;var m=e.alternate;m!==null&&(m=m.updateQueue,o=m.lastBaseUpdate,o!==l&&(o===null?m.firstBaseUpdate=d:o.next=d,m.lastBaseUpdate=c))}if(i!==null){var u=a.baseState;l=0,m=d=c=null,o=i;do{var x=o.lane,w=o.eventTime;if((s&x)===x){m!==null&&(m=m.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,v=o;switch(x=t,w=r,v.tag){case 1:if(y=v.payload,typeof y=="function"){u=y.call(w,u,x);break e}u=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,x=typeof y=="function"?y.call(w,u,x):y,x==null)break e;u=Ee({},u,x);break e;case 2:jr=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,x=a.effects,x===null?a.effects=[o]:x.push(o))}else w={eventTime:w,lane:x,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(d=m=w,c=u):m=m.next=w,l|=x;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;x=o,o=x.next,x.next=null,a.lastBaseUpdate=x,a.shared.pending=null}}while(!0);if(m===null&&(c=u),a.baseState=c,a.firstBaseUpdate=d,a.lastBaseUpdate=m,t=a.shared.interleaved,t!==null){a=t;do l|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);dn|=l,e.lanes=l,e.memoizedState=u}}function Bd(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=r,typeof a!="function")throw Error($(191,a));a.call(s)}}}var fa={},Xt=Vr(fa),qs=Vr(fa),ea=Vr(fa);function rn(e){if(e===fa)throw Error($(174));return e}function kc(e,t){switch(ge(ea,t),ge(qs,e),ge(Xt,fa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:to(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=to(t,e)}be(Xt),ge(Xt,t)}function ts(){be(Xt),be(qs),be(ea)}function dm(e){rn(ea.current);var t=rn(Xt.current),r=to(t,e.type);t!==r&&(ge(qs,e),ge(Xt,r))}function Sc(e){qs.current===e&&(be(Xt),be(qs))}var Se=Vr(0);function Ni(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kl=[];function Cc(){for(var e=0;e<kl.length;e++)kl[e]._workInProgressVersionPrimary=null;kl.length=0}var Za=ur.ReactCurrentDispatcher,Sl=ur.ReactCurrentBatchConfig,cn=0,Ce=null,_e=null,Fe=null,ki=!1,As=!1,ta=0,ug=0;function Ge(){throw Error($(321))}function Ec(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!$t(e[r],t[r]))return!1;return!0}function Tc(e,t,r,s,a,i){if(cn=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Za.current=e===null||e.memoizedState===null?pg:xg,e=r(s,a),As){i=0;do{if(As=!1,ta=0,25<=i)throw Error($(301));i+=1,Fe=_e=null,t.updateQueue=null,Za.current=gg,e=r(s,a)}while(As)}if(Za.current=Si,t=_e!==null&&_e.next!==null,cn=0,Fe=_e=Ce=null,ki=!1,t)throw Error($(300));return e}function Pc(){var e=ta!==0;return ta=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Ce.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Tt(){if(_e===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Fe===null?Ce.memoizedState:Fe.next;if(t!==null)Fe=t,_e=e;else{if(e===null)throw Error($(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Fe===null?Ce.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function ra(e,t){return typeof t=="function"?t(e):t}function Cl(e){var t=Tt(),r=t.queue;if(r===null)throw Error($(311));r.lastRenderedReducer=e;var s=_e,a=s.baseQueue,i=r.pending;if(i!==null){if(a!==null){var l=a.next;a.next=i.next,i.next=l}s.baseQueue=a=i,r.pending=null}if(a!==null){i=a.next,s=s.baseState;var o=l=null,c=null,d=i;do{var m=d.lane;if((cn&m)===m)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),s=d.hasEagerState?d.eagerState:e(s,d.action);else{var u={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(o=c=u,l=s):c=c.next=u,Ce.lanes|=m,dn|=m}d=d.next}while(d!==null&&d!==i);c===null?l=s:c.next=o,$t(s,t.memoizedState)||(ct=!0),t.memoizedState=s,t.baseState=l,t.baseQueue=c,r.lastRenderedState=s}if(e=r.interleaved,e!==null){a=e;do i=a.lane,Ce.lanes|=i,dn|=i,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function El(e){var t=Tt(),r=t.queue;if(r===null)throw Error($(311));r.lastRenderedReducer=e;var s=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var l=a=a.next;do i=e(i,l.action),l=l.next;while(l!==a);$t(i,t.memoizedState)||(ct=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,s]}function um(){}function hm(e,t){var r=Ce,s=Tt(),a=t(),i=!$t(s.memoizedState,a);if(i&&(s.memoizedState=a,ct=!0),s=s.queue,zc(pm.bind(null,r,s,e),[e]),s.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(r.flags|=2048,na(9,fm.bind(null,r,s,a,t),void 0,null),Ue===null)throw Error($(349));cn&30||mm(r,t,a)}return a}function mm(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function fm(e,t,r,s){t.value=r,t.getSnapshot=s,xm(t)&&gm(e)}function pm(e,t,r){return r(function(){xm(t)&&gm(e)})}function xm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!$t(e,r)}catch{return!0}}function gm(e){var t=cr(e,1);t!==null&&At(t,e,1,-1)}function Vd(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t.queue=e,e=e.dispatch=fg.bind(null,Ce,e),[t.memoizedState,e]}function na(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e)),e}function vm(){return Tt().memoizedState}function qa(e,t,r,s){var a=Kt();Ce.flags|=e,a.memoizedState=na(1|t,r,void 0,s===void 0?null:s)}function Ui(e,t,r,s){var a=Tt();s=s===void 0?null:s;var i=void 0;if(_e!==null){var l=_e.memoizedState;if(i=l.destroy,s!==null&&Ec(s,l.deps)){a.memoizedState=na(t,r,i,s);return}}Ce.flags|=e,a.memoizedState=na(1|t,r,i,s)}function Wd(e,t){return qa(8390656,8,e,t)}function zc(e,t){return Ui(2048,8,e,t)}function ym(e,t){return Ui(4,2,e,t)}function wm(e,t){return Ui(4,4,e,t)}function bm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jm(e,t,r){return r=r!=null?r.concat([e]):null,Ui(4,4,bm.bind(null,t,e),r)}function Dc(){}function Nm(e,t){var r=Tt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&Ec(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function km(e,t){var r=Tt();t=t===void 0?null:t;var s=r.memoizedState;return s!==null&&t!==null&&Ec(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function Sm(e,t,r){return cn&21?($t(r,t)||(r=zh(),Ce.lanes|=r,dn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ct=!0),e.memoizedState=r)}function hg(e,t){var r=me;me=r!==0&&4>r?r:4,e(!0);var s=Sl.transition;Sl.transition={};try{e(!1),t()}finally{me=r,Sl.transition=s}}function Cm(){return Tt().memoizedState}function mg(e,t,r){var s=Ir(e);if(r={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null},Em(e))Tm(t,r);else if(r=om(e,t,r,s),r!==null){var a=rt();At(r,e,s,a),Pm(r,t,s)}}function fg(e,t,r){var s=Ir(e),a={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null};if(Em(e))Tm(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,r);if(a.hasEagerState=!0,a.eagerState=o,$t(o,l)){var c=t.interleaved;c===null?(a.next=a,jc(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=om(e,t,a,s),r!==null&&(a=rt(),At(r,e,s,a),Pm(r,t,s))}}function Em(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Tm(e,t){As=ki=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Pm(e,t,r){if(r&4194240){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,oc(e,r)}}var Si={readContext:Et,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},pg={readContext:Et,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Wd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,qa(4194308,4,bm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qa(4194308,4,e,t)},useInsertionEffect:function(e,t){return qa(4,2,e,t)},useMemo:function(e,t){var r=Kt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=Kt();return t=r!==void 0?r(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=mg.bind(null,Ce,e),[s.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Vd,useDebugValue:Dc,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Vd(!1),t=e[0];return e=hg.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var s=Ce,a=Kt();if(je){if(r===void 0)throw Error($(407));r=r()}else{if(r=t(),Ue===null)throw Error($(349));cn&30||mm(s,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Wd(pm.bind(null,s,i,e),[e]),s.flags|=2048,na(9,fm.bind(null,s,i,r,t),void 0,null),r},useId:function(){var e=Kt(),t=Ue.identifierPrefix;if(je){var r=sr,s=nr;r=(s&~(1<<32-Ot(s)-1)).toString(32)+r,t=":"+t+"R"+r,r=ta++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=ug++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xg={readContext:Et,useCallback:Nm,useContext:Et,useEffect:zc,useImperativeHandle:jm,useInsertionEffect:ym,useLayoutEffect:wm,useMemo:km,useReducer:Cl,useRef:vm,useState:function(){return Cl(ra)},useDebugValue:Dc,useDeferredValue:function(e){var t=Tt();return Sm(t,_e.memoizedState,e)},useTransition:function(){var e=Cl(ra)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:hm,useId:Cm,unstable_isNewReconciler:!1},gg={readContext:Et,useCallback:Nm,useContext:Et,useEffect:zc,useImperativeHandle:jm,useInsertionEffect:ym,useLayoutEffect:wm,useMemo:km,useReducer:El,useRef:vm,useState:function(){return El(ra)},useDebugValue:Dc,useDeferredValue:function(e){var t=Tt();return _e===null?t.memoizedState=e:Sm(t,_e.memoizedState,e)},useTransition:function(){var e=El(ra)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:hm,useId:Cm,unstable_isNewReconciler:!1};function Rt(e,t){if(e&&e.defaultProps){t=Ee({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function No(e,t,r,s){t=e.memoizedState,r=r(s,t),r=r==null?t:Ee({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Bi={isMounted:function(e){return(e=e._reactInternals)?gn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=rt(),a=Ir(e),i=ar(s,a);i.payload=t,r!=null&&(i.callback=r),t=Mr(e,i,a),t!==null&&(At(t,e,a,s),Ja(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=rt(),a=Ir(e),i=ar(s,a);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Mr(e,i,a),t!==null&&(At(t,e,a,s),Ja(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=rt(),s=Ir(e),a=ar(r,s);a.tag=2,t!=null&&(a.callback=t),t=Mr(e,a,s),t!==null&&(At(t,e,s,r),Ja(t,e,s))}};function Hd(e,t,r,s,a,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,l):t.prototype&&t.prototype.isPureReactComponent?!Gs(r,s)||!Gs(a,i):!0}function zm(e,t,r){var s=!1,a=Fr,i=t.contextType;return typeof i=="object"&&i!==null?i=Et(i):(a=ht(t)?ln:et.current,s=t.contextTypes,i=(s=s!=null)?Zn(e,a):Fr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bi,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Kd(e,t,r,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&Bi.enqueueReplaceState(t,t.state,null)}function ko(e,t,r,s){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},Nc(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=Et(i):(i=ht(t)?ln:et.current,a.context=Zn(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(No(e,t,i,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Bi.enqueueReplaceState(a,a.state,null),ji(e,r,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function rs(e,t){try{var r="",s=t;do r+=Hp(s),s=s.return;while(s);var a=r}catch(i){a=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:a,digest:null}}function Tl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function So(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var vg=typeof WeakMap=="function"?WeakMap:Map;function Dm(e,t,r){r=ar(-1,r),r.tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){Ei||(Ei=!0,Lo=s),So(e,t)},r}function Mm(e,t,r){r=ar(-1,r),r.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;r.payload=function(){return s(a)},r.callback=function(){So(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){So(e,t),typeof s!="function"&&(Rr===null?Rr=new Set([this]):Rr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}function Qd(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new vg;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(r)||(a.add(r),e=Mg.bind(null,e,t,r),t.then(e,e))}function Yd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gd(e,t,r,s,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ar(-1,1),t.tag=2,Mr(r,t,1))),r.lanes|=1),e)}var yg=ur.ReactCurrentOwner,ct=!1;function tt(e,t,r,s){t.child=e===null?lm(t,null,r,s):es(t,e.child,r,s)}function Xd(e,t,r,s,a){r=r.render;var i=t.ref;return Hn(t,a),s=Tc(e,t,r,s,i,a),r=Pc(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,dr(e,t,a)):(je&&r&&xc(t),t.flags|=1,tt(e,t,s,a),t.child)}function Jd(e,t,r,s,a){if(e===null){var i=r.type;return typeof i=="function"&&!$c(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,Rm(e,t,i,s,a)):(e=ni(r.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var l=i.memoizedProps;if(r=r.compare,r=r!==null?r:Gs,r(l,s)&&e.ref===t.ref)return dr(e,t,a)}return t.flags|=1,e=Lr(i,s),e.ref=t.ref,e.return=t,t.child=e}function Rm(e,t,r,s,a){if(e!==null){var i=e.memoizedProps;if(Gs(i,s)&&e.ref===t.ref)if(ct=!1,t.pendingProps=s=i,(e.lanes&a)!==0)e.flags&131072&&(ct=!0);else return t.lanes=e.lanes,dr(e,t,a)}return Co(e,t,r,s,a)}function Im(e,t,r){var s=t.pendingProps,a=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge($n,pt),pt|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge($n,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:r,ge($n,pt),pt|=s}else i!==null?(s=i.baseLanes|r,t.memoizedState=null):s=r,ge($n,pt),pt|=s;return tt(e,t,a,r),t.child}function Lm(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Co(e,t,r,s,a){var i=ht(r)?ln:et.current;return i=Zn(t,i),Hn(t,a),r=Tc(e,t,r,s,i,a),s=Pc(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,dr(e,t,a)):(je&&s&&xc(t),t.flags|=1,tt(e,t,r,a),t.child)}function Zd(e,t,r,s,a){if(ht(r)){var i=!0;gi(t)}else i=!1;if(Hn(t,a),t.stateNode===null)ei(e,t),zm(t,r,s),ko(t,r,s,a),s=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var c=l.context,d=r.contextType;typeof d=="object"&&d!==null?d=Et(d):(d=ht(r)?ln:et.current,d=Zn(t,d));var m=r.getDerivedStateFromProps,u=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function";u||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==s||c!==d)&&Kd(t,l,s,d),jr=!1;var x=t.memoizedState;l.state=x,ji(t,s,l,a),c=t.memoizedState,o!==s||x!==c||ut.current||jr?(typeof m=="function"&&(No(t,r,m,s),c=t.memoizedState),(o=jr||Hd(t,r,o,s,x,c,d))?(u||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=c),l.props=s,l.state=c,l.context=d,s=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{l=t.stateNode,cm(e,t),o=t.memoizedProps,d=t.type===t.elementType?o:Rt(t.type,o),l.props=d,u=t.pendingProps,x=l.context,c=r.contextType,typeof c=="object"&&c!==null?c=Et(c):(c=ht(r)?ln:et.current,c=Zn(t,c));var w=r.getDerivedStateFromProps;(m=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==u||x!==c)&&Kd(t,l,s,c),jr=!1,x=t.memoizedState,l.state=x,ji(t,s,l,a);var y=t.memoizedState;o!==u||x!==y||ut.current||jr?(typeof w=="function"&&(No(t,r,w,s),y=t.memoizedState),(d=jr||Hd(t,r,d,s,x,y,c)||!1)?(m||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(s,y,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(s,y,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=y),l.props=s,l.state=y,l.context=c,s=d):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),s=!1)}return Eo(e,t,r,s,i,a)}function Eo(e,t,r,s,a,i){Lm(e,t);var l=(t.flags&128)!==0;if(!s&&!l)return a&&Od(t,r,!1),dr(e,t,i);s=t.stateNode,yg.current=t;var o=l&&typeof r.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&l?(t.child=es(t,e.child,null,i),t.child=es(t,null,o,i)):tt(e,t,o,i),t.memoizedState=s.state,a&&Od(t,r,!0),t.child}function _m(e){var t=e.stateNode;t.pendingContext?_d(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_d(e,t.context,!1),kc(e,t.containerInfo)}function qd(e,t,r,s,a){return qn(),vc(a),t.flags|=256,tt(e,t,r,s),t.child}var To={dehydrated:null,treeContext:null,retryLane:0};function Po(e){return{baseLanes:e,cachePool:null,transitions:null}}function Om(e,t,r){var s=t.pendingProps,a=Se.current,i=!1,l=(t.flags&128)!==0,o;if((o=l)||(o=e!==null&&e.memoizedState===null?!1:(a&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ge(Se,a&1),e===null)return bo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=s.children,e=s.fallback,i?(s=t.mode,i=t.child,l={mode:"hidden",children:l},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Hi(l,s,0,null),e=sn(e,s,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Po(r),t.memoizedState=To,e):Mc(t,l));if(a=e.memoizedState,a!==null&&(o=a.dehydrated,o!==null))return wg(e,t,l,s,o,a,r);if(i){i=s.fallback,l=t.mode,a=e.child,o=a.sibling;var c={mode:"hidden",children:s.children};return!(l&1)&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=c,t.deletions=null):(s=Lr(a,c),s.subtreeFlags=a.subtreeFlags&14680064),o!==null?i=Lr(o,i):(i=sn(i,l,r,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,l=e.child.memoizedState,l=l===null?Po(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~r,t.memoizedState=To,s}return i=e.child,e=i.sibling,s=Lr(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=r),s.return=t,s.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=s,t.memoizedState=null,s}function Mc(e,t){return t=Hi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _a(e,t,r,s){return s!==null&&vc(s),es(t,e.child,null,r),e=Mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wg(e,t,r,s,a,i,l){if(r)return t.flags&256?(t.flags&=-257,s=Tl(Error($(422))),_a(e,t,l,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,a=t.mode,s=Hi({mode:"visible",children:s.children},a,0,null),i=sn(i,a,l,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&es(t,e.child,null,l),t.child.memoizedState=Po(l),t.memoizedState=To,i);if(!(t.mode&1))return _a(e,t,l,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var o=s.dgst;return s=o,i=Error($(419)),s=Tl(i,s,void 0),_a(e,t,l,s)}if(o=(l&e.childLanes)!==0,ct||o){if(s=Ue,s!==null){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(s.suspendedLanes|l)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,cr(e,a),At(s,e,a,-1))}return Ac(),s=Tl(Error($(421))),_a(e,t,l,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Rg.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,xt=Dr(a.nextSibling),gt=t,je=!0,_t=null,e!==null&&(jt[Nt++]=nr,jt[Nt++]=sr,jt[Nt++]=on,nr=e.id,sr=e.overflow,on=t),t=Mc(t,s.children),t.flags|=4096,t)}function eu(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),jo(e.return,t,r)}function Pl(e,t,r,s,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=r,i.tailMode=a)}function Am(e,t,r){var s=t.pendingProps,a=s.revealOrder,i=s.tail;if(tt(e,t,s.children,r),s=Se.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&eu(e,r,t);else if(e.tag===19)eu(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(ge(Se,s),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Ni(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Pl(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ni(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Pl(t,!0,r,null,i);break;case"together":Pl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ei(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),dn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,r=Lr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Lr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function bg(e,t,r){switch(t.tag){case 3:_m(t),qn();break;case 5:dm(t);break;case 1:ht(t.type)&&gi(t);break;case 4:kc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;ge(wi,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ge(Se,Se.current&1),t.flags|=128,null):r&t.child.childLanes?Om(e,t,r):(ge(Se,Se.current&1),e=dr(e,t,r),e!==null?e.sibling:null);ge(Se,Se.current&1);break;case 19:if(s=(r&t.childLanes)!==0,e.flags&128){if(s)return Am(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ge(Se,Se.current),s)break;return null;case 22:case 23:return t.lanes=0,Im(e,t,r)}return dr(e,t,r)}var $m,zo,Fm,Um;$m=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};zo=function(){};Fm=function(e,t,r,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,rn(Xt.current);var i=null;switch(r){case"input":a=Jl(e,a),s=Jl(e,s),i=[];break;case"select":a=Ee({},a,{value:void 0}),s=Ee({},s,{value:void 0}),i=[];break;case"textarea":a=eo(e,a),s=eo(e,s),i=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=pi)}ro(r,s);var l;r=null;for(d in a)if(!s.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d==="style"){var o=a[d];for(l in o)o.hasOwnProperty(l)&&(r||(r={}),r[l]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Bs.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in s){var c=s[d];if(o=a!=null?a[d]:void 0,s.hasOwnProperty(d)&&c!==o&&(c!=null||o!=null))if(d==="style")if(o){for(l in o)!o.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in c)c.hasOwnProperty(l)&&o[l]!==c[l]&&(r||(r={}),r[l]=c[l])}else r||(i||(i=[]),i.push(d,r)),r=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,o=o?o.__html:void 0,c!=null&&o!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Bs.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&ye("scroll",e),i||o===c||(i=[])):(i=i||[]).push(d,c))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};Um=function(e,t,r,s){r!==s&&(t.flags|=4)};function bs(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function jg(e,t,r){var s=t.pendingProps;switch(gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return ht(t.type)&&xi(),Xe(t),null;case 3:return s=t.stateNode,ts(),be(ut),be(et),Cc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_t!==null&&(Ao(_t),_t=null))),zo(e,t),Xe(t),null;case 5:Sc(t);var a=rn(ea.current);if(r=t.type,e!==null&&t.stateNode!=null)Fm(e,t,r,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error($(166));return Xe(t),null}if(e=rn(Xt.current),Ia(t)){s=t.stateNode,r=t.type;var i=t.memoizedProps;switch(s[Qt]=t,s[Zs]=i,e=(t.mode&1)!==0,r){case"dialog":ye("cancel",s),ye("close",s);break;case"iframe":case"object":case"embed":ye("load",s);break;case"video":case"audio":for(a=0;a<Ds.length;a++)ye(Ds[a],s);break;case"source":ye("error",s);break;case"img":case"image":case"link":ye("error",s),ye("load",s);break;case"details":ye("toggle",s);break;case"input":cd(s,i),ye("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},ye("invalid",s);break;case"textarea":ud(s,i),ye("invalid",s)}ro(r,i),a=null;for(var l in i)if(i.hasOwnProperty(l)){var o=i[l];l==="children"?typeof o=="string"?s.textContent!==o&&(i.suppressHydrationWarning!==!0&&Ra(s.textContent,o,e),a=["children",o]):typeof o=="number"&&s.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&Ra(s.textContent,o,e),a=["children",""+o]):Bs.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&ye("scroll",s)}switch(r){case"input":Sa(s),dd(s,i,!0);break;case"textarea":Sa(s),hd(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=pi)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{l=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ph(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=l.createElement(r,{is:s.is}):(e=l.createElement(r),r==="select"&&(l=e,s.multiple?l.multiple=!0:s.size&&(l.size=s.size))):e=l.createElementNS(e,r),e[Qt]=t,e[Zs]=s,$m(e,t,!1,!1),t.stateNode=e;e:{switch(l=no(r,s),r){case"dialog":ye("cancel",e),ye("close",e),a=s;break;case"iframe":case"object":case"embed":ye("load",e),a=s;break;case"video":case"audio":for(a=0;a<Ds.length;a++)ye(Ds[a],e);a=s;break;case"source":ye("error",e),a=s;break;case"img":case"image":case"link":ye("error",e),ye("load",e),a=s;break;case"details":ye("toggle",e),a=s;break;case"input":cd(e,s),a=Jl(e,s),ye("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=Ee({},s,{value:void 0}),ye("invalid",e);break;case"textarea":ud(e,s),a=eo(e,s),ye("invalid",e);break;default:a=s}ro(r,a),o=a;for(i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="style"?vh(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&xh(e,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Vs(e,c):typeof c=="number"&&Vs(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Bs.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ye("scroll",e):c!=null&&rc(e,i,c,l))}switch(r){case"input":Sa(e),dd(e,s,!1);break;case"textarea":Sa(e),hd(e);break;case"option":s.value!=null&&e.setAttribute("value",""+$r(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Un(e,!!s.multiple,i,!1):s.defaultValue!=null&&Un(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=pi)}switch(r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xe(t),null;case 6:if(e&&t.stateNode!=null)Um(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error($(166));if(r=rn(ea.current),rn(Xt.current),Ia(t)){if(s=t.stateNode,r=t.memoizedProps,s[Qt]=t,(i=s.nodeValue!==r)&&(e=gt,e!==null))switch(e.tag){case 3:Ra(s.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ra(s.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(r.nodeType===9?r:r.ownerDocument).createTextNode(s),s[Qt]=t,t.stateNode=s}return Xe(t),null;case 13:if(be(Se),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&xt!==null&&t.mode&1&&!(t.flags&128))am(),qn(),t.flags|=98560,i=!1;else if(i=Ia(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error($(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error($(317));i[Qt]=t}else qn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),i=!1}else _t!==null&&(Ao(_t),_t=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?Oe===0&&(Oe=3):Ac())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return ts(),zo(e,t),e===null&&Xs(t.stateNode.containerInfo),Xe(t),null;case 10:return bc(t.type._context),Xe(t),null;case 17:return ht(t.type)&&xi(),Xe(t),null;case 19:if(be(Se),i=t.memoizedState,i===null)return Xe(t),null;if(s=(t.flags&128)!==0,l=i.rendering,l===null)if(s)bs(i,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ni(e),l!==null){for(t.flags|=128,bs(i,!1),s=l.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=r,r=t.child;r!==null;)i=r,e=s,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ge(Se,Se.current&1|2),t.child}e=e.sibling}i.tail!==null&&De()>ns&&(t.flags|=128,s=!0,bs(i,!1),t.lanes=4194304)}else{if(!s)if(e=Ni(l),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),bs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!je)return Xe(t),null}else 2*De()-i.renderingStartTime>ns&&r!==1073741824&&(t.flags|=128,s=!0,bs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(r=i.last,r!==null?r.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=De(),t.sibling=null,r=Se.current,ge(Se,s?r&1|2:r&1),t):(Xe(t),null);case 22:case 23:return Oc(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?pt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function Ng(e,t){switch(gc(t),t.tag){case 1:return ht(t.type)&&xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ts(),be(ut),be(et),Cc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sc(t),null;case 13:if(be(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Se),null;case 4:return ts(),null;case 10:return bc(t.type._context),null;case 22:case 23:return Oc(),null;case 24:return null;default:return null}}var Oa=!1,qe=!1,kg=typeof WeakSet=="function"?WeakSet:Set,K=null;function An(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){Pe(e,t,s)}else r.current=null}function Do(e,t,r){try{r()}catch(s){Pe(e,t,s)}}var tu=!1;function Sg(e,t){if(fo=hi,e=Kh(),pc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var a=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,o=-1,c=-1,d=0,m=0,u=e,x=null;t:for(;;){for(var w;u!==r||a!==0&&u.nodeType!==3||(o=l+a),u!==i||s!==0&&u.nodeType!==3||(c=l+s),u.nodeType===3&&(l+=u.nodeValue.length),(w=u.firstChild)!==null;)x=u,u=w;for(;;){if(u===e)break t;if(x===r&&++d===a&&(o=l),x===i&&++m===s&&(c=l),(w=u.nextSibling)!==null)break;u=x,x=u.parentNode}u=w}r=o===-1||c===-1?null:{start:o,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(po={focusedElem:e,selectionRange:r},hi=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,b=y.memoizedState,f=t.stateNode,p=f.getSnapshotBeforeUpdate(t.elementType===t.type?v:Rt(t.type,v),b);f.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(j){Pe(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return y=tu,tu=!1,y}function $s(e,t,r){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Do(t,r,i)}a=a.next}while(a!==s)}}function Vi(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 s=r.create;r.destroy=s()}r=r.next}while(r!==t)}}function Mo(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 Bm(e){var t=e.alternate;t!==null&&(e.alternate=null,Bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[Zs],delete t[vo],delete t[lg],delete t[og])),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 Vm(e){return e.tag===5||e.tag===3||e.tag===4}function ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vm(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 Ro(e,t,r){var s=e.tag;if(s===5||s===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=pi));else if(s!==4&&(e=e.child,e!==null))for(Ro(e,t,r),e=e.sibling;e!==null;)Ro(e,t,r),e=e.sibling}function Io(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Io(e,t,r),e=e.sibling;e!==null;)Io(e,t,r),e=e.sibling}var Ve=null,It=!1;function xr(e,t,r){for(r=r.child;r!==null;)Wm(e,t,r),r=r.sibling}function Wm(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Li,r)}catch{}switch(r.tag){case 5:qe||An(r,t);case 6:var s=Ve,a=It;Ve=null,xr(e,t,r),Ve=s,It=a,Ve!==null&&(It?(e=Ve,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ve.removeChild(r.stateNode));break;case 18:Ve!==null&&(It?(e=Ve,r=r.stateNode,e.nodeType===8?jl(e.parentNode,r):e.nodeType===1&&jl(e,r),Qs(e)):jl(Ve,r.stateNode));break;case 4:s=Ve,a=It,Ve=r.stateNode.containerInfo,It=!0,xr(e,t,r),Ve=s,It=a;break;case 0:case 11:case 14:case 15:if(!qe&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var i=a,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Do(r,t,l),a=a.next}while(a!==s)}xr(e,t,r);break;case 1:if(!qe&&(An(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(o){Pe(r,t,o)}xr(e,t,r);break;case 21:xr(e,t,r);break;case 22:r.mode&1?(qe=(s=qe)||r.memoizedState!==null,xr(e,t,r),qe=s):xr(e,t,r);break;default:xr(e,t,r)}}function nu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new kg),t.forEach(function(s){var a=Ig.bind(null,e,s);r.has(s)||(r.add(s),s.then(a,a))})}}function Mt(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var a=r[s];try{var i=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:Ve=o.stateNode,It=!1;break e;case 3:Ve=o.stateNode.containerInfo,It=!0;break e;case 4:Ve=o.stateNode.containerInfo,It=!0;break e}o=o.return}if(Ve===null)throw Error($(160));Wm(i,l,a),Ve=null,It=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(d){Pe(a,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hm(t,e),t=t.sibling}function Hm(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Ut(e),s&4){try{$s(3,e,e.return),Vi(3,e)}catch(v){Pe(e,e.return,v)}try{$s(5,e,e.return)}catch(v){Pe(e,e.return,v)}}break;case 1:Mt(t,e),Ut(e),s&512&&r!==null&&An(r,r.return);break;case 5:if(Mt(t,e),Ut(e),s&512&&r!==null&&An(r,r.return),e.flags&32){var a=e.stateNode;try{Vs(a,"")}catch(v){Pe(e,e.return,v)}}if(s&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,l=r!==null?r.memoizedProps:i,o=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&mh(a,i),no(o,l);var d=no(o,i);for(l=0;l<c.length;l+=2){var m=c[l],u=c[l+1];m==="style"?vh(a,u):m==="dangerouslySetInnerHTML"?xh(a,u):m==="children"?Vs(a,u):rc(a,m,u,d)}switch(o){case"input":Zl(a,i);break;case"textarea":fh(a,i);break;case"select":var x=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?Un(a,!!i.multiple,w,!1):x!==!!i.multiple&&(i.defaultValue!=null?Un(a,!!i.multiple,i.defaultValue,!0):Un(a,!!i.multiple,i.multiple?[]:"",!1))}a[Zs]=i}catch(v){Pe(e,e.return,v)}}break;case 6:if(Mt(t,e),Ut(e),s&4){if(e.stateNode===null)throw Error($(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(v){Pe(e,e.return,v)}}break;case 3:if(Mt(t,e),Ut(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{Qs(t.containerInfo)}catch(v){Pe(e,e.return,v)}break;case 4:Mt(t,e),Ut(e);break;case 13:Mt(t,e),Ut(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(Lc=De())),s&4&&nu(e);break;case 22:if(m=r!==null&&r.memoizedState!==null,e.mode&1?(qe=(d=qe)||m,Mt(t,e),qe=d):Mt(t,e),Ut(e),s&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(K=e,m=e.child;m!==null;){for(u=K=m;K!==null;){switch(x=K,w=x.child,x.tag){case 0:case 11:case 14:case 15:$s(4,x,x.return);break;case 1:An(x,x.return);var y=x.stateNode;if(typeof y.componentWillUnmount=="function"){s=x,r=x.return;try{t=s,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){Pe(s,r,v)}}break;case 5:An(x,x.return);break;case 22:if(x.memoizedState!==null){au(u);continue}}w!==null?(w.return=x,K=w):au(u)}m=m.sibling}e:for(m=null,u=e;;){if(u.tag===5){if(m===null){m=u;try{a=u.stateNode,d?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=u.stateNode,c=u.memoizedProps.style,l=c!=null&&c.hasOwnProperty("display")?c.display:null,o.style.display=gh("display",l))}catch(v){Pe(e,e.return,v)}}}else if(u.tag===6){if(m===null)try{u.stateNode.nodeValue=d?"":u.memoizedProps}catch(v){Pe(e,e.return,v)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;m===u&&(m=null),u=u.return}m===u&&(m=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:Mt(t,e),Ut(e),s&4&&nu(e);break;case 21:break;default:Mt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Vm(r)){var s=r;break e}r=r.return}throw Error($(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(Vs(a,""),s.flags&=-33);var i=ru(e);Io(e,i,a);break;case 3:case 4:var l=s.stateNode.containerInfo,o=ru(e);Ro(e,o,l);break;default:throw Error($(161))}}catch(c){Pe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cg(e,t,r){K=e,Km(e)}function Km(e,t,r){for(var s=(e.mode&1)!==0;K!==null;){var a=K,i=a.child;if(a.tag===22&&s){var l=a.memoizedState!==null||Oa;if(!l){var o=a.alternate,c=o!==null&&o.memoizedState!==null||qe;o=Oa;var d=qe;if(Oa=l,(qe=c)&&!d)for(K=a;K!==null;)l=K,c=l.child,l.tag===22&&l.memoizedState!==null?iu(a):c!==null?(c.return=l,K=c):iu(a);for(;i!==null;)K=i,Km(i),i=i.sibling;K=a,Oa=o,qe=d}su(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,K=i):su(e)}}function su(e){for(;K!==null;){var t=K;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||Vi(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!qe)if(r===null)s.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Rt(t.type,r.memoizedProps);s.componentDidUpdate(a,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Bd(t,i,s);break;case 3:var l=t.updateQueue;if(l!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Bd(t,l,r)}break;case 5:var o=t.stateNode;if(r===null&&t.flags&4){r=o;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var u=m.dehydrated;u!==null&&Qs(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($(163))}qe||t.flags&512&&Mo(t)}catch(x){Pe(t,t.return,x)}}if(t===e){K=null;break}if(r=t.sibling,r!==null){r.return=t.return,K=r;break}K=t.return}}function au(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var r=t.sibling;if(r!==null){r.return=t.return,K=r;break}K=t.return}}function iu(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Vi(4,t)}catch(c){Pe(t,r,c)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(c){Pe(t,a,c)}}var i=t.return;try{Mo(t)}catch(c){Pe(t,i,c)}break;case 5:var l=t.return;try{Mo(t)}catch(c){Pe(t,l,c)}}}catch(c){Pe(t,t.return,c)}if(t===e){K=null;break}var o=t.sibling;if(o!==null){o.return=t.return,K=o;break}K=t.return}}var Eg=Math.ceil,Ci=ur.ReactCurrentDispatcher,Rc=ur.ReactCurrentOwner,Ct=ur.ReactCurrentBatchConfig,ce=0,Ue=null,Me=null,He=0,pt=0,$n=Vr(0),Oe=0,sa=null,dn=0,Wi=0,Ic=0,Fs=null,ot=null,Lc=0,ns=1/0,tr=null,Ei=!1,Lo=null,Rr=null,Aa=!1,Cr=null,Ti=0,Us=0,_o=null,ti=-1,ri=0;function rt(){return ce&6?De():ti!==-1?ti:ti=De()}function Ir(e){return e.mode&1?ce&2&&He!==0?He&-He:dg.transition!==null?(ri===0&&(ri=zh()),ri):(e=me,e!==0||(e=window.event,e=e===void 0?16:Oh(e.type)),e):1}function At(e,t,r,s){if(50<Us)throw Us=0,_o=null,Error($(185));ua(e,r,s),(!(ce&2)||e!==Ue)&&(e===Ue&&(!(ce&2)&&(Wi|=r),Oe===4&&kr(e,He)),mt(e,s),r===1&&ce===0&&!(t.mode&1)&&(ns=De()+500,Fi&&Wr()))}function mt(e,t){var r=e.callbackNode;dx(e,t);var s=ui(e,e===Ue?He:0);if(s===0)r!==null&&pd(r),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(r!=null&&pd(r),t===1)e.tag===0?cg(lu.bind(null,e)):rm(lu.bind(null,e)),ag(function(){!(ce&6)&&Wr()}),r=null;else{switch(Dh(s)){case 1:r=lc;break;case 4:r=Th;break;case 16:r=di;break;case 536870912:r=Ph;break;default:r=di}r=ef(r,Qm.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Qm(e,t){if(ti=-1,ri=0,ce&6)throw Error($(327));var r=e.callbackNode;if(Kn()&&e.callbackNode!==r)return null;var s=ui(e,e===Ue?He:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=Pi(e,s);else{t=s;var a=ce;ce|=2;var i=Gm();(Ue!==e||He!==t)&&(tr=null,ns=De()+500,nn(e,t));do try{zg();break}catch(o){Ym(e,o)}while(!0);wc(),Ci.current=i,ce=a,Me!==null?t=0:(Ue=null,He=0,t=Oe)}if(t!==0){if(t===2&&(a=oo(e),a!==0&&(s=a,t=Oo(e,a))),t===1)throw r=sa,nn(e,0),kr(e,s),mt(e,De()),r;if(t===6)kr(e,s);else{if(a=e.current.alternate,!(s&30)&&!Tg(a)&&(t=Pi(e,s),t===2&&(i=oo(e),i!==0&&(s=i,t=Oo(e,i))),t===1))throw r=sa,nn(e,0),kr(e,s),mt(e,De()),r;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error($(345));case 2:Jr(e,ot,tr);break;case 3:if(kr(e,s),(s&130023424)===s&&(t=Lc+500-De(),10<t)){if(ui(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){rt(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=go(Jr.bind(null,e,ot,tr),t);break}Jr(e,ot,tr);break;case 4:if(kr(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var l=31-Ot(s);i=1<<l,l=t[l],l>a&&(a=l),s&=~i}if(s=a,s=De()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Eg(s/1960))-s,10<s){e.timeoutHandle=go(Jr.bind(null,e,ot,tr),s);break}Jr(e,ot,tr);break;case 5:Jr(e,ot,tr);break;default:throw Error($(329))}}}return mt(e,De()),e.callbackNode===r?Qm.bind(null,e):null}function Oo(e,t){var r=Fs;return e.current.memoizedState.isDehydrated&&(nn(e,t).flags|=256),e=Pi(e,t),e!==2&&(t=ot,ot=r,t!==null&&Ao(t)),e}function Ao(e){ot===null?ot=e:ot.push.apply(ot,e)}function Tg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var s=0;s<r.length;s++){var a=r[s],i=a.getSnapshot;a=a.value;try{if(!$t(i(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kr(e,t){for(t&=~Ic,t&=~Wi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ot(t),s=1<<r;e[r]=-1,t&=~s}}function lu(e){if(ce&6)throw Error($(327));Kn();var t=ui(e,0);if(!(t&1))return mt(e,De()),null;var r=Pi(e,t);if(e.tag!==0&&r===2){var s=oo(e);s!==0&&(t=s,r=Oo(e,s))}if(r===1)throw r=sa,nn(e,0),kr(e,t),mt(e,De()),r;if(r===6)throw Error($(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jr(e,ot,tr),mt(e,De()),null}function _c(e,t){var r=ce;ce|=1;try{return e(t)}finally{ce=r,ce===0&&(ns=De()+500,Fi&&Wr())}}function un(e){Cr!==null&&Cr.tag===0&&!(ce&6)&&Kn();var t=ce;ce|=1;var r=Ct.transition,s=me;try{if(Ct.transition=null,me=1,e)return e()}finally{me=s,Ct.transition=r,ce=t,!(ce&6)&&Wr()}}function Oc(){pt=$n.current,be($n)}function nn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,sg(r)),Me!==null)for(r=Me.return;r!==null;){var s=r;switch(gc(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&xi();break;case 3:ts(),be(ut),be(et),Cc();break;case 5:Sc(s);break;case 4:ts();break;case 13:be(Se);break;case 19:be(Se);break;case 10:bc(s.type._context);break;case 22:case 23:Oc()}r=r.return}if(Ue=e,Me=e=Lr(e.current,null),He=pt=t,Oe=0,sa=null,Ic=Wi=dn=0,ot=Fs=null,tn!==null){for(t=0;t<tn.length;t++)if(r=tn[t],s=r.interleaved,s!==null){r.interleaved=null;var a=s.next,i=r.pending;if(i!==null){var l=i.next;i.next=a,s.next=l}r.pending=s}tn=null}return e}function Ym(e,t){do{var r=Me;try{if(wc(),Za.current=Si,ki){for(var s=Ce.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}ki=!1}if(cn=0,Fe=_e=Ce=null,As=!1,ta=0,Rc.current=null,r===null||r.return===null){Oe=1,sa=t,Me=null;break}e:{var i=e,l=r.return,o=r,c=t;if(t=He,o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,m=o,u=m.tag;if(!(m.mode&1)&&(u===0||u===11||u===15)){var x=m.alternate;x?(m.updateQueue=x.updateQueue,m.memoizedState=x.memoizedState,m.lanes=x.lanes):(m.updateQueue=null,m.memoizedState=null)}var w=Yd(l);if(w!==null){w.flags&=-257,Gd(w,l,o,i,t),w.mode&1&&Qd(i,d,t),t=w,c=d;var y=t.updateQueue;if(y===null){var v=new Set;v.add(c),t.updateQueue=v}else y.add(c);break e}else{if(!(t&1)){Qd(i,d,t),Ac();break e}c=Error($(426))}}else if(je&&o.mode&1){var b=Yd(l);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Gd(b,l,o,i,t),vc(rs(c,o));break e}}i=c=rs(c,o),Oe!==4&&(Oe=2),Fs===null?Fs=[i]:Fs.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var f=Dm(i,c,t);Ud(i,f);break e;case 1:o=c;var p=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Rr===null||!Rr.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var j=Mm(i,o,t);Ud(i,j);break e}}i=i.return}while(i!==null)}Jm(r)}catch(N){t=N,Me===r&&r!==null&&(Me=r=r.return);continue}break}while(!0)}function Gm(){var e=Ci.current;return Ci.current=Si,e===null?Si:e}function Ac(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),Ue===null||!(dn&268435455)&&!(Wi&268435455)||kr(Ue,He)}function Pi(e,t){var r=ce;ce|=2;var s=Gm();(Ue!==e||He!==t)&&(tr=null,nn(e,t));do try{Pg();break}catch(a){Ym(e,a)}while(!0);if(wc(),ce=r,Ci.current=s,Me!==null)throw Error($(261));return Ue=null,He=0,Oe}function Pg(){for(;Me!==null;)Xm(Me)}function zg(){for(;Me!==null&&!tx();)Xm(Me)}function Xm(e){var t=qm(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?Jm(e):Me=t,Rc.current=null}function Jm(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Ng(r,t),r!==null){r.flags&=32767,Me=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Me=null;return}}else if(r=jg(r,t,pt),r!==null){Me=r;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Oe===0&&(Oe=5)}function Jr(e,t,r){var s=me,a=Ct.transition;try{Ct.transition=null,me=1,Dg(e,t,r,s)}finally{Ct.transition=a,me=s}return null}function Dg(e,t,r,s){do Kn();while(Cr!==null);if(ce&6)throw Error($(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error($(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(ux(e,i),e===Ue&&(Me=Ue=null,He=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Aa||(Aa=!0,ef(di,function(){return Kn(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Ct.transition,Ct.transition=null;var l=me;me=1;var o=ce;ce|=4,Rc.current=null,Sg(e,r),Hm(r,e),Jx(po),hi=!!fo,po=fo=null,e.current=r,Cg(r),rx(),ce=o,me=l,Ct.transition=i}else e.current=r;if(Aa&&(Aa=!1,Cr=e,Ti=a),i=e.pendingLanes,i===0&&(Rr=null),ax(r.stateNode),mt(e,De()),t!==null)for(s=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],s(a.value,{componentStack:a.stack,digest:a.digest});if(Ei)throw Ei=!1,e=Lo,Lo=null,e;return Ti&1&&e.tag!==0&&Kn(),i=e.pendingLanes,i&1?e===_o?Us++:(Us=0,_o=e):Us=0,Wr(),null}function Kn(){if(Cr!==null){var e=Dh(Ti),t=Ct.transition,r=me;try{if(Ct.transition=null,me=16>e?16:e,Cr===null)var s=!1;else{if(e=Cr,Cr=null,Ti=0,ce&6)throw Error($(331));var a=ce;for(ce|=4,K=e.current;K!==null;){var i=K,l=i.child;if(K.flags&16){var o=i.deletions;if(o!==null){for(var c=0;c<o.length;c++){var d=o[c];for(K=d;K!==null;){var m=K;switch(m.tag){case 0:case 11:case 15:$s(8,m,i)}var u=m.child;if(u!==null)u.return=m,K=u;else for(;K!==null;){m=K;var x=m.sibling,w=m.return;if(Bm(m),m===d){K=null;break}if(x!==null){x.return=w,K=x;break}K=w}}}var y=i.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}K=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,K=l;else e:for(;K!==null;){if(i=K,i.flags&2048)switch(i.tag){case 0:case 11:case 15:$s(9,i,i.return)}var f=i.sibling;if(f!==null){f.return=i.return,K=f;break e}K=i.return}}var p=e.current;for(K=p;K!==null;){l=K;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,K=g;else e:for(l=p;K!==null;){if(o=K,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Vi(9,o)}}catch(N){Pe(o,o.return,N)}if(o===l){K=null;break e}var j=o.sibling;if(j!==null){j.return=o.return,K=j;break e}K=o.return}}if(ce=a,Wr(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Li,e)}catch{}s=!0}return s}finally{me=r,Ct.transition=t}}return!1}function ou(e,t,r){t=rs(r,t),t=Dm(e,t,1),e=Mr(e,t,1),t=rt(),e!==null&&(ua(e,1,t),mt(e,t))}function Pe(e,t,r){if(e.tag===3)ou(e,e,r);else for(;t!==null;){if(t.tag===3){ou(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Rr===null||!Rr.has(s))){e=rs(r,e),e=Mm(t,e,1),t=Mr(t,e,1),e=rt(),t!==null&&(ua(t,1,e),mt(t,e));break}}t=t.return}}function Mg(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&r,Ue===e&&(He&r)===r&&(Oe===4||Oe===3&&(He&130023424)===He&&500>De()-Lc?nn(e,0):Ic|=r),mt(e,t)}function Zm(e,t){t===0&&(e.mode&1?(t=Ta,Ta<<=1,!(Ta&130023424)&&(Ta=4194304)):t=1);var r=rt();e=cr(e,t),e!==null&&(ua(e,t,r),mt(e,r))}function Rg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Zm(e,r)}function Ig(e,t){var r=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error($(314))}s!==null&&s.delete(t),Zm(e,r)}var qm;qm=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)ct=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ct=!1,bg(e,t,r);ct=!!(e.flags&131072)}else ct=!1,je&&t.flags&1048576&&nm(t,yi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ei(e,t),e=t.pendingProps;var a=Zn(t,et.current);Hn(t,r),a=Tc(null,t,s,e,a,r);var i=Pc();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(s)?(i=!0,gi(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Nc(t),a.updater=Bi,t.stateNode=a,a._reactInternals=t,ko(t,s,e,r),t=Eo(null,t,s,!0,i,r)):(t.tag=0,je&&i&&xc(t),tt(null,t,a,r),t=t.child),t;case 16:s=t.elementType;e:{switch(ei(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=_g(s),e=Rt(s,e),a){case 0:t=Co(null,t,s,e,r);break e;case 1:t=Zd(null,t,s,e,r);break e;case 11:t=Xd(null,t,s,e,r);break e;case 14:t=Jd(null,t,s,Rt(s.type,e),r);break e}throw Error($(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Rt(s,a),Co(e,t,s,a,r);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Rt(s,a),Zd(e,t,s,a,r);case 3:e:{if(_m(t),e===null)throw Error($(387));s=t.pendingProps,i=t.memoizedState,a=i.element,cm(e,t),ji(t,s,null,r);var l=t.memoizedState;if(s=l.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=rs(Error($(423)),t),t=qd(e,t,s,r,a);break e}else if(s!==a){a=rs(Error($(424)),t),t=qd(e,t,s,r,a);break e}else for(xt=Dr(t.stateNode.containerInfo.firstChild),gt=t,je=!0,_t=null,r=lm(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qn(),s===a){t=dr(e,t,r);break e}tt(e,t,s,r)}t=t.child}return t;case 5:return dm(t),e===null&&bo(t),s=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,l=a.children,xo(s,a)?l=null:i!==null&&xo(s,i)&&(t.flags|=32),Lm(e,t),tt(e,t,l,r),t.child;case 6:return e===null&&bo(t),null;case 13:return Om(e,t,r);case 4:return kc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=es(t,null,s,r):tt(e,t,s,r),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Rt(s,a),Xd(e,t,s,a,r);case 7:return tt(e,t,t.pendingProps,r),t.child;case 8:return tt(e,t,t.pendingProps.children,r),t.child;case 12:return tt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,ge(wi,s._currentValue),s._currentValue=l,i!==null)if($t(i.value,l)){if(i.children===a.children&&!ut.current){t=dr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){l=i.child;for(var c=o.firstContext;c!==null;){if(c.context===s){if(i.tag===1){c=ar(-1,r&-r),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?c.next=c:(c.next=m.next,m.next=c),d.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),jo(i.return,r,t),o.lanes|=r;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error($(341));l.lanes|=r,o=l.alternate,o!==null&&(o.lanes|=r),jo(l,r,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}tt(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Hn(t,r),a=Et(a),s=s(a),t.flags|=1,tt(e,t,s,r),t.child;case 14:return s=t.type,a=Rt(s,t.pendingProps),a=Rt(s.type,a),Jd(e,t,s,a,r);case 15:return Rm(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Rt(s,a),ei(e,t),t.tag=1,ht(s)?(e=!0,gi(t)):e=!1,Hn(t,r),zm(t,s,a),ko(t,s,a,r),Eo(null,t,s,!0,e,r);case 19:return Am(e,t,r);case 22:return Im(e,t,r)}throw Error($(156,t.tag))};function ef(e,t){return Eh(e,t)}function Lg(e,t,r,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,r,s){return new Lg(e,t,r,s)}function $c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _g(e){if(typeof e=="function")return $c(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sc)return 11;if(e===ac)return 14}return 2}function Lr(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 ni(e,t,r,s,a,i){var l=2;if(s=e,typeof e=="function")$c(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Pn:return sn(r.children,a,i,t);case nc:l=8,a|=8;break;case Ql:return e=kt(12,r,t,a|2),e.elementType=Ql,e.lanes=i,e;case Yl:return e=kt(13,r,t,a),e.elementType=Yl,e.lanes=i,e;case Gl:return e=kt(19,r,t,a),e.elementType=Gl,e.lanes=i,e;case dh:return Hi(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oh:l=10;break e;case ch:l=9;break e;case sc:l=11;break e;case ac:l=14;break e;case br:l=16,s=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=kt(l,r,t,a),t.elementType=e,t.type=s,t.lanes=i,t}function sn(e,t,r,s){return e=kt(7,e,s,t),e.lanes=r,e}function Hi(e,t,r,s){return e=kt(22,e,s,t),e.elementType=dh,e.lanes=r,e.stateNode={isHidden:!1},e}function zl(e,t,r){return e=kt(6,e,null,t),e.lanes=r,e}function Dl(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 Og(e,t,r,s,a){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=ul(0),this.expirationTimes=ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Fc(e,t,r,s,a,i,l,o,c){return e=new Og(e,t,r,o,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nc(i),e}function Ag(e,t,r){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tn,key:s==null?null:""+s,children:e,containerInfo:t,implementation:r}}function tf(e){if(!e)return Fr;e=e._reactInternals;e:{if(gn(e)!==e||e.tag!==1)throw Error($(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error($(171))}if(e.tag===1){var r=e.type;if(ht(r))return tm(e,r,t)}return t}function rf(e,t,r,s,a,i,l,o,c){return e=Fc(r,s,!0,e,a,i,l,o,c),e.context=tf(null),r=e.current,s=rt(),a=Ir(r),i=ar(s,a),i.callback=t??null,Mr(r,i,a),e.current.lanes=a,ua(e,a,s),mt(e,s),e}function Ki(e,t,r,s){var a=t.current,i=rt(),l=Ir(a);return r=tf(r),t.context===null?t.context=r:t.pendingContext=r,t=ar(i,l),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Mr(a,t,l),e!==null&&(At(e,a,l,i),Ja(e,a,l)),l}function zi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Uc(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function $g(){return null}var nf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bc(e){this._internalRoot=e}Qi.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));Ki(e,t,null,null)};Qi.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;un(function(){Ki(null,e,null,null)}),t[or]=null}};function Qi(e){this._internalRoot=e}Qi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ih();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Nr.length&&t!==0&&t<Nr[r].priority;r++);Nr.splice(r,0,e),r===0&&_h(e)}};function Vc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Yi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function du(){}function Fg(e,t,r,s,a){if(a){if(typeof s=="function"){var i=s;s=function(){var d=zi(l);i.call(d)}}var l=rf(t,s,e,0,null,!1,!1,"",du);return e._reactRootContainer=l,e[or]=l.current,Xs(e.nodeType===8?e.parentNode:e),un(),l}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var o=s;s=function(){var d=zi(c);o.call(d)}}var c=Fc(e,0,!1,null,null,!1,!1,"",du);return e._reactRootContainer=c,e[or]=c.current,Xs(e.nodeType===8?e.parentNode:e),un(function(){Ki(t,c,r,s)}),c}function Gi(e,t,r,s,a){var i=r._reactRootContainer;if(i){var l=i;if(typeof a=="function"){var o=a;a=function(){var c=zi(l);o.call(c)}}Ki(t,l,e,a)}else l=Fg(r,t,e,a,s);return zi(l)}Mh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=zs(t.pendingLanes);r!==0&&(oc(t,r|1),mt(t,De()),!(ce&6)&&(ns=De()+500,Wr()))}break;case 13:un(function(){var s=cr(e,1);if(s!==null){var a=rt();At(s,e,1,a)}}),Uc(e,1)}};cc=function(e){if(e.tag===13){var t=cr(e,134217728);if(t!==null){var r=rt();At(t,e,134217728,r)}Uc(e,134217728)}};Rh=function(e){if(e.tag===13){var t=Ir(e),r=cr(e,t);if(r!==null){var s=rt();At(r,e,t,s)}Uc(e,t)}};Ih=function(){return me};Lh=function(e,t){var r=me;try{return me=e,t()}finally{me=r}};ao=function(e,t,r){switch(t){case"input":if(Zl(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var a=$i(s);if(!a)throw Error($(90));hh(s),Zl(s,a)}}}break;case"textarea":fh(e,r);break;case"select":t=r.value,t!=null&&Un(e,!!r.multiple,t,!1)}};bh=_c;jh=un;var Ug={usingClientEntryPoint:!1,Events:[ma,Rn,$i,yh,wh,_c]},js={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bg={bundleType:js.bundleType,version:js.version,rendererPackageName:js.rendererPackageName,rendererConfig:js.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ur.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sh(e),e===null?null:e.stateNode},findFiberByHostInstance:js.findFiberByHostInstance||$g,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$a.isDisabled&&$a.supportsFiber)try{Li=$a.inject(Bg),Gt=$a}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ug;yt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vc(t))throw Error($(200));return Ag(e,t,null,r)};yt.createRoot=function(e,t){if(!Vc(e))throw Error($(299));var r=!1,s="",a=nf;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Fc(e,1,!1,null,null,r,!1,s,a),e[or]=t.current,Xs(e.nodeType===8?e.parentNode:e),new Bc(t)};yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):(e=Object.keys(e).join(","),Error($(268,e)));return e=Sh(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return un(e)};yt.hydrate=function(e,t,r){if(!Yi(t))throw Error($(200));return Gi(null,e,t,!0,r)};yt.hydrateRoot=function(e,t,r){if(!Vc(e))throw Error($(405));var s=r!=null&&r.hydratedSources||null,a=!1,i="",l=nf;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(l=r.onRecoverableError)),t=rf(t,null,e,1,r??null,a,!1,i,l),e[or]=t.current,Xs(e),s)for(e=0;e<s.length;e++)r=s[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Qi(t)};yt.render=function(e,t,r){if(!Yi(t))throw Error($(200));return Gi(null,e,t,!1,r)};yt.unmountComponentAtNode=function(e){if(!Yi(e))throw Error($(40));return e._reactRootContainer?(un(function(){Gi(null,null,e,!1,function(){e._reactRootContainer=null,e[or]=null})}),!0):!1};yt.unstable_batchedUpdates=_c;yt.unstable_renderSubtreeIntoContainer=function(e,t,r,s){if(!Yi(r))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return Gi(e,t,r,!1,s)};yt.version="18.3.1-next-f1338f8080-20240426";function sf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sf)}catch(e){console.error(e)}}sf(),sh.exports=yt;var Wc=sh.exports;const af=Ku(Wc);var uu=Wc;Hl.createRoot=uu.createRoot,Hl.hydrateRoot=uu.hydrateRoot;/**
41
+ * @remix-run/router v1.23.0
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},aa.apply(this,arguments)}var Er;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Er||(Er={}));const hu="popstate";function Vg(e){e===void 0&&(e={});function t(s,a){let{pathname:i,search:l,hash:o}=s.location;return $o("",{pathname:i,search:l,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(s,a){return typeof a=="string"?a:Di(a)}return Hg(t,r,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Wg(){return Math.random().toString(36).substr(2,8)}function mu(e,t){return{usr:e.state,key:e.key,idx:t}}function $o(e,t,r,s){return r===void 0&&(r=null),aa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hs(t):t,{state:r,key:t&&t.key||s||Wg()})}function Di(e){let{pathname:t="/",search:r="",hash:s=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function hs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function Hg(e,t,r,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:i=!1}=s,l=a.history,o=Er.Pop,c=null,d=m();d==null&&(d=0,l.replaceState(aa({},l.state,{idx:d}),""));function m(){return(l.state||{idx:null}).idx}function u(){o=Er.Pop;let b=m(),f=b==null?null:b-d;d=b,c&&c({action:o,location:v.location,delta:f})}function x(b,f){o=Er.Push;let p=$o(v.location,b,f);d=m()+1;let g=mu(p,d),j=v.createHref(p);try{l.pushState(g,"",j)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(j)}i&&c&&c({action:o,location:v.location,delta:1})}function w(b,f){o=Er.Replace;let p=$o(v.location,b,f);d=m();let g=mu(p,d),j=v.createHref(p);l.replaceState(g,"",j),i&&c&&c({action:o,location:v.location,delta:0})}function y(b){let f=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof b=="string"?b:Di(b);return p=p.replace(/ $/,"%20"),Re(f,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,f)}let v={get action(){return o},get location(){return e(a,l)},listen(b){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(hu,u),c=b,()=>{a.removeEventListener(hu,u),c=null}},createHref(b){return t(a,b)},createURL:y,encodeLocation(b){let f=y(b);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:x,replace:w,go(b){return l.go(b)}};return v}var fu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fu||(fu={}));function Kg(e,t,r){return r===void 0&&(r="/"),Qg(e,t,r)}function Qg(e,t,r,s){let a=typeof t=="string"?hs(t):t,i=Hc(a.pathname||"/",r);if(i==null)return null;let l=of(e);Yg(l);let o=null;for(let c=0;o==null&&c<l.length;++c){let d=iv(i);o=nv(l[c],d)}return o}function of(e,t,r,s){t===void 0&&(t=[]),r===void 0&&(r=[]),s===void 0&&(s="");let a=(i,l,o)=>{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};c.relativePath.startsWith("/")&&(Re(c.relativePath.startsWith(s),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(s.length));let d=_r([s,c.relativePath]),m=r.concat(c);i.children&&i.children.length>0&&(Re(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),of(i.children,t,m,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:tv(d,i.index),routesMeta:m})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))a(i,l);else for(let c of cf(i.path))a(i,l,c)}),t}function cf(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(s.length===0)return a?[i,""]:[i];let l=cf(s.join("/")),o=[];return o.push(...l.map(c=>c===""?i:[i,c].join("/"))),a&&o.push(...l),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function Yg(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rv(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}const Gg=/^:[\w-]+$/,Xg=3,Jg=2,Zg=1,qg=10,ev=-2,pu=e=>e==="*";function tv(e,t){let r=e.split("/"),s=r.length;return r.some(pu)&&(s+=ev),t&&(s+=Jg),r.filter(a=>!pu(a)).reduce((a,i)=>a+(Gg.test(i)?Xg:i===""?Zg:qg),s)}function rv(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function nv(e,t,r){let{routesMeta:s}=e,a={},i="/",l=[];for(let o=0;o<s.length;++o){let c=s[o],d=o===s.length-1,m=i==="/"?t:t.slice(i.length)||"/",u=sv({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},m),x=c.route;if(!u)return null;Object.assign(a,u.params),l.push({params:a,pathname:_r([i,u.pathname]),pathnameBase:dv(_r([i,u.pathnameBase])),route:x}),u.pathnameBase!=="/"&&(i=_r([i,u.pathnameBase]))}return l}function sv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=av(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:s.reduce((d,m,u)=>{let{paramName:x,isOptional:w}=m;if(x==="*"){let v=o[u]||"";l=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=o[u];return w&&!y?d[x]=void 0:d[x]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:l,pattern:e}}function av(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),lf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,c)=>(s.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function iv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Hc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}function lv(e,t){t===void 0&&(t="/");let{pathname:r,search:s="",hash:a=""}=typeof e=="string"?hs(e):e;return{pathname:r?r.startsWith("/")?r:ov(r,t):t,search:uv(s),hash:hv(a)}}function ov(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Ml(e,t,r,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function cv(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function df(e,t){let r=cv(e);return t?r.map((s,a)=>a===r.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function uf(e,t,r,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=hs(e):(a=aa({},e),Re(!a.pathname||!a.pathname.includes("?"),Ml("?","pathname","search",a)),Re(!a.pathname||!a.pathname.includes("#"),Ml("#","pathname","hash",a)),Re(!a.search||!a.search.includes("#"),Ml("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,o;if(l==null)o=r;else{let u=t.length-1;if(!s&&l.startsWith("..")){let x=l.split("/");for(;x[0]==="..";)x.shift(),u-=1;a.pathname=x.join("/")}o=u>=0?t[u]:"/"}let c=lv(a,o),d=l&&l!=="/"&&l.endsWith("/"),m=(i||l===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||m)&&(c.pathname+="/"),c}const _r=e=>e.join("/").replace(/\/\/+/g,"/"),dv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hf=["post","put","patch","delete"];new Set(hf);const fv=["get",...hf];new Set(fv);/**
50
+ * React Router v6.30.1
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},ia.apply(this,arguments)}const Kc=h.createContext(null),pv=h.createContext(null),vn=h.createContext(null),Xi=h.createContext(null),Hr=h.createContext({outlet:null,matches:[],isDataRoute:!1}),mf=h.createContext(null);function xv(e,t){let{relative:r}=t===void 0?{}:t;pa()||Re(!1);let{basename:s,navigator:a}=h.useContext(vn),{hash:i,pathname:l,search:o}=xf(e,{relative:r}),c=l;return s!=="/"&&(c=l==="/"?s:_r([s,l])),a.createHref({pathname:c,search:o,hash:i})}function pa(){return h.useContext(Xi)!=null}function xa(){return pa()||Re(!1),h.useContext(Xi).location}function ff(e){h.useContext(vn).static||h.useLayoutEffect(e)}function Ji(){let{isDataRoute:e}=h.useContext(Hr);return e?Pv():gv()}function gv(){pa()||Re(!1);let e=h.useContext(Kc),{basename:t,future:r,navigator:s}=h.useContext(vn),{matches:a}=h.useContext(Hr),{pathname:i}=xa(),l=JSON.stringify(df(a,r.v7_relativeSplatPath)),o=h.useRef(!1);return ff(()=>{o.current=!0}),h.useCallback(function(d,m){if(m===void 0&&(m={}),!o.current)return;if(typeof d=="number"){s.go(d);return}let u=uf(d,JSON.parse(l),i,m.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:_r([t,u.pathname])),(m.replace?s.replace:s.push)(u,m.state,m)},[t,s,l,i,e])}function pf(){let{matches:e}=h.useContext(Hr),t=e[e.length-1];return t?t.params:{}}function xf(e,t){let{relative:r}=t===void 0?{}:t,{future:s}=h.useContext(vn),{matches:a}=h.useContext(Hr),{pathname:i}=xa(),l=JSON.stringify(df(a,s.v7_relativeSplatPath));return h.useMemo(()=>uf(e,JSON.parse(l),i,r==="path"),[e,l,i,r])}function vv(e,t){return yv(e,t)}function yv(e,t,r,s){pa()||Re(!1);let{navigator:a}=h.useContext(vn),{matches:i}=h.useContext(Hr),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=xa(),m;if(t){var u;let b=typeof t=="string"?hs(t):t;c==="/"||(u=b.pathname)!=null&&u.startsWith(c)||Re(!1),m=b}else m=d;let x=m.pathname||"/",w=x;if(c!=="/"){let b=c.replace(/^\//,"").split("/");w="/"+x.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=Kg(e,{pathname:w}),v=kv(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:_r([c,a.encodeLocation?a.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:_r([c,a.encodeLocation?a.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,r,s);return t&&v?h.createElement(Xi.Provider,{value:{location:ia({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:Er.Pop}},v):v}function wv(){let e=Tv(),t=mv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:a},r):null,null)}const bv=h.createElement(wv,null);class jv extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?h.createElement(Hr.Provider,{value:this.props.routeContext},h.createElement(mf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nv(e){let{routeContext:t,match:r,children:s}=e,a=h.useContext(Kc);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),h.createElement(Hr.Provider,{value:t},s)}function kv(e,t,r,s){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),s===void 0&&(s=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,o=(a=r)==null?void 0:a.errors;if(o!=null){let m=l.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);m>=0||Re(!1),l=l.slice(0,Math.min(l.length,m+1))}let c=!1,d=-1;if(r&&s&&s.v7_partialHydration)for(let m=0;m<l.length;m++){let u=l[m];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(d=m),u.route.id){let{loaderData:x,errors:w}=r,y=u.route.loader&&x[u.route.id]===void 0&&(!w||w[u.route.id]===void 0);if(u.route.lazy||y){c=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((m,u,x)=>{let w,y=!1,v=null,b=null;r&&(w=o&&u.route.id?o[u.route.id]:void 0,v=u.route.errorElement||bv,c&&(d<0&&x===0?(zv("route-fallback"),y=!0,b=null):d===x&&(y=!0,b=u.route.hydrateFallbackElement||null)));let f=t.concat(l.slice(0,x+1)),p=()=>{let g;return w?g=v:y?g=b:u.route.Component?g=h.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=m,h.createElement(Nv,{match:u,routeContext:{outlet:m,matches:f,isDataRoute:r!=null},children:g})};return r&&(u.route.ErrorBoundary||u.route.errorElement||x===0)?h.createElement(jv,{location:r.location,revalidation:r.revalidation,component:v,error:w,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var gf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gf||{}),vf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vf||{});function Sv(e){let t=h.useContext(Kc);return t||Re(!1),t}function Cv(e){let t=h.useContext(pv);return t||Re(!1),t}function Ev(e){let t=h.useContext(Hr);return t||Re(!1),t}function yf(e){let t=Ev(),r=t.matches[t.matches.length-1];return r.route.id||Re(!1),r.route.id}function Tv(){var e;let t=h.useContext(mf),r=Cv(),s=yf();return t!==void 0?t:(e=r.errors)==null?void 0:e[s]}function Pv(){let{router:e}=Sv(gf.UseNavigateStable),t=yf(vf.UseNavigateStable),r=h.useRef(!1);return ff(()=>{r.current=!0}),h.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,ia({fromRouteId:t},i)))},[e,t])}const xu={};function zv(e,t,r){xu[e]||(xu[e]=!0)}function Dv(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function yr(e){Re(!1)}function Mv(e){let{basename:t="/",children:r=null,location:s,navigationType:a=Er.Pop,navigator:i,static:l=!1,future:o}=e;pa()&&Re(!1);let c=t.replace(/^\/*/,"/"),d=h.useMemo(()=>({basename:c,navigator:i,static:l,future:ia({v7_relativeSplatPath:!1},o)}),[c,o,i,l]);typeof s=="string"&&(s=hs(s));let{pathname:m="/",search:u="",hash:x="",state:w=null,key:y="default"}=s,v=h.useMemo(()=>{let b=Hc(m,c);return b==null?null:{location:{pathname:b,search:u,hash:x,state:w,key:y},navigationType:a}},[c,m,u,x,w,y,a]);return v==null?null:h.createElement(vn.Provider,{value:d},h.createElement(Xi.Provider,{children:r,value:v}))}function Rv(e){let{children:t,location:r}=e;return vv(Fo(t),r)}new Promise(()=>{});function Fo(e,t){t===void 0&&(t=[]);let r=[];return h.Children.forEach(e,(s,a)=>{if(!h.isValidElement(s))return;let i=[...t,a];if(s.type===h.Fragment){r.push.apply(r,Fo(s.props.children,i));return}s.type!==yr&&Re(!1),!s.props.index||!s.props.children||Re(!1);let l={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(l.children=Fo(s.props.children,i)),r.push(l)}),r}/**
59
+ * React Router DOM v6.30.1
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Uo.apply(this,arguments)}function Iv(e,t){if(e==null)return{};var r={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Lv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _v(e,t){return e.button===0&&(!t||t==="_self")&&!Lv(e)}const Ov=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Av="6";try{window.__reactRouterVersion=Av}catch{}const $v="startTransition",gu=qo[$v];function Fv(e){let{basename:t,children:r,future:s,window:a}=e,i=h.useRef();i.current==null&&(i.current=Vg({window:a,v5Compat:!0}));let l=i.current,[o,c]=h.useState({action:l.action,location:l.location}),{v7_startTransition:d}=s||{},m=h.useCallback(u=>{d&&gu?gu(()=>c(u)):c(u)},[c,d]);return h.useLayoutEffect(()=>l.listen(m),[l,m]),h.useEffect(()=>Dv(s),[s]),h.createElement(Mv,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:l,future:s})}const Uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qn=h.forwardRef(function(t,r){let{onClick:s,relative:a,reloadDocument:i,replace:l,state:o,target:c,to:d,preventScrollReset:m,viewTransition:u}=t,x=Iv(t,Ov),{basename:w}=h.useContext(vn),y,v=!1;if(typeof d=="string"&&Bv.test(d)&&(y=d,Uv))try{let g=new URL(window.location.href),j=d.startsWith("//")?new URL(g.protocol+d):new URL(d),N=Hc(j.pathname,w);j.origin===g.origin&&N!=null?d=N+j.search+j.hash:v=!0}catch{}let b=xv(d,{relative:a}),f=Vv(d,{replace:l,state:o,target:c,preventScrollReset:m,relative:a,viewTransition:u});function p(g){s&&s(g),g.defaultPrevented||f(g)}return h.createElement("a",Uo({},x,{href:y||b,onClick:v||i?s:p,ref:r,target:c}))});var vu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vu||(vu={}));var yu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yu||(yu={}));function Vv(e,t){let{target:r,replace:s,state:a,preventScrollReset:i,relative:l,viewTransition:o}=t===void 0?{}:t,c=Ji(),d=xa(),m=xf(e,{relative:l});return h.useCallback(u=>{if(_v(u,r)){u.preventDefault();let x=s!==void 0?s:Di(d)===Di(m);c(e,{replace:x,state:a,preventScrollReset:i,relative:l,viewTransition:o})}},[d,c,m,s,a,r,e,i,l,o])}function Wv(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const Hv=e=>{switch(e){case"success":return Yv;case"info":return Xv;case"warning":return Gv;case"error":return Jv;default:return null}},Kv=Array(12).fill(0),Qv=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},Kv.map((r,s)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Yv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Gv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Xv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Jv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Zv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),qv=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Bo=1;class e0{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:s,...a}=t,i=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Bo++,l=this.toasts.find(c=>c.id===i),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:s}),{...c,...t,id:i,dismissible:o,title:s}):c):this.addToast({title:s,...a,dismissible:o,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=s!==void 0,l;const o=a.then(async d=>{if(l=["resolve",d],F.isValidElement(d))i=!1,this.create({id:s,type:"default",message:d});else if(r0(d)&&!d.ok){i=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,x=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,y=typeof u=="object"&&!F.isValidElement(u)?u:{message:u};this.create({id:s,type:"error",description:x,...y})}else if(d instanceof Error){i=!1;const u=typeof r.error=="function"?await r.error(d):r.error,x=typeof r.description=="function"?await r.description(d):r.description,y=typeof u=="object"&&!F.isValidElement(u)?u:{message:u};this.create({id:s,type:"error",description:x,...y})}else if(r.success!==void 0){i=!1;const u=typeof r.success=="function"?await r.success(d):r.success,x=typeof r.description=="function"?await r.description(d):r.description,y=typeof u=="object"&&!F.isValidElement(u)?u:{message:u};this.create({id:s,type:"success",description:x,...y})}}).catch(async d=>{if(l=["reject",d],r.error!==void 0){i=!1;const m=typeof r.error=="function"?await r.error(d):r.error,u=typeof r.description=="function"?await r.description(d):r.description,w=typeof m=="object"&&!F.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:u,...w})}}).finally(()=>{i&&(this.dismiss(s),s=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((d,m)=>o.then(()=>l[0]==="reject"?m(l[1]):d(l[1])).catch(m));return typeof s!="string"&&typeof s!="number"?{unwrap:c}:Object.assign(s,{unwrap:c})},this.custom=(t,r)=>{const s=(r==null?void 0:r.id)||Bo++;return this.create({jsx:t(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const lt=new e0,t0=(e,t)=>{const r=(t==null?void 0:t.id)||Bo++;return lt.addToast({title:e,...t,id:r}),r},r0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",n0=t0,s0=()=>lt.toasts,a0=()=>lt.getActiveToasts(),L=Object.assign(n0,{success:lt.success,info:lt.info,warning:lt.warning,error:lt.error,custom:lt.custom,message:lt.message,promise:lt.promise,dismiss:lt.dismiss,loading:lt.loading},{getHistory:s0,getToasts:a0});Wv("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Fa(e){return e.label!==void 0}const i0=3,l0="24px",o0="16px",wu=4e3,c0=356,d0=14,u0=45,h0=200;function Bt(...e){return e.filter(Boolean).join(" ")}function m0(e){const[t,r]=e.split("-"),s=[];return t&&s.push(t),r&&s.push(r),s}const f0=e=>{var t,r,s,a,i,l,o,c,d;const{invert:m,toast:u,unstyled:x,interacting:w,setHeights:y,visibleToasts:v,heights:b,index:f,toasts:p,expanded:g,removeToast:j,defaultRichColors:N,closeButton:T,style:C,cancelButtonStyle:I,actionButtonStyle:G,className:U="",descriptionClassName:Z="",duration:H,position:q,gap:se,expandByDefault:ae,classNames:M,icons:V,closeButtonAriaLabel:S="Close toast"}=e,[A,_]=F.useState(null),[W,E]=F.useState(null),[z,R]=F.useState(!1),[k,B]=F.useState(!1),[Y,J]=F.useState(!1),[ne,de]=F.useState(!1),[Ie,at]=F.useState(!1),[hr,Qr]=F.useState(0),[Pt,O]=F.useState(0),Q=F.useRef(u.duration||H||wu),ue=F.useRef(null),Te=F.useRef(null),Yr=f===0,pe=f+1<=v,Ne=u.type,mr=u.dismissible!==!1,rl=u.className||"",nl=u.descriptionClassName||"",wn=F.useMemo(()=>b.findIndex(ee=>ee.toastId===u.id)||0,[b,u.id]),sl=F.useMemo(()=>{var ee;return(ee=u.closeButton)!=null?ee:T},[u.closeButton,T]),wa=F.useMemo(()=>u.duration||H||wu,[u.duration,H]),fs=F.useRef(0),fr=F.useRef(0),D=F.useRef(0),X=F.useRef(null),[re,Ae]=q.split("-"),it=F.useMemo(()=>b.reduce((ee,$e,Ye)=>Ye>=wn?ee:ee+$e.height,0),[b,wn]),ke=qv(),Jt=u.invert||m,al=Ne==="loading";fr.current=F.useMemo(()=>wn*se+it,[wn,it]),F.useEffect(()=>{Q.current=wa},[wa]),F.useEffect(()=>{R(!0)},[]),F.useEffect(()=>{const ee=Te.current;if(ee){const $e=ee.getBoundingClientRect().height;return O($e),y(Ye=>[{toastId:u.id,height:$e,position:u.position},...Ye]),()=>y(Ye=>Ye.filter(ft=>ft.toastId!==u.id))}},[y,u.id]),F.useLayoutEffect(()=>{if(!z)return;const ee=Te.current,$e=ee.style.height;ee.style.height="auto";const Ye=ee.getBoundingClientRect().height;ee.style.height=$e,O(Ye),y(ft=>ft.find(Be=>Be.toastId===u.id)?ft.map(Be=>Be.toastId===u.id?{...Be,height:Ye}:Be):[{toastId:u.id,height:Ye,position:u.position},...ft])},[z,u.title,u.description,y,u.id,u.jsx,u.action,u.cancel]);const pr=F.useCallback(()=>{B(!0),Qr(fr.current),y(ee=>ee.filter($e=>$e.toastId!==u.id)),setTimeout(()=>{j(u)},h0)},[u,j,y,fr]);F.useEffect(()=>{if(u.promise&&Ne==="loading"||u.duration===1/0||u.type==="loading")return;let ee;return g||w||ke?(()=>{if(D.current<fs.current){const ft=new Date().getTime()-fs.current;Q.current=Q.current-ft}D.current=new Date().getTime()})():(()=>{Q.current!==1/0&&(fs.current=new Date().getTime(),ee=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),pr()},Q.current))})(),()=>clearTimeout(ee)},[g,w,u,Ne,ke,pr]),F.useEffect(()=>{u.delete&&(pr(),u.onDismiss==null||u.onDismiss.call(u,u))},[pr,u.delete]);function pp(){var ee;if(V!=null&&V.loading){var $e;return F.createElement("div",{className:Bt(M==null?void 0:M.loader,u==null||($e=u.classNames)==null?void 0:$e.loader,"sonner-loader"),"data-visible":Ne==="loading"},V.loading)}return F.createElement(Qv,{className:Bt(M==null?void 0:M.loader,u==null||(ee=u.classNames)==null?void 0:ee.loader),visible:Ne==="loading"})}const xp=u.icon||(V==null?void 0:V[Ne])||Hv(Ne);var ed,td;return F.createElement("li",{tabIndex:0,ref:Te,className:Bt(U,rl,M==null?void 0:M.toast,u==null||(t=u.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[Ne],u==null||(r=u.classNames)==null?void 0:r[Ne]),"data-sonner-toast":"","data-rich-colors":(ed=u.richColors)!=null?ed:N,"data-styled":!(u.jsx||u.unstyled||x),"data-mounted":z,"data-promise":!!u.promise,"data-swiped":Ie,"data-removed":k,"data-visible":pe,"data-y-position":re,"data-x-position":Ae,"data-index":f,"data-front":Yr,"data-swiping":Y,"data-dismissible":mr,"data-type":Ne,"data-invert":Jt,"data-swipe-out":ne,"data-swipe-direction":W,"data-expanded":!!(g||ae&&z),"data-testid":u.testId,style:{"--index":f,"--toasts-before":f,"--z-index":p.length-f,"--offset":`${k?hr:fr.current}px`,"--initial-height":ae?"auto":`${Pt}px`,...C,...u.style},onDragEnd:()=>{J(!1),_(null),X.current=null},onPointerDown:ee=>{ee.button!==2&&(al||!mr||(ue.current=new Date,Qr(fr.current),ee.target.setPointerCapture(ee.pointerId),ee.target.tagName!=="BUTTON"&&(J(!0),X.current={x:ee.clientX,y:ee.clientY})))},onPointerUp:()=>{var ee,$e,Ye;if(ne||!mr)return;X.current=null;const ft=Number(((ee=Te.current)==null?void 0:ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ba=Number((($e=Te.current)==null?void 0:$e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Be=new Date().getTime()-((Ye=ue.current)==null?void 0:Ye.getTime()),bt=A==="x"?ft:ba,ja=Math.abs(bt)/Be;if(Math.abs(bt)>=u0||ja>.11){Qr(fr.current),u.onDismiss==null||u.onDismiss.call(u,u),E(A==="x"?ft>0?"right":"left":ba>0?"down":"up"),pr(),de(!0);return}else{var zt,Dt;(zt=Te.current)==null||zt.style.setProperty("--swipe-amount-x","0px"),(Dt=Te.current)==null||Dt.style.setProperty("--swipe-amount-y","0px")}at(!1),J(!1),_(null)},onPointerMove:ee=>{var $e,Ye,ft;if(!X.current||!mr||(($e=window.getSelection())==null?void 0:$e.toString().length)>0)return;const Be=ee.clientY-X.current.y,bt=ee.clientX-X.current.x;var ja;const zt=(ja=e.swipeDirections)!=null?ja:m0(q);!A&&(Math.abs(bt)>1||Math.abs(Be)>1)&&_(Math.abs(bt)>Math.abs(Be)?"x":"y");let Dt={x:0,y:0};const rd=Gr=>1/(1.5+Math.abs(Gr)/20);if(A==="y"){if(zt.includes("top")||zt.includes("bottom"))if(zt.includes("top")&&Be<0||zt.includes("bottom")&&Be>0)Dt.y=Be;else{const Gr=Be*rd(Be);Dt.y=Math.abs(Gr)<Math.abs(Be)?Gr:Be}}else if(A==="x"&&(zt.includes("left")||zt.includes("right")))if(zt.includes("left")&&bt<0||zt.includes("right")&&bt>0)Dt.x=bt;else{const Gr=bt*rd(bt);Dt.x=Math.abs(Gr)<Math.abs(bt)?Gr:bt}(Math.abs(Dt.x)>0||Math.abs(Dt.y)>0)&&at(!0),(Ye=Te.current)==null||Ye.style.setProperty("--swipe-amount-x",`${Dt.x}px`),(ft=Te.current)==null||ft.style.setProperty("--swipe-amount-y",`${Dt.y}px`)}},sl&&!u.jsx&&Ne!=="loading"?F.createElement("button",{"aria-label":S,"data-disabled":al,"data-close-button":!0,onClick:al||!mr?()=>{}:()=>{pr(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Bt(M==null?void 0:M.closeButton,u==null||(s=u.classNames)==null?void 0:s.closeButton)},(td=V==null?void 0:V.close)!=null?td:Zv):null,(Ne||u.icon||u.promise)&&u.icon!==null&&((V==null?void 0:V[Ne])!==null||u.icon)?F.createElement("div",{"data-icon":"",className:Bt(M==null?void 0:M.icon,u==null||(a=u.classNames)==null?void 0:a.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||pp():null,u.type!=="loading"?xp:null):null,F.createElement("div",{"data-content":"",className:Bt(M==null?void 0:M.content,u==null||(i=u.classNames)==null?void 0:i.content)},F.createElement("div",{"data-title":"",className:Bt(M==null?void 0:M.title,u==null||(l=u.classNames)==null?void 0:l.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?F.createElement("div",{"data-description":"",className:Bt(Z,nl,M==null?void 0:M.description,u==null||(o=u.classNames)==null?void 0:o.description)},typeof u.description=="function"?u.description():u.description):null),F.isValidElement(u.cancel)?u.cancel:u.cancel&&Fa(u.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||I,onClick:ee=>{Fa(u.cancel)&&mr&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,ee),pr())},className:Bt(M==null?void 0:M.cancelButton,u==null||(c=u.classNames)==null?void 0:c.cancelButton)},u.cancel.label):null,F.isValidElement(u.action)?u.action:u.action&&Fa(u.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||G,onClick:ee=>{Fa(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,ee),!ee.defaultPrevented&&pr())},className:Bt(M==null?void 0:M.actionButton,u==null||(d=u.classNames)==null?void 0:d.actionButton)},u.action.label):null)};function bu(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function p0(e,t){const r={};return[e,t].forEach((s,a)=>{const i=a===1,l=i?"--mobile-offset":"--offset",o=i?o0:l0;function c(d){["top","right","bottom","left"].forEach(m=>{r[`${l}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof s=="number"||typeof s=="string"?c(s):typeof s=="object"?["top","right","bottom","left"].forEach(d=>{s[d]===void 0?r[`${l}-${d}`]=o:r[`${l}-${d}`]=typeof s[d]=="number"?`${s[d]}px`:s[d]}):c(o)}),r}const x0=F.forwardRef(function(t,r){const{id:s,invert:a,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:o,closeButton:c,className:d,offset:m,mobileOffset:u,theme:x="light",richColors:w,duration:y,style:v,visibleToasts:b=i0,toastOptions:f,dir:p=bu(),gap:g=d0,icons:j,containerAriaLabel:N="Notifications"}=t,[T,C]=F.useState([]),I=F.useMemo(()=>s?T.filter(z=>z.toasterId===s):T.filter(z=>!z.toasterId),[T,s]),G=F.useMemo(()=>Array.from(new Set([i].concat(I.filter(z=>z.position).map(z=>z.position)))),[I,i]),[U,Z]=F.useState([]),[H,q]=F.useState(!1),[se,ae]=F.useState(!1),[M,V]=F.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=F.useRef(null),A=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=F.useRef(null),W=F.useRef(!1),E=F.useCallback(z=>{C(R=>{var k;return(k=R.find(B=>B.id===z.id))!=null&&k.delete||lt.dismiss(z.id),R.filter(({id:B})=>B!==z.id)})},[]);return F.useEffect(()=>lt.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{C(R=>R.map(k=>k.id===z.id?{...k,delete:!0}:k))});return}setTimeout(()=>{af.flushSync(()=>{C(R=>{const k=R.findIndex(B=>B.id===z.id);return k!==-1?[...R.slice(0,k),{...R[k],...z},...R.slice(k+1)]:[z,...R]})})})}),[T]),F.useEffect(()=>{if(x!=="system"){V(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:R})=>{V(R?"dark":"light")})}catch{z.addListener(({matches:k})=>{try{V(k?"dark":"light")}catch(B){console.error(B)}})}},[x]),F.useEffect(()=>{T.length<=1&&q(!1)},[T]),F.useEffect(()=>{const z=R=>{var k;if(l.every(J=>R[J]||R.code===J)){var Y;q(!0),(Y=S.current)==null||Y.focus()}R.code==="Escape"&&(document.activeElement===S.current||(k=S.current)!=null&&k.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[l]),F.useEffect(()=>{if(S.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,W.current=!1)}},[S.current]),F.createElement("section",{ref:r,"aria-label":`${N} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},G.map((z,R)=>{var k;const[B,Y]=z.split("-");return I.length?F.createElement("ol",{key:z,dir:p==="auto"?bu():p,tabIndex:-1,ref:S,className:d,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":B,"data-x-position":Y,style:{"--front-toast-height":`${((k=U[0])==null?void 0:k.height)||0}px`,"--width":`${c0}px`,"--gap":`${g}px`,...v,...p0(m,u)},onBlur:J=>{W.current&&!J.currentTarget.contains(J.relatedTarget)&&(W.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||W.current||(W.current=!0,_.current=J.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{se||q(!1)},onDragEnd:()=>q(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||ae(!0)},onPointerUp:()=>ae(!1)},I.filter(J=>!J.position&&R===0||J.position===z).map((J,ne)=>{var de,Ie;return F.createElement(f0,{key:J.id,icons:j,index:ne,toast:J,defaultRichColors:w,duration:(de=f==null?void 0:f.duration)!=null?de:y,className:f==null?void 0:f.className,descriptionClassName:f==null?void 0:f.descriptionClassName,invert:a,visibleToasts:b,closeButton:(Ie=f==null?void 0:f.closeButton)!=null?Ie:c,interacting:se,position:z,style:f==null?void 0:f.style,unstyled:f==null?void 0:f.unstyled,classNames:f==null?void 0:f.classNames,cancelButtonStyle:f==null?void 0:f.cancelButtonStyle,actionButtonStyle:f==null?void 0:f.actionButtonStyle,closeButtonAriaLabel:f==null?void 0:f.closeButtonAriaLabel,removeToast:E,toasts:I.filter(at=>at.position==J.position),heights:U.filter(at=>at.position==J.position),setHeights:Z,expandByDefault:o,gap:g,expanded:H,swipeDirections:t.swipeDirections})})):null}))});/**
68
+ * @license lucide-react v0.294.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */var g0={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"};/**
73
+ * @license lucide-react v0.294.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const v0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ie=(e,t)=>{const r=h.forwardRef(({color:s="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:c,...d},m)=>h.createElement("svg",{ref:m,...g0,width:a,height:a,stroke:s,strokeWidth:l?Number(i)*24/Number(a):i,className:["lucide",`lucide-${v0(e)}`,o].join(" "),...d},[...t.map(([u,x])=>h.createElement(u,x)),...Array.isArray(c)?c:[c]]));return r.displayName=`${e}`,r};/**
78
+ * @license lucide-react v0.294.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const Zt=ie("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
83
+ * @license lucide-react v0.294.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const Mi=ie("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
88
+ * @license lucide-react v0.294.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const Zr=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
93
+ * @license lucide-react v0.294.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const Vo=ie("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
98
+ * @license lucide-react v0.294.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const y0=ie("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
103
+ * @license lucide-react v0.294.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const We=ie("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
108
+ * @license lucide-react v0.294.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const wf=ie("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/**
113
+ * @license lucide-react v0.294.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const Le=ie("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
118
+ * @license lucide-react v0.294.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const w0=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
123
+ * @license lucide-react v0.294.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const bf=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
128
+ * @license lucide-react v0.294.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const b0=ie("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
133
+ * @license lucide-react v0.294.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const Ms=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
138
+ * @license lucide-react v0.294.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const ze=ie("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
143
+ * @license lucide-react v0.294.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const ga=ie("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
148
+ * @license lucide-react v0.294.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const Qc=ie("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
153
+ * @license lucide-react v0.294.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const jn=ie("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
158
+ * @license lucide-react v0.294.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const Ns=ie("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
163
+ * @license lucide-react v0.294.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const j0=ie("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
168
+ * @license lucide-react v0.294.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const N0=ie("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
173
+ * @license lucide-react v0.294.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const dt=ie("Loader",[["line",{x1:"12",x2:"12",y1:"2",y2:"6",key:"gza1u7"}],["line",{x1:"12",x2:"12",y1:"18",y2:"22",key:"1qhbu9"}],["line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76",key:"xae44r"}],["line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07",key:"bxnmvf"}],["line",{x1:"2",x2:"6",y1:"12",y2:"12",key:"89khin"}],["line",{x1:"18",x2:"22",y1:"12",y2:"12",key:"pb8tfm"}],["line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24",key:"1uxjnu"}],["line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93",key:"6duxfx"}]]);/**
178
+ * @license lucide-react v0.294.0 - ISC
179
+ *
180
+ * This source code is licensed under the ISC license.
181
+ * See the LICENSE file in the root directory of this source tree.
182
+ */const Rl=ie("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
183
+ * @license lucide-react v0.294.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ */const Lt=ie("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
188
+ * @license lucide-react v0.294.0 - ISC
189
+ *
190
+ * This source code is licensed under the ISC license.
191
+ * See the LICENSE file in the root directory of this source tree.
192
+ */const ss=ie("PenSquare",[["path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1qinfi"}],["path",{d:"M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",key:"w2jsv5"}]]);/**
193
+ * @license lucide-react v0.294.0 - ISC
194
+ *
195
+ * This source code is licensed under the ISC license.
196
+ * See the LICENSE file in the root directory of this source tree.
197
+ */const Fn=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
198
+ * @license lucide-react v0.294.0 - ISC
199
+ *
200
+ * This source code is licensed under the ISC license.
201
+ * See the LICENSE file in the root directory of this source tree.
202
+ */const ju=ie("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/**
203
+ * @license lucide-react v0.294.0 - ISC
204
+ *
205
+ * This source code is licensed under the ISC license.
206
+ * See the LICENSE file in the root directory of this source tree.
207
+ */const Nu=ie("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
208
+ * @license lucide-react v0.294.0 - ISC
209
+ *
210
+ * This source code is licensed under the ISC license.
211
+ * See the LICENSE file in the root directory of this source tree.
212
+ */const hn=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
213
+ * @license lucide-react v0.294.0 - ISC
214
+ *
215
+ * This source code is licensed under the ISC license.
216
+ * See the LICENSE file in the root directory of this source tree.
217
+ */const ku=ie("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
218
+ * @license lucide-react v0.294.0 - ISC
219
+ *
220
+ * This source code is licensed under the ISC license.
221
+ * See the LICENSE file in the root directory of this source tree.
222
+ */const Yn=ie("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"}]]);/**
223
+ * @license lucide-react v0.294.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ */const qt=ie("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
228
+ * @license lucide-react v0.294.0 - ISC
229
+ *
230
+ * This source code is licensed under the ISC license.
231
+ * See the LICENSE file in the root directory of this source tree.
232
+ */const k0=ie("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
233
+ * @license lucide-react v0.294.0 - ISC
234
+ *
235
+ * This source code is licensed under the ISC license.
236
+ * See the LICENSE file in the root directory of this source tree.
237
+ */const an=ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
238
+ * @license lucide-react v0.294.0 - ISC
239
+ *
240
+ * This source code is licensed under the ISC license.
241
+ * See the LICENSE file in the root directory of this source tree.
242
+ */const Or=ie("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
243
+ * @license lucide-react v0.294.0 - ISC
244
+ *
245
+ * This source code is licensed under the ISC license.
246
+ * See the LICENSE file in the root directory of this source tree.
247
+ */const Su=ie("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
248
+ * @license lucide-react v0.294.0 - ISC
249
+ *
250
+ * This source code is licensed under the ISC license.
251
+ * See the LICENSE file in the root directory of this source tree.
252
+ */const xe=ie("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
253
+ * @license lucide-react v0.294.0 - ISC
254
+ *
255
+ * This source code is licensed under the ISC license.
256
+ * See the LICENSE file in the root directory of this source tree.
257
+ */const qr=ie("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
258
+ * @license lucide-react v0.294.0 - ISC
259
+ *
260
+ * This source code is licensed under the ISC license.
261
+ * See the LICENSE file in the root directory of this source tree.
262
+ */const we=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
263
+ * @license lucide-react v0.294.0 - ISC
264
+ *
265
+ * This source code is licensed under the ISC license.
266
+ * See the LICENSE file in the root directory of this source tree.
267
+ */const si=ie("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function Cu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mn(...e){return t=>{let r=!1;const s=e.map(a=>{const i=Cu(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():Cu(e[a],null)}}}}function yn(...e){return h.useCallback(mn(...e),e)}function Yc(e){const t=C0(e),r=h.forwardRef((s,a)=>{const{children:i,...l}=s,o=h.Children.toArray(i),c=o.find(T0);if(c){const d=c.props.children,m=o.map(u=>u===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:u);return n.jsx(t,{...l,ref:a,children:h.isValidElement(d)?h.cloneElement(d,void 0,m):null})}return n.jsx(t,{...l,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}var S0=Yc("Slot");function C0(e){const t=h.forwardRef((r,s)=>{const{children:a,...i}=r;if(h.isValidElement(a)){const l=z0(a),o=P0(i,a.props);return a.type!==h.Fragment&&(o.ref=s?mn(s,l):l),h.cloneElement(a,o)}return h.Children.count(a)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var E0=Symbol("radix.slottable");function T0(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===E0}function P0(e,t){const r={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?r[s]=(...o)=>{const c=i(...o);return a(...o),c}:a&&(r[s]=a):s==="style"?r[s]={...a,...i}:s==="className"&&(r[s]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function z0(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function jf(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=jf(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Nf(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=jf(e))&&(s&&(s+=" "),s+=t);return s}const Eu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tu=Nf,kf=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return Tu(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=t,l=Object.keys(a).map(d=>{const m=r==null?void 0:r[d],u=i==null?void 0:i[d];if(m===null)return null;const x=Eu(m)||Eu(u);return a[d][x]}),o=r&&Object.entries(r).reduce((d,m)=>{let[u,x]=m;return x===void 0||(d[u]=x),d},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((d,m)=>{let{class:u,className:x,...w}=m;return Object.entries(w).every(y=>{let[v,b]=y;return Array.isArray(b)?b.includes({...i,...o}[v]):{...i,...o}[v]===b})?[...d,u,x]:d},[]);return Tu(e,l,c,r==null?void 0:r.class,r==null?void 0:r.className)},Gc="-",D0=e=>{const t=R0(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{const o=l.split(Gc);return o[0]===""&&o.length!==1&&o.shift(),Sf(o,t)||M0(l)},getConflictingClassGroupIds:(l,o)=>{const c=r[l]||[];return o&&s[l]?[...c,...s[l]]:c}}},Sf=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),a=s?Sf(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Gc);return(l=t.validators.find(({validator:o})=>o(i)))==null?void 0:l.classGroupId},Pu=/^\[(.+)\]$/,M0=e=>{if(Pu.test(e)){const t=Pu.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},R0=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return L0(Object.entries(e.classGroups),r).forEach(([i,l])=>{Wo(l,s,i,t)}),s},Wo=(e,t,r,s)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:zu(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(I0(a)){Wo(a(s),t,r,s);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,l])=>{Wo(l,zu(t,i),r,s)})})},zu=(e,t)=>{let r=e;return t.split(Gc).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},I0=e=>e.isThemeGetter,L0=(e,t)=>t?e.map(([r,s])=>{const a=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,o])=>[t+l,o])):i);return[r,a]}):e,_0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const a=(i,l)=>{r.set(i,l),t++,t>e&&(t=0,s=r,r=new Map)};return{get(i){let l=r.get(i);if(l!==void 0)return l;if((l=s.get(i))!==void 0)return a(i,l),l},set(i,l){r.has(i)?r.set(i,l):a(i,l)}}},Cf="!",O0=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,a=t[0],i=t.length,l=o=>{const c=[];let d=0,m=0,u;for(let b=0;b<o.length;b++){let f=o[b];if(d===0){if(f===a&&(s||o.slice(b,b+i)===t)){c.push(o.slice(m,b)),m=b+i;continue}if(f==="/"){u=b;continue}}f==="["?d++:f==="]"&&d--}const x=c.length===0?o:o.substring(m),w=x.startsWith(Cf),y=w?x.substring(1):x,v=u&&u>m?u-m:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:v}};return r?o=>r({className:o,parseClassName:l}):l},A0=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},$0=e=>({cache:_0(e.cacheSize),parseClassName:O0(e),...D0(e)}),F0=/\s+/,U0=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a}=t,i=[],l=e.trim().split(F0);let o="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{modifiers:m,hasImportantModifier:u,baseClassName:x,maybePostfixModifierPosition:w}=r(d);let y=!!w,v=s(y?x.substring(0,w):x);if(!v){if(!y){o=d+(o.length>0?" "+o:o);continue}if(v=s(x),!v){o=d+(o.length>0?" "+o:o);continue}y=!1}const b=A0(m).join(":"),f=u?b+Cf:b,p=f+v;if(i.includes(p))continue;i.push(p);const g=a(v,y);for(let j=0;j<g.length;++j){const N=g[j];i.push(f+N)}o=d+(o.length>0?" "+o:o)}return o};function B0(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ef(t))&&(s&&(s+=" "),s+=r);return s}const Ef=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=Ef(e[s]))&&(r&&(r+=" "),r+=t);return r};function V0(e,...t){let r,s,a,i=l;function l(c){const d=t.reduce((m,u)=>u(m),e());return r=$0(d),s=r.cache.get,a=r.cache.set,i=o,o(c)}function o(c){const d=s(c);if(d)return d;const m=U0(c,r);return a(c,m),m}return function(){return i(B0.apply(null,arguments))}}const ve=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Tf=/^\[(?:([a-z-]+):)?(.+)\]$/i,W0=/^\d+\/\d+$/,H0=new Set(["px","full","screen"]),K0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q0=/\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$/,Y0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,G0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,er=e=>Gn(e)||H0.has(e)||W0.test(e),gr=e=>ms(e,"length",sy),Gn=e=>!!e&&!Number.isNaN(Number(e)),Il=e=>ms(e,"number",Gn),ks=e=>!!e&&Number.isInteger(Number(e)),J0=e=>e.endsWith("%")&&Gn(e.slice(0,-1)),te=e=>Tf.test(e),vr=e=>K0.test(e),Z0=new Set(["length","size","percentage"]),q0=e=>ms(e,Z0,Pf),ey=e=>ms(e,"position",Pf),ty=new Set(["image","url"]),ry=e=>ms(e,ty,iy),ny=e=>ms(e,"",ay),Ss=()=>!0,ms=(e,t,r)=>{const s=Tf.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},sy=e=>Q0.test(e)&&!Y0.test(e),Pf=()=>!1,ay=e=>G0.test(e),iy=e=>X0.test(e),ly=()=>{const e=ve("colors"),t=ve("spacing"),r=ve("blur"),s=ve("brightness"),a=ve("borderColor"),i=ve("borderRadius"),l=ve("borderSpacing"),o=ve("borderWidth"),c=ve("contrast"),d=ve("grayscale"),m=ve("hueRotate"),u=ve("invert"),x=ve("gap"),w=ve("gradientColorStops"),y=ve("gradientColorStopPositions"),v=ve("inset"),b=ve("margin"),f=ve("opacity"),p=ve("padding"),g=ve("saturate"),j=ve("scale"),N=ve("sepia"),T=ve("skew"),C=ve("space"),I=ve("translate"),G=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",te,t],H=()=>[te,t],q=()=>["",er,gr],se=()=>["auto",Gn,te],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",te],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Gn,te];return{cacheSize:500,separator:":",theme:{colors:[Ss],spacing:[er,gr],blur:["none","",vr,te],brightness:W(),borderColor:[e],borderRadius:["none","","full",vr,te],borderSpacing:H(),borderWidth:q(),contrast:W(),grayscale:A(),hueRotate:W(),invert:A(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[J0,gr],inset:Z(),margin:Z(),opacity:W(),padding:H(),saturate:W(),scale:W(),sepia:A(),skew:W(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[vr]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:[...ae(),te]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ks,te]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",ks,te]}],"grid-cols":[{"grid-cols":[Ss]}],"col-start-end":[{col:["auto",{span:["full",ks,te]},te]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[Ss]}],"row-start-end":[{row:["auto",{span:[ks,te]},te]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...S()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...S(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...S(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[vr]},vr]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vr,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Il]}],"font-family":[{font:[Ss]}],"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",te]}],"line-clamp":[{"line-clamp":["none",Gn,Il]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",er,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",er,gr]}],"underline-offset":[{"underline-offset":["auto",er,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],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",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),ey]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",q0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ry]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:M()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[er,te]}],"outline-w":[{outline:[er,gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[er,gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vr,ny]}],"shadow-color":[{shadow:[Ss]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",vr,te]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[u]}],saturate:[{saturate:[g]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[ks,te]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],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",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[er,gr,Il]}],stroke:[{stroke:[e,"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"]}}},oy=V0(ly);function Kr(...e){return oy(Nf(e))}const cy=kf("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-white text-black hover:bg-white shadow",destructive:"bg-red-500 text-white hover:bg-red-600 shadow",outline:"border border-white bg-black hover:bg-black hover:text-white",secondary:"bg-black text-white hover:bg-black shadow border border-white",ghost:"hover:bg-black text-white hover:text-white",link:"text-white underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),P=h.forwardRef(({className:e,variant:t,size:r,asChild:s=!1,...a},i)=>{const l=s?S0:"button";return n.jsx(l,{className:Kr(cy({variant:t,size:r,className:e})),ref:i,...a})});P.displayName="Button";const dy=kf("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-white text-black hover:bg-white",secondary:"border-transparent bg-gray-800 text-white hover:bg-gray-800 border border-gray-600",destructive:"border-transparent bg-red-500 text-white hover:bg-red-600",outline:"text-gray-300 border-gray-600",success:"border-transparent bg-green-900 text-green-300",warning:"border-transparent bg-yellow-900 text-yellow-300",error:"border-transparent bg-red-900 text-red-300",info:"border-transparent bg-gray-800 text-white border border-gray-600"}},defaultVariants:{variant:"default"}});function oe({className:e,variant:t,...r}){return n.jsx("div",{className:Kr(dy({variant:t}),e),...r})}var Du=1,uy=.9,hy=.8,my=.17,Ll=.1,_l=.999,fy=.9999,py=.99,xy=/[\\\/_+.#"@\[\(\{&]/,gy=/[\\\/_+.#"@\[\(\{&]/g,vy=/[\s-]/,zf=/[\s-]/g;function Ho(e,t,r,s,a,i,l){if(i===t.length)return a===e.length?Du:py;var o=`${a},${i}`;if(l[o]!==void 0)return l[o];for(var c=s.charAt(i),d=r.indexOf(c,a),m=0,u,x,w,y;d>=0;)u=Ho(e,t,r,s,d+1,i+1,l),u>m&&(d===a?u*=Du:xy.test(e.charAt(d-1))?(u*=hy,w=e.slice(a,d-1).match(gy),w&&a>0&&(u*=Math.pow(_l,w.length))):vy.test(e.charAt(d-1))?(u*=uy,y=e.slice(a,d-1).match(zf),y&&a>0&&(u*=Math.pow(_l,y.length))):(u*=my,a>0&&(u*=Math.pow(_l,d-a))),e.charAt(d)!==t.charAt(i)&&(u*=fy)),(u<Ll&&r.charAt(d-1)===s.charAt(i+1)||s.charAt(i+1)===s.charAt(i)&&r.charAt(d-1)!==s.charAt(i))&&(x=Ho(e,t,r,s,d+1,i+2,l),x*Ll>u&&(u=x*Ll)),u>m&&(m=u),d=r.indexOf(c,d+1);return l[o]=m,m}function Mu(e){return e.toLowerCase().replace(zf," ")}function yy(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Ho(e,t,Mu(e),Mu(t),0,0,{})}function Ar(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function wy(e,t){const r=h.createContext(t),s=i=>{const{children:l,...o}=i,c=h.useMemo(()=>o,Object.values(o));return n.jsx(r.Provider,{value:c,children:l})};s.displayName=e+"Provider";function a(i){const l=h.useContext(r);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,a]}function by(e,t=[]){let r=[];function s(i,l){const o=h.createContext(l),c=r.length;r=[...r,l];const d=u=>{var f;const{scope:x,children:w,...y}=u,v=((f=x==null?void 0:x[e])==null?void 0:f[c])||o,b=h.useMemo(()=>y,Object.values(y));return n.jsx(v.Provider,{value:b,children:w})};d.displayName=i+"Provider";function m(u,x){var v;const w=((v=x==null?void 0:x[e])==null?void 0:v[c])||o,y=h.useContext(w);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[d,m]}const a=()=>{const i=r.map(l=>h.createContext(l));return function(o){const c=(o==null?void 0:o[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return a.scopeName=e,[s,jy(a,...t)]}function jy(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const l=s.reduce((o,{useScope:c,scopeName:d})=>{const u=c(i)[`__scope${d}`];return{...o,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}var la=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Ny=qo[" useId ".trim().toString()]||(()=>{}),ky=0;function ir(e){const[t,r]=h.useState(Ny());return la(()=>{r(s=>s??String(ky++))},[e]),t?`radix-${t}`:""}var Sy=qo[" useInsertionEffect ".trim().toString()]||la;function Cy({prop:e,defaultProp:t,onChange:r=()=>{},caller:s}){const[a,i,l]=Ey({defaultProp:t,onChange:r}),o=e!==void 0,c=o?e:a;{const m=h.useRef(e!==void 0);h.useEffect(()=>{const u=m.current;u!==o&&console.warn(`${s} is changing from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=o},[o,s])}const d=h.useCallback(m=>{var u;if(o){const x=Ty(m)?m(e):m;x!==e&&((u=l.current)==null||u.call(l,x))}else i(m)},[o,e,i,l]);return[c,d]}function Ey({defaultProp:e,onChange:t}){const[r,s]=h.useState(e),a=h.useRef(r),i=h.useRef(t);return Sy(()=>{i.current=t},[t]),h.useEffect(()=>{var l;a.current!==r&&((l=i.current)==null||l.call(i,r),a.current=r)},[r,a]),[r,s,i]}function Ty(e){return typeof e=="function"}var Py=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=Py.reduce((e,t)=>{const r=Yc(`Primitive.${t}`),s=h.forwardRef((a,i)=>{const{asChild:l,...o}=a,c=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...o,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function zy(e,t){e&&Wc.flushSync(()=>e.dispatchEvent(t))}function oa(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var s;return(s=t.current)==null?void 0:s.call(t,...r)},[])}function Dy(e,t=globalThis==null?void 0:globalThis.document){const r=oa(e);h.useEffect(()=>{const s=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[r,t])}var My="DismissableLayer",Ko="dismissableLayer.update",Ry="dismissableLayer.pointerDownOutside",Iy="dismissableLayer.focusOutside",Ru,Df=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mf=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:o,...c}=e,d=h.useContext(Df),[m,u]=h.useState(null),x=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=h.useState({}),y=yn(t,C=>u(C)),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),f=v.indexOf(b),p=m?v.indexOf(m):-1,g=d.layersWithOutsidePointerEventsDisabled.size>0,j=p>=f,N=Oy(C=>{const I=C.target,G=[...d.branches].some(U=>U.contains(I));!j||G||(a==null||a(C),l==null||l(C),C.defaultPrevented||o==null||o())},x),T=Ay(C=>{const I=C.target;[...d.branches].some(U=>U.contains(I))||(i==null||i(C),l==null||l(C),C.defaultPrevented||o==null||o())},x);return Dy(C=>{p===d.layers.size-1&&(s==null||s(C),!C.defaultPrevented&&o&&(C.preventDefault(),o()))},x),h.useEffect(()=>{if(m)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ru=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),Iu(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Ru)}},[m,x,r,d]),h.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),Iu())},[m,d]),h.useEffect(()=>{const C=()=>w({});return document.addEventListener(Ko,C),()=>document.removeEventListener(Ko,C)},[]),n.jsx(Qe.div,{...c,ref:y,style:{pointerEvents:g?j?"auto":"none":void 0,...e.style},onFocusCapture:Ar(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ar(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ar(e.onPointerDownCapture,N.onPointerDownCapture)})});Mf.displayName=My;var Ly="DismissableLayerBranch",_y=h.forwardRef((e,t)=>{const r=h.useContext(Df),s=h.useRef(null),a=yn(t,s);return h.useEffect(()=>{const i=s.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),n.jsx(Qe.div,{...e,ref:a})});_y.displayName=Ly;function Oy(e,t=globalThis==null?void 0:globalThis.document){const r=oa(e),s=h.useRef(!1),a=h.useRef(()=>{});return h.useEffect(()=>{const i=o=>{if(o.target&&!s.current){let c=function(){Rf(Ry,r,d,{discrete:!0})};const d={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>s.current=!0}}function Ay(e,t=globalThis==null?void 0:globalThis.document){const r=oa(e),s=h.useRef(!1);return h.useEffect(()=>{const a=i=>{i.target&&!s.current&&Rf(Iy,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Iu(){const e=new CustomEvent(Ko);document.dispatchEvent(e)}function Rf(e,t,r,{discrete:s}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),s?zy(a,i):a.dispatchEvent(i)}var Ol="focusScope.autoFocusOnMount",Al="focusScope.autoFocusOnUnmount",Lu={bubbles:!1,cancelable:!0},$y="FocusScope",If=h.forwardRef((e,t)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[o,c]=h.useState(null),d=oa(a),m=oa(i),u=h.useRef(null),x=yn(t,v=>c(v)),w=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(s){let v=function(g){if(w.paused||!o)return;const j=g.target;o.contains(j)?u.current=j:wr(u.current,{select:!0})},b=function(g){if(w.paused||!o)return;const j=g.relatedTarget;j!==null&&(o.contains(j)||wr(u.current,{select:!0}))},f=function(g){if(document.activeElement===document.body)for(const N of g)N.removedNodes.length>0&&wr(o)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const p=new MutationObserver(f);return o&&p.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),p.disconnect()}}},[s,o,w.paused]),h.useEffect(()=>{if(o){Ou.add(w);const v=document.activeElement;if(!o.contains(v)){const f=new CustomEvent(Ol,Lu);o.addEventListener(Ol,d),o.dispatchEvent(f),f.defaultPrevented||(Fy(Hy(Lf(o)),{select:!0}),document.activeElement===v&&wr(o))}return()=>{o.removeEventListener(Ol,d),setTimeout(()=>{const f=new CustomEvent(Al,Lu);o.addEventListener(Al,m),o.dispatchEvent(f),f.defaultPrevented||wr(v??document.body,{select:!0}),o.removeEventListener(Al,m),Ou.remove(w)},0)}}},[o,d,m,w]);const y=h.useCallback(v=>{if(!r&&!s||w.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,f=document.activeElement;if(b&&f){const p=v.currentTarget,[g,j]=Uy(p);g&&j?!v.shiftKey&&f===j?(v.preventDefault(),r&&wr(g,{select:!0})):v.shiftKey&&f===g&&(v.preventDefault(),r&&wr(j,{select:!0})):f===p&&v.preventDefault()}},[r,s,w.paused]);return n.jsx(Qe.div,{tabIndex:-1,...l,ref:x,onKeyDown:y})});If.displayName=$y;function Fy(e,{select:t=!1}={}){const r=document.activeElement;for(const s of e)if(wr(s,{select:t}),document.activeElement!==r)return}function Uy(e){const t=Lf(e),r=_u(t,e),s=_u(t.reverse(),e);return[r,s]}function Lf(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _u(e,t){for(const r of e)if(!By(r,{upTo:t}))return r}function By(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Vy(e){return e instanceof HTMLInputElement&&"select"in e}function wr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Vy(e)&&t&&e.select()}}var Ou=Wy();function Wy(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Au(e,t),e.unshift(t)},remove(t){var r;e=Au(e,t),(r=e[0])==null||r.resume()}}}function Au(e,t){const r=[...e],s=r.indexOf(t);return s!==-1&&r.splice(s,1),r}function Hy(e){return e.filter(t=>t.tagName!=="A")}var Ky="Portal",_f=h.forwardRef((e,t)=>{var o;const{container:r,...s}=e,[a,i]=h.useState(!1);la(()=>i(!0),[]);const l=r||a&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return l?af.createPortal(n.jsx(Qe.div,{...s,ref:t}),l):null});_f.displayName=Ky;function Qy(e,t){return h.useReducer((r,s)=>t[r][s]??r,e)}var Zi=e=>{const{present:t,children:r}=e,s=Yy(t),a=typeof r=="function"?r({present:s.isPresent}):h.Children.only(r),i=yn(s.ref,Gy(a));return typeof r=="function"||s.isPresent?h.cloneElement(a,{ref:i}):null};Zi.displayName="Presence";function Yy(e){const[t,r]=h.useState(),s=h.useRef(null),a=h.useRef(e),i=h.useRef("none"),l=e?"mounted":"unmounted",[o,c]=Qy(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=Ua(s.current);i.current=o==="mounted"?d:"none"},[o]),la(()=>{const d=s.current,m=a.current;if(m!==e){const x=i.current,w=Ua(d);e?c("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(m&&x!==w?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),la(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,u=w=>{const v=Ua(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&v&&(c("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},x=w=>{w.target===t&&(i.current=Ua(s.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:h.useCallback(d=>{s.current=d?getComputedStyle(d):null,r(d)},[])}}function Ua(e){return(e==null?void 0:e.animationName)||"none"}function Gy(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $l=0;function Xy(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$u()),document.body.insertAdjacentElement("beforeend",e[1]??$u()),$l++,()=>{$l===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$l--}},[])}function $u(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Yt=function(){return Yt=Object.assign||function(t){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Yt.apply(this,arguments)};function Of(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(r[s[a]]=e[s[a]]);return r}function Jy(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,i;s<a;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}var ai="right-scroll-bar-position",ii="width-before-scroll-bar",Zy="with-scroll-bars-hidden",qy="--removed-body-scroll-bar-size";function Fl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ew(e,t){var r=h.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(s){var a=r.value;a!==s&&(r.value=s,r.callback(s,a))}}}})[0];return r.callback=t,r.facade}var tw=typeof window<"u"?h.useLayoutEffect:h.useEffect,Fu=new WeakMap;function rw(e,t){var r=ew(null,function(s){return e.forEach(function(a){return Fl(a,s)})});return tw(function(){var s=Fu.get(r);if(s){var a=new Set(s),i=new Set(e),l=r.current;a.forEach(function(o){i.has(o)||Fl(o,null)}),i.forEach(function(o){a.has(o)||Fl(o,l)})}Fu.set(r,e)},[e]),r}function nw(e){return e}function sw(e,t){t===void 0&&(t=nw);var r=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var l=t(i,s);return r.push(l),function(){r=r.filter(function(o){return o!==l})}},assignSyncMedium:function(i){for(s=!0;r.length;){var l=r;r=[],l.forEach(i)}r={push:function(o){return i(o)},filter:function(){return r}}},assignMedium:function(i){s=!0;var l=[];if(r.length){var o=r;r=[],o.forEach(i),l=r}var c=function(){var m=l;l=[],m.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(m){l.push(m),d()},filter:function(m){return l=l.filter(m),r}}}};return a}function aw(e){e===void 0&&(e={});var t=sw(null);return t.options=Yt({async:!0,ssr:!1},e),t}var Af=function(e){var t=e.sideCar,r=Of(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return h.createElement(s,Yt({},r))};Af.isSideCarExport=!0;function iw(e,t){return e.useMedium(t),Af}var $f=aw(),Ul=function(){},qi=h.forwardRef(function(e,t){var r=h.useRef(null),s=h.useState({onScrollCapture:Ul,onWheelCapture:Ul,onTouchMoveCapture:Ul}),a=s[0],i=s[1],l=e.forwardProps,o=e.children,c=e.className,d=e.removeScrollBar,m=e.enabled,u=e.shards,x=e.sideCar,w=e.noRelative,y=e.noIsolation,v=e.inert,b=e.allowPinchZoom,f=e.as,p=f===void 0?"div":f,g=e.gapMode,j=Of(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=x,T=rw([r,t]),C=Yt(Yt({},j),a);return h.createElement(h.Fragment,null,m&&h.createElement(N,{sideCar:$f,removeScrollBar:d,shards:u,noRelative:w,noIsolation:y,inert:v,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:g}),l?h.cloneElement(h.Children.only(o),Yt(Yt({},C),{ref:T})):h.createElement(p,Yt({},C,{className:c,ref:T}),o))});qi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qi.classNames={fullWidth:ii,zeroRight:ai};var lw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ow(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lw();return t&&e.setAttribute("nonce",t),e}function cw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uw=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ow())&&(cw(t,r),dw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hw=function(){var e=uw();return function(t,r){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ff=function(){var e=hw(),t=function(r){var s=r.styles,a=r.dynamic;return e(s,a),null};return t},mw={left:0,top:0,right:0,gap:0},Bl=function(e){return parseInt(e||"",10)||0},fw=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Bl(r),Bl(s),Bl(a)]},pw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mw;var t=fw(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-r+t[2]-t[0])}},xw=Ff(),Xn="data-scroll-locked",gw=function(e,t,r,s){var a=e.left,i=e.top,l=e.right,o=e.gap;return r===void 0&&(r="margin"),`
268
+ .`.concat(Zy,` {
269
+ overflow: hidden `).concat(s,`;
270
+ padding-right: `).concat(o,"px ").concat(s,`;
271
+ }
272
+ body[`).concat(Xn,`] {
273
+ overflow: hidden `).concat(s,`;
274
+ overscroll-behavior: contain;
275
+ `).concat([t&&"position: relative ".concat(s,";"),r==="margin"&&`
276
+ padding-left: `.concat(a,`px;
277
+ padding-top: `).concat(i,`px;
278
+ padding-right: `).concat(l,`px;
279
+ margin-left:0;
280
+ margin-top:0;
281
+ margin-right: `).concat(o,"px ").concat(s,`;
282
+ `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(s,";")].filter(Boolean).join(""),`
283
+ }
284
+
285
+ .`).concat(ai,` {
286
+ right: `).concat(o,"px ").concat(s,`;
287
+ }
288
+
289
+ .`).concat(ii,` {
290
+ margin-right: `).concat(o,"px ").concat(s,`;
291
+ }
292
+
293
+ .`).concat(ai," .").concat(ai,` {
294
+ right: 0 `).concat(s,`;
295
+ }
296
+
297
+ .`).concat(ii," .").concat(ii,` {
298
+ margin-right: 0 `).concat(s,`;
299
+ }
300
+
301
+ body[`).concat(Xn,`] {
302
+ `).concat(qy,": ").concat(o,`px;
303
+ }
304
+ `)},Uu=function(){var e=parseInt(document.body.getAttribute(Xn)||"0",10);return isFinite(e)?e:0},vw=function(){h.useEffect(function(){return document.body.setAttribute(Xn,(Uu()+1).toString()),function(){var e=Uu()-1;e<=0?document.body.removeAttribute(Xn):document.body.setAttribute(Xn,e.toString())}},[])},yw=function(e){var t=e.noRelative,r=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;vw();var i=h.useMemo(function(){return pw(a)},[a]);return h.createElement(xw,{styles:gw(i,!t,a,r?"":"!important")})},Qo=!1;if(typeof window<"u")try{var Ba=Object.defineProperty({},"passive",{get:function(){return Qo=!0,!0}});window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{Qo=!1}var Nn=Qo?{passive:!1}:!1,ww=function(e){return e.tagName==="TEXTAREA"},Uf=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ww(e)&&r[t]==="visible")},bw=function(e){return Uf(e,"overflowY")},jw=function(e){return Uf(e,"overflowX")},Bu=function(e,t){var r=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=Bf(e,s);if(a){var i=Vf(e,s),l=i[1],o=i[2];if(l>o)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},Nw=function(e){var t=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[t,r,s]},kw=function(e){var t=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[t,r,s]},Bf=function(e,t){return e==="v"?bw(t):jw(t)},Vf=function(e,t){return e==="v"?Nw(t):kw(t)},Sw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cw=function(e,t,r,s,a){var i=Sw(e,window.getComputedStyle(t).direction),l=i*s,o=r.target,c=t.contains(o),d=!1,m=l>0,u=0,x=0;do{if(!o)break;var w=Vf(e,o),y=w[0],v=w[1],b=w[2],f=v-b-i*y;(y||f)&&Bf(e,o)&&(u+=f,x+=y);var p=o.parentNode;o=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!c&&o!==document.body||c&&(t.contains(o)||t===o));return(m&&Math.abs(u)<1||!m&&Math.abs(x)<1)&&(d=!0),d},Va=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vu=function(e){return[e.deltaX,e.deltaY]},Wu=function(e){return e&&"current"in e?e.current:e},Ew=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Tw=function(e){return`
305
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
306
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
307
+ `)},Pw=0,kn=[];function zw(e){var t=h.useRef([]),r=h.useRef([0,0]),s=h.useRef(),a=h.useState(Pw++)[0],i=h.useState(Ff)[0],l=h.useRef(e);h.useEffect(function(){l.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=Jy([e.lockRef.current],(e.shards||[]).map(Wu),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=h.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var f=Va(v),p=r.current,g="deltaX"in v?v.deltaX:p[0]-f[0],j="deltaY"in v?v.deltaY:p[1]-f[1],N,T=v.target,C=Math.abs(g)>Math.abs(j)?"h":"v";if("touches"in v&&C==="h"&&T.type==="range")return!1;var I=Bu(C,T);if(!I)return!0;if(I?N=C:(N=C==="v"?"h":"v",I=Bu(C,T)),!I)return!1;if(!s.current&&"changedTouches"in v&&(g||j)&&(s.current=N),!N)return!0;var G=s.current||N;return Cw(G,b,v,G==="h"?g:j)},[]),c=h.useCallback(function(v){var b=v;if(!(!kn.length||kn[kn.length-1]!==i)){var f="deltaY"in b?Vu(b):Va(b),p=t.current.filter(function(N){return N.name===b.type&&(N.target===b.target||b.target===N.shadowParent)&&Ew(N.delta,f)})[0];if(p&&p.should){b.cancelable&&b.preventDefault();return}if(!p){var g=(l.current.shards||[]).map(Wu).filter(Boolean).filter(function(N){return N.contains(b.target)}),j=g.length>0?o(b,g[0]):!l.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),d=h.useCallback(function(v,b,f,p){var g={name:v,delta:b,target:f,should:p,shadowParent:Dw(f)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(j){return j!==g})},1)},[]),m=h.useCallback(function(v){r.current=Va(v),s.current=void 0},[]),u=h.useCallback(function(v){d(v.type,Vu(v),v.target,o(v,e.lockRef.current))},[]),x=h.useCallback(function(v){d(v.type,Va(v),v.target,o(v,e.lockRef.current))},[]);h.useEffect(function(){return kn.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:x}),document.addEventListener("wheel",c,Nn),document.addEventListener("touchmove",c,Nn),document.addEventListener("touchstart",m,Nn),function(){kn=kn.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,Nn),document.removeEventListener("touchmove",c,Nn),document.removeEventListener("touchstart",m,Nn)}},[]);var w=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:Tw(a)}):null,w?h.createElement(yw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Dw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Mw=iw($f,zw);var Wf=h.forwardRef(function(e,t){return h.createElement(qi,Yt({},e,{ref:t,sideCar:Mw}))});Wf.classNames=qi.classNames;var Rw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Sn=new WeakMap,Wa=new WeakMap,Ha={},Vl=0,Hf=function(e){return e&&(e.host||Hf(e.parentNode))},Iw=function(e,t){return t.map(function(r){if(e.contains(r))return r;var s=Hf(r);return s&&e.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Lw=function(e,t,r,s){var a=Iw(t,Array.isArray(e)?e:[e]);Ha[r]||(Ha[r]=new WeakMap);var i=Ha[r],l=[],o=new Set,c=new Set(a),d=function(u){!u||o.has(u)||(o.add(u),d(u.parentNode))};a.forEach(d);var m=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(x){if(o.has(x))m(x);else try{var w=x.getAttribute(s),y=w!==null&&w!=="false",v=(Sn.get(x)||0)+1,b=(i.get(x)||0)+1;Sn.set(x,v),i.set(x,b),l.push(x),v===1&&y&&Wa.set(x,!0),b===1&&x.setAttribute(r,"true"),y||x.setAttribute(s,"true")}catch(f){console.error("aria-hidden: cannot operate on ",x,f)}})};return m(t),o.clear(),Vl++,function(){l.forEach(function(u){var x=Sn.get(u)-1,w=i.get(u)-1;Sn.set(u,x),i.set(u,w),x||(Wa.has(u)||u.removeAttribute(s),Wa.delete(u)),w||u.removeAttribute(r)}),Vl--,Vl||(Sn=new WeakMap,Sn=new WeakMap,Wa=new WeakMap,Ha={})}},_w=function(e,t,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=Rw(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),Lw(s,a,r,"aria-hidden")):function(){return null}},el="Dialog",[Kf,kb]=by(el),[Ow,Ft]=Kf(el),Qf=e=>{const{__scopeDialog:t,children:r,open:s,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,o=h.useRef(null),c=h.useRef(null),[d,m]=Cy({prop:s,defaultProp:a??!1,onChange:i,caller:el});return n.jsx(Ow,{scope:t,triggerRef:o,contentRef:c,contentId:ir(),titleId:ir(),descriptionId:ir(),open:d,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(u=>!u),[m]),modal:l,children:r})};Qf.displayName=el;var Yf="DialogTrigger",Aw=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=Ft(Yf,r),i=yn(t,a.triggerRef);return n.jsx(Qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Zc(a.open),...s,ref:i,onClick:Ar(e.onClick,a.onOpenToggle)})});Aw.displayName=Yf;var Xc="DialogPortal",[$w,Gf]=Kf(Xc,{forceMount:void 0}),Xf=e=>{const{__scopeDialog:t,forceMount:r,children:s,container:a}=e,i=Ft(Xc,t);return n.jsx($w,{scope:t,forceMount:r,children:h.Children.map(s,l=>n.jsx(Zi,{present:r||i.open,children:n.jsx(_f,{asChild:!0,container:a,children:l})}))})};Xf.displayName=Xc;var Ri="DialogOverlay",Jf=h.forwardRef((e,t)=>{const r=Gf(Ri,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,i=Ft(Ri,e.__scopeDialog);return i.modal?n.jsx(Zi,{present:s||i.open,children:n.jsx(Uw,{...a,ref:t})}):null});Jf.displayName=Ri;var Fw=Yc("DialogOverlay.RemoveScroll"),Uw=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=Ft(Ri,r);return n.jsx(Wf,{as:Fw,allowPinchZoom:!0,shards:[a.contentRef],children:n.jsx(Qe.div,{"data-state":Zc(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),fn="DialogContent",Zf=h.forwardRef((e,t)=>{const r=Gf(fn,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,i=Ft(fn,e.__scopeDialog);return n.jsx(Zi,{present:s||i.open,children:i.modal?n.jsx(Bw,{...a,ref:t}):n.jsx(Vw,{...a,ref:t})})});Zf.displayName=fn;var Bw=h.forwardRef((e,t)=>{const r=Ft(fn,e.__scopeDialog),s=h.useRef(null),a=yn(t,r.contentRef,s);return h.useEffect(()=>{const i=s.current;if(i)return _w(i)},[]),n.jsx(qf,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ar(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Ar(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,o=l.button===0&&l.ctrlKey===!0;(l.button===2||o)&&i.preventDefault()}),onFocusOutside:Ar(e.onFocusOutside,i=>i.preventDefault())})}),Vw=h.forwardRef((e,t)=>{const r=Ft(fn,e.__scopeDialog),s=h.useRef(!1),a=h.useRef(!1);return n.jsx(qf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,o;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(s.current||(o=r.triggerRef.current)==null||o.focus(),i.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;((d=r.triggerRef.current)==null?void 0:d.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),qf=h.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=e,o=Ft(fn,r),c=h.useRef(null),d=yn(t,c);return Xy(),n.jsxs(n.Fragment,{children:[n.jsx(If,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:i,children:n.jsx(Mf,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":Zc(o.open),...l,ref:d,onDismiss:()=>o.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(Qw,{titleId:o.titleId}),n.jsx(Gw,{contentRef:c,descriptionId:o.descriptionId})]})]})}),Jc="DialogTitle",Ww=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=Ft(Jc,r);return n.jsx(Qe.h2,{id:a.titleId,...s,ref:t})});Ww.displayName=Jc;var ep="DialogDescription",Hw=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=Ft(ep,r);return n.jsx(Qe.p,{id:a.descriptionId,...s,ref:t})});Hw.displayName=ep;var tp="DialogClose",Kw=h.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=Ft(tp,r);return n.jsx(Qe.button,{type:"button",...s,ref:t,onClick:Ar(e.onClick,()=>a.onOpenChange(!1))})});Kw.displayName=tp;function Zc(e){return e?"open":"closed"}var rp="DialogTitleWarning",[Sb,np]=wy(rp,{contentName:fn,titleName:Jc,docsSlug:"dialog"}),Qw=({titleId:e})=>{const t=np(rp),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
308
+
309
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
310
+
311
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Yw="DialogDescriptionWarning",Gw=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${np(Yw).contentName}}.`;return h.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Xw=Qf,Jw=Xf,Zw=Jf,qw=Zf,Cs='[cmdk-group=""]',Wl='[cmdk-group-items=""]',eb='[cmdk-group-heading=""]',sp='[cmdk-item=""]',Hu=`${sp}:not([aria-disabled="true"])`,Yo="cmdk-item-select",Cn="data-value",tb=(e,t,r)=>yy(e,t,r),ap=h.createContext(void 0),va=()=>h.useContext(ap),ip=h.createContext(void 0),qc=()=>h.useContext(ip),lp=h.createContext(void 0),op=h.forwardRef((e,t)=>{let r=En(()=>{var E,z;return{search:"",value:(z=(E=e.value)!=null?E:e.defaultValue)!=null?z:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=En(()=>new Set),a=En(()=>new Map),i=En(()=>new Map),l=En(()=>new Set),o=cp(e),{label:c,children:d,value:m,onValueChange:u,filter:x,shouldFilter:w,loop:y,disablePointerSelection:v=!1,vimBindings:b=!0,...f}=e,p=ir(),g=ir(),j=ir(),N=h.useRef(null),T=hb();pn(()=>{if(m!==void 0){let E=m.trim();r.current.value=E,C.emit()}},[m]),pn(()=>{T(6,q)},[]);let C=h.useMemo(()=>({subscribe:E=>(l.current.add(E),()=>l.current.delete(E)),snapshot:()=>r.current,setState:(E,z,R)=>{var k,B,Y,J;if(!Object.is(r.current[E],z)){if(r.current[E]=z,E==="search")H(),U(),T(1,Z);else if(E==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ne=document.getElementById(j);ne?ne.focus():(k=document.getElementById(p))==null||k.focus()}if(T(7,()=>{var ne;r.current.selectedItemId=(ne=se())==null?void 0:ne.id,C.emit()}),R||T(5,q),((B=o.current)==null?void 0:B.value)!==void 0){let ne=z??"";(J=(Y=o.current).onValueChange)==null||J.call(Y,ne);return}}C.emit()}},emit:()=>{l.current.forEach(E=>E())}}),[]),I=h.useMemo(()=>({value:(E,z,R)=>{var k;z!==((k=i.current.get(E))==null?void 0:k.value)&&(i.current.set(E,{value:z,keywords:R}),r.current.filtered.items.set(E,G(z,R)),T(2,()=>{U(),C.emit()}))},item:(E,z)=>(s.current.add(E),z&&(a.current.has(z)?a.current.get(z).add(E):a.current.set(z,new Set([E]))),T(3,()=>{H(),U(),r.current.value||Z(),C.emit()}),()=>{i.current.delete(E),s.current.delete(E),r.current.filtered.items.delete(E);let R=se();T(4,()=>{H(),(R==null?void 0:R.getAttribute("id"))===E&&Z(),C.emit()})}),group:E=>(a.current.has(E)||a.current.set(E,new Set),()=>{i.current.delete(E),a.current.delete(E)}),filter:()=>o.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:p,inputId:j,labelId:g,listInnerRef:N}),[]);function G(E,z){var R,k;let B=(k=(R=o.current)==null?void 0:R.filter)!=null?k:tb;return E?B(E,r.current.search,z):0}function U(){if(!r.current.search||o.current.shouldFilter===!1)return;let E=r.current.filtered.items,z=[];r.current.filtered.groups.forEach(k=>{let B=a.current.get(k),Y=0;B.forEach(J=>{let ne=E.get(J);Y=Math.max(ne,Y)}),z.push([k,Y])});let R=N.current;ae().sort((k,B)=>{var Y,J;let ne=k.getAttribute("id"),de=B.getAttribute("id");return((Y=E.get(de))!=null?Y:0)-((J=E.get(ne))!=null?J:0)}).forEach(k=>{let B=k.closest(Wl);B?B.appendChild(k.parentElement===B?k:k.closest(`${Wl} > *`)):R.appendChild(k.parentElement===R?k:k.closest(`${Wl} > *`))}),z.sort((k,B)=>B[1]-k[1]).forEach(k=>{var B;let Y=(B=N.current)==null?void 0:B.querySelector(`${Cs}[${Cn}="${encodeURIComponent(k[0])}"]`);Y==null||Y.parentElement.appendChild(Y)})}function Z(){let E=ae().find(R=>R.getAttribute("aria-disabled")!=="true"),z=E==null?void 0:E.getAttribute(Cn);C.setState("value",z||void 0)}function H(){var E,z,R,k;if(!r.current.search||o.current.shouldFilter===!1){r.current.filtered.count=s.current.size;return}r.current.filtered.groups=new Set;let B=0;for(let Y of s.current){let J=(z=(E=i.current.get(Y))==null?void 0:E.value)!=null?z:"",ne=(k=(R=i.current.get(Y))==null?void 0:R.keywords)!=null?k:[],de=G(J,ne);r.current.filtered.items.set(Y,de),de>0&&B++}for(let[Y,J]of a.current)for(let ne of J)if(r.current.filtered.items.get(ne)>0){r.current.filtered.groups.add(Y);break}r.current.filtered.count=B}function q(){var E,z,R;let k=se();k&&(((E=k.parentElement)==null?void 0:E.firstChild)===k&&((R=(z=k.closest(Cs))==null?void 0:z.querySelector(eb))==null||R.scrollIntoView({block:"nearest"})),k.scrollIntoView({block:"nearest"}))}function se(){var E;return(E=N.current)==null?void 0:E.querySelector(`${sp}[aria-selected="true"]`)}function ae(){var E;return Array.from(((E=N.current)==null?void 0:E.querySelectorAll(Hu))||[])}function M(E){let z=ae()[E];z&&C.setState("value",z.getAttribute(Cn))}function V(E){var z;let R=se(),k=ae(),B=k.findIndex(J=>J===R),Y=k[B+E];(z=o.current)!=null&&z.loop&&(Y=B+E<0?k[k.length-1]:B+E===k.length?k[0]:k[B+E]),Y&&C.setState("value",Y.getAttribute(Cn))}function S(E){let z=se(),R=z==null?void 0:z.closest(Cs),k;for(;R&&!k;)R=E>0?db(R,Cs):ub(R,Cs),k=R==null?void 0:R.querySelector(Hu);k?C.setState("value",k.getAttribute(Cn)):V(E)}let A=()=>M(ae().length-1),_=E=>{E.preventDefault(),E.metaKey?A():E.altKey?S(1):V(1)},W=E=>{E.preventDefault(),E.metaKey?M(0):E.altKey?S(-1):V(-1)};return h.createElement(Qe.div,{ref:t,tabIndex:-1,...f,"cmdk-root":"",onKeyDown:E=>{var z;(z=f.onKeyDown)==null||z.call(f,E);let R=E.nativeEvent.isComposing||E.keyCode===229;if(!(E.defaultPrevented||R))switch(E.key){case"n":case"j":{b&&E.ctrlKey&&_(E);break}case"ArrowDown":{_(E);break}case"p":case"k":{b&&E.ctrlKey&&W(E);break}case"ArrowUp":{W(E);break}case"Home":{E.preventDefault(),M(0);break}case"End":{E.preventDefault(),A();break}case"Enter":{E.preventDefault();let k=se();if(k){let B=new Event(Yo);k.dispatchEvent(B)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:fb},c),tl(e,E=>h.createElement(ip.Provider,{value:C},h.createElement(ap.Provider,{value:I},E))))}),rb=h.forwardRef((e,t)=>{var r,s;let a=ir(),i=h.useRef(null),l=h.useContext(lp),o=va(),c=cp(e),d=(s=(r=c.current)==null?void 0:r.forceMount)!=null?s:l==null?void 0:l.forceMount;pn(()=>{if(!d)return o.item(a,l==null?void 0:l.id)},[d]);let m=dp(a,i,[e.value,e.children,i],e.keywords),u=qc(),x=Ur(T=>T.value&&T.value===m.current),w=Ur(T=>d||o.filter()===!1?!0:T.search?T.filtered.items.get(a)>0:!0);h.useEffect(()=>{let T=i.current;if(!(!T||e.disabled))return T.addEventListener(Yo,y),()=>T.removeEventListener(Yo,y)},[w,e.onSelect,e.disabled]);function y(){var T,C;v(),(C=(T=c.current).onSelect)==null||C.call(T,m.current)}function v(){u.setState("value",m.current,!0)}if(!w)return null;let{disabled:b,value:f,onSelect:p,forceMount:g,keywords:j,...N}=e;return h.createElement(Qe.div,{ref:mn(i,t),...N,id:a,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!x,"data-disabled":!!b,"data-selected":!!x,onPointerMove:b||o.getDisablePointerSelection()?void 0:v,onClick:b?void 0:y},e.children)}),nb=h.forwardRef((e,t)=>{let{heading:r,children:s,forceMount:a,...i}=e,l=ir(),o=h.useRef(null),c=h.useRef(null),d=ir(),m=va(),u=Ur(w=>a||m.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);pn(()=>m.group(l),[]),dp(l,o,[e.value,e.heading,c]);let x=h.useMemo(()=>({id:l,forceMount:a}),[a]);return h.createElement(Qe.div,{ref:mn(o,t),...i,"cmdk-group":"",role:"presentation",hidden:u?void 0:!0},r&&h.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),tl(e,w=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},h.createElement(lp.Provider,{value:x},w))))}),sb=h.forwardRef((e,t)=>{let{alwaysRender:r,...s}=e,a=h.useRef(null),i=Ur(l=>!l.search);return!r&&!i?null:h.createElement(Qe.div,{ref:mn(a,t),...s,"cmdk-separator":"",role:"separator"})}),ab=h.forwardRef((e,t)=>{let{onValueChange:r,...s}=e,a=e.value!=null,i=qc(),l=Ur(d=>d.search),o=Ur(d=>d.selectedItemId),c=va();return h.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),h.createElement(Qe.input,{ref:t,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":o,id:c.inputId,type:"text",value:a?e.value:l,onChange:d=>{a||i.setState("search",d.target.value),r==null||r(d.target.value)}})}),ib=h.forwardRef((e,t)=>{let{children:r,label:s="Suggestions",...a}=e,i=h.useRef(null),l=h.useRef(null),o=Ur(d=>d.selectedItemId),c=va();return h.useEffect(()=>{if(l.current&&i.current){let d=l.current,m=i.current,u,x=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{let w=d.offsetHeight;m.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return x.observe(d),()=>{cancelAnimationFrame(u),x.unobserve(d)}}},[]),h.createElement(Qe.div,{ref:mn(i,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":s,id:c.listId},tl(e,d=>h.createElement("div",{ref:mn(l,c.listInnerRef),"cmdk-list-sizer":""},d)))}),lb=h.forwardRef((e,t)=>{let{open:r,onOpenChange:s,overlayClassName:a,contentClassName:i,container:l,...o}=e;return h.createElement(Xw,{open:r,onOpenChange:s},h.createElement(Jw,{container:l},h.createElement(Zw,{"cmdk-overlay":"",className:a}),h.createElement(qw,{"aria-label":e.label,"cmdk-dialog":"",className:i},h.createElement(op,{ref:t,...o}))))}),ob=h.forwardRef((e,t)=>Ur(r=>r.filtered.count===0)?h.createElement(Qe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),cb=h.forwardRef((e,t)=>{let{progress:r,children:s,label:a="Loading...",...i}=e;return h.createElement(Qe.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},tl(e,l=>h.createElement("div",{"aria-hidden":!0},l)))}),Es=Object.assign(op,{List:ib,Item:rb,Input:ab,Group:nb,Separator:sb,Dialog:lb,Empty:ob,Loading:cb});function db(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function ub(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function cp(e){let t=h.useRef(e);return pn(()=>{t.current=e}),t}var pn=typeof window>"u"?h.useEffect:h.useLayoutEffect;function En(e){let t=h.useRef();return t.current===void 0&&(t.current=e()),t}function Ur(e){let t=qc(),r=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,r,r)}function dp(e,t,r,s=[]){let a=h.useRef(),i=va();return pn(()=>{var l;let o=(()=>{var d;for(let m of r){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(d=m.current.textContent)==null?void 0:d.trim():a.current}})(),c=s.map(d=>d.trim());i.value(e,o,c),(l=t.current)==null||l.setAttribute(Cn,o),a.current=o}),a}var hb=()=>{let[e,t]=h.useState(),r=En(()=>new Map);return pn(()=>{r.current.forEach(s=>s()),r.current=new Map},[e]),(s,a)=>{r.current.set(s,a),t({})}};function mb(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function tl({asChild:e,children:t},r){return e&&h.isValidElement(t)?h.cloneElement(mb(t),{ref:t.ref},r(t.props.children)):r(t)}var fb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function pb({isOpen:e,onClose:t}){const r=Ji(),[s,a]=h.useState(""),o=[{id:"users",title:"Users",description:"Manage users and their accounts",icon:xe,action:()=>r("/users"),category:"Navigation",keywords:["user","account","profile"]},{id:"organizations",title:"Organizations",description:"Manage organizations and teams",icon:We,action:()=>r("/organizations"),category:"Navigation",keywords:["org","company","team"]},{id:"sessions",title:"Sessions",description:"View active user sessions",icon:Vo,action:()=>r("/sessions"),category:"Navigation",keywords:["session","login","active"]},{id:"settings",title:"Settings",description:"Configure Better Auth Studio",icon:Yn,action:()=>r("/settings"),category:"Navigation",keywords:["config","setup","preferences"]},{id:"dashboard",title:"Dashboard",description:"View overview and statistics",icon:Vo,action:()=>r("/"),category:"Navigation",keywords:["overview","stats","home"]},{id:"create-user",title:"Create User",description:"Add a new user to the system",icon:Or,action:()=>r("/users"),category:"Actions",keywords:["add","new","register"]},{id:"create-organization",title:"Create Organization",description:"Create a new organization",icon:Fn,action:()=>r("/organizations"),category:"Actions",keywords:["add","new","org"]},{id:"invite-user",title:"Invite User",description:"Send invitation to join organization",icon:Lt,action:()=>r("/organizations"),category:"Actions",keywords:["invite","email","send"]}].filter(c=>{var m;const d=s.toLowerCase();return c.title.toLowerCase().includes(d)||c.description.toLowerCase().includes(d)||((m=c.keywords)==null?void 0:m.some(u=>u.toLowerCase().includes(d)))}).reduce((c,d)=>(c[d.category]||(c[d.category]=[]),c[d.category].push(d),c),{});return h.useEffect(()=>{const c=d=>{(d.metaKey||d.ctrlKey)&&d.key==="k"&&d.preventDefault()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),h.useEffect(()=>{const c=d=>{d.key==="Escape"&&t()};if(e)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,t]),e?n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-start justify-center pt-[20vh] z-50",children:n.jsx("div",{className:"bg-black/90 border border-dashed border-white/20 rounded-none w-full max-w-2xl mx-4",children:n.jsxs(Es,{className:"p-2",children:[n.jsxs("div",{className:"flex items-center border-b border-dashed border-white/10 px-3 pb-3",children:[n.jsx(hn,{className:"w-4 h-4 text-gray-400 mr-3"}),n.jsx(Es.Input,{value:s,onValueChange:a,placeholder:"Search for actions, pages, or commands...",className:"flex-1 bg-transparent text-white placeholder-gray-400 outline-none",autoFocus:!0}),n.jsx("kbd",{className:"hidden sm:inline-flex items-center px-2 py-1 text-xs text-gray-400 border border-dashed border-white/20 rounded-sm",children:"ESC"})]}),n.jsx(Es.List,{className:"max-h-96 overflow-y-auto p-2",children:Object.keys(o).length===0?n.jsxs("div",{className:"text-center py-8 text-gray-400",children:[n.jsx(hn,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),n.jsx("p",{children:"No results found"}),n.jsx("p",{className:"text-sm",children:"Try a different search term"})]}):Object.entries(o).map(([c,d])=>n.jsx("div",{className:"mb-4",children:n.jsx(Es.Group,{heading:c,className:"text-xs text-gray-400 font-medium mb-2 px-2",children:d.map(m=>{const u=m.icon;return n.jsxs(Es.Item,{value:m.id,onSelect:()=>{m.action(),t()},className:"flex items-center space-x-3 px-3 py-2 rounded-none hover:bg-white/5 cursor-pointer transition-colors",children:[n.jsx(u,{className:"w-4 h-4 text-white"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{className:"text-white font-light",children:m.title}),n.jsx("div",{className:"text-sm text-gray-400",children:m.description})]}),n.jsx(Zr,{className:"w-4 h-4 text-gray-400"})]},m.id)})})},c))}),n.jsx("div",{className:"border-t border-dashed border-white/10 px-3 py-2 text-xs text-gray-400",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("span",{children:["Press ",n.jsx("kbd",{className:"px-1 py-0.5 border border-dashed border-white/20 rounded-sm",children:"↑↓"})," to navigate"]}),n.jsxs("span",{children:["Press ",n.jsx("kbd",{className:"px-1 py-0.5 border border-dashed border-white/20 rounded-sm",children:"Enter"})," to select"]})]})})]})})}):null}function xb({children:e}){const t=xa(),[r,s]=h.useState({users:0,organizations:0,sessions:0}),[a,i]=h.useState(!0),[l,o]=h.useState(!1);h.useEffect(()=>{c()},[]),h.useEffect(()=>{const u=x=>{(x.metaKey||x.ctrlKey)&&x.key==="k"&&(x.preventDefault(),o(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const c=async()=>{try{const x=await(await fetch("/api/counts")).json();s(x)}catch(u){console.error("Failed to fetch counts:",u)}finally{i(!1)}},d=u=>u>=1e3?(u/1e3).toFixed(1).replace(/\.0$/,"")+"k":u.toString(),m=[{name:"Dashboard",href:"/",icon:N0},{name:"Users",href:"/users",icon:xe,badge:a?"...":d(r.users)},{name:"Organizations",href:"/organizations",icon:We,badge:a?"...":d(r.organizations)},{name:"Settings",href:"/settings",icon:Yn}];return n.jsxs("div",{className:"min-h-screen bg-black",children:[n.jsx("div",{className:"bg-black/70 border-b border-white/15",children:n.jsxs("div",{className:"flex items-center justify-between px-6 py-4",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"w-8 h-8 bg-white rounded-lg flex items-center justify-center",children:n.jsx("span",{className:"text-black font-bold text-lg",children:"⚡"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-xl font-bold text-white",children:"Better Auth Studio"}),n.jsx("p",{className:"text-xs text-gray-300",children:"v1.0.0"})]})]})}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"relative",children:[n.jsx(hn,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx("input",{type:"text",placeholder:"Search...",onClick:()=>o(!0),className:"pl-10 pr-4 py-2 bg-black border rounded-none border-gray-600 text-white border-dashed focus:ring-2 focus:ring-white focus:border-transparent transition-colors placeholder-gray-400 cursor-pointer",readOnly:!0}),n.jsx("kbd",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-xs text-gray-400 border border-dashed border-white/20 rounded-sm px-1.5 py-0.5",children:"⌘K"})]}),n.jsx("a",{href:"https://better-auth.com/docs",target:"_blank",children:n.jsx(P,{variant:"ghost",className:"text-gray-300 bg-transparent hover:bg-transparent hover:bg-gray-900 border-dashed",children:"Docs"})}),n.jsx("a",{href:"https://better-auth.com/support",target:"_blank",children:n.jsx(P,{variant:"ghost",className:"text-gray-300 bg-transparent hover:bg-transparent hover:bg-gray-900 border-dashed",children:"Support"})})]})]})}),n.jsx("div",{className:"bg-black/50 border-b border-white/10",children:n.jsx("div",{className:"px-6",children:n.jsx("nav",{className:"flex space-x-8",children:m.map(u=>{const x=t.pathname===u.href;return n.jsxs(Qn,{to:u.href,className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(u.icon,{className:"w-4 h-4"}),n.jsx("span",{children:u.name}),u.badge&&n.jsx(oe,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:u.badge})]},u.name)})})})}),n.jsx("div",{className:"flex-1 p-0",children:e}),n.jsx(pb,{isOpen:l,onClose:()=>o(!1)})]})}const Je=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Kr("rounded-lg border border-gray-700 bg-gray-900 text-white shadow-sm",e),...t}));Je.displayName="Card";const Vt=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Kr("flex flex-col space-y-1.5 p-6",e),...t}));Vt.displayName="CardHeader";const Wt=h.forwardRef(({className:e,...t},r)=>n.jsx("h3",{ref:r,className:Kr("text-2xl font-semibold leading-none tracking-tight text-white",e),...t}));Wt.displayName="CardTitle";const Ht=h.forwardRef(({className:e,...t},r)=>n.jsx("p",{ref:r,className:Kr("text-sm text-gray-300",e),...t}));Ht.displayName="CardDescription";const Ze=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Kr("p-6 pt-0",e),...t}));Ze.displayName="CardContent";const gb=h.forwardRef(({className:e,...t},r)=>n.jsx("div",{ref:r,className:Kr("flex items-center p-6 pt-0",e),...t}));gb.displayName="CardFooter";const he=h.forwardRef(({className:e,type:t,...r},s)=>n.jsx("input",{type:t,className:`flex h-10 w-full border border-dashed border-white/20 bg-black/30 px-3 py-2 text-sm text-white placeholder:text-gray-400 focus:outline-none focus:ring-1 focus:ring-white focus:border-white/40 disabled:cursor-not-allowed disabled:opacity-50 rounded-none ${e}`,ref:s,...r}));he.displayName="Input";const fe=h.forwardRef(({className:e,...t},r)=>n.jsx("label",{className:`text-sm font-light text-white ${e}`,ref:r,...t}));fe.displayName="Label";const ya=h.createContext({isOpen:!1,setIsOpen:()=>{}}),as=h.forwardRef(({className:e,value:t,onValueChange:r,children:s,...a},i)=>{const[l,o]=h.useState(!1);return n.jsx(ya.Provider,{value:{value:t,onValueChange:r,isOpen:l,setIsOpen:o},children:n.jsx("div",{ref:i,className:`relative ${e}`,...a,children:s})})});as.displayName="Select";const is=h.forwardRef(({className:e,children:t,...r},s)=>{const{isOpen:a,setIsOpen:i}=h.useContext(ya);return n.jsxs("button",{ref:s,type:"button",className:`flex h-10 w-full items-center justify-between border border-dashed border-white/20 bg-black/30 px-3 py-2 text-sm text-white focus:outline-none focus:ring-1 focus:ring-white focus:border-white/40 disabled:cursor-not-allowed disabled:opacity-50 rounded-none ${e}`,onClick:()=>i(!a),...r,children:[t,n.jsx(bf,{className:`h-4 w-4 text-gray-400 transition-transform ${a?"rotate-180":""}`})]})});is.displayName="SelectTrigger";const ls=h.forwardRef(({className:e,placeholder:t,...r},s)=>{const{value:a}=h.useContext(ya);return n.jsx("span",{ref:s,className:`text-sm text-white ${e}`,...r,children:a||t})});ls.displayName="SelectValue";const os=h.forwardRef(({className:e,children:t,...r},s)=>{const{isOpen:a}=h.useContext(ya);return a?n.jsx("div",{ref:s,className:`absolute top-full left-0 right-0 z-50 mt-1 border border-dashed border-white/20 bg-black/90 rounded-none shadow-lg ${e}`,...r,children:t}):null});os.displayName="SelectContent";const St=h.forwardRef(({className:e,children:t,value:r,...s},a)=>{const{onValueChange:i,setIsOpen:l}=h.useContext(ya);return n.jsx("div",{ref:a,className:`px-3 py-2 text-sm text-white hover:bg-white/10 cursor-pointer ${e}`,onClick:()=>{i==null||i(r),l(!1)},...s,children:t})});St.displayName="SelectItem";function ca({title:e="Seeding Terminal",lines:t,isRunning:r=!1,className:s="",defaultCollapsed:a=!1}){const[i,l]=h.useState([]),[o,c]=h.useState(0),[d,m]=h.useState(a);h.useEffect(()=>{if(o<t.length){const y=setTimeout(()=>{l(v=>[...v,t[o]]),c(v=>v+1)},100);return()=>clearTimeout(y)}},[o,t]),h.useEffect(()=>{l([]),c(0)},[t]);const u=y=>{switch(y.type){case"success":return n.jsx(Le,{className:"w-3 h-3 text-green-400"});case"error":return n.jsx(qr,{className:"w-3 h-3 text-red-400"});case"progress":return y.status==="running"?n.jsx(dt,{className:"w-3 h-3 text-blue-400 animate-spin"}):y.status==="completed"?n.jsx(Le,{className:"w-3 h-3 text-green-400"}):y.status==="failed"?n.jsx(qr,{className:"w-3 h-3 text-red-400"}):n.jsx("div",{className:"w-3 h-3 border border-gray-500 rounded-full"});default:return n.jsx("div",{className:"w-3 h-3 border border-gray-500 rounded-full"})}},x=y=>{switch(y.type){case"success":return"text-green-400";case"error":return"text-red-400";case"progress":return y.status==="running"?"text-blue-400":y.status==="completed"?"text-green-400":y.status==="failed"?"text-red-400":"text-gray-400";default:return"text-gray-300"}},w=y=>y.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+y.getMilliseconds().toString().padStart(3,"0");return n.jsxs("div",{className:`bg-black/90 border border-dashed border-white/20 rounded-none font-mono text-xs ${s}`,children:[n.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-dashed border-white/10",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(k0,{className:"w-3 h-3 text-green-400"}),n.jsx("span",{className:"text-green-400 font-medium text-xs",children:e})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[r&&n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("div",{className:"w-1.5 h-1.5 bg-green-400 rounded-full animate-pulse"}),n.jsx("span",{className:"text-green-400 text-xs",children:"RUNNING"})]}),n.jsxs("div",{className:"text-gray-400 text-xs",children:[i.length," / ",t.length]}),n.jsx("button",{onClick:()=>m(!d),className:"text-gray-400 hover:text-white transition-colors",children:d?n.jsx(bf,{className:"w-3 h-3"}):n.jsx(b0,{className:"w-3 h-3"})})]})]}),!d&&n.jsxs("div",{className:"p-3 space-y-0.5 h-56 overflow-y-auto",children:[i.length===0?n.jsxs("div",{className:"text-gray-500 italic text-xs",children:[n.jsx("span",{className:"text-green-400",children:"$"})," Waiting for operations..."]}):i.map((y,v)=>n.jsxs("div",{className:`flex items-start space-x-3 py-1 ${x(y)} animate-fadeIn text-xs`,style:{animationDelay:`${v*25}ms`},children:[n.jsx("span",{className:"text-gray-500 text-xs w-20 flex-shrink-0",children:w(y.timestamp)}),n.jsx("span",{className:"text-green-400 flex-shrink-0",children:"$"}),n.jsx("div",{className:"flex-shrink-0 mt-0.5",children:u(y)}),n.jsx("span",{className:"flex-1 min-w-0 break-words",children:y.message})]},y.id)),r&&n.jsxs("div",{className:"flex items-start space-x-3 py-1 text-green-400 text-xs",children:[n.jsx("span",{className:"text-gray-500 text-xs w-20 flex-shrink-0",children:w(new Date)}),n.jsx("span",{className:"text-green-400 flex-shrink-0",children:"$"}),n.jsx("div",{className:"w-3 h-3 flex-shrink-0 mt-0.5"}),n.jsx("span",{className:"flex-1 flex items-center",children:n.jsx("span",{className:"animate-pulse",children:"█"})})]})]}),!d&&n.jsx("div",{className:"px-3 py-1.5 border-t border-dashed border-white/10 bg-black/50",children:n.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-400",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("span",{children:["Status: ",r?"Active":"Idle"]}),n.jsxs("span",{children:["Lines: ",i.length]})]}),n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("div",{className:"w-1.5 h-1.5 bg-green-400 rounded-full"}),n.jsx("span",{children:"Better Auth Studio"})]})]})})]})}const up=document.createElement("style");up.textContent=`
312
+ @keyframes fadeIn {
313
+ from {
314
+ opacity: 0;
315
+ transform: translateX(-10px);
316
+ }
317
+ to {
318
+ opacity: 1;
319
+ transform: translateX(0);
320
+ }
321
+ }
322
+
323
+ .animate-fadeIn {
324
+ animation: fadeIn 0.3s ease-out forwards;
325
+ }
326
+ `;document.head.appendChild(up);function hp(){const[e,t]=h.useState([]),[r,s]=h.useState(!0),[a,i]=h.useState(""),[l,o]=h.useState("all"),[c,d]=h.useState(1),[m]=h.useState(50),[u,x]=h.useState(!1),[w,y]=h.useState(!1),[v,b]=h.useState(!1),[f,p]=h.useState(!1),[g,j]=h.useState(!1),[N,T]=h.useState(null),[C,I]=h.useState([]),[G,U]=h.useState(!1);h.useEffect(()=>{Z()},[]);const Z=async()=>{try{const B=await(await fetch("/api/users?limit=10000")).json();t(B.users||[])}catch(k){console.error("Failed to fetch users:",k)}finally{s(!1)}},H=async k=>{I([]),U(!0),I([{id:"start",type:"info",message:`Starting user seeding process for ${k} users...`,timestamp:new Date}]);try{const Y=await(await fetch("/api/seed/users",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:k})})).json();if(Y.success){const J=Y.results.map((de,Ie)=>de.success?{id:`user-${Ie}`,type:"progress",message:`Creating user: ${de.user.name} (${de.user.email})`,timestamp:new Date,status:"completed"}:{id:`user-${Ie}`,type:"error",message:`Failed to create user ${Ie+1}: ${de.error}`,timestamp:new Date});I(de=>[...de,...J]);const ne=Y.results.filter(de=>de.success).length;I(de=>[...de,{id:"complete",type:"success",message:`✅ Seeding completed! Created ${ne}/${k} users successfully`,timestamp:new Date}]),await Z()}else I(J=>[...J,{id:"error",type:"error",message:`❌ Seeding failed: ${Y.error||"Unknown error"}`,timestamp:new Date}])}catch(B){I(Y=>[...Y,{id:"error",type:"error",message:`❌ Network error: ${B}`,timestamp:new Date}])}finally{U(!1)}},q=k=>{T(k),p(!0)},se=k=>{T(k),y(!0)},ae=k=>{T(k),b(!0)},M=async()=>{var ne,de,Ie;const k=(ne=document.getElementById("create-name"))==null?void 0:ne.value,B=(de=document.getElementById("create-email"))==null?void 0:de.value,Y=(Ie=document.getElementById("create-password"))==null?void 0:Ie.value;if(!k||!B||!Y){L.error("Please fill in all fields");return}const J=L.loading("Creating user...");try{const hr=await(await fetch("/api/users",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:k,email:B,password:Y})})).json();hr.success?(await Z(),x(!1),document.getElementById("create-name").value="",document.getElementById("create-email").value="",document.getElementById("create-password").value="",L.success("User created successfully!",{id:J})):L.error(`Error creating user: ${hr.error||"Unknown error"}`,{id:J})}catch(at){console.error("Error creating user:",at),L.error("Error creating user",{id:J})}},V=async()=>{var J,ne;if(!N){L.error("No user selected");return}const k=(J=document.getElementById("edit-name"))==null?void 0:J.value,B=(ne=document.getElementById("edit-email"))==null?void 0:ne.value;if(!k||!B){L.error("Please fill in all fields");return}const Y=L.loading("Updating user...");try{const Ie=await(await fetch(`/api/users/${N.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:k,email:B})})).json();Ie.success?(await Z(),y(!1),T(null),L.success("User updated successfully!",{id:Y})):L.error(`Error updating user: ${Ie.error||"Unknown error"}`,{id:Y})}catch(de){console.error("Error updating user:",de),L.error("Error updating user",{id:Y})}},S=async()=>{if(!N){L.error("No user selected");return}const k=L.loading("Deleting user...");try{const Y=await(await fetch(`/api/users/${N.id}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();Y.success?(await Z(),b(!1),T(null),L.success("User deleted successfully!",{id:k})):L.error(`Error deleting user: ${Y.error||"Unknown error"}`,{id:k})}catch(B){console.error("Error deleting user:",B),L.error("Error deleting user",{id:k})}},A=e.filter(k=>(k.name.toLowerCase().includes(a.toLowerCase())||k.email.toLowerCase().includes(a.toLowerCase()))&&l==="all"),_=Math.ceil(A.length/m),W=(c-1)*m,E=W+m,z=A.slice(W,E),R=k=>{d(k)};return r?n.jsx("div",{className:"flex items-center justify-center h-32",children:n.jsxs("div",{className:"flex flex-col items-center space-y-3",children:[n.jsx(dt,{className:"w-6 h-6 text-white animate-spin"}),n.jsx("div",{className:"text-white text-sm",children:"Loading users..."})]})}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h1",{className:"text-2xl text-white font-light",children:["Users (",e.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage your application users"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",onClick:()=>j(!0),children:[n.jsx(ze,{className:"w-4 h-4 mr-2"}),"Seed"]}),n.jsxs(P,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",onClick:()=>x(!0),children:[n.jsx(Or,{className:"w-4 h-4 mr-2"}),"Add User"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(hn,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(he,{placeholder:"Search users...",value:a,onChange:k=>i(k.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Qc,{className:"w-4 h-4 text-gray-400"}),n.jsxs(as,{value:l,onValueChange:o,children:[n.jsx(is,{children:n.jsx(ls,{})}),n.jsxs(os,{children:[n.jsx(St,{value:"all",children:"All"}),n.jsx(St,{value:"active",children:"Active"}),n.jsx(St,{value:"inactive",children:"Inactive"})]})]})]})]}),n.jsxs("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:[n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email Verified"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Created"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:z.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:5,className:"py-12 px-4 text-center",children:n.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(xe,{className:"w-8 h-8 text-white/50"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-white font-medium text-lg",children:"No users found"}),n.jsx("p",{className:"text-gray-400 text-sm mt-1",children:a||l!=="all"?"Try adjusting your search or filter criteria":"Get started by creating your first user or seeding some data"})]}),!a&&l==="all"&&n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{onClick:()=>x(!0),className:"bg-white text-black hover:bg-gray-200 rounded-none",children:[n.jsx(Or,{className:"w-4 h-4 mr-2"}),"Create User"]}),n.jsxs(P,{onClick:()=>j(!0),className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",children:[n.jsx(ze,{className:"w-4 h-4 mr-2"}),"Seed Data"]})]})]})})}):z.map(k=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:k.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${k.id}`,alt:k.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:k.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",k.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:k.email}),n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[k.emailVerified?n.jsx(w0,{className:"w-4 h-4 text-green-400"}):n.jsx(Lt,{className:"w-4 h-4 text-yellow-400"}),n.jsx("span",{className:"text-sm text-gray-400",children:k.emailVerified?"Verified":"Not Verified"})]})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:n.jsxs("div",{className:"flex flex-col",children:[new Date(k.createdAt).toLocaleDateString(),n.jsx("p",{className:"text-xs",children:new Date(k.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsx(P,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>q(k),children:n.jsx(ga,{className:"w-4 h-4"})}),n.jsx(P,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>se(k),children:n.jsx(ss,{className:"w-4 h-4"})}),n.jsx(P,{variant:"ghost",size:"sm",className:"text-red-400 hover:text-red-300 rounded-none",onClick:()=>ae(k),children:n.jsx(an,{className:"w-4 h-4"})})]})})]},k.id))})]})}),_>1&&n.jsxs("div",{className:"flex items-center justify-between mt-6",children:[n.jsxs("div",{className:"text-sm text-gray-400",children:["Showing ",W+1," to ",Math.min(E,A.length)," of ",A.length," users"]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(P,{variant:"outline",size:"sm",onClick:()=>R(c-1),disabled:c===1,className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Previous"}),Array.from({length:_},(k,B)=>B+1).map(k=>n.jsx(P,{variant:c===k?"default":"outline",size:"sm",onClick:()=>R(k),className:c===k?"bg-white text-black rounded-none":"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:k},k)),n.jsx(P,{variant:"outline",size:"sm",onClick:()=>R(c+1),disabled:c===_,className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Next"})]})]})]}),g&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-2xl rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Data"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>j(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(xe,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Users"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(fe,{htmlFor:"user-count",className:"text-sm text-gray-400 font-light",children:"Number of users"}),n.jsx(he,{id:"user-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(P,{onClick:()=>{var B;const k=parseInt(((B=document.getElementById("user-count"))==null?void 0:B.value)||"5");H(k)},disabled:G,className:"bg-transparent hover:bg-white/90 bg-white text-black border border-white/20 rounded-none mt-6 disabled:opacity-50",children:G?n.jsxs(n.Fragment,{children:[n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}),"Seeding..."]}):n.jsxs(n.Fragment,{children:[n.jsx(ze,{className:"w-3 h-3 mr-2"}),"Seed Users"]})})]})]}),C.length>0&&n.jsx("div",{className:"mt-6",children:n.jsx(ca,{title:"User Seeding Terminal",lines:C,isRunning:G,className:"w-full",defaultCollapsed:!0})})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(P,{variant:"outline",onClick:()=>j(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})}),u&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create User"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>x(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"create-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(he,{id:"create-name",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"create-email",className:"text-sm text-gray-400 font-light",children:"Email"}),n.jsx(he,{id:"create-email",type:"email",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"create-password",className:"text-sm text-gray-400 font-light",children:"Password"}),n.jsx(he,{id:"create-password",type:"password",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>x(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:M,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create"})]})]})}),w&&N&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit User"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>y(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:N.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${N.id}`,alt:N.name,className:"w-16 h-16 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:N.name}),n.jsx("div",{className:"text-sm text-gray-400",children:N.email})]})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(he,{id:"edit-name",defaultValue:N.name,className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-email",className:"text-sm text-gray-400 font-light",children:"Email"}),n.jsx(he,{id:"edit-email",type:"email",defaultValue:N.email,className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>y(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:V,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update"})]})]})}),v&&N&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete User"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:N.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${N.id}`,alt:N.name,className:"w-16 h-16 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:N.name}),n.jsx("div",{className:"text-sm text-gray-400",children:N.email})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this user? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>b(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:S,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete"})]})]})}),f&&N&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"User Details"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:N.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${N.id}`,alt:N.name,className:"w-16 h-16 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:N.name}),n.jsx("div",{className:"text-sm text-gray-400",children:N.email})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"ID:"}),n.jsx("span",{className:"text-white text-sm",children:N.id})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Email Verified:"}),n.jsx("span",{className:"text-white text-sm",children:N.emailVerified?"Yes":"No"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Created:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(N.createdAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Updated:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(N.updatedAt).toLocaleString()})]})]})]}),n.jsx("div",{className:"flex justify-end mt-6",children:n.jsx(P,{onClick:()=>p(!1),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Close"})})]})})]})}function mp(){const e=Ji(),[t,r]=h.useState([]),[s,a]=h.useState(!0),[i,l]=h.useState(null),[o,c]=h.useState(""),[d,m]=h.useState("all"),[u,x]=h.useState(!1),[w,y]=h.useState(!1),[v,b]=h.useState(!1),[f,p]=h.useState(!1),[g,j]=h.useState(!1),[N,T]=h.useState(!1),[C,I]=h.useState(null),[G,U]=h.useState([]),[Z,H]=h.useState(!1),[q,se]=h.useState({name:"",slug:""}),[ae,M]=h.useState({name:"",organizationId:""}),[V,S]=h.useState({name:"",slug:""});h.useEffect(()=>{R()},[]);const A=O=>O.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,""),_=O=>{const Q=A(O);se({name:O,slug:Q})},W=O=>{se(Q=>({...Q,slug:A(O)}))},E=O=>{const Q=A(O);S({name:O,slug:Q})},z=O=>{S(Q=>({...Q,slug:A(O)}))},R=async()=>{try{const Q=await(await fetch("/api/plugins/organization/status")).json();l(Q),Q.enabled?await k():a(!1)}catch(O){console.error("Failed to check plugin status:",O),l({enabled:!1,error:"Failed to check plugin status"}),a(!1)}},k=async()=>{try{const Q=await(await fetch("/api/organizations?limit=10000")).json();r(Q.organizations||[])}catch(O){console.error("Failed to fetch organizations:",O),L.error("Failed to fetch organizations")}finally{a(!1)}},B=async O=>{U([]),H(!0),U([{id:"start",type:"info",message:`Starting organization seeding process for ${O} organizations...`,timestamp:new Date}]);try{const ue=await(await fetch("/api/seed/organizations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:O})})).json();if(ue.success){const Te=ue.results.map((pe,Ne)=>pe.success?{id:`org-${Ne}`,type:"progress",message:`Creating organization: ${pe.organization.name} (${pe.organization.slug})`,timestamp:new Date,status:"completed"}:{id:`org-${Ne}`,type:"error",message:`Failed to create organization ${Ne+1}: ${pe.error}`,timestamp:new Date});U(pe=>[...pe,...Te]);const Yr=ue.results.filter(pe=>pe.success).length;U(pe=>[...pe,{id:"complete",type:"success",message:`✅ Seeding completed! Created ${Yr}/${O} organizations successfully`,timestamp:new Date}]),await k()}else U(Te=>[...Te,{id:"error",type:"error",message:`❌ Seeding failed: ${ue.error||"Unknown error"}`,timestamp:new Date}])}catch(Q){U(ue=>[...ue,{id:"error",type:"error",message:`❌ Network error: ${Q}`,timestamp:new Date}])}finally{H(!1)}},Y=async O=>{U([]),H(!0),U([{id:"start",type:"info",message:`Starting team seeding process for ${O} teams...`,timestamp:new Date}]);try{const ue=await(await fetch("/api/seed/teams",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:O})})).json();if(ue.success){const Te=ue.results.map((pe,Ne)=>pe.success?{id:`team-${Ne}`,type:"progress",message:`Creating team: ${pe.team.name}`,timestamp:new Date,status:"completed"}:{id:`team-${Ne}`,type:"error",message:`Failed to create team ${Ne+1}: ${pe.error}`,timestamp:new Date});U(pe=>[...pe,...Te]);const Yr=ue.results.filter(pe=>pe.success).length;U(pe=>[...pe,{id:"complete",type:"success",message:`✅ Seeding completed! Created ${Yr}/${O} teams successfully`,timestamp:new Date}]),await k()}else U(Te=>[...Te,{id:"error",type:"error",message:`❌ Seeding failed: ${ue.error||"Unknown error"}`,timestamp:new Date}])}catch(Q){U(ue=>[...ue,{id:"error",type:"error",message:`❌ Network error: ${Q}`,timestamp:new Date}])}finally{H(!1)}},J=O=>{I(O),j(!0)},ne=O=>{I(O),S({name:O.name,slug:O.slug}),b(!0)},de=O=>{I(O),p(!0)},Ie=async()=>{if(!q.name){L.error("Please fill in the organization name");return}const O=L.loading("Creating organization...");try{const ue=await(await fetch("/api/organizations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:q.name,slug:q.slug})})).json();ue.success?(await k(),x(!1),se({name:"",slug:""}),L.success("Organization created successfully!",{id:O})):L.error(`Error creating organization: ${ue.error||"Unknown error"}`,{id:O})}catch(Q){console.error("Error creating organization:",Q),L.error("Error creating organization",{id:O})}},at=async()=>{if(!ae.name){L.error("Please fill in the team name");return}if(!ae.organizationId){L.error("Please select an organization");return}const O=L.loading("Creating team...");try{const ue=await(await fetch("/api/teams",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ae.name,organizationId:ae.organizationId})})).json();ue.success?(y(!1),M({name:"",organizationId:""}),L.success("Team created successfully!",{id:O})):L.error(`Error creating team: ${ue.error||"Unknown error"}`,{id:O})}catch(Q){console.error("Error creating team:",Q),L.error("Error creating team",{id:O})}},hr=async()=>{if(!C){L.error("No organization selected");return}if(!V.name){L.error("Please fill in the organization name");return}const O=L.loading("Updating organization...");try{const ue=await(await fetch(`/api/organizations/${C.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:V.name,slug:V.slug})})).json();ue.success?(await k(),b(!1),I(null),S({name:"",slug:""}),L.success("Organization updated successfully!",{id:O})):L.error(`Error updating organization: ${ue.error||"Unknown error"}`,{id:O})}catch(Q){console.error("Error updating organization:",Q),L.error("Error updating organization",{id:O})}},Qr=async()=>{if(!C){L.error("No organization selected");return}const O=L.loading("Deleting organization...");try{const ue=await(await fetch(`/api/organizations/${C.id}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();ue.success?(await k(),p(!1),I(null),L.success("Organization deleted successfully!",{id:O})):L.error(`Error deleting organization: ${ue.error||"Unknown error"}`,{id:O})}catch(Q){console.error("Error deleting organization:",Q),L.error("Error deleting organization",{id:O})}},Pt=t.filter(O=>{var Te;const Q=O.name.toLowerCase().includes(o.toLowerCase())||O.slug.toLowerCase().includes(o.toLowerCase()),ue=d==="all"||((Te=O.metadata)==null?void 0:Te.status)===d;return Q&&ue});return s?n.jsx("div",{className:"flex items-center justify-center h-32",children:n.jsxs("div",{className:"flex flex-col items-center space-y-3",children:[n.jsx(dt,{className:"w-6 h-6 text-white animate-spin"}),n.jsx("div",{className:"text-white text-sm",children:"Loading organizations..."})]})}):i&&!i.enabled?n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-light",children:"Organizations"}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage your application organizations"})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-8",children:n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("div",{className:"flex-shrink-0",children:n.jsx(We,{className:"w-12 h-12 text-white"})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"Organization Plugin Required"}),n.jsx("p",{className:"text-gray-300 mb-6",children:"To use Organizations in Better Auth Studio, you need to enable the organization plugin in your Better Auth configuration."}),n.jsxs("div",{className:"bg-black/50 border border-dashed border-white/20 rounded-none p-4 mb-6",children:[n.jsx("h4",{className:"text-white font-light mb-3",children:"Follow these steps:"}),n.jsx("ol",{className:"text-gray-300 space-y-2 text-sm list-decimal list-inside",children:n.jsxs("li",{children:["Import the plugin in your auth configuration file",i.configPath&&n.jsxs("span",{className:"text-gray-400",children:[" (",i.configPath,")"]}),":"]})}),n.jsx("div",{className:"mt-4 bg-black/70 border border-dashed border-white/10 rounded-none p-3 overflow-x-auto",children:n.jsxs("pre",{className:"text-sm text-gray-300",children:[n.jsx("span",{className:"text-blue-400",children:"import"})," ","{ betterAuth }"," ",n.jsx("span",{className:"text-blue-400",children:"from"})," ",n.jsx("span",{className:"text-green-400",children:'"better-auth"'})," ",n.jsx("br",{}),n.jsx("span",{className:"text-blue-400",children:"import"})," ","{ organization }"," ",n.jsx("span",{className:"text-blue-400",children:"from"})," ",n.jsx("span",{className:"text-green-400",children:'"better-auth/plugins/organization"'})," ",n.jsx("br",{}),n.jsx("span",{className:"text-blue-400",children:"export const"})," ",n.jsx("span",{className:"text-yellow-300",children:"auth"})," = ",n.jsx("span",{className:"text-yellow-300",children:"betterAuth"}),"(","{"," ",n.jsx("br",{}),n.jsx("span",{className:"text-gray-500 pl-10",children:"// ... your existing configuration"})," ",n.jsx("br",{}),n.jsx("span",{className:"text-red-300 pl-10",children:"plugins"}),": [ ",n.jsx("br",{}),n.jsxs("span",{className:"text-yellow-300 pl-12",children:["organization(",")"]}),n.jsx("br",{}),n.jsx("span",{className:"pl-10",children:"]"})," ",n.jsx("br",{}),"}",") ",n.jsx("br",{})]})}),n.jsx("div",{className:"mt-4",children:n.jsx("p",{className:"text-gray-400 text-sm",children:"2. Do migrations to create the organizations table"})}),n.jsx("div",{className:"mt-2",children:n.jsx("p",{className:"text-gray-400 text-sm",children:"3. Restart your application to apply the changes"})})]}),i.availablePlugins&&i.availablePlugins.length>0&&n.jsx("div",{className:"mb-4",children:n.jsxs("p",{className:"text-gray-400 text-sm",children:["Currently enabled plugins: ",i.availablePlugins.join(", ")]})}),n.jsx(P,{onClick:()=>window.location.reload(),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Check Again"}),n.jsxs("div",{className:"mt-4 text-xs text-gray-500",children:["Need help? Check the"," ",n.jsx("a",{href:"https://better-auth.com/docs/plugins/organization",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:underline",children:"Better Auth Organization Plugin Documentation"})]})]})]})})]}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h1",{className:"text-2xl text-white font-light",children:["Organizations (",t.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage your organizations and teams"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",onClick:()=>T(!0),children:[n.jsx(ze,{className:"w-4 h-4 mr-2"}),"Seed"]}),n.jsxs(P,{className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",onClick:()=>y(!0),children:[n.jsx(Fn,{className:"w-4 h-4 mr-2"}),"Create Team"]}),n.jsxs(P,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",onClick:()=>x(!0),children:[n.jsx(Fn,{className:"w-4 h-4 mr-2"}),"Add Organization"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(hn,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(he,{placeholder:"Search organizations...",value:o,onChange:O=>c(O.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Qc,{className:"w-4 h-4 text-gray-400"}),n.jsxs(as,{value:d,onValueChange:m,children:[n.jsx(is,{children:n.jsx(ls,{})}),n.jsxs(os,{children:[n.jsx(St,{value:"all",children:"All"}),n.jsx(St,{value:"active",children:"Active"}),n.jsx(St,{value:"inactive",children:"Inactive"})]})]})]})]}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Organization"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Slug"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Created"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:Pt.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:4,className:"py-12 px-4 text-center",children:n.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(We,{className:"w-8 h-8 text-white/50"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-white font-medium text-lg",children:"No organizations found"}),n.jsx("p",{className:"text-gray-400 text-sm mt-1",children:o||d!=="all"?"Try adjusting your search or filter criteria":"Get started by creating your first organization"})]}),!o&&d==="all"&&n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{onClick:()=>x(!0),className:"bg-white text-black hover:bg-gray-200 rounded-none",children:[n.jsx(Fn,{className:"w-4 h-4 mr-2"}),"Create Organization"]}),n.jsxs(P,{onClick:()=>T(!0),className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",children:[n.jsx(ze,{className:"w-4 h-4 mr-2"}),"Seed Data"]})]})]})})}):Pt.map(O=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5 cursor-pointer",onClick:()=>e(`/organizations/${O.id}`),children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(We,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:O.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",O.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:O.slug}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:n.jsxs("div",{className:"flex flex-col",children:[new Date(O.createdAt).toLocaleDateString(),n.jsx("p",{className:"text-xs",children:new Date(O.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsx(P,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:Q=>{Q.stopPropagation(),J(O)},children:n.jsx(ga,{className:"w-4 h-4"})}),n.jsx(P,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:Q=>{Q.stopPropagation(),ne(O)},children:n.jsx(ss,{className:"w-4 h-4"})}),n.jsx(P,{variant:"ghost",size:"sm",className:"text-red-400 hover:text-red-300 rounded-none",onClick:Q=>{Q.stopPropagation(),de(O)},children:n.jsx(an,{className:"w-4 h-4"})})]})})]},O.id))})]})})}),N&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-2xl rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Data"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>T(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(We,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Organizations"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(fe,{htmlFor:"organization-count",className:"text-sm text-gray-400 font-light",children:"Number of organizations"}),n.jsx(he,{id:"organization-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(P,{onClick:()=>{var Q;const O=parseInt(((Q=document.getElementById("organization-count"))==null?void 0:Q.value)||"5");B(O)},disabled:Z,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6 disabled:opacity-50",children:Z?n.jsxs(n.Fragment,{children:[n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}),"Seeding..."]}):n.jsxs(n.Fragment,{children:[n.jsx(ze,{className:"w-3 h-3 mr-2"}),"Seed Organizations"]})})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Fn,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Teams"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(fe,{htmlFor:"team-count",className:"text-sm text-gray-400 font-light",children:"Number of teams"}),n.jsx(he,{id:"team-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(P,{onClick:()=>{var Q;const O=parseInt(((Q=document.getElementById("team-count"))==null?void 0:Q.value)||"5");Y(O)},disabled:Z,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6 disabled:opacity-50",children:Z?n.jsxs(n.Fragment,{children:[n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}),"Seeding..."]}):n.jsxs(n.Fragment,{children:[n.jsx(ze,{className:"w-3 h-3 mr-2"}),"Seed Teams"]})})]})]}),G.length>0&&n.jsx("div",{className:"mt-6",children:n.jsx(ca,{title:"Organization Seeding Terminal",lines:G,isRunning:Z,className:"w-full",defaultCollapsed:!0})})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(P,{variant:"outline",onClick:()=>T(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})}),w&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create Team"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>y(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"team-name",className:"text-sm text-gray-400 font-light",children:"Team Name"}),n.jsx(he,{id:"team-name",value:ae.name,onChange:O=>M(Q=>({...Q,name:O.target.value})),placeholder:"Enter team name",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"team-organization",className:"text-sm text-gray-400 font-light",children:"Organization"}),n.jsxs(as,{value:ae.organizationId,onValueChange:O=>M(Q=>({...Q,organizationId:O})),children:[n.jsx(is,{className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none",children:n.jsx(ls,{placeholder:"Select organization"})}),n.jsx(os,{children:t.map(O=>n.jsx(St,{value:O.id,children:O.name},O.id))})]})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>{y(!1),M({name:"",organizationId:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:at,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create"})]})]})}),u&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create Organization"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>x(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"create-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(he,{id:"create-name",value:q.name,onChange:O=>_(O.target.value),placeholder:"e.g. Acme Corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"create-slug",className:"text-sm text-gray-400 font-light",children:"Slug"}),n.jsx(he,{id:"create-slug",value:q.slug,onChange:O=>W(O.target.value),placeholder:"e.g. acme-corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Auto-generated from name. You can edit it manually."})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>{x(!1),se({name:"",slug:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:Ie,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create"})]})]})}),v&&C&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Organization"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(We,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:C.name}),n.jsx("div",{className:"text-sm text-gray-400",children:C.slug})]})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-name",className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx(he,{id:"edit-name",value:V.name,onChange:O=>E(O.target.value),placeholder:"e.g. Acme Corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-slug",className:"text-sm text-gray-400 font-light",children:"Slug"}),n.jsx(he,{id:"edit-slug",value:V.slug,onChange:O=>z(O.target.value),placeholder:"e.g. acme-corp",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"}),n.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Auto-generated from name. You can edit it manually."})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>{b(!1),S({name:"",slug:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:hr,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update"})]})]})}),f&&C&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete Organization"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(We,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:C.name}),n.jsx("div",{className:"text-sm text-gray-400",children:C.slug})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this organization? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>p(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:Qr,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete"})]})]})}),g&&C&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Organization Details"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>j(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(We,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:C.name}),n.jsx("div",{className:"text-sm text-gray-400",children:C.slug})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"ID:"}),n.jsx("span",{className:"text-white text-sm",children:C.id})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Created:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(C.createdAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Updated:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(C.updatedAt).toLocaleString()})]})]})]}),n.jsx("div",{className:"flex justify-end mt-6",children:n.jsx(P,{onClick:()=>j(!1),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Close"})})]})})]})}function fp(){const[e,t]=h.useState([]),[r,s]=h.useState(!0),[a,i]=h.useState(""),[l,o]=h.useState("all"),[c,d]=h.useState(!1),[m,u]=h.useState(!1),[x,w]=h.useState(!1),[y,v]=h.useState(!1),[b,f]=h.useState(!1),[p,g]=h.useState(null),[j,N]=h.useState([]),[T,C]=h.useState(!1);h.useEffect(()=>{I()},[]);const I=async()=>{try{const A=await(await fetch("/api/sessions")).json();t(A.sessions||[])}catch(S){console.error("Failed to fetch sessions:",S)}finally{s(!1)}},G=async S=>{N([]),C(!0),N([{id:"start",type:"info",message:`Starting session seeding process for ${S} sessions...`,timestamp:new Date}]);try{const _=await(await fetch("/api/seed/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:S})})).json();if(_.success){const W=_.results.map((z,R)=>z.success?{id:`session-${R}`,type:"progress",message:`Creating session: ${z.session.id}`,timestamp:new Date,status:"completed"}:{id:`session-${R}`,type:"error",message:`Failed to create session ${R+1}: ${z.error}`,timestamp:new Date});N(z=>[...z,...W]);const E=_.results.filter(z=>z.success).length;N(z=>[...z,{id:"complete",type:"success",message:`✅ Seeding completed! Created ${E}/${S} sessions successfully`,timestamp:new Date}]),await I()}else N(W=>[...W,{id:"error",type:"error",message:`❌ Seeding failed: ${_.error||"Unknown error"}`,timestamp:new Date}])}catch(A){N(_=>[..._,{id:"error",type:"error",message:`❌ Network error: ${A}`,timestamp:new Date}])}finally{C(!1)}},U=async S=>{N([]),C(!0),N([{id:"start",type:"info",message:`Starting account seeding process for ${S} accounts...`,timestamp:new Date}]);try{const _=await(await fetch("/api/seed/accounts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:S})})).json();if(_.success){const W=_.results.map((z,R)=>z.success?{id:`account-${R}`,type:"progress",message:`Creating account: ${z.account.provider}`,timestamp:new Date,status:"completed"}:{id:`account-${R}`,type:"error",message:`Failed to create account ${R+1}: ${z.error}`,timestamp:new Date});N(z=>[...z,...W]);const E=_.results.filter(z=>z.success).length;N(z=>[...z,{id:"complete",type:"success",message:`✅ Seeding completed! Created ${E}/${S} accounts successfully`,timestamp:new Date}]),await I()}else N(W=>[...W,{id:"error",type:"error",message:`❌ Seeding failed: ${_.error||"Unknown error"}`,timestamp:new Date}])}catch(A){N(_=>[..._,{id:"error",type:"error",message:`❌ Network error: ${A}`,timestamp:new Date}])}finally{C(!1)}},Z=S=>{g(S),v(!0)},H=S=>{g(S),u(!0)},q=S=>{g(S),w(!0)},se=async S=>{console.log("Creating session:",S),d(!1)},ae=async S=>{console.log("Updating session:",S),u(!1)},M=async()=>{console.log("Deleting session:",p==null?void 0:p.id),w(!1)},V=e.filter(S=>{const A=S.id.toLowerCase().includes(a.toLowerCase())||S.userId.toLowerCase().includes(a.toLowerCase()),_=l==="all"||l==="active"&&new Date(S.expiresAt)>new Date||l==="expired"&&new Date(S.expiresAt)<=new Date;return A&&_});return r?n.jsx("div",{className:"flex items-center justify-center h-32",children:n.jsxs("div",{className:"flex flex-col items-center space-y-3",children:[n.jsx(dt,{className:"w-6 h-6 text-white animate-spin"}),n.jsx("div",{className:"text-white text-sm",children:"Loading sessions..."})]})}):n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h1",{className:"text-2xl text-white font-light",children:["Sessions (",e.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage user sessions and accounts"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>f(!0),children:[n.jsx(ze,{className:"w-4 h-4 mr-2"}),"Seed"]}),n.jsxs(P,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",onClick:()=>d(!0),children:[n.jsx(Fn,{className:"w-4 h-4 mr-2"}),"Add Session"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"flex-1 relative",children:[n.jsx(hn,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(he,{placeholder:"Search sessions...",value:a,onChange:S=>i(S.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Qc,{className:"w-4 h-4 text-gray-400"}),n.jsxs(as,{value:l,onValueChange:o,children:[n.jsx(is,{children:n.jsx(ls,{})}),n.jsxs(os,{children:[n.jsx(St,{value:"all",children:"All"}),n.jsx(St,{value:"active",children:"Active"}),n.jsx(St,{value:"expired",children:"Expired"})]})]})]})]}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Session"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User ID"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Status"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Expires"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:V.map(S=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(ze,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",S.id.slice(0,8),"..."]}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",S.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:S.userId}),n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[new Date(S.expiresAt)>new Date?n.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}):n.jsx("div",{className:"w-2 h-2 bg-red-400 rounded-full"}),n.jsx("span",{className:"text-sm text-gray-400",children:new Date(S.expiresAt)>new Date?"Active":"Expired"})]})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(S.expiresAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsx(P,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>Z(S),children:n.jsx(ga,{className:"w-4 h-4"})}),n.jsx(P,{variant:"ghost",size:"sm",className:"text-gray-400 hover:text-white rounded-none",onClick:()=>H(S),children:n.jsx(ss,{className:"w-4 h-4"})}),n.jsx(P,{variant:"ghost",size:"sm",className:"text-red-400 hover:text-red-300 rounded-none",onClick:()=>q(S),children:n.jsx(an,{className:"w-4 h-4"})})]})})]},S.id))})]})})}),b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-2xl rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Data"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>f(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(ze,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Sessions"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(fe,{htmlFor:"session-count",className:"text-sm text-gray-400 font-light",children:"Number of sessions"}),n.jsx(he,{id:"session-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(P,{onClick:()=>{var A;const S=parseInt(((A=document.getElementById("session-count"))==null?void 0:A.value)||"5");G(S)},disabled:T,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6 disabled:opacity-50",children:T?n.jsxs(n.Fragment,{children:[n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}),"Seeding..."]}):n.jsxs(n.Fragment,{children:[n.jsx(ze,{className:"w-3 h-3 mr-2"}),"Seed Sessions"]})})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Su,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Seed Accounts"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(fe,{htmlFor:"account-count",className:"text-sm text-gray-400 font-light",children:"Number of accounts"}),n.jsx(he,{id:"account-count",type:"number",min:"1",max:"100",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(P,{onClick:()=>{var A;const S=parseInt(((A=document.getElementById("account-count"))==null?void 0:A.value)||"5");U(S)},disabled:T,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6 disabled:opacity-50",children:T?n.jsxs(n.Fragment,{children:[n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}),"Seeding..."]}):n.jsxs(n.Fragment,{children:[n.jsx(Su,{className:"w-3 h-3 mr-2"}),"Seed Accounts"]})})]})]}),j.length>0&&n.jsx("div",{className:"mt-6",children:n.jsx(ca,{title:"Session Seeding Terminal",lines:j,isRunning:T,className:"w-full",defaultCollapsed:!0})})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(P,{variant:"outline",onClick:()=>f(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})}),c&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create Session"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>d(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"create-user-id",className:"text-sm text-gray-400 font-light",children:"User ID"}),n.jsx(he,{id:"create-user-id",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"create-expires",className:"text-sm text-gray-400 font-light",children:"Expires At"}),n.jsx(he,{id:"create-expires",type:"datetime-local",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>d(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:()=>se({}),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create"})]})]})}),m&&p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Session"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>u(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(ze,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",p.id.slice(0,8),"..."]}),n.jsx("div",{className:"text-sm text-gray-400",children:p.userId})]})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-user-id",className:"text-sm text-gray-400 font-light",children:"User ID"}),n.jsx(he,{id:"edit-user-id",defaultValue:p.userId,className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-expires",className:"text-sm text-gray-400 font-light",children:"Expires At"}),n.jsx(he,{id:"edit-expires",type:"datetime-local",defaultValue:new Date(p.expiresAt).toISOString().slice(0,16),className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>u(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:()=>ae({}),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update"})]})]})}),x&&p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete Session"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>w(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(ze,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",p.id.slice(0,8),"..."]}),n.jsx("div",{className:"text-sm text-gray-400",children:p.userId})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this session? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>w(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:M,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete"})]})]})}),y&&p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Session Details"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>v(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 rounded-none border border-dashed border-white/20 bg-white/10 flex items-center justify-center",children:n.jsx(ze,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-white font-light",children:["Session ",p.id.slice(0,8),"..."]}),n.jsx("div",{className:"text-sm text-gray-400",children:p.userId})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"ID:"}),n.jsx("span",{className:"text-white text-sm",children:p.id})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"User ID:"}),n.jsx("span",{className:"text-white text-sm",children:p.userId})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Status:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.expiresAt)>new Date?"Active":"Expired"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Expires:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.expiresAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Created:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.createdAt).toLocaleString()})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{className:"text-gray-400",children:"Updated:"}),n.jsx("span",{className:"text-white text-sm",children:new Date(p.updatedAt).toLocaleString()})]})]})]}),n.jsx("div",{className:"flex justify-end mt-6",children:n.jsx(P,{onClick:()=>v(!1),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Close"})})]})})]})}function vb(){const[e,t]=h.useState("overview"),r=()=>n.jsxs("div",{className:"space-y-8 animate-fade-in px-6 py-8",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-normal",children:"Better Auth Studio"}),n.jsx("p",{className:"text-gray-400 mt-1 font-light",children:"Manage your authentication system"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[n.jsx(Je,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(Ze,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(xe,{className:"w-6 h-6 text-white"})}),n.jsx(oe,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Active"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"User Management"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Manage user accounts, profiles, and permissions"}),n.jsxs(P,{onClick:()=>t("users"),className:"w-full bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:["Manage Users",n.jsx(Zr,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Je,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(Ze,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(We,{className:"w-6 h-6 text-white"})}),n.jsx(oe,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Active"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Organizations"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Manage organizations, teams, and memberships"}),n.jsxs(P,{onClick:()=>t("organizations"),className:"w-full bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:["Manage Organizations",n.jsx(Zr,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Je,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(Ze,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(ze,{className:"w-6 h-6 text-white"})}),n.jsx(oe,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Active"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Session Management"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Monitor and manage user sessions"}),n.jsxs(P,{onClick:()=>t("sessions"),className:"w-full bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:["Manage Sessions",n.jsx(Zr,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Je,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(Ze,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(Yn,{className:"w-6 h-6 text-white"})}),n.jsx(oe,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Configured"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Configuration"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"View and manage auth configuration"}),n.jsxs(P,{variant:"outline",className:"w-full border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:["View Config",n.jsx(Zr,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Je,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(Ze,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(Vo,{className:"w-6 h-6 text-white"})}),n.jsx(oe,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Coming Soon"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Analytics"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"View authentication analytics and insights"}),n.jsxs(P,{variant:"outline",disabled:!0,className:"w-full border border-dashed border-white/20 text-gray-400 rounded-none",children:["View Analytics",n.jsx(Zr,{className:"w-4 h-4 ml-2"})]})]})}),n.jsx(Je,{className:"border border-dashed border-white/20 bg-black/30 rounded-none hover:bg-black/50 transition-colors",children:n.jsxs(Ze,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("div",{className:"p-3 bg-white/10 rounded-none",children:n.jsx(si,{className:"w-6 h-6 text-white"})}),n.jsx(oe,{className:"bg-white/10 text-white border border-dashed border-white/20 rounded-none",children:"Available"})]}),n.jsx("h3",{className:"text-lg text-white font-light mb-2",children:"Quick Actions"}),n.jsx("p",{className:"text-gray-400 font-light mb-4",children:"Common tasks and shortcuts"}),n.jsxs(P,{variant:"outline",className:"w-full border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:["View Actions",n.jsx(Zr,{className:"w-4 h-4 ml-2"})]})]})})]})]});return n.jsx("div",{className:"min-h-screen bg-black text-white",children:e==="overview"?r():e==="users"?n.jsx(hp,{}):e==="organizations"?n.jsx(mp,{}):e==="sessions"?n.jsx(fp,{}):r()})}function yb(){const{orgId:e}=pf(),t=Ji(),[r,s]=h.useState(null),[a,i]=h.useState([]),[l,o]=h.useState([]),[c,d]=h.useState([]),[m,u]=h.useState(!0),[x,w]=h.useState("details"),[y,v]=h.useState(!1),[b,f]=h.useState(!1),[p,g]=h.useState(!1),[j,N]=h.useState(!1),[T,C]=h.useState(!1),[I,G]=h.useState(!1),[U,Z]=h.useState(!1),[H,q]=h.useState(null),[se,ae]=h.useState(""),[M,V]=h.useState(""),[S,A]=h.useState([]),[_,W]=h.useState({name:""}),[E,z]=h.useState(!1),[R,k]=h.useState([]),[B,Y]=h.useState(!1),[J,ne]=h.useState([]),[de,Ie]=h.useState(!1);h.useEffect(()=>{e&&(hr(),Qr(),O(),Q(),Pt())},[e]),h.useEffect(()=>{y&&e&&Pt()},[]),h.useEffect(()=>{x==="members"&&e&&Q()},[x,e]),h.useEffect(()=>{x==="invitations"&&e&&O()},[x,e]);const at=D=>{W({name:D})},hr=async()=>{try{const X=await(await fetch(`/api/organizations/${e}`)).json();X.success?s(X.organization):L.error("Organization not found")}catch(D){console.error("Failed to fetch organization:",D),L.error("Failed to load organization")}finally{u(!1)}},Qr=async()=>{try{const X=await(await fetch("/api/plugins/teams/status")).json();v(X.enabled)}catch(D){console.error("Failed to check teams status:",D),v(!1)}},Pt=async()=>{try{const X=await(await fetch(`/api/organizations/${e}/teams`)).json();X.success&&i(X.teams||[])}catch(D){console.error("Failed to fetch teams:",D),L.error("Failed to load teams")}},O=async()=>{try{const X=await(await fetch(`/api/organizations/${e}/invitations`)).json();X.success&&o(X.invitations||[])}catch(D){console.error("Failed to fetch invitations:",D),L.error("Failed to load invitations")}},Q=async()=>{try{const X=await(await fetch(`/api/organizations/${e}/members`)).json();X.success&&d(X.members||[])}catch(D){console.error("Failed to fetch members:",D),L.error("Failed to load members")}},ue=async D=>{k([]),Y(!0),k([{id:"start",type:"info",message:`Starting member seeding process for ${D} members...`,timestamp:new Date}]);try{const re=await(await fetch(`/api/organizations/${e}/seed-members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:D})})).json();if(re.success){const Ae=re.results.map((ke,Jt)=>ke.success?{id:`member-${Jt}`,type:"progress",message:`Adding member: ${ke.member.user.name} (${ke.member.user.email})`,timestamp:new Date,status:"completed"}:{id:`member-${Jt}`,type:"error",message:`Failed to add member ${Jt+1}: ${ke.error}`,timestamp:new Date});k(ke=>[...ke,...Ae]);const it=re.results.filter(ke=>ke.success).length;k(ke=>[...ke,{id:"complete",type:"success",message:`✅ Seeding completed! Added ${it}/${D} members successfully`,timestamp:new Date}]),await Q(),L.success(`Successfully added ${it} members!`)}else k(Ae=>[...Ae,{id:"error",type:"error",message:`❌ Seeding failed: ${re.error||"Unknown error"}`,timestamp:new Date}]),L.error(re.error||"Failed to seed members")}catch(X){k(re=>[...re,{id:"error",type:"error",message:`❌ Network error: ${X}`,timestamp:new Date}]),L.error("Failed to seed members")}finally{Y(!1)}},Te=async D=>{ne([]),Ie(!0),ne([{id:"start",type:"info",message:`Starting team seeding process for ${D} teams...`,timestamp:new Date}]);try{const re=await(await fetch(`/api/organizations/${e}/seed-teams`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:D})})).json();if(re.success){const Ae=re.results.map((ke,Jt)=>ke.success?{id:`team-${Jt}`,type:"progress",message:`Creating team: ${ke.team.name}`,timestamp:new Date,status:"completed"}:{id:`team-${Jt}`,type:"error",message:`Failed to create team ${Jt+1}: ${ke.error}`,timestamp:new Date});ne(ke=>[...ke,...Ae]);const it=re.results.filter(ke=>ke.success).length;ne(ke=>[...ke,{id:"complete",type:"success",message:`✅ Seeding completed! Created ${it}/${D} teams successfully`,timestamp:new Date}]),await Pt(),L.success(`Successfully created ${it} teams!`)}else ne(Ae=>[...Ae,{id:"error",type:"error",message:`❌ Seeding failed: ${re.error||"Unknown error"}`,timestamp:new Date}]),L.error(re.error||"Failed to seed teams")}catch(X){ne(re=>[...re,{id:"error",type:"error",message:`❌ Network error: ${X}`,timestamp:new Date}]),L.error("Failed to seed teams")}finally{Ie(!1)}},Yr=async()=>{try{const X=await(await fetch("/api/users/all")).json();X.success&&A(X.users||[])}catch(D){console.error("Failed to fetch users:",D)}},pe=()=>{Yr(),f(!0)},Ne=async()=>{if(!se){L.error("Please enter an email address");return}if(!M){L.error("Please select an inviter");return}z(!0);const D=L.loading("Sending invitation...");try{const re=await(await fetch(`/api/organizations/${e}/invitations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:se,role:"member",inviterId:M})})).json();re.success?(await O(),f(!1),ae(""),V(""),L.success("Invitation sent successfully!",{id:D})):L.error(`Error sending invitation: ${re.error||"Unknown error"}`,{id:D})}catch(X){console.error("Error sending invitation:",X),L.error("Error sending invitation",{id:D})}finally{z(!1)}},mr=async D=>{const X=L.loading("Cancelling invitation...");try{const Ae=await(await fetch(`/api/invitations/${D}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();Ae.success?(await O(),L.success("Invitation cancelled successfully!",{id:X})):L.error(`Error cancelling invitation: ${Ae.error||"Unknown error"}`,{id:X})}catch(re){console.error("Error cancelling invitation:",re),L.error("Error cancelling invitation",{id:X})}},rl=async(D,X)=>{const re=L.loading("Resending invitation...");try{const it=await(await fetch(`/api/invitations/${D}/resend`,{method:"POST",headers:{"Content-Type":"application/json"}})).json();it.success?(await O(),L.success(`Invitation resent to ${X}!`,{id:re})):L.error(`Error resending invitation: ${it.error||"Unknown error"}`,{id:re})}catch(Ae){console.error("Error resending invitation:",Ae),L.error("Error resending invitation",{id:re})}},nl=async(D,X)=>{const re=L.loading(`Removing ${X}...`);try{const it=await(await fetch(`/api/members/${D}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();it.success?(await Q(),L.success(`${X} removed from organization!`,{id:re})):L.error(`Error removing member: ${it.error||"Unknown error"}`,{id:re})}catch(Ae){console.error("Error removing member:",Ae),L.error("Error removing member",{id:re})}},wn=async()=>{if(!_.name){L.error("Please enter a team name");return}const D=L.loading("Creating team...");try{const re=await(await fetch(`/api/organizations/${e}/teams`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:_.name,organizationId:e})})).json();re.success?(await Pt(),C(!1),W({name:""}),L.success("Team created successfully!",{id:D})):L.error(`Error creating team: ${re.error||"Unknown error"}`,{id:D})}catch(X){console.error("Error creating team:",X),L.error("Error creating team",{id:D})}},sl=async()=>{if(!H||!_.name){L.error("Please enter a team name");return}const D=L.loading("Updating team...");try{const re=await(await fetch(`/api/teams/${H.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:_.name})})).json();re.success?(await Pt(),G(!1),q(null),W({name:""}),L.success("Team updated successfully!",{id:D})):L.error(`Error updating team: ${re.error||"Unknown error"}`,{id:D})}catch(X){console.error("Error updating team:",X),L.error("Error updating team",{id:D})}},wa=async()=>{if(!H){L.error("No team selected");return}const D=L.loading("Deleting team...");try{const re=await(await fetch(`/api/teams/${H.id}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();re.success?(await Pt(),Z(!1),q(null),L.success("Team deleted successfully!",{id:D})):L.error(`Error deleting team: ${re.error||"Unknown error"}`,{id:D})}catch(X){console.error("Error deleting team:",X),L.error("Error deleting team",{id:D})}},fs=D=>{q(D),W({name:D.name}),G(!0)},fr=D=>{q(D),Z(!0)};return m?n.jsx("div",{className:"flex items-center justify-center h-32",children:n.jsxs("div",{className:"flex flex-col items-center space-y-3",children:[n.jsx(dt,{className:"w-6 h-6 text-white animate-spin"}),n.jsx("div",{className:"text-white text-sm",children:"Loading organization details..."})]})}):r?n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Qn,{to:"/organizations",children:n.jsxs(P,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(Mi,{className:"w-4 h-4 mr-2"}),"Back to Organizations"]})})}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{onClick:()=>g(!0),className:"border border-dashed border-white/20 text-white bg-transparent hover:bg-white/10 rounded-none",children:[n.jsx(xe,{className:"w-4 h-4 mr-2"}),"Seed Members"]}),n.jsxs(P,{onClick:pe,className:"border border-dashed border-white/20 text-white bg-transparent hover:bg-white/10 rounded-none",children:[n.jsx(Lt,{className:"w-4 h-4 mr-2"}),"Invite User"]}),n.jsxs(P,{className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(ss,{className:"w-4 h-4 mr-2"}),"Edit Organization"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-12 h-12 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(We,{className:"w-6 h-6 text-white"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-light",children:r.name}),n.jsx("p",{className:"text-gray-400",children:r.slug})]})]}),n.jsx("div",{className:"border-b border-white/10",children:n.jsxs("nav",{className:"flex space-x-8",children:[n.jsxs("button",{onClick:()=>w("details"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="details"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(We,{className:"w-4 h-4"}),n.jsx("span",{children:"Details"}),n.jsx(oe,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:c.length+l.length+a.length})]}),n.jsxs("button",{onClick:()=>w("members"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="members"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Members"}),c.length>0&&n.jsx(oe,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:c.length})]}),n.jsxs("button",{onClick:()=>w("invitations"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="invitations"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(Lt,{className:"w-4 h-4"}),n.jsx("span",{children:"Invitations"}),l.length>0&&n.jsx(oe,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:l.length})]}),n.jsxs("button",{onClick:()=>w("teams"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${x==="teams"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Teams"}),a.length>0&&n.jsx(oe,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:a.length})]})]})}),x==="details"&&n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:[n.jsx("h3",{className:"text-lg text-white font-light mb-4",children:"Organization Information"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx("p",{className:"text-white mt-1",children:r.name})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Slug"}),n.jsx("p",{className:"text-white mt-1",children:r.slug})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Created"}),n.jsx("p",{className:"text-white mt-1",children:new Date(r.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Last Updated"}),n.jsx("p",{className:"text-white mt-1",children:new Date(r.updatedAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:c.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Members"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:a.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Teams"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Lt,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:l.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Invitations"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(wf,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:Math.ceil((new Date().getTime()-new Date(r.createdAt).getTime())/(1e3*60*60*24))}),n.jsx("p",{className:"text-sm text-gray-400",children:"Days Active"})]})]})})]})]}),x==="teams"&&n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Teams (",a.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage teams within this organization"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{onClick:()=>N(!0),className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",children:[n.jsx(ze,{className:"w-4 h-4 mr-2"}),"Seed Teams"]}),n.jsxs(P,{onClick:()=>C(!0),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Or,{className:"w-4 h-4 mr-2"}),"Create Team"]})]})]}),a.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Team"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Members"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Created"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:a.map(D=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:D.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Team ID: ",D.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:D.memberCount||0}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(D.createdAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsxs(P,{variant:"outline",size:"sm",className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>t(`/teams/${D.id}`),children:[n.jsx(ga,{className:"w-4 h-4 mr-1"}),"View"]}),n.jsxs(P,{variant:"outline",size:"sm",className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>fs(D),children:[n.jsx(ss,{className:"w-4 h-4 mr-1"}),"Edit"]}),n.jsxs(P,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>fr(D),children:[n.jsx(an,{className:"w-4 h-4 mr-1"}),"Delete"]})]})})]},D.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Teams Yet"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Create your first team to start organizing members within this organization."}),n.jsxs(P,{onClick:()=>C(!0),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Or,{className:"w-4 h-4 mr-2"}),"Create First Team"]})]})})]}),x==="members"&&n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Members (",c.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage organization members and their roles"})]})}),c.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Role"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Joined"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:c.map(D=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:D.user.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${D.user.id}`,alt:D.user.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:D.user.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",D.user.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:D.user.email}),n.jsx("td",{className:"py-4 px-4",children:n.jsx(oe,{variant:"secondary",className:"text-xs bg-blue-900/10 border border-dashed rounded-none border-blue-500/30 text-blue-400/70 capitalize",children:D.role})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(D.joinedAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("div",{className:"flex items-center justify-end space-x-2",children:n.jsxs(P,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>nl(D.id,D.user.name),children:[n.jsx(an,{className:"w-4 h-4 mr-1"}),"Remove"]})})})]},D.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Members Yet"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Invite users or seed members from existing users to get started."}),n.jsxs("div",{className:"flex items-center justify-center space-x-3",children:[n.jsxs(P,{onClick:()=>g(!0),className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",children:[n.jsx(xe,{className:"w-4 h-4 mr-2"}),"Seed Members"]}),n.jsxs(P,{onClick:pe,className:"bg-white hover:bg-white/90 bg-transparent border border-white/20 rounded-none",children:[n.jsx(Lt,{className:"w-4 h-4 mr-2"}),"Invite User"]})]})]})})]}),x==="invitations"&&n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Invitations (",l.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage pending invitations to this organization"})]})}),l.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Role"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Status"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Expires"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:l.map(D=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-10 h-10 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(Lt,{className:"w-5 h-5 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:D.email}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Invited ",new Date(D.createdAt).toLocaleDateString()]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white capitalize",children:D.role}),n.jsx("td",{className:"py-4 px-4",children:n.jsxs(oe,{variant:"secondary",className:`text-xs font-normal rounded-none border-dashed flex items-center gap-1 w-fit ${D.status==="pending"?"bg-yellow-900/10 border border-yellow-500/30 text-yellow-400/70":D.status==="accepted"?"bg-green-900/10 border border-green-500/30 text-green-400/70":"bg-red-900/10 border border-red-500/30 text-red-400/70"}`,children:[D.status==="pending"&&n.jsx(Ms,{className:"w-3 h-3"}),D.status==="accepted"&&n.jsx(Le,{className:"w-3 h-3"}),D.status==="expired"&&n.jsx(we,{className:"w-3 h-3"}),D.status]})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(D.expiresAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[n.jsxs(P,{variant:"outline",size:"sm",className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",onClick:()=>rl(D.id,D.email),children:[n.jsx(ku,{className:"w-4 h-4 mr-1"}),"Resend"]}),n.jsxs(P,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>mr(D.id),children:[n.jsx(an,{className:"w-4 h-4 mr-1"}),"Cancel"]})]})})]},D.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(Lt,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Invitations"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Start inviting users to join this organization."}),n.jsxs(P,{onClick:pe,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Lt,{className:"w-4 h-4 mr-2"}),"Send First Invitation"]})]})})]}),b&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Invite User"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>{f(!1),ae(""),V("")},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"invite-email",className:"text-sm text-gray-400 font-light",children:"Email Address"}),n.jsx(he,{id:"invite-email",type:"email",value:se,onChange:D=>ae(D.target.value),placeholder:"user@example.com",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"inviter-select",className:"text-sm text-gray-400 font-light",children:"Inviter"}),n.jsxs(as,{value:M,onValueChange:V,children:[n.jsx(is,{children:n.jsx(ls,{placeholder:"Select an inviter..."})}),n.jsx(os,{children:S.map(D=>n.jsx(St,{value:D.id,children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("img",{src:D.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${D.id}`,alt:D.name,className:"w-6 h-6 rounded-none border border-dashed border-white/20"}),n.jsxs("span",{children:[D.name," (",D.email,")"]})]})},D.id))})]})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>{f(!1),ae(""),V("")},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsxs(P,{onClick:Ne,disabled:E,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none disabled:opacity-50",children:[E?n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}):n.jsx(ku,{className:"w-4 h-4 mr-2"}),E?"Sending...":"Send Invitation"]})]})]})}),T&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Create Team"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>{C(!1),W({name:""})},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsx("div",{className:"space-y-4",children:n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"team-name",className:"text-sm text-gray-400 font-light",children:"Team Name"}),n.jsx(he,{id:"team-name",value:_.name,onChange:D=>at(D.target.value),placeholder:"e.g. Development Team",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>{C(!1),W({name:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:wn,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Create Team"})]})]})}),I&&H&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Team"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>{G(!1),W({name:""})},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:H.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Team ID: ",H.id]})]})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-team-name",className:"text-sm text-gray-400 font-light",children:"Team Name"}),n.jsx(he,{id:"edit-team-name",value:_.name,onChange:D=>at(D.target.value),placeholder:"e.g. Development Team",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>{G(!1),W({name:""})},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:sl,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update Team"})]})]})}),U&&H&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Delete Team"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>Z(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:H.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["Team ID: ",H.id]})]})]}),n.jsx("p",{className:"text-gray-400",children:"Are you sure you want to delete this team? This action cannot be undone."})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>Z(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:wa,className:"bg-red-600 hover:bg-red-700 text-white border border-red-600 rounded-none",children:"Delete Team"})]})]})}),p&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-2xl rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Members"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>g(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(xe,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Add Members from Existing Users"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(fe,{htmlFor:"member-count",className:"text-sm text-gray-400 font-light",children:"Number of members to add"}),n.jsx(he,{id:"member-count",type:"number",min:"1",max:"50",defaultValue:"5",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(P,{onClick:()=>{var X;const D=parseInt(((X=document.getElementById("member-count"))==null?void 0:X.value)||"5");ue(D)},disabled:B,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6 disabled:opacity-50",children:B?n.jsxs(n.Fragment,{children:[n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}),"Seeding..."]}):n.jsxs(n.Fragment,{children:[n.jsx(xe,{className:"w-3 h-3 mr-2"}),"Seed Members"]})})]})]}),R.length>0&&n.jsx("div",{className:"mt-6",children:n.jsx(ca,{title:"Member Seeding Terminal",lines:R,isRunning:B,className:"w-full",defaultCollapsed:!0})})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(P,{variant:"outline",onClick:()=>g(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})}),j&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-2xl rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Seed Teams"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>N(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(We,{className:"w-5 h-5 text-white"}),n.jsx("h4",{className:"text-white font-light",children:"Create Teams"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(fe,{htmlFor:"team-count",className:"text-sm text-gray-400 font-light",children:"Number of teams to create"}),n.jsx(he,{id:"team-count",type:"number",min:"1",max:"20",defaultValue:"3",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),n.jsx(P,{onClick:()=>{var X;const D=parseInt(((X=document.getElementById("team-count"))==null?void 0:X.value)||"3");Te(D)},disabled:de,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none mt-6 disabled:opacity-50",children:de?n.jsxs(n.Fragment,{children:[n.jsx(dt,{className:"w-3 h-3 mr-2 animate-spin"}),"Seeding..."]}):n.jsxs(n.Fragment,{children:[n.jsx(We,{className:"w-3 h-3 mr-2"}),"Seed Teams"]})})]})]}),J.length>0&&n.jsx("div",{className:"mt-6",children:n.jsx(ca,{title:"Team Seeding Terminal",lines:J,isRunning:de,className:"w-full",defaultCollapsed:!0})})]}),n.jsx("div",{className:"flex justify-end mt-6 pt-6 border-t border-dashed border-white/10",children:n.jsx(P,{variant:"outline",onClick:()=>N(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Close"})})]})})]}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Qn,{to:"/organizations",children:n.jsxs(P,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(Mi,{className:"w-4 h-4 mr-2"}),"Back to Organizations"]})})}),n.jsx("br",{}),n.jsxs("div",{className:"text-center py-12",children:[n.jsx(We,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h2",{className:"text-xl text-white font-light mb-2",children:"Organization Not Found"}),n.jsx("p",{className:"text-gray-400",children:"The organization you're looking for doesn't exist."})]})]})}function wb(){var se,ae;const{teamId:e}=pf(),[t,r]=h.useState(null),[s,a]=h.useState([]),[i,l]=h.useState(!0),[o,c]=h.useState("details"),[d,m]=h.useState(!1),[u,x]=h.useState(!1),[w,y]=h.useState(""),[v,b]=h.useState([]),[f,p]=h.useState([]),[g,j]=h.useState({name:""});h.useEffect(()=>{e&&(N(),T())},[e]);const N=async()=>{try{const V=await(await fetch(`/api/teams/${e}`)).json();V.success?(r(V.team),j({name:V.team.name})):L.error("Team not found")}catch(M){console.error("Failed to fetch team:",M),L.error("Failed to load team")}finally{l(!1)}},T=async()=>{try{const V=await(await fetch(`/api/teams/${e}/members`)).json();V.success&&a(V.members||[])}catch(M){console.error("Failed to fetch team members:",M),L.error("Failed to load team members")}},C=async()=>{try{const V=await(await fetch("/api/users?limit=10000")).json(),S=s.map(_=>_.userId),A=(V.users||[]).filter(_=>!S.includes(_.id));b(A)}catch(M){console.error("Failed to fetch available users:",M),L.error("Failed to load users")}},I=async()=>{if(!g.name){L.error("Please enter a team name");return}const M=L.loading("Updating team...");try{const S=await(await fetch(`/api/teams/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:g.name})})).json();S.success?(await N(),x(!1),L.success("Team updated successfully!",{id:M})):L.error(`Error updating team: ${S.error||"Unknown error"}`,{id:M})}catch(V){console.error("Error updating team:",V),L.error("Error updating team",{id:M})}},G=async()=>{if(f.length===0){L.error("Please select at least one user");return}const M=L.loading(`Adding ${f.length} members...`);try{const S=await(await fetch(`/api/teams/${e}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userIds:f})})).json();S.success?(await T(),m(!1),p([]),y(""),L.success(`Successfully added ${f.length} members!`,{id:M})):L.error(`Error adding members: ${S.error||"Unknown error"}`,{id:M})}catch(V){console.error("Error adding members:",V),L.error("Error adding members",{id:M})}},U=async(M,V)=>{const S=L.loading(`Removing ${V}...`);try{const _=await(await fetch(`/api/team-members/${M}`,{method:"DELETE",headers:{"Content-Type":"application/json"}})).json();_.success?(await T(),L.success(`${V} removed from team!`,{id:S})):L.error(`Error removing member: ${_.error||"Unknown error"}`,{id:S})}catch(A){console.error("Error removing team member:",A),L.error("Error removing team member",{id:S})}},Z=()=>{C(),m(!0)},H=M=>{p(V=>V.includes(M)?V.filter(S=>S!==M):[...V,M])},q=v.filter(M=>M.name.toLowerCase().includes(w.toLowerCase())||M.email.toLowerCase().includes(w.toLowerCase()));return i?n.jsx("div",{className:"flex items-center justify-center h-32",children:n.jsxs("div",{className:"flex flex-col items-center space-y-3",children:[n.jsx(dt,{className:"w-6 h-6 text-white animate-spin"}),n.jsx("div",{className:"text-white text-sm",children:"Loading team details..."})]})}):t?n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Qn,{to:`/organizations/${t.organizationId}`,children:n.jsxs(P,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(Mi,{className:"w-4 h-4 mr-2"}),"Back to Organization"]})})}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs(P,{onClick:Z,className:"border border-dashed border-white/20 text-white hover:bg-white/10 bg-transparent rounded-none",children:[n.jsx(Or,{className:"w-4 h-4 mr-2"}),"Add Members"]}),n.jsxs(P,{onClick:()=>x(!0),className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(ss,{className:"w-4 h-4 mr-2"}),"Edit Team"]})]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-12 h-12 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-6 h-6 text-white"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl text-white font-light",children:t.name}),n.jsx("div",{className:"flex items-center space-x-2",children:t.organization&&n.jsxs(Qn,{to:`/organizations/${t.organizationId}`,className:"text-gray-400 hover:text-white text-sm",children:[n.jsx(We,{className:"w-4 h-4 inline mr-1"}),t.organization.name]})})]})]}),n.jsx("div",{className:"border-b border-white/10",children:n.jsxs("nav",{className:"flex space-x-8",children:[n.jsxs("button",{onClick:()=>c("details"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${o==="details"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Details"})]}),n.jsxs("button",{onClick:()=>c("members"),className:`flex items-center space-x-2 px-3 py-4 text-sm font-medium border-b-2 transition-all duration-200 ${o==="members"?"border-white text-white":"border-transparent text-gray-400 hover:text-white hover:border-gray-300"}`,children:[n.jsx(xe,{className:"w-4 h-4"}),n.jsx("span",{children:"Members"}),s.length>0&&n.jsx(oe,{variant:"secondary",className:"text-xs bg-white/10 border border-white/20 rounded-sm",children:s.length})]})]})}),o==="details"&&n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:[n.jsx("h3",{className:"text-lg text-white font-light mb-4",children:"Team Information"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Name"}),n.jsx("p",{className:"text-white mt-1",children:t.name})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Organization"}),n.jsx("p",{className:"text-white mt-1",children:((se=t.organization)==null?void 0:se.name)||"Unknown"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Created"}),n.jsx("p",{className:"text-white mt-1",children:new Date(t.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-sm text-gray-400 font-light",children:"Last Updated"}),n.jsx("p",{className:"text-white mt-1",children:new Date(t.updatedAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:s.length}),n.jsx("p",{className:"text-sm text-gray-400",children:"Members"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(wf,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:Math.ceil((new Date().getTime()-new Date(t.createdAt).getTime())/(1e3*60*60*24))}),n.jsx("p",{className:"text-sm text-gray-400",children:"Days Active"})]})]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-6",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(We,{className:"w-8 h-8 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-2xl text-white font-light",children:"1"}),n.jsx("p",{className:"text-sm text-gray-400",children:"Organization"})]})]})})]})]}),o==="members"&&n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsxs("h3",{className:"text-lg text-white font-light",children:["Team Members (",s.length,")"]}),n.jsx("p",{className:"text-gray-400 mt-1",children:"Manage members of this team"})]})}),s.length>0?n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-dashed border-white/10",children:[n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"User"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Email"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Role"}),n.jsx("th",{className:"text-left py-4 px-4 text-white font-light",children:"Joined"}),n.jsx("th",{className:"text-right py-4 px-4 text-white font-light",children:"Actions"})]})}),n.jsx("tbody",{children:s.map(M=>n.jsxs("tr",{className:"border-b border-dashed border-white/5 hover:bg-white/5",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:M.user.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${M.user.id}`,alt:M.user.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:M.user.name}),n.jsxs("div",{className:"text-sm text-gray-400",children:["ID: ",M.user.id]})]})]})}),n.jsx("td",{className:"py-4 px-4 text-white",children:M.user.email}),n.jsx("td",{className:"py-4 px-4",children:n.jsx(oe,{variant:"secondary",className:"text-xs bg-blue-900/10 border border-dashed border-blue-500/30 text-blue-400/70 rounded-none capitalize",children:M.role})}),n.jsx("td",{className:"py-4 px-4 text-sm text-gray-400",children:new Date(M.joinedAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("div",{className:"flex items-center justify-end space-x-2",children:n.jsxs(P,{variant:"outline",size:"sm",className:"border border-dashed border-red-400/50 text-red-400 hover:bg-red-400/10 rounded-none",onClick:()=>U(M.id,M.user.name),children:[n.jsx(an,{className:"w-4 h-4 mr-1"}),"Remove"]})})})]},M.id))})]})})}):n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none p-12",children:n.jsxs("div",{className:"text-center",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-xl text-white font-light mb-2",children:"No Members Yet"}),n.jsx("p",{className:"text-gray-400 mb-6",children:"Add members to this team to get started."}),n.jsxs(P,{onClick:Z,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:[n.jsx(Or,{className:"w-4 h-4 mr-2"}),"Add First Members"]})]})})]}),d&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-2xl rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Add Team Members"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>{m(!1),p([]),y("")},className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"relative",children:[n.jsx(hn,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),n.jsx(he,{placeholder:"Search users by name or email...",value:w,onChange:M=>y(M.target.value),className:"pl-10 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]}),f.length>0&&n.jsx("div",{className:"bg-blue-900/20 border border-blue-500/30 rounded-none p-3",children:n.jsxs("p",{className:"text-blue-400 text-sm",children:[f.length," user",f.length!==1?"s":""," selected"]})}),n.jsx("div",{className:"bg-black/30 border border-dashed border-white/20 rounded-none max-h-96 overflow-y-auto",children:q.length>0?n.jsx("div",{className:"divide-y divide-white/5",children:q.map(M=>n.jsxs("div",{className:`flex items-center space-x-3 p-4 cursor-pointer hover:bg-white/5 ${f.includes(M.id)?"bg-blue-900/20":""}`,onClick:()=>H(M.id),children:[n.jsx("input",{type:"checkbox",checked:f.includes(M.id),onChange:()=>H(M.id),className:"rounded border-gray-300"}),n.jsx("img",{src:M.image||`https://api.dicebear.com/7.x/avataaars/svg?seed=${M.id}`,alt:M.name,className:"w-10 h-10 rounded-none border border-dashed border-white/20"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{className:"text-white font-light",children:M.name}),n.jsx("div",{className:"text-sm text-gray-400",children:M.email})]})]},M.id))}):n.jsx("div",{className:"p-8 text-center",children:n.jsx("p",{className:"text-gray-400",children:"No users found matching your search."})})})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>{m(!1),p([]),y("")},className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsxs(P,{onClick:G,disabled:f.length===0,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none disabled:opacity-50",children:[n.jsx(Or,{className:"w-4 h-4 mr-2"}),"Add ",f.length," Member",f.length!==1?"s":""]})]})]})}),u&&n.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:n.jsxs("div",{className:"bg-black/90 border border-dashed border-white/20 p-6 w-full max-w-md rounded-none",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg text-white font-light",children:"Edit Team"}),n.jsx(P,{variant:"ghost",size:"sm",onClick:()=>x(!1),className:"text-gray-400 hover:text-white rounded-none",children:n.jsx(we,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"w-16 h-16 bg-white/10 border border-dashed border-white/20 rounded-none flex items-center justify-center",children:n.jsx(xe,{className:"w-8 h-8 text-white"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-light",children:t.name}),n.jsx("div",{className:"text-sm text-gray-400",children:(ae=t.organization)==null?void 0:ae.name})]})]}),n.jsxs("div",{children:[n.jsx(fe,{htmlFor:"edit-team-name",className:"text-sm text-gray-400 font-light",children:"Team Name"}),n.jsx(he,{id:"edit-team-name",value:g.name,onChange:M=>j({name:M.target.value}),placeholder:"e.g. Development Team",className:"mt-1 border border-dashed border-white/20 bg-black/30 text-white rounded-none"})]})]}),n.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[n.jsx(P,{variant:"outline",onClick:()=>x(!1),className:"border border-dashed border-white/20 text-white hover:bg-white/10 rounded-none",children:"Cancel"}),n.jsx(P,{onClick:I,className:"bg-white hover:bg-white/90 text-black border border-white/20 rounded-none",children:"Update Team"})]})]})})]}):n.jsxs("div",{className:"space-y-6 p-6",children:[n.jsx("div",{className:"flex items-center space-x-4",children:n.jsx(Qn,{to:"/organizations",children:n.jsxs(P,{variant:"ghost",className:"text-gray-400 hover:text-white rounded-none",children:[n.jsx(Mi,{className:"w-4 h-4 mr-2"}),"Back to Organizations"]})})}),n.jsxs("div",{className:"text-center py-12",children:[n.jsx(xe,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h2",{className:"text-xl text-white font-light mb-2",children:"Team Not Found"}),n.jsx("p",{className:"text-gray-400",children:"The team you're looking for doesn't exist."})]})]})}function bb(){var w,y,v,b,f,p,g,j,N,T,C,I,G,U,Z,H,q,se,ae,M,V,S,A,_,W,E,z;const[e,t]=h.useState(null),[r,s]=h.useState(null),[a,i]=h.useState(null),[l,o]=h.useState(!0);h.useEffect(()=>{c(),d(),m()},[]);const c=async()=>{try{const k=await(await fetch("/api/config")).json();console.log("Config data:",k),t(k)}catch(R){console.error("Failed to fetch config:",R)}finally{o(!1)}},d=async()=>{try{const k=await(await fetch("/api/health")).json();s(k.system||{studioVersion:"v1.0.0",nodeVersion:process.version,platform:navigator.platform,uptime:"2h 15m"})}catch(R){console.error("Failed to fetch system info:",R),s({studioVersion:"v1.0.0",nodeVersion:"v18.0.0",platform:"macOS",uptime:"2h 15m"})}},m=async()=>{try{const k=await(await fetch("/api/plugins")).json();i(k)}catch(R){console.error("Failed to fetch plugins:",R),i({plugins:[],configPath:null,totalPlugins:0,error:"Failed to fetch plugins"})}},u=R=>{switch(R==null?void 0:R.toLowerCase()){case"postgresql":case"postgres":return n.jsxs(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(Le,{className:"w-3 h-3"}),"Connected"]});case"mysql":return n.jsxs(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(Le,{className:"w-3 h-3"}),"Connected"]});case"sqlite":return n.jsxs(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(Ns,{className:"w-3 h-3"}),"Local"]});default:return n.jsxs(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:[n.jsx(Zt,{className:"w-3 h-3"}),"Unknown"]})}},x=R=>{switch(R.toLowerCase()){case"google":return n.jsx(jn,{className:"w-5 h-5 text-white"});case"github":return n.jsx(qt,{className:"w-5 h-5 text-white"});case"discord":return n.jsx(jn,{className:"w-5 h-5 text-white"});case"twitter":return n.jsx(jn,{className:"w-5 h-5 text-white"});default:return n.jsx(jn,{className:"w-5 h-5 text-white"})}};return l?n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-white"})}):n.jsxs("div",{className:"space-y-8 animate-fade-in",children:[n.jsx("div",{className:"flex items-center justify-between p-5 pt-7",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-3xl font-normal text-white tracking-tight",children:"Settings"}),n.jsx("p",{className:"text-gray-300 mt-2",children:"Configure your Better Auth application"})]})}),n.jsx("hr",{className:"w-full border-white/15 h-px"}),n.jsx("hr",{className:"w-full border-white/15 h-px"}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-5",children:[n.jsxs(Je,{className:"border-white/15 bg-black/70 px-0 sm:px-0 md:px-0 lg:px-0 xl:px-0 rounded-none",children:[n.jsxs(Vt,{children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(Yn,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Application"})]}),n.jsx(Ht,{children:"Basic application configuration"})]}),n.jsx("hr",{className:"w-full border-white/15 h-px -mt-3 mb-1"}),n.jsxs(Ze,{className:"space-y-0 px-0 pb-0 border-b-none",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(jn,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"App Name"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Application display name"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(e==null?void 0:e.appName)||"Better Auth"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(j0,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Base URL"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Application base URL"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(e==null?void 0:e.baseURL)||"http://localhost:3000"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Rl,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Base Path"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Auth API base path"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(e==null?void 0:e.basePath)||"/api/auth"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(qt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Secret"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Encryption secret"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:e!=null&&e.secret?"Configured":"Not set"})})]})]})]}),n.jsxs(Je,{className:"border-white/15 bg-black/70 px-0 sm:px-0 md:px-0 lg:px-0 xl:px-0 rounded-none",children:[n.jsxs(Vt,{children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(ze,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Database"})]}),n.jsx(Ht,{children:"Database connection and configuration"})]}),n.jsx("hr",{className:"w-full border-white/15 h-px -mt-3 mb-1"}),n.jsxs(Ze,{className:"space-y-0 px-0 pb-0 border-b-none",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ze,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:((w=e==null?void 0:e.database)==null?void 0:w.type)&&((y=e==null?void 0:e.database)==null?void 0:y.type.charAt(0).toUpperCase())+((v=e==null?void 0:e.database)==null?void 0:v.type.slice(1))||"Unknown"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Database Type"})]})]}),((b=e==null?void 0:e.database)==null?void 0:b.type)&&u(e.database.type)]}),((f=e==null?void 0:e.database)==null?void 0:f.dialect)&&n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ze,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Dialect"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Database dialect"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:e.database.dialect})})]}),((p=e==null?void 0:e.database)==null?void 0:p.casing)&&n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Yn,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Casing"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Table name casing"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white capitalize",children:e.database.casing})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Nu,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Debug Logs"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Database debug logging"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(g=e==null?void 0:e.database)!=null&&g.debugLogs?n.jsxs(n.Fragment,{children:[n.jsx(Zt,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Disabled"]})})]})]})]}),n.jsxs(Je,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Vt,{className:"border-b border-white/15",children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(qt,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Providers"})]}),n.jsx(Ht,{children:"Configured authentication providers"})]}),n.jsx(Ze,{className:"p-0",children:e!=null&&e.socialProviders&&e.socialProviders.length>0?e.socialProviders.map((R,k)=>n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[x(R.type),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white capitalize",children:R.type}),n.jsx("p",{className:"text-xs text-gray-400",children:R.clientId?"Configured":"Not configured"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:R.clientId?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Active"]}):n.jsxs(n.Fragment,{children:[n.jsx(Zt,{className:"w-3 h-3"}),"Setup Required"]})})]},k)):n.jsxs("div",{className:"text-center py-8",children:[n.jsx(qt,{className:"w-8 h-8 text-white mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-400",children:"No providers configured"})]})})]}),n.jsxs(Je,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Vt,{className:"border-b border-white/15",children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(Lt,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Email & Password"})]}),n.jsx(Ht,{children:"Email authentication settings"})]}),n.jsxs(Ze,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Lt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Email Authentication"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Allow users to sign up with email"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(j=e==null?void 0:e.emailAndPassword)!=null&&j.enabled?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(qr,{className:"w-3 h-3"}),"Disabled"]})})]}),((N=e==null?void 0:e.emailAndPassword)==null?void 0:N.enabled)&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(xe,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Sign Up"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Allow new user registration"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(T=e==null?void 0:e.emailAndPassword)!=null&&T.disableSignUp?n.jsxs(n.Fragment,{children:[n.jsx(qr,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(qt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Email Verification"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Require email verification"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(C=e==null?void 0:e.emailAndPassword)!=null&&C.requireEmailVerification?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Required"]}):n.jsxs(n.Fragment,{children:[n.jsx(Zt,{className:"w-3 h-3"}),"Optional"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Rl,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Password Length"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Min/Max password length"})]})]}),n.jsx("div",{className:"text-right",children:n.jsxs("p",{className:"text-sm font-medium text-white",children:[((I=e==null?void 0:e.emailAndPassword)==null?void 0:I.minPasswordLength)||8," - ",((G=e==null?void 0:e.emailAndPassword)==null?void 0:G.maxPasswordLength)||128]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(si,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Auto Sign In"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Auto sign in after registration"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(U=e==null?void 0:e.emailAndPassword)!=null&&U.autoSignIn?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Zt,{className:"w-3 h-3"}),"Disabled"]})})]})]})]})]}),n.jsxs(Je,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Vt,{className:"border-b border-white/15",children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(Ms,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Session"})]}),n.jsx(Ht,{children:"Session management settings"})]}),n.jsxs(Ze,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Ms,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Session Duration"}),n.jsx("p",{className:"text-xs text-gray-400",children:"How long sessions last"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(Z=e==null?void 0:e.session)!=null&&Z.expiresIn?`${Math.floor(e.session.expiresIn/(60*60*24))} days`:"7 days"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Default"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Nu,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Update Age"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Session refresh interval"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white",children:(H=e==null?void 0:e.session)!=null&&H.updateAge?`${Math.floor(e.session.updateAge/(60*60))} hours`:"24 hours"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(si,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Session Refresh"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Auto refresh sessions"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(q=e==null?void 0:e.session)!=null&&q.disableSessionRefresh?n.jsxs(n.Fragment,{children:[n.jsx(qr,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ze,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Store in Database"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Store sessions in database"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(se=e==null?void 0:e.session)!=null&&se.storeSessionInDatabase?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Ns,{className:"w-3 h-3"}),"Secondary Storage"]})})]})]})]}),n.jsxs(Je,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Vt,{className:"border-b border-white/15",children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(qt,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Rate Limiting"})]}),n.jsx(Ht,{children:"API rate limiting configuration"})]}),n.jsxs(Ze,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(qt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Rate Limiting"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Enable rate limiting"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(ae=e==null?void 0:e.rateLimit)!=null&&ae.enabled?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Zt,{className:"w-3 h-3"}),"Disabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Ms,{className:"w-5 h-5 text-red-400"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Rate Limit Window"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Time window for rate limiting"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(M=e==null?void 0:e.rateLimit)!=null&&M.window?`${e.rateLimit.window} seconds`:"10 seconds"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Window"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(qt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Max Requests"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Maximum requests per window"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:((V=e==null?void 0:e.rateLimit)==null?void 0:V.max)||100}),n.jsx("p",{className:"text-xs text-gray-400",children:"Requests"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ze,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Storage"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Rate limit storage type"})]})]}),n.jsx("div",{className:"text-right",children:n.jsx("p",{className:"text-sm font-medium text-white capitalize",children:((S=e==null?void 0:e.rateLimit)==null?void 0:S.storage)||"memory"})})]})]})]}),n.jsxs(Je,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Vt,{className:"border-b border-white/15",children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(Yn,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Advanced"})]}),n.jsx(Ht,{children:"Advanced configuration options"})]}),n.jsxs(Ze,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Rl,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Secure Cookies"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Use secure cookies"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(A=e==null?void 0:e.advanced)!=null&&A.useSecureCookies?n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Zt,{className:"w-3 h-3"}),"Disabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(qt,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"CSRF Check"}),n.jsx("p",{className:"text-xs text-gray-400",children:"CSRF protection"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(_=e==null?void 0:e.advanced)!=null&&_.disableCSRFCheck?n.jsxs(n.Fragment,{children:[n.jsx(qr,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ga,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"IP Tracking"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Track IP addresses"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(E=(W=e==null?void 0:e.advanced)==null?void 0:W.ipAddress)!=null&&E.disableIpTracking?n.jsxs(n.Fragment,{children:[n.jsx(qr,{className:"w-3 h-3"}),"Disabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(y0,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Telemetry"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Usage analytics"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs group-hover:bg-white group-hover:border-black group-hover:text-black bg-black/70 border border-white/15 rounded-none border-dashed flex items-center gap-1",children:(z=e==null?void 0:e.telemetry)!=null&&z.enabled?n.jsxs(n.Fragment,{children:[n.jsx(Zt,{className:"w-3 h-3"}),"Enabled"]}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{className:"w-3 h-3"}),"Disabled"]})})]})]})]}),n.jsxs(Je,{className:"border-white/15 bg-black rounded-none",children:[n.jsxs(Vt,{className:"border-b border-white/15",children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(Ns,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"System Info"})]}),n.jsx(Ht,{children:"Better Auth Studio system information"})]}),n.jsxs(Ze,{className:"p-0",children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(si,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Studio Version"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Better Auth Studio"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.studioVersion)||"v1.0.0"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Latest"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Ns,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Node.js Version"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Runtime environment"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.nodeVersion)||"v18.0.0"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Current"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(jn,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Platform"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Operating system"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.platform)||"macOS"}),n.jsx("p",{className:"text-xs text-gray-400",children:"System"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15 last:border-b-0",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Ms,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Uptime"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Service uptime"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:(r==null?void 0:r.uptime)||"2h 15m"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Running"})]})]})]})]}),n.jsxs(Je,{className:"border-white/15 bg-black/70 px-0 sm:px-0 md:px-0 lg:px-0 xl:px-0 rounded-none lg:col-span-2",children:[n.jsxs(Vt,{children:[n.jsxs(Wt,{className:"text-white flex items-center space-x-2",children:[n.jsx(ju,{className:"w-5 h-5 text-white"}),n.jsx("span",{children:"Plugins"})]}),n.jsx(Ht,{children:"Better Auth plugins enabled in your configuration"})]}),n.jsx("hr",{className:"w-full border-white/15 h-px -mt-3 mb-1"}),n.jsx(Ze,{className:"space-y-0 px-0 pb-0 border-b-none",children:a!=null&&a.plugins&&a.plugins.length>0?n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex items-center justify-between p-4 px-5 border-b border-white/15",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Ns,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"Total Plugins"}),n.jsx("p",{className:"text-xs text-gray-400",children:"Currently enabled plugins"})]})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("p",{className:"text-sm font-medium text-white",children:a.totalPlugins}),n.jsx("p",{className:"text-xs text-gray-400",children:"Active"})]})]}),a.plugins.map((R,k)=>n.jsxs("div",{className:`flex items-center justify-between p-4 px-5 ${k<a.plugins.length-1?"border-b border-white/15":""}`,children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(ju,{className:"w-5 h-5 text-white"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:R.name}),n.jsx("p",{className:"text-xs text-gray-400",children:R.description})]})]}),n.jsx("div",{className:"text-right flex items-center space-x-2",children:n.jsxs(oe,{variant:"secondary",className:"text-xs bg-green-900/50 border border-dashed rounded-none border-green-500/30 text-green-400 flex items-center gap-1",children:[n.jsx(Le,{className:"w-3 h-3"}),"Enabled"]})})]},R.id)),a.configPath&&n.jsx("div",{className:"p-4 px-5 bg-black/30 border-t border-white/10",children:n.jsxs("p",{className:"text-xs text-gray-400",children:["Config file: ",n.jsx("span",{className:"text-white font-mono",children:a.configPath})]})})]}):n.jsxs("div",{className:"flex items-center justify-between p-4 px-5",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx(Zt,{className:"w-5 h-5 text-yellow-400"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-white",children:"No Plugins Enabled"}),n.jsx("p",{className:"text-xs text-gray-400",children:(a==null?void 0:a.error)||"No plugins are currently configured in your Better Auth setup"})]})]}),n.jsx(oe,{variant:"secondary",className:"text-xs bg-yellow-900/50 border border-yellow-500/30 text-yellow-400 rounded-sm",children:"None"})]})})]})]})]})}function jb(){return n.jsxs(Fv,{children:[n.jsx(xb,{children:n.jsxs(Rv,{children:[n.jsx(yr,{path:"/",element:n.jsx(vb,{})}),n.jsx(yr,{path:"/users",element:n.jsx(hp,{})}),n.jsx(yr,{path:"/organizations",element:n.jsx(mp,{})}),n.jsx(yr,{path:"/organizations/:orgId",element:n.jsx(yb,{})}),n.jsx(yr,{path:"/teams/:teamId",element:n.jsx(wb,{})}),n.jsx(yr,{path:"/sessions",element:n.jsx(fp,{})}),n.jsx(yr,{path:"/settings",element:n.jsx(bb,{})})]})}),n.jsx(x0,{theme:"dark",position:"top-right",richColors:!0,closeButton:!0})]})}Hl.createRoot(document.getElementById("root")).render(n.jsx(F.StrictMode,{children:n.jsx(jb,{})}));