function $x(a,o){for(var s=0;s<o.length;s++){const i=o[s];if(typeof i!="string"&&!Array.isArray(i)){for(const f in i)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(i,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>i[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))i(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();function nv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ic={exports:{}},Mr={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var op;function Jx(){if(op)return Mr;op=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(i,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:a,type:i,key:h,ref:f!==void 0?f:null,props:d}}return Mr.Fragment=o,Mr.jsx=s,Mr.jsxs=s,Mr}var ip;function Fx(){return ip||(ip=1,Ic.exports=Jx()),Ic.exports}var u=Fx(),eu={exports:{}},ve={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sp;function Wx(){if(sp)return ve;sp=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,N={};function _(T,X,I){this.props=T,this.context=X,this.refs=N,this.updater=I||E}_.prototype.isReactComponent={},_.prototype.setState=function(T,X){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,X,"setState")},_.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function R(){}R.prototype=_.prototype;function G(T,X,I){this.props=T,this.context=X,this.refs=N,this.updater=I||E}var L=G.prototype=new R;L.constructor=G,M(L,_.prototype),L.isPureReactComponent=!0;var B=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},Q=Object.prototype.hasOwnProperty;function P(T,X,I,J,ee,he){return I=he.ref,{$$typeof:a,type:T,key:X,ref:I!==void 0?I:null,props:he}}function Z(T,X){return P(T.type,X,void 0,void 0,void 0,T.props)}function W(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function te(T){var X={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(I){return X[I]})}var ie=/\/+/g;function de(T,X){return typeof T=="object"&&T!==null&&T.key!=null?te(""+T.key):X.toString(36)}function we(){}function ge(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(we,we):(T.status="pending",T.then(function(X){T.status==="pending"&&(T.status="fulfilled",T.value=X)},function(X){T.status==="pending"&&(T.status="rejected",T.reason=X)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function pe(T,X,I,J,ee){var he=typeof T;(he==="undefined"||he==="boolean")&&(T=null);var oe=!1;if(T===null)oe=!0;else switch(he){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(T.$$typeof){case a:case o:oe=!0;break;case x:return oe=T._init,pe(oe(T._payload),X,I,J,ee)}}if(oe)return ee=ee(T),oe=J===""?"."+de(T,0):J,B(ee)?(I="",oe!=null&&(I=oe.replace(ie,"$&/")+"/"),pe(ee,X,I,"",function(st){return st})):ee!=null&&(W(ee)&&(ee=Z(ee,I+(ee.key==null||T&&T.key===ee.key?"":(""+ee.key).replace(ie,"$&/")+"/")+oe)),X.push(ee)),1;oe=0;var se=J===""?".":J+":";if(B(T))for(var Ae=0;Ae<T.length;Ae++)J=T[Ae],he=se+de(J,Ae),oe+=pe(J,X,I,he,ee);else if(Ae=w(T),typeof Ae=="function")for(T=Ae.call(T),Ae=0;!(J=T.next()).done;)J=J.value,he=se+de(J,Ae++),oe+=pe(J,X,I,he,ee);else if(he==="object"){if(typeof T.then=="function")return pe(ge(T),X,I,J,ee);throw X=String(T),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return oe}function D(T,X,I){if(T==null)return T;var J=[],ee=0;return pe(T,J,"","",function(he){return X.call(I,he,ee++)}),J}function $(T){if(T._status===-1){var X=T._result;X=X(),X.then(function(I){(T._status===0||T._status===-1)&&(T._status=1,T._result=I)},function(I){(T._status===0||T._status===-1)&&(T._status=2,T._result=I)}),T._status===-1&&(T._status=0,T._result=X)}if(T._status===1)return T._result.default;throw T._result}var q=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function F(){}return ve.Children={map:D,forEach:function(T,X,I){D(T,function(){X.apply(this,arguments)},I)},count:function(T){var X=0;return D(T,function(){X++}),X},toArray:function(T){return D(T,function(X){return X})||[]},only:function(T){if(!W(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ve.Component=_,ve.Fragment=s,ve.Profiler=f,ve.PureComponent=G,ve.StrictMode=i,ve.Suspense=g,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ve.__COMPILER_RUNTIME={__proto__:null,c:function(T){return k.H.useMemoCache(T)}},ve.cache=function(T){return function(){return T.apply(null,arguments)}},ve.cloneElement=function(T,X,I){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var J=M({},T.props),ee=T.key,he=void 0;if(X!=null)for(oe in X.ref!==void 0&&(he=void 0),X.key!==void 0&&(ee=""+X.key),X)!Q.call(X,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&X.ref===void 0||(J[oe]=X[oe]);var oe=arguments.length-2;if(oe===1)J.children=I;else if(1<oe){for(var se=Array(oe),Ae=0;Ae<oe;Ae++)se[Ae]=arguments[Ae+2];J.children=se}return P(T.type,ee,void 0,void 0,he,J)},ve.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},ve.createElement=function(T,X,I){var J,ee={},he=null;if(X!=null)for(J in X.key!==void 0&&(he=""+X.key),X)Q.call(X,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ee[J]=X[J]);var oe=arguments.length-2;if(oe===1)ee.children=I;else if(1<oe){for(var se=Array(oe),Ae=0;Ae<oe;Ae++)se[Ae]=arguments[Ae+2];ee.children=se}if(T&&T.defaultProps)for(J in oe=T.defaultProps,oe)ee[J]===void 0&&(ee[J]=oe[J]);return P(T,he,void 0,void 0,null,ee)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(T){return{$$typeof:p,render:T}},ve.isValidElement=W,ve.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:$}},ve.memo=function(T,X){return{$$typeof:v,type:T,compare:X===void 0?null:X}},ve.startTransition=function(T){var X=k.T,I={};k.T=I;try{var J=T(),ee=k.S;ee!==null&&ee(I,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(F,q)}catch(he){q(he)}finally{k.T=X}},ve.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ve.use=function(T){return k.H.use(T)},ve.useActionState=function(T,X,I){return k.H.useActionState(T,X,I)},ve.useCallback=function(T,X){return k.H.useCallback(T,X)},ve.useContext=function(T){return k.H.useContext(T)},ve.useDebugValue=function(){},ve.useDeferredValue=function(T,X){return k.H.useDeferredValue(T,X)},ve.useEffect=function(T,X,I){var J=k.H;if(typeof I=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(T,X)},ve.useId=function(){return k.H.useId()},ve.useImperativeHandle=function(T,X,I){return k.H.useImperativeHandle(T,X,I)},ve.useInsertionEffect=function(T,X){return k.H.useInsertionEffect(T,X)},ve.useLayoutEffect=function(T,X){return k.H.useLayoutEffect(T,X)},ve.useMemo=function(T,X){return k.H.useMemo(T,X)},ve.useOptimistic=function(T,X){return k.H.useOptimistic(T,X)},ve.useReducer=function(T,X,I){return k.H.useReducer(T,X,I)},ve.useRef=function(T){return k.H.useRef(T)},ve.useState=function(T){return k.H.useState(T)},ve.useSyncExternalStore=function(T,X,I){return k.H.useSyncExternalStore(T,X,I)},ve.useTransition=function(){return k.H.useTransition()},ve.version="19.1.1",ve}var cp;function Lu(){return cp||(cp=1,eu.exports=Wx()),eu.exports}var y=Lu();const Wn=nv(y),av=$x({__proto__:null,default:Wn},[y]);var tu={exports:{}},Ar={},nu={exports:{}},au={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var up;function Ix(){return up||(up=1,(function(a){function o(D,$){var q=D.length;D.push($);e:for(;0<q;){var F=q-1>>>1,T=D[F];if(0<f(T,$))D[F]=$,D[q]=T,q=F;else break e}}function s(D){return D.length===0?null:D[0]}function i(D){if(D.length===0)return null;var $=D[0],q=D.pop();if(q!==$){D[0]=q;e:for(var F=0,T=D.length,X=T>>>1;F<X;){var I=2*(F+1)-1,J=D[I],ee=I+1,he=D[ee];if(0>f(J,q))ee<T&&0>f(he,J)?(D[F]=he,D[ee]=q,F=ee):(D[F]=J,D[I]=q,F=I);else if(ee<T&&0>f(he,q))D[F]=he,D[ee]=q,F=ee;else break e}}return $}function f(D,$){var q=D.sortIndex-$.sortIndex;return q!==0?q:D.id-$.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var g=[],v=[],x=1,S=null,w=3,E=!1,M=!1,N=!1,_=!1,R=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function B(D){for(var $=s(v);$!==null;){if($.callback===null)i(v);else if($.startTime<=D)i(v),$.sortIndex=$.expirationTime,o(g,$);else break;$=s(v)}}function k(D){if(N=!1,B(D),!M)if(s(g)!==null)M=!0,Q||(Q=!0,de());else{var $=s(v);$!==null&&pe(k,$.startTime-D)}}var Q=!1,P=-1,Z=5,W=-1;function te(){return _?!0:!(a.unstable_now()-W<Z)}function ie(){if(_=!1,Q){var D=a.unstable_now();W=D;var $=!0;try{e:{M=!1,N&&(N=!1,G(P),P=-1),E=!0;var q=w;try{t:{for(B(D),S=s(g);S!==null&&!(S.expirationTime>D&&te());){var F=S.callback;if(typeof F=="function"){S.callback=null,w=S.priorityLevel;var T=F(S.expirationTime<=D);if(D=a.unstable_now(),typeof T=="function"){S.callback=T,B(D),$=!0;break t}S===s(g)&&i(g),B(D)}else i(g);S=s(g)}if(S!==null)$=!0;else{var X=s(v);X!==null&&pe(k,X.startTime-D),$=!1}}break e}finally{S=null,w=q,E=!1}$=void 0}}finally{$?de():Q=!1}}}var de;if(typeof L=="function")de=function(){L(ie)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,ge=we.port2;we.port1.onmessage=ie,de=function(){ge.postMessage(null)}}else de=function(){R(ie,0)};function pe(D,$){P=R(function(){D(a.unstable_now())},$)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(D){switch(w){case 1:case 2:case 3:var $=3;break;default:$=w}var q=w;w=$;try{return D()}finally{w=q}},a.unstable_requestPaint=function(){_=!0},a.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var q=w;w=D;try{return $()}finally{w=q}},a.unstable_scheduleCallback=function(D,$,q){var F=a.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?F+q:F):q=F,D){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=q+T,D={id:x++,callback:$,priorityLevel:D,startTime:q,expirationTime:T,sortIndex:-1},q>F?(D.sortIndex=q,o(v,D),s(g)===null&&D===s(v)&&(N?(G(P),P=-1):N=!0,pe(k,q-F))):(D.sortIndex=T,o(g,D),M||E||(M=!0,Q||(Q=!0,de()))),D},a.unstable_shouldYield=te,a.unstable_wrapCallback=function(D){var $=w;return function(){var q=w;w=$;try{return D.apply(this,arguments)}finally{w=q}}}})(au)),au}var fp;function eb(){return fp||(fp=1,nu.exports=Ix()),nu.exports}var lu={exports:{}},ot={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dp;function tb(){if(dp)return ot;dp=1;var a=Lu();function o(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)v+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var i={d:{f:s,r:function(){throw Error(o(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(g,v,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:S==null?null:""+S,children:g,containerInfo:v,implementation:x}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,ot.createPortal=function(g,v){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(o(299));return d(g,v,null,x)},ot.flushSync=function(g){var v=h.T,x=i.p;try{if(h.T=null,i.p=2,g)return g()}finally{h.T=v,i.p=x,i.d.f()}},ot.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,i.d.C(g,v))},ot.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},ot.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var x=v.as,S=p(x,v.crossOrigin),w=typeof v.integrity=="string"?v.integrity:void 0,E=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;x==="style"?i.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:E}):x==="script"&&i.d.X(g,{crossOrigin:S,integrity:w,fetchPriority:E,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ot.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var x=p(v.as,v.crossOrigin);i.d.M(g,{crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&i.d.M(g)},ot.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var x=v.as,S=p(x,v.crossOrigin);i.d.L(g,x,{crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ot.preloadModule=function(g,v){if(typeof g=="string")if(v){var x=p(v.as,v.crossOrigin);i.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else i.d.m(g)},ot.requestFormReset=function(g){i.d.r(g)},ot.unstable_batchedUpdates=function(g,v){return g(v)},ot.useFormState=function(g,v,x){return h.H.useFormState(g,v,x)},ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},ot.version="19.1.1",ot}var mp;function lv(){if(mp)return lu.exports;mp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),lu.exports=tb(),lu.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hp;function nb(){if(hp)return Ar;hp=1;var a=eb(),o=Lu(),s=lv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 p(e){if(d(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,l=t;;){var r=n.return;if(r===null)break;var c=r.alternate;if(c===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===n)return p(r),e;if(c===l)return p(r),t;c=c.sibling}throw Error(i(188))}if(n.return!==l.return)n=r,l=c;else{for(var m=!1,b=r.child;b;){if(b===n){m=!0,n=r,l=c;break}if(b===l){m=!0,l=r,n=c;break}b=b.sibling}if(!m){for(b=c.child;b;){if(b===n){m=!0,n=c,l=r;break}if(b===l){m=!0,l=c,n=r;break}b=b.sibling}if(!m)throw Error(i(189))}}if(n.alternate!==l)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),L=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case _:return"Profiler";case N:return"StrictMode";case k:return"Suspense";case Q:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case L:return(e.displayName||"Context")+".Provider";case G:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var pe=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},F=[],T=-1;function X(e){return{current:e}}function I(e){0>T||(e.current=F[T],F[T]=null,T--)}function J(e,t){T++,F[T]=e.current,e.current=t}var ee=X(null),he=X(null),oe=X(null),se=X(null);function Ae(e,t){switch(J(oe,t),J(he,e),J(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?zh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=zh(t),e=kh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(ee),J(ee,e)}function st(){I(ee),I(he),I(oe)}function Xt(e){e.memoizedState!==null&&J(se,e);var t=ee.current,n=kh(t,e.type);t!==n&&(J(he,e),J(ee,n))}function Qt(e){he.current===e&&(I(ee),I(he)),se.current===e&&(I(se),br._currentValue=q)}var Zt=Object.prototype.hasOwnProperty,An=a.unstable_scheduleCallback,Gi=a.unstable_cancelCallback,Ty=a.unstable_shouldYield,_y=a.unstable_requestPaint,Kt=a.unstable_now,jy=a.unstable_getCurrentPriorityLevel,hf=a.unstable_ImmediatePriority,pf=a.unstable_UserBlockingPriority,qr=a.unstable_NormalPriority,Ry=a.unstable_LowPriority,vf=a.unstable_IdlePriority,Cy=a.log,Oy=a.unstable_setDisableYieldValue,_l=null,gt=null;function Tn(e){if(typeof Cy=="function"&&Oy(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(_l,e)}catch{}}var yt=Math.clz32?Math.clz32:ky,Dy=Math.log,zy=Math.LN2;function ky(e){return e>>>=0,e===0?32:31-(Dy(e)/zy|0)|0}var Gr=256,Yr=4194304;function aa(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Vr(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var r=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~c,l!==0?r=aa(l):(m&=b,m!==0?r=aa(m):n||(n=b&~e,n!==0&&(r=aa(n))))):(b=l&~c,b!==0?r=aa(b):m!==0?r=aa(m):n||(n=l&~e,n!==0&&(r=aa(n)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:r}function jl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Uy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gf(){var e=Gr;return Gr<<=1,(Gr&4194048)===0&&(Gr=256),e}function yf(){var e=Yr;return Yr<<=1,(Yr&62914560)===0&&(Yr=4194304),e}function Yi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ly(e,t,n,l,r,c){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,A=e.expirationTimes,z=e.hiddenUpdates;for(n=m&~n;0<n;){var Y=31-yt(n),K=1<<Y;b[Y]=0,A[Y]=-1;var U=z[Y];if(U!==null)for(z[Y]=null,Y=0;Y<U.length;Y++){var H=U[Y];H!==null&&(H.lane&=-536870913)}n&=~K}l!==0&&xf(e,l,0),c!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function xf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-yt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&4194090}function bf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-yt(n),r=1<<l;r&t|e[l]&t&&(e[l]|=t),n&=~r}}function Vi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sf(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:ep(e.type))}function Hy(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var _n=Math.random().toString(36).slice(2),lt="__reactFiber$"+_n,ft="__reactProps$"+_n,Ra="__reactContainer$"+_n,Qi="__reactEvents$"+_n,By="__reactListeners$"+_n,qy="__reactHandles$"+_n,wf="__reactResources$"+_n,Cl="__reactMarker$"+_n;function Zi(e){delete e[lt],delete e[ft],delete e[Qi],delete e[By],delete e[qy]}function Ca(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ra]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bh(e);e!==null;){if(n=e[lt])return n;e=Bh(e)}return t}e=n,n=e.parentNode}return null}function Oa(e){if(e=e[lt]||e[Ra]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ol(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Da(e){var t=e[wf];return t||(t=e[wf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Cl]=!0}var Ef=new Set,Nf={};function la(e,t){za(e,t),za(e+"Capture",t)}function za(e,t){for(Nf[e]=t,e=0;e<t.length;e++)Ef.add(t[e])}var Gy=RegExp("^[: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]*$"),Mf={},Af={};function Yy(e){return Zt.call(Af,e)?!0:Zt.call(Mf,e)?!1:Gy.test(e)?Af[e]=!0:(Mf[e]=!0,!1)}function Xr(e,t,n){if(Yy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Qr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function on(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}var Ki,Tf;function ka(e){if(Ki===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ki=t&&t[1]||"",Tf=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ki+e+Tf}var Pi=!1;function $i(e,t){if(!e||Pi)return"";Pi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(H){var U=H}Reflect.construct(e,[],K)}else{try{K.call()}catch(H){U=H}e.call(K.prototype)}}else{try{throw Error()}catch(H){U=H}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),m=c[0],b=c[1];if(m&&b){var A=m.split(`
`),z=b.split(`
`);for(r=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(l===A.length||r===z.length)for(l=A.length-1,r=z.length-1;1<=l&&0<=r&&A[l]!==z[r];)r--;for(;1<=l&&0<=r;l--,r--)if(A[l]!==z[r]){if(l!==1||r!==1)do if(l--,r--,0>r||A[l]!==z[r]){var Y=`
`+A[l].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=l&&0<=r);break}}}finally{Pi=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ka(n):""}function Vy(e){switch(e.tag){case 26:case 27:case 5:return ka(e.type);case 16:return ka("Lazy");case 13:return ka("Suspense");case 19:return ka("SuspenseList");case 0:case 15:return $i(e.type,!1);case 11:return $i(e.type.render,!1);case 1:return $i(e.type,!0);case 31:return ka("Activity");default:return""}}function _f(e){try{var t="";do t+=Vy(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xy(e){var t=jf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(m){l=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(m){l=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zr(e){e._valueTracker||(e._valueTracker=Xy(e))}function Rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=jf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Kr(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}}var Qy=/[\n"\\]/g;function jt(e){return e.replace(Qy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ji(e,t,n,l,r,c,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Fi(e,m,_t(t)):n!=null?Fi(e,m,_t(n)):l!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+_t(b):e.removeAttribute("name")}function Cf(e,t,n,l,r,c,m,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;n=n!=null?""+_t(n):"",t=t!=null?""+_t(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function Fi(e,t,n){t==="number"&&Kr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ua(e,t,n,l){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&l&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Of(e,t,n){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+_t(n):""}function Df(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(i(92));if(pe(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=_t(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l)}function La(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function zf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Zy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function kf(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var r in t)l=t[r],t.hasOwnProperty(r)&&n[r]!==l&&zf(e,r,l)}else for(var c in t)t.hasOwnProperty(c)&&zf(e,c,t[c])}function Wi(e){if(e.indexOf("-")===-1)return!1;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 Ky=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Py=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pr(e){return Py.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ii=null;function es(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ha=null,Ba=null;function Uf(e){var t=Oa(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ji(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var r=l[ft]||null;if(!r)throw Error(i(90));Ji(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Rf(l)}break e;case"textarea":Of(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ua(e,!!n.multiple,t,!1)}}}var ts=!1;function Lf(e,t,n){if(ts)return e(t,n);ts=!0;try{var l=e(t);return l}finally{if(ts=!1,(Ha!==null||Ba!==null)&&(zo(),Ha&&(t=Ha,e=Ba,Ba=Ha=null,Uf(t),e)))for(t=0;t<e.length;t++)Uf(e[t])}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ft]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ns=!1;if(sn)try{var zl={};Object.defineProperty(zl,"passive",{get:function(){ns=!0}}),window.addEventListener("test",zl,zl),window.removeEventListener("test",zl,zl)}catch{ns=!1}var jn=null,as=null,$r=null;function Hf(){if($r)return $r;var e,t=as,n=t.length,l,r="value"in jn?jn.value:jn.textContent,c=r.length;for(e=0;e<n&&t[e]===r[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===r[c-l];l++);return $r=r.slice(e,1<l?1-l:void 0)}function Jr(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 Fr(){return!0}function Bf(){return!1}function dt(e){function t(n,l,r,c,m){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Fr:Bf,this.isPropagationStopped=Bf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fr)},persist:function(){},isPersistent:Fr}),t}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wr=dt(ra),kl=x({},ra,{view:0,detail:0}),$y=dt(kl),ls,rs,Ul,Ir=x({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:is,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!==Ul&&(Ul&&e.type==="mousemove"?(ls=e.screenX-Ul.screenX,rs=e.screenY-Ul.screenY):rs=ls=0,Ul=e),ls)},movementY:function(e){return"movementY"in e?e.movementY:rs}}),qf=dt(Ir),Jy=x({},Ir,{dataTransfer:0}),Fy=dt(Jy),Wy=x({},kl,{relatedTarget:0}),os=dt(Wy),Iy=x({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),e0=dt(Iy),t0=x({},ra,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n0=dt(t0),a0=x({},ra,{data:0}),Gf=dt(a0),l0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r0={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"},o0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o0[e])?!!t[e]:!1}function is(){return i0}var s0=x({},kl,{key:function(e){if(e.key){var t=l0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:is,charCode:function(e){return e.type==="keypress"?Jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c0=dt(s0),u0=x({},Ir,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yf=dt(u0),f0=x({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:is}),d0=dt(f0),m0=x({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),h0=dt(m0),p0=x({},Ir,{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}),v0=dt(p0),g0=x({},ra,{newState:0,oldState:0}),y0=dt(g0),x0=[9,13,27,32],ss=sn&&"CompositionEvent"in window,Ll=null;sn&&"documentMode"in document&&(Ll=document.documentMode);var b0=sn&&"TextEvent"in window&&!Ll,Vf=sn&&(!ss||Ll&&8<Ll&&11>=Ll),Xf=" ",Qf=!1;function Zf(e,t){switch(e){case"keyup":return x0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qa=!1;function S0(e,t){switch(e){case"compositionend":return Kf(t);case"keypress":return t.which!==32?null:(Qf=!0,Xf);case"textInput":return e=t.data,e===Xf&&Qf?null:e;default:return null}}function w0(e,t){if(qa)return e==="compositionend"||!ss&&Zf(e,t)?(e=Hf(),$r=as=jn=null,qa=!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 Vf&&t.locale!=="ko"?null:t.data;default:return null}}var E0={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 Pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E0[e.type]:t==="textarea"}function $f(e,t,n,l){Ha?Ba?Ba.push(l):Ba=[l]:Ha=l,t=qo(t,"onChange"),0<t.length&&(n=new Wr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Hl=null,Bl=null;function N0(e){jh(e,0)}function eo(e){var t=Ol(e);if(Rf(t))return e}function Jf(e,t){if(e==="change")return t}var Ff=!1;if(sn){var cs;if(sn){var us="oninput"in document;if(!us){var Wf=document.createElement("div");Wf.setAttribute("oninput","return;"),us=typeof Wf.oninput=="function"}cs=us}else cs=!1;Ff=cs&&(!document.documentMode||9<document.documentMode)}function If(){Hl&&(Hl.detachEvent("onpropertychange",ed),Bl=Hl=null)}function ed(e){if(e.propertyName==="value"&&eo(Bl)){var t=[];$f(t,Bl,e,es(e)),Lf(N0,t)}}function M0(e,t,n){e==="focusin"?(If(),Hl=t,Bl=n,Hl.attachEvent("onpropertychange",ed)):e==="focusout"&&If()}function A0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eo(Bl)}function T0(e,t){if(e==="click")return eo(t)}function _0(e,t){if(e==="input"||e==="change")return eo(t)}function j0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:j0;function ql(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!Zt.call(t,r)||!xt(e[r],t[r]))return!1}return!0}function td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nd(e,t){var n=td(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=td(n)}}function ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ld(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function fs(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")}var R0=sn&&"documentMode"in document&&11>=document.documentMode,Ga=null,ds=null,Gl=null,ms=!1;function rd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ms||Ga==null||Ga!==Kr(l)||(l=Ga,"selectionStart"in l&&fs(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Gl&&ql(Gl,l)||(Gl=l,l=qo(ds,"onSelect"),0<l.length&&(t=new Wr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ga)))}function oa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ya={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},hs={},od={};sn&&(od=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function ia(e){if(hs[e])return hs[e];if(!Ya[e])return e;var t=Ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in od)return hs[e]=t[n];return e}var id=ia("animationend"),sd=ia("animationiteration"),cd=ia("animationstart"),C0=ia("transitionrun"),O0=ia("transitionstart"),D0=ia("transitioncancel"),ud=ia("transitionend"),fd=new Map,ps="abort auxClick beforeToggle 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(" ");ps.push("scrollEnd");function Bt(e,t){fd.set(e,t),la(t,[e])}var dd=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var n=dd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:_f(t)},dd.set(e,t),t)}return{value:e,source:t,stack:_f(t)}}var Ct=[],Va=0,vs=0;function to(){for(var e=Va,t=vs=Va=0;t<e;){var n=Ct[t];Ct[t++]=null;var l=Ct[t];Ct[t++]=null;var r=Ct[t];Ct[t++]=null;var c=Ct[t];if(Ct[t++]=null,l!==null&&r!==null){var m=l.pending;m===null?r.next=r:(r.next=m.next,m.next=r),l.pending=r}c!==0&&md(n,r,c)}}function no(e,t,n,l){Ct[Va++]=e,Ct[Va++]=t,Ct[Va++]=n,Ct[Va++]=l,vs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function gs(e,t,n,l){return no(e,t,n,l),ao(e)}function Xa(e,t){return no(e,null,null,t),ao(e)}function md(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var r=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(r=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,r&&t!==null&&(r=31-yt(n),e=c.hiddenUpdates,l=e[r],l===null?e[r]=[t]:l.push(t),t.lane=n|536870912),c):null}function ao(e){if(50<dr)throw dr=0,Ec=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qa={};function z0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,l){return new z0(e,t,n,l)}function ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cn(e,t){var n=e.alternate;return n===null?(n=bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function lo(e,t,n,l,r,c){var m=0;if(l=e,typeof e=="function")ys(e)&&(m=1);else if(typeof e=="string")m=Ux(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=bt(31,n,t,r),e.elementType=W,e.lanes=c,e;case M:return sa(n.children,r,c,t);case N:m=8,r|=24;break;case _:return e=bt(12,n,t,r|2),e.elementType=_,e.lanes=c,e;case k:return e=bt(13,n,t,r),e.elementType=k,e.lanes=c,e;case Q:return e=bt(19,n,t,r),e.elementType=Q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:case L:m=10;break e;case G:m=9;break e;case B:m=11;break e;case P:m=14;break e;case Z:m=16,l=null;break e}m=29,n=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=bt(m,n,t,r),t.elementType=e,t.type=l,t.lanes=c,t}function sa(e,t,n,l){return e=bt(7,e,l,t),e.lanes=n,e}function xs(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function bs(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Za=[],Ka=0,ro=null,oo=0,Ot=[],Dt=0,ca=null,un=1,fn="";function ua(e,t){Za[Ka++]=oo,Za[Ka++]=ro,ro=e,oo=t}function pd(e,t,n){Ot[Dt++]=un,Ot[Dt++]=fn,Ot[Dt++]=ca,ca=e;var l=un;e=fn;var r=32-yt(l)-1;l&=~(1<<r),n+=1;var c=32-yt(t)+r;if(30<c){var m=r-r%5;c=(l&(1<<m)-1).toString(32),l>>=m,r-=m,un=1<<32-yt(t)+r|n<<r|l,fn=c+e}else un=1<<c|n<<r|l,fn=e}function Ss(e){e.return!==null&&(ua(e,1),pd(e,1,0))}function ws(e){for(;e===ro;)ro=Za[--Ka],Za[Ka]=null,oo=Za[--Ka],Za[Ka]=null;for(;e===ca;)ca=Ot[--Dt],Ot[Dt]=null,fn=Ot[--Dt],Ot[Dt]=null,un=Ot[--Dt],Ot[Dt]=null}var ct=null,Be=null,_e=!1,fa=null,Pt=!1,Es=Error(i(519));function da(e){var t=Error(i(418,""));throw Xl(Rt(t,e)),Es}function vd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[lt]=e,t[ft]=l,n){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(n=0;n<hr.length;n++)Ne(hr[n],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),Cf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Zr(t);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),Df(t,l.value,l.defaultValue,l.children),Zr(t)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Dh(t.textContent,n)?(l.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),l.onScroll!=null&&Ne("scroll",t),l.onScrollEnd!=null&&Ne("scrollend",t),l.onClick!=null&&(t.onclick=Go),t=!0):t=!1,t||da(e)}function gd(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:ct=ct.return}}function Yl(e){if(e!==ct)return!1;if(!_e)return gd(e),_e=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Bc(e.type,e.memoizedProps)),n=!n),n&&Be&&da(e),gd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Be=Gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Be=null}}else t===27?(t=Be,Qn(e.type)?(e=Vc,Vc=null,Be=e):Be=t):Be=ct?Gt(e.stateNode.nextSibling):null;return!0}function Vl(){Be=ct=null,_e=!1}function yd(){var e=fa;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),fa=null),e}function Xl(e){fa===null?fa=[e]:fa.push(e)}var Ns=X(null),ma=null,dn=null;function Rn(e,t,n){J(Ns,t._currentValue),t._currentValue=n}function mn(e){e._currentValue=Ns.current,I(Ns)}function Ms(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function As(e,t,n,l){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var c=r.dependencies;if(c!==null){var m=r.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=r;for(var A=0;A<t.length;A++)if(b.context===t[A]){c.lanes|=n,b=c.alternate,b!==null&&(b.lanes|=n),Ms(c.return,n,e),l||(m=null);break e}c=b.next}}else if(r.tag===18){if(m=r.return,m===null)throw Error(i(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),Ms(m,n,e),m=null}else m=r.child;if(m!==null)m.return=r;else for(m=r;m!==null;){if(m===e){m=null;break}if(r=m.sibling,r!==null){r.return=m.return,m=r;break}m=m.return}r=m}}function Ql(e,t,n,l){e=null;for(var r=t,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var m=r.alternate;if(m===null)throw Error(i(387));if(m=m.memoizedProps,m!==null){var b=r.type;xt(r.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(r===se.current){if(m=r.alternate,m===null)throw Error(i(387));m.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(br):e=[br])}r=r.return}e!==null&&As(t,e,n,l),t.flags|=262144}function io(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){ma=e,dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return xd(ma,e)}function so(e,t){return ma===null&&ha(e),xd(e,t)}function xd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},dn===null){if(e===null)throw Error(i(308));dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else dn=dn.next=t;return n}var k0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},U0=a.unstable_scheduleCallback,L0=a.unstable_NormalPriority,Ke={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ts(){return{controller:new k0,data:new Map,refCount:0}}function Zl(e){e.refCount--,e.refCount===0&&U0(L0,function(){e.controller.abort()})}var Kl=null,_s=0,Pa=0,$a=null;function H0(e,t){if(Kl===null){var n=Kl=[];_s=0,Pa=Rc(),$a={status:"pending",value:void 0,then:function(l){n.push(l)}}}return _s++,t.then(bd,bd),t}function bd(){if(--_s===0&&Kl!==null){$a!==null&&($a.status="fulfilled");var e=Kl;Kl=null,Pa=0,$a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function B0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var Sd=D.S;D.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&H0(e,t),Sd!==null&&Sd(e,t)};var pa=X(null);function js(){var e=pa.current;return e!==null?e:ke.pooledCache}function co(e,t){t===null?J(pa,pa.current):J(pa,t.pool)}function wd(){var e=js();return e===null?null:{parent:Ke._currentValue,pool:e}}var Pl=Error(i(460)),Ed=Error(i(474)),uo=Error(i(542)),Rs={then:function(){}};function Nd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function fo(){}function Md(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(fo,fo),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Td(e),e;default:if(typeof t.status=="string")t.then(fo,fo);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=l}},function(l){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Td(e),e}throw $l=t,Pl}}var $l=null;function Ad(){if($l===null)throw Error(i(459));var e=$l;return $l=null,e}function Td(e){if(e===Pl||e===uo)throw Error(i(483))}var Cn=!1;function Cs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Os(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function On(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var r=l.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),l.pending=t,t=ao(e),md(e,null,n),t}return no(e,l,t,n),ao(e)}function Jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,bf(e,n)}}function Ds(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?r=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?r=c=t:c=c.next=t}else r=c=t;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var zs=!1;function Fl(){if(zs){var e=$a;if(e!==null)throw e}}function Wl(e,t,n,l){zs=!1;var r=e.updateQueue;Cn=!1;var c=r.firstBaseUpdate,m=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var A=b,z=A.next;A.next=null,m===null?c=z:m.next=z,m=A;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==m&&(b===null?Y.firstBaseUpdate=z:b.next=z,Y.lastBaseUpdate=A))}if(c!==null){var K=r.baseState;m=0,Y=z=A=null,b=c;do{var U=b.lane&-536870913,H=U!==b.lane;if(H?(Me&U)===U:(l&U)===U){U!==0&&U===Pa&&(zs=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var fe=e,ce=b;U=t;var De=n;switch(ce.tag){case 1:if(fe=ce.payload,typeof fe=="function"){K=fe.call(De,K,U);break e}K=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ce.payload,U=typeof fe=="function"?fe.call(De,K,U):fe,U==null)break e;K=x({},K,U);break e;case 2:Cn=!0}}U=b.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=r.callbacks,H===null?r.callbacks=[U]:H.push(U))}else H={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(z=Y=H,A=K):Y=Y.next=H,m|=U;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;H=b,b=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);Y===null&&(A=K),r.baseState=A,r.firstBaseUpdate=z,r.lastBaseUpdate=Y,c===null&&(r.shared.lanes=0),Gn|=m,e.lanes=m,e.memoizedState=K}}function _d(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function jd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)_d(n[e],t)}var Ja=X(null),mo=X(0);function Rd(e,t){e=bn,J(mo,e),J(Ja,t),bn=e|t.baseLanes}function ks(){J(mo,bn),J(Ja,Ja.current)}function Us(){bn=mo.current,I(Ja),I(mo)}var zn=0,ye=null,Ce=null,Xe=null,ho=!1,Fa=!1,va=!1,po=0,Il=0,Wa=null,q0=0;function Ge(){throw Error(i(321))}function Ls(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xt(e[n],t[n]))return!1;return!0}function Hs(e,t,n,l,r,c){return zn=c,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?mm:hm,va=!1,c=n(l,r),va=!1,Fa&&(c=Od(t,n,l,r)),Cd(e),c}function Cd(e){D.H=So;var t=Ce!==null&&Ce.next!==null;if(zn=0,Xe=Ce=ye=null,ho=!1,Il=0,Wa=null,t)throw Error(i(300));e===null||We||(e=e.dependencies,e!==null&&io(e)&&(We=!0))}function Od(e,t,n,l){ye=e;var r=0;do{if(Fa&&(Wa=null),Il=0,Fa=!1,25<=r)throw Error(i(301));if(r+=1,Xe=Ce=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=K0,c=t(n,l)}while(Fa);return c}function G0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?er(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ye.flags|=1024),t}function Bs(){var e=po!==0;return po=0,e}function qs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Gs(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}zn=0,Xe=Ce=ye=null,Fa=!1,Il=po=0,Wa=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?ye.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Qe(){if(Ce===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Xe===null?ye.memoizedState:Xe.next;if(t!==null)Xe=t,Ce=e;else{if(e===null)throw ye.alternate===null?Error(i(467)):Error(i(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Xe===null?ye.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function Ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function er(e){var t=Il;return Il+=1,Wa===null&&(Wa=[]),e=Md(Wa,e,t),t=ye,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?mm:hm),e}function vo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return er(e);if(e.$$typeof===L)return rt(e)}throw Error(i(438,String(e)))}function Vs(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ys(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=te;return t.index++,n}function hn(e,t){return typeof t=="function"?t(e):t}function go(e){var t=Qe();return Xs(t,Ce,e)}function Xs(e,t,n){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;var r=e.baseQueue,c=l.pending;if(c!==null){if(r!==null){var m=r.next;r.next=c.next,c.next=m}t.baseQueue=r=c,l.pending=null}if(c=e.baseState,r===null)e.memoizedState=c;else{t=r.next;var b=m=null,A=null,z=t,Y=!1;do{var K=z.lane&-536870913;if(K!==z.lane?(Me&K)===K:(zn&K)===K){var U=z.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),K===Pa&&(Y=!0);else if((zn&U)===U){z=z.next,U===Pa&&(Y=!0);continue}else K={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},A===null?(b=A=K,m=c):A=A.next=K,ye.lanes|=U,Gn|=U;K=z.action,va&&n(c,K),c=z.hasEagerState?z.eagerState:n(c,K)}else U={lane:K,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},A===null?(b=A=U,m=c):A=A.next=U,ye.lanes|=K,Gn|=K;z=z.next}while(z!==null&&z!==t);if(A===null?m=c:A.next=b,!xt(c,e.memoizedState)&&(We=!0,Y&&(n=$a,n!==null)))throw n;e.memoizedState=c,e.baseState=m,e.baseQueue=A,l.lastRenderedState=c}return r===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Qs(e){var t=Qe(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var l=n.dispatch,r=n.pending,c=t.memoizedState;if(r!==null){n.pending=null;var m=r=r.next;do c=e(c,m.action),m=m.next;while(m!==r);xt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function Dd(e,t,n){var l=ye,r=Qe(),c=_e;if(c){if(n===void 0)throw Error(i(407));n=n()}else n=t();var m=!xt((Ce||r).memoizedState,n);m&&(r.memoizedState=n,We=!0),r=r.queue;var b=Ud.bind(null,l,r,e);if(tr(2048,8,b,[e]),r.getSnapshot!==t||m||Xe!==null&&Xe.memoizedState.tag&1){if(l.flags|=2048,Ia(9,yo(),kd.bind(null,l,r,n,t),null),ke===null)throw Error(i(349));c||(zn&124)!==0||zd(l,t,n)}return n}function zd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Ys(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kd(e,t,n,l){t.value=n,t.getSnapshot=l,Ld(t)&&Hd(e)}function Ud(e,t,n){return n(function(){Ld(t)&&Hd(e)})}function Ld(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xt(e,n)}catch{return!0}}function Hd(e){var t=Xa(e,2);t!==null&&Mt(t,e,2)}function Zs(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),va){Tn(!0);try{n()}finally{Tn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function Bd(e,t,n,l){return e.baseState=n,Xs(e,Ce,typeof l=="function"?l:hn)}function Y0(e,t,n,l,r){if(bo(e))throw Error(i(485));if(e=t.action,e!==null){var c={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};D.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,qd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function qd(e,t){var n=t.action,l=t.payload,r=e.state;if(t.isTransition){var c=D.T,m={};D.T=m;try{var b=n(r,l),A=D.S;A!==null&&A(m,b),Gd(e,t,b)}catch(z){Ks(e,t,z)}finally{D.T=c}}else try{c=n(r,l),Gd(e,t,c)}catch(z){Ks(e,t,z)}}function Gd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Yd(e,t,l)},function(l){return Ks(e,t,l)}):Yd(e,t,n)}function Yd(e,t,n){t.status="fulfilled",t.value=n,Vd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qd(e,n)))}function Ks(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Vd(t),t=t.next;while(t!==l)}e.action=null}function Vd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xd(e,t){return t}function Qd(e,t){if(_e){var n=ke.formState;if(n!==null){e:{var l=ye;if(_e){if(Be){t:{for(var r=Be,c=Pt;r.nodeType!==8;){if(!c){r=null;break t}if(r=Gt(r.nextSibling),r===null){r=null;break t}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){Be=Gt(r.nextSibling),l=r.data==="F!";break e}}da(l)}l=!1}l&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xd,lastRenderedState:t},n.queue=l,n=um.bind(null,ye,l),l.dispatch=n,l=Zs(!1),c=Ws.bind(null,ye,!1,l.queue),l=mt(),r={state:t,dispatch:null,action:e,pending:null},l.queue=r,n=Y0.bind(null,ye,r,c,n),r.dispatch=n,l.memoizedState=e,[t,n,!1]}function Zd(e){var t=Qe();return Kd(t,Ce,e)}function Kd(e,t,n){if(t=Xs(e,t,Xd)[0],e=go(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=er(t)}catch(m){throw m===Pl?uo:m}else l=t;t=Qe();var r=t.queue,c=r.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,Ia(9,yo(),V0.bind(null,r,n),null)),[l,c,e]}function V0(e,t){e.action=t}function Pd(e){var t=Qe(),n=Ce;if(n!==null)return Kd(t,n,e);Qe(),t=t.memoizedState,n=Qe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Ia(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Ys(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function yo(){return{destroy:void 0,resource:void 0}}function $d(){return Qe().memoizedState}function xo(e,t,n,l){var r=mt();l=l===void 0?null:l,ye.flags|=e,r.memoizedState=Ia(1|t,yo(),n,l)}function tr(e,t,n,l){var r=Qe();l=l===void 0?null:l;var c=r.memoizedState.inst;Ce!==null&&l!==null&&Ls(l,Ce.memoizedState.deps)?r.memoizedState=Ia(t,c,n,l):(ye.flags|=e,r.memoizedState=Ia(1|t,c,n,l))}function Jd(e,t){xo(8390656,8,e,t)}function Fd(e,t){tr(2048,8,e,t)}function Wd(e,t){return tr(4,2,e,t)}function Id(e,t){return tr(4,4,e,t)}function em(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tm(e,t,n){n=n!=null?n.concat([e]):null,tr(4,4,em.bind(null,t,e),n)}function Ps(){}function nm(e,t){var n=Qe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Ls(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function am(e,t){var n=Qe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Ls(t,l[1]))return l[0];if(l=e(),va){Tn(!0);try{e()}finally{Tn(!1)}}return n.memoizedState=[l,t],l}function $s(e,t,n){return n===void 0||(zn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=oh(),ye.lanes|=e,Gn|=e,n)}function lm(e,t,n,l){return xt(n,t)?n:Ja.current!==null?(e=$s(e,n,l),xt(e,t)||(We=!0),e):(zn&42)===0?(We=!0,e.memoizedState=n):(e=oh(),ye.lanes|=e,Gn|=e,t)}function rm(e,t,n,l,r){var c=$.p;$.p=c!==0&&8>c?c:8;var m=D.T,b={};D.T=b,Ws(e,!1,t,n);try{var A=r(),z=D.S;if(z!==null&&z(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=B0(A,l);nr(e,t,Y,Nt(e))}else nr(e,t,l,Nt(e))}catch(K){nr(e,t,{then:function(){},status:"rejected",reason:K},Nt())}finally{$.p=c,D.T=m}}function X0(){}function Js(e,t,n,l){if(e.tag!==5)throw Error(i(476));var r=om(e).queue;rm(e,r,t,q,n===null?X0:function(){return im(e),n(l)})}function om(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:q},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function im(e){var t=om(e).next.queue;nr(e,t,{},Nt())}function Fs(){return rt(br)}function sm(){return Qe().memoizedState}function cm(){return Qe().memoizedState}function Q0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nt();e=On(n);var l=Dn(t,e,n);l!==null&&(Mt(l,t,n),Jl(l,t,n)),t={cache:Ts()},e.payload=t;return}t=t.return}}function Z0(e,t,n){var l=Nt();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},bo(e)?fm(t,n):(n=gs(e,t,n,l),n!==null&&(Mt(n,e,l),dm(n,t,l)))}function um(e,t,n){var l=Nt();nr(e,t,n,l)}function nr(e,t,n,l){var r={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(bo(e))fm(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,b=c(m,n);if(r.hasEagerState=!0,r.eagerState=b,xt(b,m))return no(e,t,r,0),ke===null&&to(),!1}catch{}finally{}if(n=gs(e,t,r,l),n!==null)return Mt(n,e,l),dm(n,t,l),!0}return!1}function Ws(e,t,n,l){if(l={lane:2,revertLane:Rc(),action:l,hasEagerState:!1,eagerState:null,next:null},bo(e)){if(t)throw Error(i(479))}else t=gs(e,n,l,2),t!==null&&Mt(t,e,2)}function bo(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function fm(e,t){Fa=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dm(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,bf(e,n)}}var So={readContext:rt,use:vo,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge},mm={readContext:rt,use:vo,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Jd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,xo(4194308,4,em.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){xo(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var l=e();if(va){Tn(!0);try{e()}finally{Tn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=mt();if(n!==void 0){var r=n(t);if(va){Tn(!0);try{n(t)}finally{Tn(!1)}}}else r=t;return l.memoizedState=l.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=Z0.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Zs(e);var t=e.queue,n=um.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ps,useDeferredValue:function(e,t){var n=mt();return $s(n,e,t)},useTransition:function(){var e=Zs(!1);return e=rm.bind(null,ye,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ye,r=mt();if(_e){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ke===null)throw Error(i(349));(Me&124)!==0||zd(l,t,n)}r.memoizedState=n;var c={value:n,getSnapshot:t};return r.queue=c,Jd(Ud.bind(null,l,c,e),[e]),l.flags|=2048,Ia(9,yo(),kd.bind(null,l,c,n,t),null),n},useId:function(){var e=mt(),t=ke.identifierPrefix;if(_e){var n=fn,l=un;n=(l&~(1<<32-yt(l)-1)).toString(32)+n,t="«"+t+"R"+n,n=po++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=q0++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Fs,useFormState:Qd,useActionState:Qd,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ws.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vs,useCacheRefresh:function(){return mt().memoizedState=Q0.bind(null,ye)}},hm={readContext:rt,use:vo,useCallback:nm,useContext:rt,useEffect:Fd,useImperativeHandle:tm,useInsertionEffect:Wd,useLayoutEffect:Id,useMemo:am,useReducer:go,useRef:$d,useState:function(){return go(hn)},useDebugValue:Ps,useDeferredValue:function(e,t){var n=Qe();return lm(n,Ce.memoizedState,e,t)},useTransition:function(){var e=go(hn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:er(e),t]},useSyncExternalStore:Dd,useId:sm,useHostTransitionStatus:Fs,useFormState:Zd,useActionState:Zd,useOptimistic:function(e,t){var n=Qe();return Bd(n,Ce,e,t)},useMemoCache:Vs,useCacheRefresh:cm},K0={readContext:rt,use:vo,useCallback:nm,useContext:rt,useEffect:Fd,useImperativeHandle:tm,useInsertionEffect:Wd,useLayoutEffect:Id,useMemo:am,useReducer:Qs,useRef:$d,useState:function(){return Qs(hn)},useDebugValue:Ps,useDeferredValue:function(e,t){var n=Qe();return Ce===null?$s(n,e,t):lm(n,Ce.memoizedState,e,t)},useTransition:function(){var e=Qs(hn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:er(e),t]},useSyncExternalStore:Dd,useId:sm,useHostTransitionStatus:Fs,useFormState:Pd,useActionState:Pd,useOptimistic:function(e,t){var n=Qe();return Ce!==null?Bd(n,Ce,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vs,useCacheRefresh:cm},el=null,ar=0;function wo(e){var t=ar;return ar+=1,el===null&&(el=[]),Md(el,e,t)}function lr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Eo(e,t){throw t.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function pm(e){var t=e._init;return t(e._payload)}function vm(e){function t(C,j){if(e){var O=C.deletions;O===null?(C.deletions=[j],C.flags|=16):O.push(j)}}function n(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function l(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function r(C,j){return C=cn(C,j),C.index=0,C.sibling=null,C}function c(C,j,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<j?(C.flags|=67108866,j):O):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function m(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function b(C,j,O,V){return j===null||j.tag!==6?(j=xs(O,C.mode,V),j.return=C,j):(j=r(j,O),j.return=C,j)}function A(C,j,O,V){var ne=O.type;return ne===M?Y(C,j,O.props.children,V,O.key):j!==null&&(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===Z&&pm(ne)===j.type)?(j=r(j,O.props),lr(j,O),j.return=C,j):(j=lo(O.type,O.key,O.props,null,C.mode,V),lr(j,O),j.return=C,j)}function z(C,j,O,V){return j===null||j.tag!==4||j.stateNode.containerInfo!==O.containerInfo||j.stateNode.implementation!==O.implementation?(j=bs(O,C.mode,V),j.return=C,j):(j=r(j,O.children||[]),j.return=C,j)}function Y(C,j,O,V,ne){return j===null||j.tag!==7?(j=sa(O,C.mode,V,ne),j.return=C,j):(j=r(j,O),j.return=C,j)}function K(C,j,O){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=xs(""+j,C.mode,O),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case w:return O=lo(j.type,j.key,j.props,null,C.mode,O),lr(O,j),O.return=C,O;case E:return j=bs(j,C.mode,O),j.return=C,j;case Z:var V=j._init;return j=V(j._payload),K(C,j,O)}if(pe(j)||de(j))return j=sa(j,C.mode,O,null),j.return=C,j;if(typeof j.then=="function")return K(C,wo(j),O);if(j.$$typeof===L)return K(C,so(C,j),O);Eo(C,j)}return null}function U(C,j,O,V){var ne=j!==null?j.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ne!==null?null:b(C,j,""+O,V);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return O.key===ne?A(C,j,O,V):null;case E:return O.key===ne?z(C,j,O,V):null;case Z:return ne=O._init,O=ne(O._payload),U(C,j,O,V)}if(pe(O)||de(O))return ne!==null?null:Y(C,j,O,V,null);if(typeof O.then=="function")return U(C,j,wo(O),V);if(O.$$typeof===L)return U(C,j,so(C,O),V);Eo(C,O)}return null}function H(C,j,O,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return C=C.get(O)||null,b(j,C,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return C=C.get(V.key===null?O:V.key)||null,A(j,C,V,ne);case E:return C=C.get(V.key===null?O:V.key)||null,z(j,C,V,ne);case Z:var be=V._init;return V=be(V._payload),H(C,j,O,V,ne)}if(pe(V)||de(V))return C=C.get(O)||null,Y(j,C,V,ne,null);if(typeof V.then=="function")return H(C,j,O,wo(V),ne);if(V.$$typeof===L)return H(C,j,O,so(j,V),ne);Eo(j,V)}return null}function fe(C,j,O,V){for(var ne=null,be=null,re=j,ue=j=0,et=null;re!==null&&ue<O.length;ue++){re.index>ue?(et=re,re=null):et=re.sibling;var Te=U(C,re,O[ue],V);if(Te===null){re===null&&(re=et);break}e&&re&&Te.alternate===null&&t(C,re),j=c(Te,j,ue),be===null?ne=Te:be.sibling=Te,be=Te,re=et}if(ue===O.length)return n(C,re),_e&&ua(C,ue),ne;if(re===null){for(;ue<O.length;ue++)re=K(C,O[ue],V),re!==null&&(j=c(re,j,ue),be===null?ne=re:be.sibling=re,be=re);return _e&&ua(C,ue),ne}for(re=l(re);ue<O.length;ue++)et=H(re,C,ue,O[ue],V),et!==null&&(e&&et.alternate!==null&&re.delete(et.key===null?ue:et.key),j=c(et,j,ue),be===null?ne=et:be.sibling=et,be=et);return e&&re.forEach(function(Jn){return t(C,Jn)}),_e&&ua(C,ue),ne}function ce(C,j,O,V){if(O==null)throw Error(i(151));for(var ne=null,be=null,re=j,ue=j=0,et=null,Te=O.next();re!==null&&!Te.done;ue++,Te=O.next()){re.index>ue?(et=re,re=null):et=re.sibling;var Jn=U(C,re,Te.value,V);if(Jn===null){re===null&&(re=et);break}e&&re&&Jn.alternate===null&&t(C,re),j=c(Jn,j,ue),be===null?ne=Jn:be.sibling=Jn,be=Jn,re=et}if(Te.done)return n(C,re),_e&&ua(C,ue),ne;if(re===null){for(;!Te.done;ue++,Te=O.next())Te=K(C,Te.value,V),Te!==null&&(j=c(Te,j,ue),be===null?ne=Te:be.sibling=Te,be=Te);return _e&&ua(C,ue),ne}for(re=l(re);!Te.done;ue++,Te=O.next())Te=H(re,C,ue,Te.value,V),Te!==null&&(e&&Te.alternate!==null&&re.delete(Te.key===null?ue:Te.key),j=c(Te,j,ue),be===null?ne=Te:be.sibling=Te,be=Te);return e&&re.forEach(function(Px){return t(C,Px)}),_e&&ua(C,ue),ne}function De(C,j,O,V){if(typeof O=="object"&&O!==null&&O.type===M&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case w:e:{for(var ne=O.key;j!==null;){if(j.key===ne){if(ne=O.type,ne===M){if(j.tag===7){n(C,j.sibling),V=r(j,O.props.children),V.return=C,C=V;break e}}else if(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===Z&&pm(ne)===j.type){n(C,j.sibling),V=r(j,O.props),lr(V,O),V.return=C,C=V;break e}n(C,j);break}else t(C,j);j=j.sibling}O.type===M?(V=sa(O.props.children,C.mode,V,O.key),V.return=C,C=V):(V=lo(O.type,O.key,O.props,null,C.mode,V),lr(V,O),V.return=C,C=V)}return m(C);case E:e:{for(ne=O.key;j!==null;){if(j.key===ne)if(j.tag===4&&j.stateNode.containerInfo===O.containerInfo&&j.stateNode.implementation===O.implementation){n(C,j.sibling),V=r(j,O.children||[]),V.return=C,C=V;break e}else{n(C,j);break}else t(C,j);j=j.sibling}V=bs(O,C.mode,V),V.return=C,C=V}return m(C);case Z:return ne=O._init,O=ne(O._payload),De(C,j,O,V)}if(pe(O))return fe(C,j,O,V);if(de(O)){if(ne=de(O),typeof ne!="function")throw Error(i(150));return O=ne.call(O),ce(C,j,O,V)}if(typeof O.then=="function")return De(C,j,wo(O),V);if(O.$$typeof===L)return De(C,j,so(C,O),V);Eo(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,j!==null&&j.tag===6?(n(C,j.sibling),V=r(j,O),V.return=C,C=V):(n(C,j),V=xs(O,C.mode,V),V.return=C,C=V),m(C)):n(C,j)}return function(C,j,O,V){try{ar=0;var ne=De(C,j,O,V);return el=null,ne}catch(re){if(re===Pl||re===uo)throw re;var be=bt(29,re,null,C.mode);return be.lanes=V,be.return=C,be}finally{}}}var tl=vm(!0),gm=vm(!1),zt=X(null),$t=null;function kn(e){var t=e.alternate;J(Pe,Pe.current&1),J(zt,e),$t===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&($t=e)}function ym(e){if(e.tag===22){if(J(Pe,Pe.current),J(zt,e),$t===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&($t=e)}}else Un()}function Un(){J(Pe,Pe.current),J(zt,zt.current)}function pn(e){I(zt),$t===e&&($t=null),I(Pe)}var Pe=X(0);function No(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Yc(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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}function Is(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ec={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Nt(),r=On(l);r.payload=t,n!=null&&(r.callback=n),t=Dn(e,r,l),t!==null&&(Mt(t,e,l),Jl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Nt(),r=On(l);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Dn(e,r,l),t!==null&&(Mt(t,e,l),Jl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nt(),l=On(n);l.tag=2,t!=null&&(l.callback=t),t=Dn(e,l,n),t!==null&&(Mt(t,e,n),Jl(t,e,n))}};function xm(e,t,n,l,r,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,m):t.prototype&&t.prototype.isPureReactComponent?!ql(n,l)||!ql(r,c):!0}function bm(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function ga(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var Mo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Sm(e){Mo(e)}function wm(e){console.error(e)}function Em(e){Mo(e)}function Ao(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Nm(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function tc(e,t,n){return n=On(n),n.tag=3,n.payload={element:null},n.callback=function(){Ao(e,t)},n}function Mm(e){return e=On(e),e.tag=3,e}function Am(e,t,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var c=l.value;e.payload=function(){return r(c)},e.callback=function(){Nm(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Nm(t,n,l),typeof r!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function P0(e,t,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Ql(t,n,r,!0),n=zt.current,n!==null){switch(n.tag){case 13:return $t===null?Mc():n.alternate===null&&qe===0&&(qe=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===Rs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Tc(e,l,r)),!1;case 22:return n.flags|=65536,l===Rs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Tc(e,l,r)),!1}throw Error(i(435,n.tag))}return Tc(e,l,r),Mc(),!1}if(_e)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,l!==Es&&(e=Error(i(422),{cause:l}),Xl(Rt(e,n)))):(l!==Es&&(t=Error(i(423),{cause:l}),Xl(Rt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,l=Rt(l,n),r=tc(e.stateNode,l,r),Ds(e,r),qe!==4&&(qe=2)),!1;var c=Error(i(520),{cause:l});if(c=Rt(c,n),fr===null?fr=[c]:fr.push(c),qe!==4&&(qe=2),t===null)return!0;l=Rt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=tc(n.stateNode,l,e),Ds(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Yn===null||!Yn.has(c))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Mm(r),Am(r,e,n,l),Ds(n,r),!1}n=n.return}while(n!==null);return!1}var Tm=Error(i(461)),We=!1;function tt(e,t,n,l){t.child=e===null?gm(t,null,n,l):tl(t,e.child,n,l)}function _m(e,t,n,l,r){n=n.render;var c=t.ref;if("ref"in l){var m={};for(var b in l)b!=="ref"&&(m[b]=l[b])}else m=l;return ha(t),l=Hs(e,t,n,m,c,r),b=Bs(),e!==null&&!We?(qs(e,t,r),vn(e,t,r)):(_e&&b&&Ss(t),t.flags|=1,tt(e,t,l,r),t.child)}function jm(e,t,n,l,r){if(e===null){var c=n.type;return typeof c=="function"&&!ys(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Rm(e,t,c,l,r)):(e=lo(n.type,null,l,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!cc(e,r)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:ql,n(m,l)&&e.ref===t.ref)return vn(e,t,r)}return t.flags|=1,e=cn(c,l),e.ref=t.ref,e.return=t,t.child=e}function Rm(e,t,n,l,r){if(e!==null){var c=e.memoizedProps;if(ql(c,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=c,cc(e,r))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,vn(e,t,r)}return nc(e,t,n,l,r)}function Cm(e,t,n){var l=t.pendingProps,r=l.children,c=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=c!==null?c.baseLanes|n:n,e!==null){for(r=t.child=e.child,c=0;r!==null;)c=c|r.lanes|r.childLanes,r=r.sibling;t.childLanes=c&~l}else t.childLanes=0,t.child=null;return Om(e,t,l,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&co(t,c!==null?c.cachePool:null),c!==null?Rd(t,c):ks(),ym(t);else return t.lanes=t.childLanes=536870912,Om(e,t,c!==null?c.baseLanes|n:n,n)}else c!==null?(co(t,c.cachePool),Rd(t,c),Un(),t.memoizedState=null):(e!==null&&co(t,null),ks(),Un());return tt(e,t,r,n),t.child}function Om(e,t,n,l){var r=js();return r=r===null?null:{parent:Ke._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&co(t,null),ks(),ym(t),e!==null&&Ql(e,t,l,!0),null}function To(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function nc(e,t,n,l,r){return ha(t),n=Hs(e,t,n,l,void 0,r),l=Bs(),e!==null&&!We?(qs(e,t,r),vn(e,t,r)):(_e&&l&&Ss(t),t.flags|=1,tt(e,t,n,r),t.child)}function Dm(e,t,n,l,r,c){return ha(t),t.updateQueue=null,n=Od(t,l,n,r),Cd(e),l=Bs(),e!==null&&!We?(qs(e,t,c),vn(e,t,c)):(_e&&l&&Ss(t),t.flags|=1,tt(e,t,n,c),t.child)}function zm(e,t,n,l,r){if(ha(t),t.stateNode===null){var c=Qa,m=n.contextType;typeof m=="object"&&m!==null&&(c=rt(m)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ec,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Cs(t),m=n.contextType,c.context=typeof m=="object"&&m!==null?rt(m):Qa,c.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Is(t,n,m,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&ec.enqueueReplaceState(c,c.state,null),Wl(t,l,c,r),Fl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,A=ga(n,b);c.props=A;var z=c.context,Y=n.contextType;m=Qa,typeof Y=="object"&&Y!==null&&(m=rt(Y));var K=n.getDerivedStateFromProps;Y=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,Y||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||z!==m)&&bm(t,c,l,m),Cn=!1;var U=t.memoizedState;c.state=U,Wl(t,l,c,r),Fl(),z=t.memoizedState,b||U!==z||Cn?(typeof K=="function"&&(Is(t,n,K,l),z=t.memoizedState),(A=Cn||xm(t,n,A,l,U,z,m))?(Y||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),c.props=l,c.state=z,c.context=m,l=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,Os(e,t),m=t.memoizedProps,Y=ga(n,m),c.props=Y,K=t.pendingProps,U=c.context,z=n.contextType,A=Qa,typeof z=="object"&&z!==null&&(A=rt(z)),b=n.getDerivedStateFromProps,(z=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==K||U!==A)&&bm(t,c,l,A),Cn=!1,U=t.memoizedState,c.state=U,Wl(t,l,c,r),Fl();var H=t.memoizedState;m!==K||U!==H||Cn||e!==null&&e.dependencies!==null&&io(e.dependencies)?(typeof b=="function"&&(Is(t,n,b,l),H=t.memoizedState),(Y=Cn||xm(t,n,Y,l,U,H,A)||e!==null&&e.dependencies!==null&&io(e.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,H,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,H,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),c.props=l,c.state=H,c.context=A,l=Y):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,To(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=tl(t,e.child,null,r),t.child=tl(t,null,n,r)):tt(e,t,n,r),t.memoizedState=c.state,e=t.child):e=vn(e,t,r),e}function km(e,t,n,l){return Vl(),t.flags|=256,tt(e,t,n,l),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(e){return{baseLanes:e,cachePool:wd()}}function rc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=kt),e}function Um(e,t,n){var l=t.pendingProps,r=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),m&&(r=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(r?kn(t):Un(),_e){var b=Be,A;if(A=b){e:{for(A=b,b=Pt;A.nodeType!==8;){if(!b){b=null;break e}if(A=Gt(A.nextSibling),A===null){b=null;break e}}b=A}b!==null?(t.memoizedState={dehydrated:b,treeContext:ca!==null?{id:un,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},A=bt(18,null,null,0),A.stateNode=b,A.return=t,t.child=A,ct=t,Be=null,A=!0):A=!1}A||da(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Yc(b)?t.lanes=32:t.lanes=536870912,null;pn(t)}return b=l.children,l=l.fallback,r?(Un(),r=t.mode,b=_o({mode:"hidden",children:b},r),l=sa(l,r,n,null),b.return=t,l.return=t,b.sibling=l,t.child=b,r=t.child,r.memoizedState=lc(n),r.childLanes=rc(e,m,n),t.memoizedState=ac,l):(kn(t),oc(t,b))}if(A=e.memoizedState,A!==null&&(b=A.dehydrated,b!==null)){if(c)t.flags&256?(kn(t),t.flags&=-257,t=ic(e,t,n)):t.memoizedState!==null?(Un(),t.child=e.child,t.flags|=128,t=null):(Un(),r=l.fallback,b=t.mode,l=_o({mode:"visible",children:l.children},b),r=sa(r,b,n,null),r.flags|=2,l.return=t,r.return=t,l.sibling=r,t.child=l,tl(t,e.child,null,n),l=t.child,l.memoizedState=lc(n),l.childLanes=rc(e,m,n),t.memoizedState=ac,t=r);else if(kn(t),Yc(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var z=m.dgst;m=z,l=Error(i(419)),l.stack="",l.digest=m,Xl({value:l,source:null,stack:null}),t=ic(e,t,n)}else if(We||Ql(e,t,n,!1),m=(n&e.childLanes)!==0,We||m){if(m=ke,m!==null&&(l=n&-n,l=(l&42)!==0?1:Vi(l),l=(l&(m.suspendedLanes|n))!==0?0:l,l!==0&&l!==A.retryLane))throw A.retryLane=l,Xa(e,l),Mt(m,e,l),Tm;b.data==="$?"||Mc(),t=ic(e,t,n)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Be=Gt(b.nextSibling),ct=t,_e=!0,fa=null,Pt=!1,e!==null&&(Ot[Dt++]=un,Ot[Dt++]=fn,Ot[Dt++]=ca,un=e.id,fn=e.overflow,ca=t),t=oc(t,l.children),t.flags|=4096);return t}return r?(Un(),r=l.fallback,b=t.mode,A=e.child,z=A.sibling,l=cn(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,z!==null?r=cn(z,r):(r=sa(r,b,n,null),r.flags|=2),r.return=t,l.return=t,l.sibling=r,t.child=l,l=r,r=t.child,b=e.child.memoizedState,b===null?b=lc(n):(A=b.cachePool,A!==null?(z=Ke._currentValue,A=A.parent!==z?{parent:z,pool:z}:A):A=wd(),b={baseLanes:b.baseLanes|n,cachePool:A}),r.memoizedState=b,r.childLanes=rc(e,m,n),t.memoizedState=ac,l):(kn(t),n=e.child,e=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function oc(e,t){return t=_o({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _o(e,t){return e=bt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ic(e,t,n){return tl(t,e.child,null,n),e=oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ms(e.return,t,n)}function sc(e,t,n,l,r){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=n,c.tailMode=r)}function Hm(e,t,n){var l=t.pendingProps,r=l.revealOrder,c=l.tail;if(tt(e,t,l.children,n),l=Pe.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lm(e,n,t);else if(e.tag===19)Lm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(J(Pe,l),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&No(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),sc(t,!1,r,n,c);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&No(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}sc(t,!0,n,null,c);break;case"together":sc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ql(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&io(e)))}function $0(e,t,n){switch(t.tag){case 3:Ae(t,t.stateNode.containerInfo),Rn(t,Ke,e.memoizedState.cache),Vl();break;case 27:case 5:Xt(t);break;case 4:Ae(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(kn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Um(e,t,n):(kn(t),e=vn(e,t,n),e!==null?e.sibling:null);kn(t);break;case 19:var r=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Ql(e,t,n,!1),l=(n&t.childLanes)!==0),r){if(l)return Hm(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(Pe,Pe.current),l)break;return null;case 22:case 23:return t.lanes=0,Cm(e,t,n);case 24:Rn(t,Ke,e.memoizedState.cache)}return vn(e,t,n)}function Bm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!cc(e,n)&&(t.flags&128)===0)return We=!1,$0(e,t,n);We=(e.flags&131072)!==0}else We=!1,_e&&(t.flags&1048576)!==0&&pd(t,oo,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,r=l._init;if(l=r(l._payload),t.type=l,typeof l=="function")ys(l)?(e=ga(l,e),t.tag=1,t=zm(null,t,l,e,n)):(t.tag=0,t=nc(null,t,l,e,n));else{if(l!=null){if(r=l.$$typeof,r===B){t.tag=11,t=_m(null,t,l,e,n);break e}else if(r===P){t.tag=14,t=jm(null,t,l,e,n);break e}}throw t=ge(l)||l,Error(i(306,t,""))}}return t;case 0:return nc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,r=ga(l,t.pendingProps),zm(e,t,l,r,n);case 3:e:{if(Ae(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var c=t.memoizedState;r=c.element,Os(e,t),Wl(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Rn(t,Ke,l),l!==c.cache&&As(t,[Ke],n,!0),Fl(),l=m.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=km(e,t,l,n);break e}else if(l!==r){r=Rt(Error(i(424)),t),Xl(r),t=km(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Be=Gt(e.firstChild),ct=t,_e=!0,fa=null,Pt=!0,n=gm(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vl(),l===r){t=vn(e,t,n);break e}tt(e,t,l,n)}t=t.child}return t;case 26:return To(e,t),e===null?(n=Vh(t.type,null,t.pendingProps,null))?t.memoizedState=n:_e||(n=t.type,e=t.pendingProps,l=Yo(oe.current).createElement(n),l[lt]=t,l[ft]=e,at(l,n,e),Fe(l),t.stateNode=l):t.memoizedState=Vh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xt(t),e===null&&_e&&(l=t.stateNode=qh(t.type,t.pendingProps,oe.current),ct=t,Pt=!0,r=Be,Qn(t.type)?(Vc=r,Be=Gt(l.firstChild)):Be=r),tt(e,t,t.pendingProps.children,n),To(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((r=l=Be)&&(l=Ex(l,t.type,t.pendingProps,Pt),l!==null?(t.stateNode=l,ct=t,Be=Gt(l.firstChild),Pt=!1,r=!0):r=!1),r||da(t)),Xt(t),r=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,l=c.children,Bc(r,c)?l=null:m!==null&&Bc(r,m)&&(t.flags|=32),t.memoizedState!==null&&(r=Hs(e,t,G0,null,null,n),br._currentValue=r),To(e,t),tt(e,t,l,n),t.child;case 6:return e===null&&_e&&((e=n=Be)&&(n=Nx(n,t.pendingProps,Pt),n!==null?(t.stateNode=n,ct=t,Be=null,e=!0):e=!1),e||da(t)),null;case 13:return Um(e,t,n);case 4:return Ae(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=tl(t,null,l,n):tt(e,t,l,n),t.child;case 11:return _m(e,t,t.type,t.pendingProps,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Rn(t,t.type,l.value),tt(e,t,l.children,n),t.child;case 9:return r=t.type._context,l=t.pendingProps.children,ha(t),r=rt(r),l=l(r),t.flags|=1,tt(e,t,l,n),t.child;case 14:return jm(e,t,t.type,t.pendingProps,n);case 15:return Rm(e,t,t.type,t.pendingProps,n);case 19:return Hm(e,t,n);case 31:return l=t.pendingProps,n=t.mode,l={mode:l.mode,children:l.children},e===null?(n=_o(l,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=cn(e.child,l),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Cm(e,t,n);case 24:return ha(t),l=rt(Ke),e===null?(r=js(),r===null&&(r=ke,c=Ts(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=n),r=c),t.memoizedState={parent:l,cache:r},Cs(t),Rn(t,Ke,r)):((e.lanes&n)!==0&&(Os(e,t),Wl(t,null,null,n),Fl()),r=e.memoizedState,c=t.memoizedState,r.parent!==l?(r={parent:l,cache:l},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Rn(t,Ke,l)):(l=c.cache,Rn(t,Ke,l),l!==r.cache&&As(t,[Ke],n,!0))),tt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function gn(e){e.flags|=4}function qm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ph(t)){if(t=zt.current,t!==null&&((Me&4194048)===Me?$t!==null:(Me&62914560)!==Me&&(Me&536870912)===0||t!==$t))throw $l=Rs,Ed;e.flags|=8192}}function jo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yf():536870912,e.lanes|=t,rl|=t)}function rr(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function J0(e,t,n){var l=t.pendingProps;switch(ws(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),mn(Ke),st(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yl(t)?gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yd())),He(t),null;case 26:return n=t.memoizedState,e===null?(gn(t),n!==null?(He(t),qm(t,n)):(He(t),t.flags&=-16777217)):n?n!==e.memoizedState?(gn(t),He(t),qm(t,n)):(He(t),t.flags&=-16777217):(e.memoizedProps!==l&&gn(t),He(t),t.flags&=-16777217),null;case 27:Qt(t),n=oe.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&gn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return He(t),null}e=ee.current,Yl(t)?vd(t):(e=qh(r,l,n),t.stateNode=e,gn(t))}return He(t),null;case 5:if(Qt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&gn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return He(t),null}if(e=ee.current,Yl(t))vd(t);else{switch(r=Yo(oe.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?r.createElement(n,{is:l.is}):r.createElement(n)}}e[lt]=t,e[ft]=l;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(at(e,n,l),n){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gn(t)}}return He(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&gn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Yl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,r=ct,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Dh(e.nodeValue,n)),e||da(t)}else e=Yo(e).createTextNode(l),e[lt]=t,t.stateNode=e}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Yl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error(i(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));r[lt]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),r=!1}else r=yd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(pn(t),t):(pn(t),null)}if(pn(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=l!==null,e=e!==null&&e.memoizedState!==null,n){l=t.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool);var c=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==r&&(l.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),jo(t,t.updateQueue),He(t),null;case 4:return st(),e===null&&zc(t.stateNode.containerInfo),He(t),null;case 10:return mn(t.type),He(t),null;case 19:if(I(Pe),r=t.memoizedState,r===null)return He(t),null;if(l=(t.flags&128)!==0,c=r.rendering,c===null)if(l)rr(r,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=No(e),c!==null){for(t.flags|=128,rr(r,!1),e=c.updateQueue,t.updateQueue=e,jo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hd(n,e),n=n.sibling;return J(Pe,Pe.current&1|2),t.child}e=e.sibling}r.tail!==null&&Kt()>Oo&&(t.flags|=128,l=!0,rr(r,!1),t.lanes=4194304)}else{if(!l)if(e=No(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,jo(t,e),rr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!_e)return He(t),null}else 2*Kt()-r.renderingStartTime>Oo&&n!==536870912&&(t.flags|=128,l=!0,rr(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Kt(),t.sibling=null,e=Pe.current,J(Pe,l?e&1|2:e&1),t):(He(t),null);case 22:case 23:return pn(t),Us(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&jo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&I(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mn(Ke),He(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function F0(e,t){switch(ws(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(Ke),st(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qt(t),null;case 13:if(pn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(Pe),null;case 4:return st(),null;case 10:return mn(t.type),null;case 22:case 23:return pn(t),Us(),e!==null&&I(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return mn(Ke),null;case 25:return null;default:return null}}function Gm(e,t){switch(ws(t),t.tag){case 3:mn(Ke),st();break;case 26:case 27:case 5:Qt(t);break;case 4:st();break;case 13:pn(t);break;case 19:I(Pe);break;case 10:mn(t.type);break;case 22:case 23:pn(t),Us(),e!==null&&I(pa);break;case 24:mn(Ke)}}function or(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){l=void 0;var c=n.create,m=n.inst;l=c(),m.destroy=l}n=n.next}while(n!==r)}}catch(b){ze(t,t.return,b)}}function Ln(e,t,n){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var c=r.next;l=c;do{if((l.tag&e)===e){var m=l.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,r=t;var A=n,z=b;try{z()}catch(Y){ze(r,A,Y)}}}l=l.next}while(l!==c)}}catch(Y){ze(t,t.return,Y)}}function Ym(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jd(t,n)}catch(l){ze(e,e.return,l)}}}function Vm(e,t,n){n.props=ga(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){ze(e,t,l)}}function ir(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(r){ze(e,t,r)}}function Jt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){ze(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Xm(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){ze(e,e.return,r)}}function uc(e,t,n){try{var l=e.stateNode;yx(l,e.type,n,t),l[ft]=t}catch(r){ze(e,e.return,r)}}function Qm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qn(e.type)||e.tag===4}function fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qm(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.tag===27&&Qn(e.type)||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 dc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Go));else if(l!==4&&(l===27&&Qn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}function Ro(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Qn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ro(e,t,n),e=e.sibling;e!==null;)Ro(e,t,n),e=e.sibling}function Zm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);at(t,l,n),t[lt]=e,t[ft]=n}catch(c){ze(e,e.return,c)}}var yn=!1,Ye=!1,mc=!1,Km=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function W0(e,t){if(e=e.containerInfo,Lc=Po,e=ld(e),fs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,b=-1,A=-1,z=0,Y=0,K=e,U=null;t:for(;;){for(var H;K!==n||r!==0&&K.nodeType!==3||(b=m+r),K!==c||l!==0&&K.nodeType!==3||(A=m+l),K.nodeType===3&&(m+=K.nodeValue.length),(H=K.firstChild)!==null;)U=K,K=H;for(;;){if(K===e)break t;if(U===n&&++z===r&&(b=m),U===c&&++Y===l&&(A=m),(H=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=H}n=b===-1||A===-1?null:{start:b,end:A}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hc={focusedElem:e,selectionRange:n},Po=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,r=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var fe=ga(n.type,r,n.elementType===n.type);e=l.getSnapshotBeforeUpdate(fe,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ce){ze(n,n.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Gc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Pm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Hn(e,n),l&4&&or(5,n);break;case 1:if(Hn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){ze(n,n.return,m)}else{var r=ga(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){ze(n,n.return,m)}}l&64&&Ym(n),l&512&&ir(n,n.return);break;case 3:if(Hn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{jd(e,t)}catch(m){ze(n,n.return,m)}}break;case 27:t===null&&l&4&&Zm(n);case 26:case 5:Hn(e,n),t===null&&l&4&&Xm(n),l&512&&ir(n,n.return);break;case 12:Hn(e,n);break;case 13:Hn(e,n),l&4&&Fm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ix.bind(null,n),Mx(e,n))));break;case 22:if(l=n.memoizedState!==null||yn,!l){t=t!==null&&t.memoizedState!==null||Ye,r=yn;var c=Ye;yn=l,(Ye=t)&&!c?Bn(e,n,(n.subtreeFlags&8772)!==0):Hn(e,n),yn=r,Ye=c}break;case 30:break;default:Hn(e,n)}}function $m(e){var t=e.alternate;t!==null&&(e.alternate=null,$m(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Le=null,ht=!1;function xn(e,t,n){for(n=n.child;n!==null;)Jm(e,t,n),n=n.sibling}function Jm(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 26:Ye||Jt(n,t),xn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ye||Jt(n,t);var l=Le,r=ht;Qn(n.type)&&(Le=n.stateNode,ht=!1),xn(e,t,n),vr(n.stateNode),Le=l,ht=r;break;case 5:Ye||Jt(n,t);case 6:if(l=Le,r=ht,Le=null,xn(e,t,n),Le=l,ht=r,Le!==null)if(ht)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(n.stateNode)}catch(c){ze(n,t,c)}else try{Le.removeChild(n.stateNode)}catch(c){ze(n,t,c)}break;case 18:Le!==null&&(ht?(e=Le,Hh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Nr(e)):Hh(Le,n.stateNode));break;case 4:l=Le,r=ht,Le=n.stateNode.containerInfo,ht=!0,xn(e,t,n),Le=l,ht=r;break;case 0:case 11:case 14:case 15:Ye||Ln(2,n,t),Ye||Ln(4,n,t),xn(e,t,n);break;case 1:Ye||(Jt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Vm(n,t,l)),xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:Ye=(l=Ye)||n.memoizedState!==null,xn(e,t,n),Ye=l;break;default:xn(e,t,n)}}function Fm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nr(e)}catch(n){ze(t,t.return,n)}}function I0(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Km),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Km),t;default:throw Error(i(435,e.tag))}}function hc(e,t){var n=I0(e);t.forEach(function(l){var r=sx.bind(null,e,l);n.has(l)||(n.add(l),l.then(r,r))})}function St(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],c=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(Qn(b.type)){Le=b.stateNode,ht=!1;break e}break;case 5:Le=b.stateNode,ht=!1;break e;case 3:case 4:Le=b.stateNode.containerInfo,ht=!0;break e}b=b.return}if(Le===null)throw Error(i(160));Jm(c,m,r),Le=null,ht=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Wm(t,e),t=t.sibling}var qt=null;function Wm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),wt(e),l&4&&(Ln(3,e,e.return),or(3,e),Ln(5,e,e.return));break;case 1:St(t,e),wt(e),l&512&&(Ye||n===null||Jt(n,n.return)),l&64&&yn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=qt;if(St(t,e),wt(e),l&512&&(Ye||n===null||Jt(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(l){case"title":c=r.getElementsByTagName("title")[0],(!c||c[Cl]||c[lt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(l),r.head.insertBefore(c,r.querySelector("head > title"))),at(c,l,n),c[lt]=e,Fe(c),l=c;break e;case"link":var m=Zh("link","href",r).get(l+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(c=m[b],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(b,1);break t}}c=r.createElement(l),at(c,l,n),r.head.appendChild(c);break;case"meta":if(m=Zh("meta","content",r).get(l+(n.content||""))){for(b=0;b<m.length;b++)if(c=m[b],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(b,1);break t}}c=r.createElement(l),at(c,l,n),r.head.appendChild(c);break;default:throw Error(i(468,l))}c[lt]=e,Fe(c),l=c}e.stateNode=l}else Kh(r,e.type,e.stateNode);else e.stateNode=Qh(r,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Kh(r,e.type,e.stateNode):Qh(r,l,e.memoizedProps)):l===null&&e.stateNode!==null&&uc(e,e.memoizedProps,n.memoizedProps)}break;case 27:St(t,e),wt(e),l&512&&(Ye||n===null||Jt(n,n.return)),n!==null&&l&4&&uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(St(t,e),wt(e),l&512&&(Ye||n===null||Jt(n,n.return)),e.flags&32){r=e.stateNode;try{La(r,"")}catch(H){ze(e,e.return,H)}}l&4&&e.stateNode!=null&&(r=e.memoizedProps,uc(e,r,n!==null?n.memoizedProps:r)),l&1024&&(mc=!0);break;case 6:if(St(t,e),wt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(H){ze(e,e.return,H)}}break;case 3:if(Qo=null,r=qt,qt=Vo(t.containerInfo),St(t,e),qt=r,wt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Nr(t.containerInfo)}catch(H){ze(e,e.return,H)}mc&&(mc=!1,Im(e));break;case 4:l=qt,qt=Vo(e.stateNode.containerInfo),St(t,e),wt(e),qt=l;break;case 12:St(t,e),wt(e);break;case 13:St(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(bc=Kt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,hc(e,l)));break;case 22:r=e.memoizedState!==null;var A=n!==null&&n.memoizedState!==null,z=yn,Y=Ye;if(yn=z||r,Ye=Y||A,St(t,e),Ye=Y,yn=z,wt(e),l&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||A||yn||Ye||ya(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){A=n=t;try{if(c=A.stateNode,r)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=A.stateNode;var K=A.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(H){ze(A,A.return,H)}}}else if(t.tag===6){if(n===null){A=t;try{A.stateNode.nodeValue=r?"":A.memoizedProps}catch(H){ze(A,A.return,H)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,hc(e,n))));break;case 19:St(t,e),wt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,hc(e,l)));break;case 30:break;case 21:break;default:St(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Qm(l)){n=l;break}l=l.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var r=n.stateNode,c=fc(e);Ro(e,c,r);break;case 5:var m=n.stateNode;n.flags&32&&(La(m,""),n.flags&=-33);var b=fc(e);Ro(e,b,m);break;case 3:case 4:var A=n.stateNode.containerInfo,z=fc(e);dc(e,z,A);break;default:throw Error(i(161))}}catch(Y){ze(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Im(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Im(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Pm(e,t.alternate,t),t=t.sibling}function ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ln(4,t,t.return),ya(t);break;case 1:Jt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Vm(t,t.return,n),ya(t);break;case 27:vr(t.stateNode);case 26:case 5:Jt(t,t.return),ya(t);break;case 22:t.memoizedState===null&&ya(t);break;case 30:ya(t);break;default:ya(t)}e=e.sibling}}function Bn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,r=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:Bn(r,c,n),or(4,c);break;case 1:if(Bn(r,c,n),l=c,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){ze(l,l.return,z)}if(l=c,r=l.updateQueue,r!==null){var b=l.stateNode;try{var A=r.shared.hiddenCallbacks;if(A!==null)for(r.shared.hiddenCallbacks=null,r=0;r<A.length;r++)_d(A[r],b)}catch(z){ze(l,l.return,z)}}n&&m&64&&Ym(c),ir(c,c.return);break;case 27:Zm(c);case 26:case 5:Bn(r,c,n),n&&l===null&&m&4&&Xm(c),ir(c,c.return);break;case 12:Bn(r,c,n);break;case 13:Bn(r,c,n),n&&m&4&&Fm(r,c);break;case 22:c.memoizedState===null&&Bn(r,c,n),ir(c,c.return);break;case 30:break;default:Bn(r,c,n)}t=t.sibling}}function pc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Zl(n))}function vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zl(e))}function Ft(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eh(e,t,n,l),t=t.sibling}function eh(e,t,n,l){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,n,l),r&2048&&or(9,t);break;case 1:Ft(e,t,n,l);break;case 3:Ft(e,t,n,l),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zl(e)));break;case 12:if(r&2048){Ft(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,b=c.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){ze(t,t.return,A)}}else Ft(e,t,n,l);break;case 13:Ft(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?Ft(e,t,n,l):sr(e,t):c._visibility&2?Ft(e,t,n,l):(c._visibility|=2,nl(e,t,n,l,(t.subtreeFlags&10256)!==0)),r&2048&&pc(m,t);break;case 24:Ft(e,t,n,l),r&2048&&vc(t.alternate,t);break;default:Ft(e,t,n,l)}}function nl(e,t,n,l,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,m=t,b=n,A=l,z=m.flags;switch(m.tag){case 0:case 11:case 15:nl(c,m,b,A,r),or(8,m);break;case 23:break;case 22:var Y=m.stateNode;m.memoizedState!==null?Y._visibility&2?nl(c,m,b,A,r):sr(c,m):(Y._visibility|=2,nl(c,m,b,A,r)),r&&z&2048&&pc(m.alternate,m);break;case 24:nl(c,m,b,A,r),r&&z&2048&&vc(m.alternate,m);break;default:nl(c,m,b,A,r)}t=t.sibling}}function sr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,r=l.flags;switch(l.tag){case 22:sr(n,l),r&2048&&pc(l.alternate,l);break;case 24:sr(n,l),r&2048&&vc(l.alternate,l);break;default:sr(n,l)}t=t.sibling}}var cr=8192;function al(e){if(e.subtreeFlags&cr)for(e=e.child;e!==null;)th(e),e=e.sibling}function th(e){switch(e.tag){case 26:al(e),e.flags&cr&&e.memoizedState!==null&&Hx(qt,e.memoizedState,e.memoizedProps);break;case 5:al(e);break;case 3:case 4:var t=qt;qt=Vo(e.stateNode.containerInfo),al(e),qt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=cr,cr=16777216,al(e),cr=t):al(e));break;default:al(e)}}function nh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ur(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ie=l,lh(l,e)}nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ah(e),e=e.sibling}function ah(e){switch(e.tag){case 0:case 11:case 15:ur(e),e.flags&2048&&Ln(9,e,e.return);break;case 3:ur(e);break;case 12:ur(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Co(e)):ur(e);break;default:ur(e)}}function Co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ie=l,lh(l,e)}nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ln(8,t,t.return),Co(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Co(t));break;default:Co(t)}e=e.sibling}}function lh(e,t){for(;Ie!==null;){var n=Ie;switch(n.tag){case 0:case 11:case 15:Ln(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Zl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ie=l;else e:for(n=e;Ie!==null;){l=Ie;var r=l.sibling,c=l.return;if($m(l),l===n){Ie=null;break e}if(r!==null){r.return=c,Ie=r;break e}Ie=c}}}var ex={getCacheForType:function(e){var t=rt(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},tx=typeof WeakMap=="function"?WeakMap:Map,je=0,ke=null,Ee=null,Me=0,Re=0,Et=null,qn=!1,ll=!1,gc=!1,bn=0,qe=0,Gn=0,xa=0,yc=0,kt=0,rl=0,fr=null,pt=null,xc=!1,bc=0,Oo=1/0,Do=null,Yn=null,nt=0,Vn=null,ol=null,il=0,Sc=0,wc=null,rh=null,dr=0,Ec=null;function Nt(){if((je&2)!==0&&Me!==0)return Me&-Me;if(D.T!==null){var e=Pa;return e!==0?e:Rc()}return Sf()}function oh(){kt===0&&(kt=(Me&536870912)===0||_e?gf():536870912);var e=zt.current;return e!==null&&(e.flags|=32),kt}function Mt(e,t,n){(e===ke&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(sl(e,0),Xn(e,Me,kt,!1)),Rl(e,n),((je&2)===0||e!==ke)&&(e===ke&&((je&2)===0&&(xa|=n),qe===4&&Xn(e,Me,kt,!1)),Wt(e))}function ih(e,t,n){if((je&6)!==0)throw Error(i(327));var l=!n&&(t&124)===0&&(t&e.expiredLanes)===0||jl(e,t),r=l?lx(e,t):Ac(e,t,!0),c=l;do{if(r===0){ll&&!l&&Xn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!nx(n)){r=Ac(e,t,!1),c=!1;continue}if(r===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var b=e;r=fr;var A=b.current.memoizedState.isDehydrated;if(A&&(sl(b,m).flags|=256),m=Ac(b,m,!1),m!==2){if(gc&&!A){b.errorRecoveryDisabledLanes|=c,xa|=c,r=4;break e}c=pt,pt=r,c!==null&&(pt===null?pt=c:pt.push.apply(pt,c))}r=m}if(c=!1,r!==2)continue}}if(r===1){sl(e,0),Xn(e,t,0,!0);break}e:{switch(l=e,c=r,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Xn(l,t,kt,!qn);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(r=bc+300-Kt(),10<r)){if(Xn(l,t,kt,!qn),Vr(l,0,!0)!==0)break e;l.timeoutHandle=Uh(sh.bind(null,l,n,pt,Do,xc,t,kt,xa,rl,qn,c,2,-0,0),r);break e}sh(l,n,pt,Do,xc,t,kt,xa,rl,qn,c,0,-0,0)}}break}while(!0);Wt(e)}function sh(e,t,n,l,r,c,m,b,A,z,Y,K,U,H){if(e.timeoutHandle=-1,K=t.subtreeFlags,(K&8192||(K&16785408)===16785408)&&(xr={stylesheets:null,count:0,unsuspend:Lx},th(t),K=Bx(),K!==null)){e.cancelPendingCommit=K(ph.bind(null,e,t,c,n,l,r,m,b,A,Y,1,U,H)),Xn(e,c,m,!z);return}ph(e,t,c,n,l,r,m,b,A)}function nx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],c=r.getSnapshot;r=r.value;try{if(!xt(c(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xn(e,t,n,l){t&=~yc,t&=~xa,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var r=t;0<r;){var c=31-yt(r),m=1<<c;l[c]=-1,r&=~m}n!==0&&xf(e,n,t)}function zo(){return(je&6)===0?(mr(0),!1):!0}function Nc(){if(Ee!==null){if(Re===0)var e=Ee.return;else e=Ee,dn=ma=null,Gs(e),el=null,ar=0,e=Ee;for(;e!==null;)Gm(e.alternate,e),e=e.return;Ee=null}}function sl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,bx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Nc(),ke=e,Ee=n=cn(e.current,null),Me=t,Re=0,Et=null,qn=!1,ll=jl(e,t),gc=!1,rl=kt=yc=xa=Gn=qe=0,pt=fr=null,xc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var r=31-yt(l),c=1<<r;t|=e[r],l&=~c}return bn=t,to(),n}function ch(e,t){ye=null,D.H=So,t===Pl||t===uo?(t=Ad(),Re=3):t===Ed?(t=Ad(),Re=4):Re=t===Tm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,Ee===null&&(qe=1,Ao(e,Rt(t,e.current)))}function uh(){var e=D.H;return D.H=So,e===null?So:e}function fh(){var e=D.A;return D.A=ex,e}function Mc(){qe=4,qn||(Me&4194048)!==Me&&zt.current!==null||(ll=!0),(Gn&134217727)===0&&(xa&134217727)===0||ke===null||Xn(ke,Me,kt,!1)}function Ac(e,t,n){var l=je;je|=2;var r=uh(),c=fh();(ke!==e||Me!==t)&&(Do=null,sl(e,t)),t=!1;var m=qe;e:do try{if(Re!==0&&Ee!==null){var b=Ee,A=Et;switch(Re){case 8:Nc(),m=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var z=Re;if(Re=0,Et=null,cl(e,b,A,z),n&&ll){m=0;break e}break;default:z=Re,Re=0,Et=null,cl(e,b,A,z)}}ax(),m=qe;break}catch(Y){ch(e,Y)}while(!0);return t&&e.shellSuspendCounter++,dn=ma=null,je=l,D.H=r,D.A=c,Ee===null&&(ke=null,Me=0,to()),m}function ax(){for(;Ee!==null;)dh(Ee)}function lx(e,t){var n=je;je|=2;var l=uh(),r=fh();ke!==e||Me!==t?(Do=null,Oo=Kt()+500,sl(e,t)):ll=jl(e,t);e:do try{if(Re!==0&&Ee!==null){t=Ee;var c=Et;t:switch(Re){case 1:Re=0,Et=null,cl(e,t,c,1);break;case 2:case 9:if(Nd(c)){Re=0,Et=null,mh(t);break}t=function(){Re!==2&&Re!==9||ke!==e||(Re=7),Wt(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Nd(c)?(Re=0,Et=null,mh(t)):(Re=0,Et=null,cl(e,t,c,7));break;case 5:var m=null;switch(Ee.tag){case 26:m=Ee.memoizedState;case 5:case 27:var b=Ee;if(!m||Ph(m)){Re=0,Et=null;var A=b.sibling;if(A!==null)Ee=A;else{var z=b.return;z!==null?(Ee=z,ko(z)):Ee=null}break t}}Re=0,Et=null,cl(e,t,c,5);break;case 6:Re=0,Et=null,cl(e,t,c,6);break;case 8:Nc(),qe=6;break e;default:throw Error(i(462))}}rx();break}catch(Y){ch(e,Y)}while(!0);return dn=ma=null,D.H=l,D.A=r,je=n,Ee!==null?0:(ke=null,Me=0,to(),qe)}function rx(){for(;Ee!==null&&!Ty();)dh(Ee)}function dh(e){var t=Bm(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?ko(e):Ee=t}function mh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Dm(n,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=Dm(n,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:Gs(t);default:Gm(n,t),t=Ee=hd(t,bn),t=Bm(n,t,bn)}e.memoizedProps=e.pendingProps,t===null?ko(e):Ee=t}function cl(e,t,n,l){dn=ma=null,Gs(t),el=null,ar=0;var r=t.return;try{if(P0(e,r,t,n,Me)){qe=1,Ao(e,Rt(n,e.current)),Ee=null;return}}catch(c){if(r!==null)throw Ee=r,c;qe=1,Ao(e,Rt(n,e.current)),Ee=null;return}t.flags&32768?(_e||l===1?e=!0:ll||(Me&536870912)!==0?e=!1:(qn=e=!0,(l===2||l===9||l===3||l===6)&&(l=zt.current,l!==null&&l.tag===13&&(l.flags|=16384))),hh(t,e)):ko(t)}function ko(e){var t=e;do{if((t.flags&32768)!==0){hh(t,qn);return}e=t.return;var n=J0(t.alternate,t,bn);if(n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);qe===0&&(qe=5)}function hh(e,t){do{var n=F0(e.alternate,e);if(n!==null){n.flags&=32767,Ee=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=n}while(e!==null);qe=6,Ee=null}function ph(e,t,n,l,r,c,m,b,A){e.cancelPendingCommit=null;do Uo();while(nt!==0);if((je&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=vs,Ly(e,n,c,m,b,A),e===ke&&(Ee=ke=null,Me=0),ol=t,Vn=e,il=n,Sc=c,wc=r,rh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cx(qr,function(){return bh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,r=$.p,$.p=2,m=je,je|=4;try{W0(e,t,n)}finally{je=m,$.p=r,D.T=l}}nt=1,vh(),gh(),yh()}}function vh(){if(nt===1){nt=0;var e=Vn,t=ol,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var l=$.p;$.p=2;var r=je;je|=4;try{Wm(t,e);var c=Hc,m=ld(e.containerInfo),b=c.focusedElem,A=c.selectionRange;if(m!==b&&b&&b.ownerDocument&&ad(b.ownerDocument.documentElement,b)){if(A!==null&&fs(b)){var z=A.start,Y=A.end;if(Y===void 0&&(Y=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(Y,b.value.length);else{var K=b.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var H=U.getSelection(),fe=b.textContent.length,ce=Math.min(A.start,fe),De=A.end===void 0?ce:Math.min(A.end,fe);!H.extend&&ce>De&&(m=De,De=ce,ce=m);var C=nd(b,ce),j=nd(b,De);if(C&&j&&(H.rangeCount!==1||H.anchorNode!==C.node||H.anchorOffset!==C.offset||H.focusNode!==j.node||H.focusOffset!==j.offset)){var O=K.createRange();O.setStart(C.node,C.offset),H.removeAllRanges(),ce>De?(H.addRange(O),H.extend(j.node,j.offset)):(O.setEnd(j.node,j.offset),H.addRange(O))}}}}for(K=[],H=b;H=H.parentNode;)H.nodeType===1&&K.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<K.length;b++){var V=K[b];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Po=!!Lc,Hc=Lc=null}finally{je=r,$.p=l,D.T=n}}e.current=t,nt=2}}function gh(){if(nt===2){nt=0;var e=Vn,t=ol,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var l=$.p;$.p=2;var r=je;je|=4;try{Pm(e,t.alternate,t)}finally{je=r,$.p=l,D.T=n}}nt=3}}function yh(){if(nt===4||nt===3){nt=0,_y();var e=Vn,t=ol,n=il,l=rh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,ol=Vn=null,xh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Yn=null),Xi(n),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(_l,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,r=$.p,$.p=2,D.T=null;try{for(var c=e.onRecoverableError,m=0;m<l.length;m++){var b=l[m];c(b.value,{componentStack:b.stack})}}finally{D.T=t,$.p=r}}(il&3)!==0&&Uo(),Wt(e),r=e.pendingLanes,(n&4194090)!==0&&(r&42)!==0?e===Ec?dr++:(dr=0,Ec=e):dr=0,mr(0)}}function xh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zl(t)))}function Uo(e){return vh(),gh(),yh(),bh()}function bh(){if(nt!==5)return!1;var e=Vn,t=Sc;Sc=0;var n=Xi(il),l=D.T,r=$.p;try{$.p=32>n?32:n,D.T=null,n=wc,wc=null;var c=Vn,m=il;if(nt=0,ol=Vn=null,il=0,(je&6)!==0)throw Error(i(331));var b=je;if(je|=4,ah(c.current),eh(c,c.current,m,n),je=b,mr(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(_l,c)}catch{}return!0}finally{$.p=r,D.T=l,xh(e,t)}}function Sh(e,t,n){t=Rt(n,t),t=tc(e.stateNode,t,2),e=Dn(e,t,2),e!==null&&(Rl(e,2),Wt(e))}function ze(e,t,n){if(e.tag===3)Sh(e,e,n);else for(;t!==null;){if(t.tag===3){Sh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Yn===null||!Yn.has(l))){e=Rt(n,e),n=Mm(2),l=Dn(t,n,2),l!==null&&(Am(n,l,t,e),Rl(l,2),Wt(l));break}}t=t.return}}function Tc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new tx;var r=new Set;l.set(t,r)}else r=l.get(t),r===void 0&&(r=new Set,l.set(t,r));r.has(n)||(gc=!0,r.add(n),e=ox.bind(null,e,t,n),t.then(e,e))}function ox(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ke===e&&(Me&n)===n&&(qe===4||qe===3&&(Me&62914560)===Me&&300>Kt()-bc?(je&2)===0&&sl(e,0):yc|=n,rl===Me&&(rl=0)),Wt(e)}function wh(e,t){t===0&&(t=yf()),e=Xa(e,t),e!==null&&(Rl(e,t),Wt(e))}function ix(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wh(e,n)}function sx(e,t){var n=0;switch(e.tag){case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),wh(e,n)}function cx(e,t){return An(e,t)}var Lo=null,ul=null,_c=!1,Ho=!1,jc=!1,ba=0;function Wt(e){e!==ul&&e.next===null&&(ul===null?Lo=ul=e:ul=ul.next=e),Ho=!0,_c||(_c=!0,fx())}function mr(e,t){if(!jc&&Ho){jc=!0;do for(var n=!1,l=Lo;l!==null;){if(e!==0){var r=l.pendingLanes;if(r===0)var c=0;else{var m=l.suspendedLanes,b=l.pingedLanes;c=(1<<31-yt(42|e)+1)-1,c&=r&~(m&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Ah(l,c))}else c=Me,c=Vr(l,l===ke?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||jl(l,c)||(n=!0,Ah(l,c));l=l.next}while(n);jc=!1}}function ux(){Eh()}function Eh(){Ho=_c=!1;var e=0;ba!==0&&(xx()&&(e=ba),ba=0);for(var t=Kt(),n=null,l=Lo;l!==null;){var r=l.next,c=Nh(l,t);c===0?(l.next=null,n===null?Lo=r:n.next=r,r===null&&(ul=n)):(n=l,(e!==0||(c&3)!==0)&&(Ho=!0)),l=r}mr(e)}function Nh(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-yt(c),b=1<<m,A=r[m];A===-1?((b&n)===0||(b&l)!==0)&&(r[m]=Uy(b,t)):A<=t&&(e.expiredLanes|=b),c&=~b}if(t=ke,n=Me,n=Vr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Gi(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||jl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Gi(l),Xi(n)){case 2:case 8:n=pf;break;case 32:n=qr;break;case 268435456:n=vf;break;default:n=qr}return l=Mh.bind(null,e),n=An(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Gi(l),e.callbackPriority=2,e.callbackNode=null,2}function Mh(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uo()&&e.callbackNode!==n)return null;var l=Me;return l=Vr(e,e===ke?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(ih(e,l,t),Nh(e,Kt()),e.callbackNode!=null&&e.callbackNode===n?Mh.bind(null,e):null)}function Ah(e,t){if(Uo())return null;ih(e,t,!0)}function fx(){Sx(function(){(je&6)!==0?An(hf,ux):Eh()})}function Rc(){return ba===0&&(ba=gf()),ba}function Th(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pr(""+e)}function _h(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function dx(e,t,n,l,r){if(t==="submit"&&n&&n.stateNode===r){var c=Th((r[ft]||null).action),m=l.submitter;m&&(t=(t=m[ft]||null)?Th(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var b=new Wr("action","action",null,l,r);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ba!==0){var A=m?_h(r,m):new FormData(r);Js(n,{pending:!0,data:A,method:r.method,action:c},null,A)}}else typeof c=="function"&&(b.preventDefault(),A=m?_h(r,m):new FormData(r),Js(n,{pending:!0,data:A,method:r.method,action:c},c,A))},currentTarget:r}]})}}for(var Cc=0;Cc<ps.length;Cc++){var Oc=ps[Cc],mx=Oc.toLowerCase(),hx=Oc[0].toUpperCase()+Oc.slice(1);Bt(mx,"on"+hx)}Bt(id,"onAnimationEnd"),Bt(sd,"onAnimationIteration"),Bt(cd,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(C0,"onTransitionRun"),Bt(O0,"onTransitionStart"),Bt(D0,"onTransitionCancel"),Bt(ud,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hr="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(" "),px=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hr));function jh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],r=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var m=l.length-1;0<=m;m--){var b=l[m],A=b.instance,z=b.currentTarget;if(b=b.listener,A!==c&&r.isPropagationStopped())break e;c=b,r.currentTarget=z;try{c(r)}catch(Y){Mo(Y)}r.currentTarget=null,c=A}else for(m=0;m<l.length;m++){if(b=l[m],A=b.instance,z=b.currentTarget,b=b.listener,A!==c&&r.isPropagationStopped())break e;c=b,r.currentTarget=z;try{c(r)}catch(Y){Mo(Y)}r.currentTarget=null,c=A}}}}function Ne(e,t){var n=t[Qi];n===void 0&&(n=t[Qi]=new Set);var l=e+"__bubble";n.has(l)||(Rh(t,e,2,!1),n.add(l))}function Dc(e,t,n){var l=0;t&&(l|=4),Rh(n,e,l,t)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function zc(e){if(!e[Bo]){e[Bo]=!0,Ef.forEach(function(n){n!=="selectionchange"&&(px.has(n)||Dc(n,!1,e),Dc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bo]||(t[Bo]=!0,Dc("selectionchange",!1,t))}}function Rh(e,t,n,l){switch(ep(t)){case 2:var r=Yx;break;case 8:r=Vx;break;default:r=Pc}n=r.bind(null,t,n,e),r=void 0,!ns||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function kc(e,t,n,l,r){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var b=l.stateNode.containerInfo;if(b===r)break;if(m===4)for(m=l.return;m!==null;){var A=m.tag;if((A===3||A===4)&&m.stateNode.containerInfo===r)return;m=m.return}for(;b!==null;){if(m=Ca(b),m===null)return;if(A=m.tag,A===5||A===6||A===26||A===27){l=c=m;continue e}b=b.parentNode}}l=l.return}Lf(function(){var z=c,Y=es(n),K=[];e:{var U=fd.get(e);if(U!==void 0){var H=Wr,fe=e;switch(e){case"keypress":if(Jr(n)===0)break e;case"keydown":case"keyup":H=c0;break;case"focusin":fe="focus",H=os;break;case"focusout":fe="blur",H=os;break;case"beforeblur":case"afterblur":H=os;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=d0;break;case id:case sd:case cd:H=e0;break;case ud:H=h0;break;case"scroll":case"scrollend":H=$y;break;case"wheel":H=v0;break;case"copy":case"cut":case"paste":H=n0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Yf;break;case"toggle":case"beforetoggle":H=y0}var ce=(t&4)!==0,De=!ce&&(e==="scroll"||e==="scrollend"),C=ce?U!==null?U+"Capture":null:U;ce=[];for(var j=z,O;j!==null;){var V=j;if(O=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||O===null||C===null||(V=Dl(j,C),V!=null&&ce.push(pr(j,V,O))),De)break;j=j.return}0<ce.length&&(U=new H(U,fe,null,n,Y),K.push({event:U,listeners:ce}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&n!==Ii&&(fe=n.relatedTarget||n.fromElement)&&(Ca(fe)||fe[Ra]))break e;if((H||U)&&(U=Y.window===Y?Y:(U=Y.ownerDocument)?U.defaultView||U.parentWindow:window,H?(fe=n.relatedTarget||n.toElement,H=z,fe=fe?Ca(fe):null,fe!==null&&(De=d(fe),ce=fe.tag,fe!==De||ce!==5&&ce!==27&&ce!==6)&&(fe=null)):(H=null,fe=z),H!==fe)){if(ce=qf,V="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Yf,V="onPointerLeave",C="onPointerEnter",j="pointer"),De=H==null?U:Ol(H),O=fe==null?U:Ol(fe),U=new ce(V,j+"leave",H,n,Y),U.target=De,U.relatedTarget=O,V=null,Ca(Y)===z&&(ce=new ce(C,j+"enter",fe,n,Y),ce.target=O,ce.relatedTarget=De,V=ce),De=V,H&&fe)t:{for(ce=H,C=fe,j=0,O=ce;O;O=fl(O))j++;for(O=0,V=C;V;V=fl(V))O++;for(;0<j-O;)ce=fl(ce),j--;for(;0<O-j;)C=fl(C),O--;for(;j--;){if(ce===C||C!==null&&ce===C.alternate)break t;ce=fl(ce),C=fl(C)}ce=null}else ce=null;H!==null&&Ch(K,U,H,ce,!1),fe!==null&&De!==null&&Ch(K,De,fe,ce,!0)}}e:{if(U=z?Ol(z):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var ne=Jf;else if(Pf(U))if(Ff)ne=_0;else{ne=A0;var be=M0}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?z&&Wi(z.elementType)&&(ne=Jf):ne=T0;if(ne&&(ne=ne(e,z))){$f(K,ne,n,Y);break e}be&&be(e,U,z),e==="focusout"&&z&&U.type==="number"&&z.memoizedProps.value!=null&&Fi(U,"number",U.value)}switch(be=z?Ol(z):window,e){case"focusin":(Pf(be)||be.contentEditable==="true")&&(Ga=be,ds=z,Gl=null);break;case"focusout":Gl=ds=Ga=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,rd(K,n,Y);break;case"selectionchange":if(R0)break;case"keydown":case"keyup":rd(K,n,Y)}var re;if(ss)e:{switch(e){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else qa?Zf(e,n)&&(ue="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ue="onCompositionStart");ue&&(Vf&&n.locale!=="ko"&&(qa||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&qa&&(re=Hf()):(jn=Y,as="value"in jn?jn.value:jn.textContent,qa=!0)),be=qo(z,ue),0<be.length&&(ue=new Gf(ue,e,null,n,Y),K.push({event:ue,listeners:be}),re?ue.data=re:(re=Kf(n),re!==null&&(ue.data=re)))),(re=b0?S0(e,n):w0(e,n))&&(ue=qo(z,"onBeforeInput"),0<ue.length&&(be=new Gf("onBeforeInput","beforeinput",null,n,Y),K.push({event:be,listeners:ue}),be.data=re)),dx(K,e,z,n,Y)}jh(K,t)})}function pr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qo(e,t){for(var n=t+"Capture",l=[];e!==null;){var r=e,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=Dl(e,n),r!=null&&l.unshift(pr(e,r,c)),r=Dl(e,t),r!=null&&l.push(pr(e,r,c))),e.tag===3)return l;e=e.return}return[]}function fl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ch(e,t,n,l,r){for(var c=t._reactName,m=[];n!==null&&n!==l;){var b=n,A=b.alternate,z=b.stateNode;if(b=b.tag,A!==null&&A===l)break;b!==5&&b!==26&&b!==27||z===null||(A=z,r?(z=Dl(n,c),z!=null&&m.unshift(pr(n,z,A))):r||(z=Dl(n,c),z!=null&&m.push(pr(n,z,A)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var vx=/\r\n?/g,gx=/\u0000|\uFFFD/g;function Oh(e){return(typeof e=="string"?e:""+e).replace(vx,`
`).replace(gx,"")}function Dh(e,t){return t=Oh(t),Oh(e)===t}function Go(){}function Oe(e,t,n,l,r,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||La(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&La(e,""+l);break;case"className":Qr(e,"class",l);break;case"tabIndex":Qr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Qr(e,n,l);break;case"style":kf(e,l,c);break;case"data":if(t!=="object"){Qr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Oe(e,t,"name",r.name,r,null),Oe(e,t,"formEncType",r.formEncType,r,null),Oe(e,t,"formMethod",r.formMethod,r,null),Oe(e,t,"formTarget",r.formTarget,r,null)):(Oe(e,t,"encType",r.encType,r,null),Oe(e,t,"method",r.method,r,null),Oe(e,t,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Go);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Pr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),Xr(e,"popover",l);break;case"xlinkActuate":on(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":on(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":on(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":on(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":on(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":on(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":on(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":on(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":on(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Xr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ky.get(n)||n,Xr(e,n,l))}}function Uc(e,t,n,l,r,c){switch(n){case"style":kf(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof l=="string"?La(e,l):(typeof l=="number"||typeof l=="bigint")&&La(e,""+l);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Go);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),c=e[ft]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,r),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,r);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Xr(e,n,l)}}}function at(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var l=!1,r=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=null)switch(c){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Oe(e,t,c,m,n,null)}}r&&Oe(e,t,"srcSet",n.srcSet,n,null),l&&Oe(e,t,"src",n.src,n,null);return;case"input":Ne("invalid",e);var b=c=m=r=null,A=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":r=Y;break;case"type":m=Y;break;case"checked":A=Y;break;case"defaultChecked":z=Y;break;case"value":c=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Oe(e,t,l,Y,n,null)}}Cf(e,c,b,A,z,m,r,!1),Zr(e);return;case"select":Ne("invalid",e),l=m=c=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":c=b;break;case"defaultValue":m=b;break;case"multiple":l=b;default:Oe(e,t,r,b,n,null)}t=c,n=m,e.multiple=!!l,t!=null?Ua(e,!!l,t,!1):n!=null&&Ua(e,!!l,n,!0);return;case"textarea":Ne("invalid",e),c=r=l=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":l=b;break;case"defaultValue":r=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(i(91));break;default:Oe(e,t,m,b,n,null)}Df(e,l,r,c),Zr(e);return;case"option":for(A in n)if(n.hasOwnProperty(A)&&(l=n[A],l!=null))switch(A){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Oe(e,t,A,l,n,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(l=0;l<hr.length;l++)Ne(hr[l],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Oe(e,t,z,l,n,null)}return;default:if(Wi(t)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&Uc(e,t,Y,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&Oe(e,t,b,l,n,null))}function yx(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,m=null,b=null,A=null,z=null,Y=null;for(H in n){var K=n[H];if(n.hasOwnProperty(H)&&K!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":A=K;default:l.hasOwnProperty(H)||Oe(e,t,H,null,l,K)}}for(var U in l){var H=l[U];if(K=n[U],l.hasOwnProperty(U)&&(H!=null||K!=null))switch(U){case"type":c=H;break;case"name":r=H;break;case"checked":z=H;break;case"defaultChecked":Y=H;break;case"value":m=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:H!==K&&Oe(e,t,U,H,l,K)}}Ji(e,m,b,A,z,Y,c,r);return;case"select":H=m=b=U=null;for(c in n)if(A=n[c],n.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":H=A;default:l.hasOwnProperty(c)||Oe(e,t,c,null,l,A)}for(r in l)if(c=l[r],A=n[r],l.hasOwnProperty(r)&&(c!=null||A!=null))switch(r){case"value":U=c;break;case"defaultValue":b=c;break;case"multiple":m=c;default:c!==A&&Oe(e,t,r,c,l,A)}t=b,n=m,l=H,U!=null?Ua(e,!!n,U,!1):!!l!=!!n&&(t!=null?Ua(e,!!n,t,!0):Ua(e,!!n,n?[]:"",!1));return;case"textarea":H=U=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Oe(e,t,b,null,l,r)}for(m in l)if(r=l[m],c=n[m],l.hasOwnProperty(m)&&(r!=null||c!=null))switch(m){case"value":U=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(i(91));break;default:r!==c&&Oe(e,t,m,r,l,c)}Of(e,U,H);return;case"option":for(var fe in n)if(U=n[fe],n.hasOwnProperty(fe)&&U!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Oe(e,t,fe,null,l,U)}for(A in l)if(U=l[A],H=n[A],l.hasOwnProperty(A)&&U!==H&&(U!=null||H!=null))switch(A){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Oe(e,t,A,U,l,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in n)U=n[ce],n.hasOwnProperty(ce)&&U!=null&&!l.hasOwnProperty(ce)&&Oe(e,t,ce,null,l,U);for(z in l)if(U=l[z],H=n[z],l.hasOwnProperty(z)&&U!==H&&(U!=null||H!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(i(137,t));break;default:Oe(e,t,z,U,l,H)}return;default:if(Wi(t)){for(var De in n)U=n[De],n.hasOwnProperty(De)&&U!==void 0&&!l.hasOwnProperty(De)&&Uc(e,t,De,void 0,l,U);for(Y in l)U=l[Y],H=n[Y],!l.hasOwnProperty(Y)||U===H||U===void 0&&H===void 0||Uc(e,t,Y,U,l,H);return}}for(var C in n)U=n[C],n.hasOwnProperty(C)&&U!=null&&!l.hasOwnProperty(C)&&Oe(e,t,C,null,l,U);for(K in l)U=l[K],H=n[K],!l.hasOwnProperty(K)||U===H||U==null&&H==null||Oe(e,t,K,U,l,H)}var Lc=null,Hc=null;function Yo(e){return e.nodeType===9?e:e.ownerDocument}function zh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Bc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qc=null;function xx(){var e=window.event;return e&&e.type==="popstate"?e===qc?!1:(qc=e,!0):(qc=null,!1)}var Uh=typeof setTimeout=="function"?setTimeout:void 0,bx=typeof clearTimeout=="function"?clearTimeout:void 0,Lh=typeof Promise=="function"?Promise:void 0,Sx=typeof queueMicrotask=="function"?queueMicrotask:typeof Lh<"u"?function(e){return Lh.resolve(null).then(e).catch(wx)}:Uh;function wx(e){setTimeout(function(){throw e})}function Qn(e){return e==="head"}function Hh(e,t){var n=t,l=0,r=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"){if(0<l&&8>l){n=l;var m=e.ownerDocument;if(n&1&&vr(m.documentElement),n&2&&vr(m.body),n&4)for(n=m.head,vr(n),m=n.firstChild;m;){var b=m.nextSibling,A=m.nodeName;m[Cl]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=b}}if(r===0){e.removeChild(c),Nr(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:l=n.charCodeAt(0)-48;else l=0;n=c}while(n);Nr(t)}function Gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Gc(n),Zi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Ex(e,t,n,l){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Cl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function Nx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gt(e.nextSibling),e===null))return null;return e}function Yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Mx(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Gt(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==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Vc=null;function Bh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function qh(e,t,n){switch(t=Yo(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function vr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zi(e)}var Ut=new Map,Gh=new Set;function Vo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sn=$.d;$.d={f:Ax,r:Tx,D:_x,C:jx,L:Rx,m:Cx,X:Dx,S:Ox,M:zx};function Ax(){var e=Sn.f(),t=zo();return e||t}function Tx(e){var t=Oa(e);t!==null&&t.tag===5&&t.type==="form"?im(t):Sn.r(e)}var dl=typeof document>"u"?null:document;function Yh(e,t,n){var l=dl;if(l&&typeof t=="string"&&t){var r=jt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Gh.has(r)||(Gh.add(r),e={rel:e,crossOrigin:n,href:t},l.querySelector(r)===null&&(t=l.createElement("link"),at(t,"link",e),Fe(t),l.head.appendChild(t)))}}function _x(e){Sn.D(e),Yh("dns-prefetch",e,null)}function jx(e,t){Sn.C(e,t),Yh("preconnect",e,t)}function Rx(e,t,n){Sn.L(e,t,n);var l=dl;if(l&&e&&t){var r='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+jt(n.imageSizes)+'"]')):r+='[href="'+jt(e)+'"]';var c=r;switch(t){case"style":c=ml(e);break;case"script":c=hl(e)}Ut.has(c)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ut.set(c,e),l.querySelector(r)!==null||t==="style"&&l.querySelector(gr(c))||t==="script"&&l.querySelector(yr(c))||(t=l.createElement("link"),at(t,"link",e),Fe(t),l.head.appendChild(t)))}}function Cx(e,t){Sn.m(e,t);var n=dl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+jt(l)+'"][href="'+jt(e)+'"]',c=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hl(e)}if(!Ut.has(c)&&(e=x({rel:"modulepreload",href:e},t),Ut.set(c,e),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yr(c)))return}l=n.createElement("link"),at(l,"link",e),Fe(l),n.head.appendChild(l)}}}function Ox(e,t,n){Sn.S(e,t,n);var l=dl;if(l&&e){var r=Da(l).hoistableStyles,c=ml(e);t=t||"default";var m=r.get(c);if(!m){var b={loading:0,preload:null};if(m=l.querySelector(gr(c)))b.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ut.get(c))&&Xc(e,n);var A=m=l.createElement("link");Fe(A),at(A,"link",e),A._p=new Promise(function(z,Y){A.onload=z,A.onerror=Y}),A.addEventListener("load",function(){b.loading|=1}),A.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Xo(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:b},r.set(c,m)}}}function Dx(e,t){Sn.X(e,t);var n=dl;if(n&&e){var l=Da(n).hoistableScripts,r=hl(e),c=l.get(r);c||(c=n.querySelector(yr(r)),c||(e=x({src:e,async:!0},t),(t=Ut.get(r))&&Qc(e,t),c=n.createElement("script"),Fe(c),at(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function zx(e,t){Sn.M(e,t);var n=dl;if(n&&e){var l=Da(n).hoistableScripts,r=hl(e),c=l.get(r);c||(c=n.querySelector(yr(r)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Ut.get(r))&&Qc(e,t),c=n.createElement("script"),Fe(c),at(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function Vh(e,t,n,l){var r=(r=oe.current)?Vo(r):null;if(!r)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ml(n.href),n=Da(r).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ml(n.href);var c=Da(r).hoistableStyles,m=c.get(e);if(m||(r=r.ownerDocument||r,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=r.querySelector(gr(e)))&&!c._p&&(m.instance=c,m.state.loading=5),Ut.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ut.set(e,n),c||kx(r,e,n,m.state))),t&&l===null)throw Error(i(528,""));return m}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hl(n),n=Da(r).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ml(e){return'href="'+jt(e)+'"'}function gr(e){return'link[rel="stylesheet"]['+e+"]"}function Xh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function kx(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),at(t,"link",n),Fe(t),e.head.appendChild(t))}function hl(e){return'[src="'+jt(e)+'"]'}function yr(e){return"script[async]"+e}function Qh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+jt(n.href)+'"]');if(l)return t.instance=l,Fe(l),l;var r=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Fe(l),at(l,"style",r),Xo(l,n.precedence,e),t.instance=l;case"stylesheet":r=ml(n.href);var c=e.querySelector(gr(r));if(c)return t.state.loading|=4,t.instance=c,Fe(c),c;l=Xh(n),(r=Ut.get(r))&&Xc(l,r),c=(e.ownerDocument||e).createElement("link"),Fe(c);var m=c;return m._p=new Promise(function(b,A){m.onload=b,m.onerror=A}),at(c,"link",l),t.state.loading|=4,Xo(c,n.precedence,e),t.instance=c;case"script":return c=hl(n.src),(r=e.querySelector(yr(c)))?(t.instance=r,Fe(r),r):(l=n,(r=Ut.get(c))&&(l=x({},n),Qc(l,r)),e=e.ownerDocument||e,r=e.createElement("script"),Fe(r),at(r,"link",l),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Xo(l,n.precedence,e));return t.instance}function Xo(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,c=r,m=0;m<l.length;m++){var b=l[m];if(b.dataset.precedence===t)c=b;else if(c!==r)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Qo=null;function Zh(e,t,n){if(Qo===null){var l=new Map,r=Qo=new Map;r.set(n,l)}else r=Qo,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var c=n[r];if(!(c[Cl]||c[lt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var b=l.get(m);b?b.push(c):l.set(m,[c])}}return l}function Kh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ux(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ph(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var xr=null;function Lx(){}function Hx(e,t,n){if(xr===null)throw Error(i(475));var l=xr;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var r=ml(n.href),c=e.querySelector(gr(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Zo.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=c,Fe(c);return}c=e.ownerDocument||e,n=Xh(n),(r=Ut.get(r))&&Xc(n,r),c=c.createElement("link"),Fe(c);var m=c;m._p=new Promise(function(b,A){m.onload=b,m.onerror=A}),at(c,"link",n),t.instance=c}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Zo.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Bx(){if(xr===null)throw Error(i(475));var e=xr;return e.stylesheets&&e.count===0&&Zc(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Zc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Zo(){if(this.count--,this.count===0){if(this.stylesheets)Zc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ko=null;function Zc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ko=new Map,t.forEach(qx,e),Ko=null,Zo.call(e))}function qx(e,t){if(!(t.state.loading&4)){var n=Ko.get(e);if(n)var l=n.get(null);else{n=new Map,Ko.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var m=r[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}r=t.instance,m=r.getAttribute("data-precedence"),c=n.get(m)||l,c===l&&n.set(null,r),n.set(m,r),this.count++,l=Zo.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),c?c.parentNode.insertBefore(r,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var br={$$typeof:L,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Gx(e,t,n,l,r,c,m,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yi(0),this.hiddenUpdates=Yi(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function $h(e,t,n,l,r,c,m,b,A,z,Y,K){return e=new Gx(e,t,n,m,b,A,z,K),t=1,c===!0&&(t|=24),c=bt(3,null,null,t),e.current=c,c.stateNode=e,t=Ts(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},Cs(c),e}function Jh(e){return e?(e=Qa,e):Qa}function Fh(e,t,n,l,r,c){r=Jh(r),l.context===null?l.context=r:l.pendingContext=r,l=On(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=Dn(e,l,t),n!==null&&(Mt(n,e,t),Jl(n,e,t))}function Wh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Kc(e,t){Wh(e,t),(e=e.alternate)&&Wh(e,t)}function Ih(e){if(e.tag===13){var t=Xa(e,67108864);t!==null&&Mt(t,e,67108864),Kc(e,67108864)}}var Po=!0;function Yx(e,t,n,l){var r=D.T;D.T=null;var c=$.p;try{$.p=2,Pc(e,t,n,l)}finally{$.p=c,D.T=r}}function Vx(e,t,n,l){var r=D.T;D.T=null;var c=$.p;try{$.p=8,Pc(e,t,n,l)}finally{$.p=c,D.T=r}}function Pc(e,t,n,l){if(Po){var r=$c(l);if(r===null)kc(e,t,l,$o,n),tp(e,l);else if(Qx(r,e,t,n,l))l.stopPropagation();else if(tp(e,l),t&4&&-1<Xx.indexOf(e)){for(;r!==null;){var c=Oa(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=aa(c.pendingLanes);if(m!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var A=1<<31-yt(m);b.entanglements[1]|=A,m&=~A}Wt(c),(je&6)===0&&(Oo=Kt()+500,mr(0))}}break;case 13:b=Xa(c,2),b!==null&&Mt(b,c,2),zo(),Kc(c,2)}if(c=$c(l),c===null&&kc(e,t,l,$o,n),c===r)break;r=c}r!==null&&l.stopPropagation()}else kc(e,t,l,null,n)}}function $c(e){return e=es(e),Jc(e)}var $o=null;function Jc(e){if($o=null,e=Ca(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return $o=e,null}function ep(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jy()){case hf:return 2;case pf:return 8;case qr:case Ry:return 32;case vf:return 268435456;default:return 32}default:return 32}}var Fc=!1,Zn=null,Kn=null,Pn=null,Sr=new Map,wr=new Map,$n=[],Xx="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".split(" ");function tp(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":Sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wr.delete(t.pointerId)}}function Er(e,t,n,l,r,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[r]},t!==null&&(t=Oa(t),t!==null&&Ih(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Qx(e,t,n,l,r){switch(t){case"focusin":return Zn=Er(Zn,e,t,n,l,r),!0;case"dragenter":return Kn=Er(Kn,e,t,n,l,r),!0;case"mouseover":return Pn=Er(Pn,e,t,n,l,r),!0;case"pointerover":var c=r.pointerId;return Sr.set(c,Er(Sr.get(c)||null,e,t,n,l,r)),!0;case"gotpointercapture":return c=r.pointerId,wr.set(c,Er(wr.get(c)||null,e,t,n,l,r)),!0}return!1}function np(e){var t=Ca(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Hy(e.priority,function(){if(n.tag===13){var l=Nt();l=Vi(l);var r=Xa(n,l);r!==null&&Mt(r,n,l),Kc(n,l)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$c(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ii=l,n.target.dispatchEvent(l),Ii=null}else return t=Oa(n),t!==null&&Ih(t),e.blockedOn=n,!1;t.shift()}return!0}function ap(e,t,n){Jo(e)&&n.delete(t)}function Zx(){Fc=!1,Zn!==null&&Jo(Zn)&&(Zn=null),Kn!==null&&Jo(Kn)&&(Kn=null),Pn!==null&&Jo(Pn)&&(Pn=null),Sr.forEach(ap),wr.forEach(ap)}function Fo(e,t){e.blockedOn===t&&(e.blockedOn=null,Fc||(Fc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Zx)))}var Wo=null;function lp(e){Wo!==e&&(Wo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Wo===e&&(Wo=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],r=e[t+2];if(typeof l!="function"){if(Jc(l||n)===null)continue;break}var c=Oa(n);c!==null&&(e.splice(t,3),t-=3,Js(c,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function Nr(e){function t(A){return Fo(A,e)}Zn!==null&&Fo(Zn,e),Kn!==null&&Fo(Kn,e),Pn!==null&&Fo(Pn,e),Sr.forEach(t),wr.forEach(t);for(var n=0;n<$n.length;n++){var l=$n[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)np(n),n.blockedOn===null&&$n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],c=n[l+1],m=r[ft]||null;if(typeof c=="function")m||lp(n);else if(m){var b=null;if(c&&c.hasAttribute("formAction")){if(r=c,m=c[ft]||null)b=m.formAction;else if(Jc(r)!==null)continue}else b=m.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),lp(n)}}}function Wc(e){this._internalRoot=e}Io.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,l=Nt();Fh(n,l,e,t,null,null)},Io.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fh(e.current,2,null,e,null,null),zo(),t[Ra]=null}};function Io(e){this._internalRoot=e}Io.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&np(e)}};var rp=o.version;if(rp!=="19.1.1")throw Error(i(527,rp,"19.1.1"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Kx={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{_l=ei.inject(Kx),gt=ei}catch{}}return Ar.createRoot=function(e,t){if(!f(e))throw Error(i(299));var n=!1,l="",r=Sm,c=wm,m=Em,b=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=$h(e,1,!1,null,null,n,l,r,c,m,b,null),e[Ra]=t.current,zc(e),new Wc(t)},Ar.hydrateRoot=function(e,t,n){if(!f(e))throw Error(i(299));var l=!1,r="",c=Sm,m=wm,b=Em,A=null,z=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(A=n.unstable_transitionCallbacks),n.formState!==void 0&&(z=n.formState)),t=$h(e,1,!0,t,n??null,l,r,c,m,b,A,z),t.context=Jh(null),n=t.current,l=Nt(),l=Vi(l),r=On(l),r.callback=null,Dn(n,r,l),n=l,t.current.lanes=n,Rl(t,n),Wt(t),e[Ra]=t.current,zc(e),new Io(t)},Ar.version="19.1.1",Ar}var pp;function ab(){if(pp)return tu.exports;pp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),tu.exports=nb(),tu.exports}var lb=ab();function vp(a,o){if(typeof a=="function")return a(o);a!=null&&(a.current=o)}function Ti(...a){return o=>{let s=!1;const i=a.map(f=>{const d=vp(f,o);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let f=0;f<i.length;f++){const d=i[f];typeof d=="function"?d():vp(a[f],null)}}}}function Ze(...a){return y.useCallback(Ti(...a),a)}function jr(a){const o=ob(a),s=y.forwardRef((i,f)=>{const{children:d,...h}=i,p=y.Children.toArray(d),g=p.find(sb);if(g){const v=g.props.children,x=p.map(S=>S===g?y.Children.count(v)>1?y.Children.only(null):y.isValidElement(v)?v.props.children:null:S);return u.jsx(o,{...h,ref:f,children:y.isValidElement(v)?y.cloneElement(v,void 0,x):null})}return u.jsx(o,{...h,ref:f,children:d})});return s.displayName=`${a}.Slot`,s}var rb=jr("Slot");function ob(a){const o=y.forwardRef((s,i)=>{const{children:f,...d}=s;if(y.isValidElement(f)){const h=ub(f),p=cb(d,f.props);return f.type!==y.Fragment&&(p.ref=i?Ti(i,h):h),y.cloneElement(f,p)}return y.Children.count(f)>1?y.Children.only(null):null});return o.displayName=`${a}.SlotClone`,o}var ib=Symbol("radix.slottable");function sb(a){return y.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===ib}function cb(a,o){const s={...o};for(const i in o){const f=a[i],d=o[i];/^on[A-Z]/.test(i)?f&&d?s[i]=(...p)=>{const g=d(...p);return f(...p),g}:f&&(s[i]=f):i==="style"?s[i]={...f,...d}:i==="className"&&(s[i]=[f,d].filter(Boolean).join(" "))}return{...a,...s}}function ub(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}function rv(a){var o,s,i="";if(typeof a=="string"||typeof a=="number")i+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(o=0;o<f;o++)a[o]&&(s=rv(a[o]))&&(i&&(i+=" "),i+=s)}else for(s in a)a[s]&&(i&&(i+=" "),i+=s);return i}function ov(){for(var a,o,s=0,i="",f=arguments.length;s<f;s++)(a=arguments[s])&&(o=rv(a))&&(i&&(i+=" "),i+=o);return i}const gp=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,yp=ov,iv=(a,o)=>s=>{var i;if(o?.variants==null)return yp(a,s?.class,s?.className);const{variants:f,defaultVariants:d}=o,h=Object.keys(f).map(v=>{const x=s?.[v],S=d?.[v];if(x===null)return null;const w=gp(x)||gp(S);return f[v][w]}),p=s&&Object.entries(s).reduce((v,x)=>{let[S,w]=x;return w===void 0||(v[S]=w),v},{}),g=o==null||(i=o.compoundVariants)===null||i===void 0?void 0:i.reduce((v,x)=>{let{class:S,className:w,...E}=x;return Object.entries(E).every(M=>{let[N,_]=M;return Array.isArray(_)?_.includes({...d,...p}[N]):{...d,...p}[N]===_})?[...v,S,w]:v},[]);return yp(a,h,g,s?.class,s?.className)},Hu="-",fb=a=>{const o=mb(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=a;return{getClassGroupId:h=>{const p=h.split(Hu);return p[0]===""&&p.length!==1&&p.shift(),sv(p,o)||db(h)},getConflictingClassGroupIds:(h,p)=>{const g=s[h]||[];return p&&i[h]?[...g,...i[h]]:g}}},sv=(a,o)=>{if(a.length===0)return o.classGroupId;const s=a[0],i=o.nextPart.get(s),f=i?sv(a.slice(1),i):void 0;if(f)return f;if(o.validators.length===0)return;const d=a.join(Hu);return o.validators.find(({validator:h})=>h(d))?.classGroupId},xp=/^\[(.+)\]$/,db=a=>{if(xp.test(a)){const o=xp.exec(a)[1],s=o?.substring(0,o.indexOf(":"));if(s)return"arbitrary.."+s}},mb=a=>{const{theme:o,classGroups:s}=a,i={nextPart:new Map,validators:[]};for(const f in s)bu(s[f],i,f,o);return i},bu=(a,o,s,i)=>{a.forEach(f=>{if(typeof f=="string"){const d=f===""?o:bp(o,f);d.classGroupId=s;return}if(typeof f=="function"){if(hb(f)){bu(f(i),o,s,i);return}o.validators.push({validator:f,classGroupId:s});return}Object.entries(f).forEach(([d,h])=>{bu(h,bp(o,d),s,i)})})},bp=(a,o)=>{let s=a;return o.split(Hu).forEach(i=>{s.nextPart.has(i)||s.nextPart.set(i,{nextPart:new Map,validators:[]}),s=s.nextPart.get(i)}),s},hb=a=>a.isThemeGetter,pb=a=>{if(a<1)return{get:()=>{},set:()=>{}};let o=0,s=new Map,i=new Map;const f=(d,h)=>{s.set(d,h),o++,o>a&&(o=0,i=s,s=new Map)};return{get(d){let h=s.get(d);if(h!==void 0)return h;if((h=i.get(d))!==void 0)return f(d,h),h},set(d,h){s.has(d)?s.set(d,h):f(d,h)}}},Su="!",wu=":",vb=wu.length,gb=a=>{const{prefix:o,experimentalParseClassName:s}=a;let i=f=>{const d=[];let h=0,p=0,g=0,v;for(let M=0;M<f.length;M++){let N=f[M];if(h===0&&p===0){if(N===wu){d.push(f.slice(g,M)),g=M+vb;continue}if(N==="/"){v=M;continue}}N==="["?h++:N==="]"?h--:N==="("?p++:N===")"&&p--}const x=d.length===0?f:f.substring(g),S=yb(x),w=S!==x,E=v&&v>g?v-g:void 0;return{modifiers:d,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:E}};if(o){const f=o+wu,d=i;i=h=>h.startsWith(f)?d(h.substring(f.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(s){const f=i;i=d=>s({className:d,parseClassName:f})}return i},yb=a=>a.endsWith(Su)?a.substring(0,a.length-1):a.startsWith(Su)?a.substring(1):a,xb=a=>{const o=Object.fromEntries(a.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const f=[];let d=[];return i.forEach(h=>{h[0]==="["||o[h]?(f.push(...d.sort(),h),d=[]):d.push(h)}),f.push(...d.sort()),f}},bb=a=>({cache:pb(a.cacheSize),parseClassName:gb(a),sortModifiers:xb(a),...fb(a)}),Sb=/\s+/,wb=(a,o)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:f,sortModifiers:d}=o,h=[],p=a.trim().split(Sb);let g="";for(let v=p.length-1;v>=0;v-=1){const x=p[v],{isExternal:S,modifiers:w,hasImportantModifier:E,baseClassName:M,maybePostfixModifierPosition:N}=s(x);if(S){g=x+(g.length>0?" "+g:g);continue}let _=!!N,R=i(_?M.substring(0,N):M);if(!R){if(!_){g=x+(g.length>0?" "+g:g);continue}if(R=i(M),!R){g=x+(g.length>0?" "+g:g);continue}_=!1}const G=d(w).join(":"),L=E?G+Su:G,B=L+R;if(h.includes(B))continue;h.push(B);const k=f(R,_);for(let Q=0;Q<k.length;++Q){const P=k[Q];h.push(L+P)}g=x+(g.length>0?" "+g:g)}return g};function Eb(){let a=0,o,s,i="";for(;a<arguments.length;)(o=arguments[a++])&&(s=cv(o))&&(i&&(i+=" "),i+=s);return i}const cv=a=>{if(typeof a=="string")return a;let o,s="";for(let i=0;i<a.length;i++)a[i]&&(o=cv(a[i]))&&(s&&(s+=" "),s+=o);return s};function Nb(a,...o){let s,i,f,d=h;function h(g){const v=o.reduce((x,S)=>S(x),a());return s=bb(v),i=s.cache.get,f=s.cache.set,d=p,p(g)}function p(g){const v=i(g);if(v)return v;const x=wb(g,s);return f(g,x),x}return function(){return d(Eb.apply(null,arguments))}}const $e=a=>{const o=s=>s[a]||[];return o.isThemeGetter=!0,o},uv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mb=/^\d+\/\d+$/,Ab=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tb=/\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$/,_b=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pl=a=>Mb.test(a),xe=a=>!!a&&!Number.isNaN(Number(a)),Fn=a=>!!a&&Number.isInteger(Number(a)),ru=a=>a.endsWith("%")&&xe(a.slice(0,-1)),wn=a=>Ab.test(a),Cb=()=>!0,Ob=a=>Tb.test(a)&&!_b.test(a),dv=()=>!1,Db=a=>jb.test(a),zb=a=>Rb.test(a),kb=a=>!ae(a)&&!le(a),Ub=a=>Nl(a,pv,dv),ae=a=>uv.test(a),Sa=a=>Nl(a,vv,Ob),ou=a=>Nl(a,Gb,xe),Sp=a=>Nl(a,mv,dv),Lb=a=>Nl(a,hv,zb),ti=a=>Nl(a,gv,Db),le=a=>fv.test(a),Tr=a=>Ml(a,vv),Hb=a=>Ml(a,Yb),wp=a=>Ml(a,mv),Bb=a=>Ml(a,pv),qb=a=>Ml(a,hv),ni=a=>Ml(a,gv,!0),Nl=(a,o,s)=>{const i=uv.exec(a);return i?i[1]?o(i[1]):s(i[2]):!1},Ml=(a,o,s=!1)=>{const i=fv.exec(a);return i?i[1]?o(i[1]):s:!1},mv=a=>a==="position"||a==="percentage",hv=a=>a==="image"||a==="url",pv=a=>a==="length"||a==="size"||a==="bg-size",vv=a=>a==="length",Gb=a=>a==="number",Yb=a=>a==="family-name",gv=a=>a==="shadow",Vb=()=>{const a=$e("color"),o=$e("font"),s=$e("text"),i=$e("font-weight"),f=$e("tracking"),d=$e("leading"),h=$e("breakpoint"),p=$e("container"),g=$e("spacing"),v=$e("radius"),x=$e("shadow"),S=$e("inset-shadow"),w=$e("text-shadow"),E=$e("drop-shadow"),M=$e("blur"),N=$e("perspective"),_=$e("aspect"),R=$e("ease"),G=$e("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...B(),le,ae],Q=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],Z=()=>[le,ae,g],W=()=>[pl,"full","auto",...Z()],te=()=>[Fn,"none","subgrid",le,ae],ie=()=>["auto",{span:["full",Fn,le,ae]},Fn,le,ae],de=()=>[Fn,"auto",le,ae],we=()=>["auto","min","max","fr",le,ae],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...Z()],$=()=>[pl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Z()],q=()=>[a,le,ae],F=()=>[...B(),wp,Sp,{position:[le,ae]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",Bb,Ub,{size:[le,ae]}],I=()=>[ru,Tr,Sa],J=()=>["","none","full",v,le,ae],ee=()=>["",xe,Tr,Sa],he=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[xe,ru,wp,Sp],Ae=()=>["","none",M,le,ae],st=()=>["none",xe,le,ae],Xt=()=>["none",xe,le,ae],Qt=()=>[xe,le,ae],Zt=()=>[pl,"full",...Z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wn],breakpoint:[wn],color:[Cb],container:[wn],"drop-shadow":[wn],ease:["in","out","in-out"],font:[kb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wn],shadow:[wn],spacing:["px",xe],text:[wn],"text-shadow":[wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pl,ae,le,_]}],container:["container"],columns:[{columns:[xe,ae,le,p]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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"],sr:["sr-only","not-sr-only"],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:k()}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Fn,"auto",le,ae]}],basis:[{basis:[pl,"full","auto",p,...Z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,pl,"auto","initial","none",ae]}],grow:[{grow:["",xe,le,ae]}],shrink:[{shrink:["",xe,le,ae]}],order:[{order:[Fn,"first","last","none",le,ae]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:Z()}],"gap-x":[{"gap-x":Z()}],"gap-y":[{"gap-y":Z()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:Z()}],px:[{px:Z()}],py:[{py:Z()}],ps:[{ps:Z()}],pe:[{pe:Z()}],pt:[{pt:Z()}],pr:[{pr:Z()}],pb:[{pb:Z()}],pl:[{pl:Z()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":Z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Z()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[p,"screen",...$()]}],"min-w":[{"min-w":[p,"screen","none",...$()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[h]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",s,Tr,Sa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,le,ou]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ru,ae]}],"font-family":[{font:[Hb,ae,o]}],"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:[f,le,ae]}],"line-clamp":[{"line-clamp":[xe,"none",le,ou]}],leading:[{leading:[d,...Z()]}],"list-image":[{"list-image":["none",le,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",le,Sa]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[xe,"auto",le,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fn,le,ae],radial:["",le,ae],conic:[Fn,le,ae]},qb,Lb]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,le,ae]}],"outline-w":[{outline:["",xe,Tr,Sa]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",x,ni,ti]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",S,ni,ti]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[xe,Sa]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",w,ni,ti]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[xe,le,ae]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[le,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",le,ae]}],filter:[{filter:["","none",le,ae]}],blur:[{blur:Ae()}],brightness:[{brightness:[xe,le,ae]}],contrast:[{contrast:[xe,le,ae]}],"drop-shadow":[{"drop-shadow":["","none",E,ni,ti]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",xe,le,ae]}],"hue-rotate":[{"hue-rotate":[xe,le,ae]}],invert:[{invert:["",xe,le,ae]}],saturate:[{saturate:[xe,le,ae]}],sepia:[{sepia:["",xe,le,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ae]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[xe,le,ae]}],"backdrop-contrast":[{"backdrop-contrast":[xe,le,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,le,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,le,ae]}],"backdrop-invert":[{"backdrop-invert":["",xe,le,ae]}],"backdrop-opacity":[{"backdrop-opacity":[xe,le,ae]}],"backdrop-saturate":[{"backdrop-saturate":[xe,le,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,le,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Z()}],"border-spacing-x":[{"border-spacing-x":Z()}],"border-spacing-y":[{"border-spacing-y":Z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",le,ae]}],ease:[{ease:["linear","initial",R,le,ae]}],delay:[{delay:[xe,le,ae]}],animate:[{animate:["none",G,le,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,le,ae]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:st()}],"rotate-x":[{"rotate-x":st()}],"rotate-y":[{"rotate-y":st()}],"rotate-z":[{"rotate-z":st()}],scale:[{scale:Xt()}],"scale-x":[{"scale-x":Xt()}],"scale-y":[{"scale-y":Xt()}],"scale-z":[{"scale-z":Xt()}],"scale-3d":["scale-3d"],skew:[{skew:Qt()}],"skew-x":[{"skew-x":Qt()}],"skew-y":[{"skew-y":Qt()}],transform:[{transform:[le,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Zt()}],"translate-x":[{"translate-x":Zt()}],"translate-y":[{"translate-y":Zt()}],"translate-z":[{"translate-z":Zt()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",le,ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"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",le,ae]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[xe,Tr,Sa,ou]}],stroke:[{stroke:["none",...q()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Xb=Nb(Vb);function Ve(...a){return Xb(ov(a))}const Qb=iv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function vt({className:a,variant:o,size:s,asChild:i=!1,...f}){const d=i?rb:"button";return u.jsx(d,{"data-slot":"button",className:Ve(Qb({variant:o,size:s,className:a})),...f})}function me(a,o,{checkForDefaultPrevented:s=!0}={}){return function(f){if(a?.(f),s===!1||!f.defaultPrevented)return o?.(f)}}function Ta(a,o=[]){let s=[];function i(d,h){const p=y.createContext(h),g=s.length;s=[...s,h];const v=S=>{const{scope:w,children:E,...M}=S,N=w?.[a]?.[g]||p,_=y.useMemo(()=>M,Object.values(M));return u.jsx(N.Provider,{value:_,children:E})};v.displayName=d+"Provider";function x(S,w){const E=w?.[a]?.[g]||p,M=y.useContext(E);if(M)return M;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${d}\``)}return[v,x]}const f=()=>{const d=s.map(h=>y.createContext(h));return function(p){const g=p?.[a]||d;return y.useMemo(()=>({[`__scope${a}`]:{...p,[a]:g}}),[p,g])}};return f.scopeName=a,[i,Zb(f,...o)]}function Zb(...a){const o=a[0];if(a.length===1)return o;const s=()=>{const i=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(d){const h=i.reduce((p,{useScope:g,scopeName:v})=>{const S=g(d)[`__scope${v}`];return{...p,...S}},{});return y.useMemo(()=>({[`__scope${o.scopeName}`]:h}),[h])}};return s.scopeName=o.scopeName,s}var En=globalThis?.document?y.useLayoutEffect:()=>{},Kb=av[" useInsertionEffect ".trim().toString()]||En;function Bu({prop:a,defaultProp:o,onChange:s=()=>{},caller:i}){const[f,d,h]=Pb({defaultProp:o,onChange:s}),p=a!==void 0,g=p?a:f;{const x=y.useRef(a!==void 0);y.useEffect(()=>{const S=x.current;S!==p&&console.warn(`${i} is changing from ${S?"controlled":"uncontrolled"} to ${p?"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.`),x.current=p},[p,i])}const v=y.useCallback(x=>{if(p){const S=$b(x)?x(a):x;S!==a&&h.current?.(S)}else d(x)},[p,a,d,h]);return[g,v]}function Pb({defaultProp:a,onChange:o}){const[s,i]=y.useState(a),f=y.useRef(s),d=y.useRef(o);return Kb(()=>{d.current=o},[o]),y.useEffect(()=>{f.current!==s&&(d.current?.(s),f.current=s)},[s,f]),[s,i,d]}function $b(a){return typeof a=="function"}var qu=lv();const Jb=nv(qu);var Fb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=Fb.reduce((a,o)=>{const s=jr(`Primitive.${o}`),i=y.forwardRef((f,d)=>{const{asChild:h,...p}=f,g=h?s:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...p,ref:d})});return i.displayName=`Primitive.${o}`,{...a,[o]:i}},{});function yv(a,o){a&&qu.flushSync(()=>a.dispatchEvent(o))}function xv(a){const o=a+"CollectionProvider",[s,i]=Ta(o),[f,d]=s(o,{collectionRef:{current:null},itemMap:new Map}),h=N=>{const{scope:_,children:R}=N,G=Wn.useRef(null),L=Wn.useRef(new Map).current;return u.jsx(f,{scope:_,itemMap:L,collectionRef:G,children:R})};h.displayName=o;const p=a+"CollectionSlot",g=jr(p),v=Wn.forwardRef((N,_)=>{const{scope:R,children:G}=N,L=d(p,R),B=Ze(_,L.collectionRef);return u.jsx(g,{ref:B,children:G})});v.displayName=p;const x=a+"CollectionItemSlot",S="data-radix-collection-item",w=jr(x),E=Wn.forwardRef((N,_)=>{const{scope:R,children:G,...L}=N,B=Wn.useRef(null),k=Ze(_,B),Q=d(x,R);return Wn.useEffect(()=>(Q.itemMap.set(B,{ref:B,...L}),()=>void Q.itemMap.delete(B))),u.jsx(w,{[S]:"",ref:k,children:G})});E.displayName=x;function M(N){const _=d(a+"CollectionConsumer",N);return Wn.useCallback(()=>{const G=_.collectionRef.current;if(!G)return[];const L=Array.from(G.querySelectorAll(`[${S}]`));return Array.from(_.itemMap.values()).sort((Q,P)=>L.indexOf(Q.ref.current)-L.indexOf(P.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:h,Slot:v,ItemSlot:E},M,i]}var Wb=y.createContext(void 0);function _i(a){const o=y.useContext(Wb);return a||o||"ltr"}function it(a){const o=y.useRef(a);return y.useEffect(()=>{o.current=a}),y.useMemo(()=>(...s)=>o.current?.(...s),[])}function Ib(a,o=globalThis?.document){const s=it(a);y.useEffect(()=>{const i=f=>{f.key==="Escape"&&s(f)};return o.addEventListener("keydown",i,{capture:!0}),()=>o.removeEventListener("keydown",i,{capture:!0})},[s,o])}var e1="DismissableLayer",Eu="dismissableLayer.update",t1="dismissableLayer.pointerDownOutside",n1="dismissableLayer.focusOutside",Ep,bv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sv=y.forwardRef((a,o)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:i,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...g}=a,v=y.useContext(bv),[x,S]=y.useState(null),w=x?.ownerDocument??globalThis?.document,[,E]=y.useState({}),M=Ze(o,P=>S(P)),N=Array.from(v.layers),[_]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),R=N.indexOf(_),G=x?N.indexOf(x):-1,L=v.layersWithOutsidePointerEventsDisabled.size>0,B=G>=R,k=r1(P=>{const Z=P.target,W=[...v.branches].some(te=>te.contains(Z));!B||W||(f?.(P),h?.(P),P.defaultPrevented||p?.())},w),Q=o1(P=>{const Z=P.target;[...v.branches].some(te=>te.contains(Z))||(d?.(P),h?.(P),P.defaultPrevented||p?.())},w);return Ib(P=>{G===v.layers.size-1&&(i?.(P),!P.defaultPrevented&&p&&(P.preventDefault(),p()))},w),y.useEffect(()=>{if(x)return s&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Ep=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(x)),v.layers.add(x),Np(),()=>{s&&v.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Ep)}},[x,w,s,v]),y.useEffect(()=>()=>{x&&(v.layers.delete(x),v.layersWithOutsidePointerEventsDisabled.delete(x),Np())},[x,v]),y.useEffect(()=>{const P=()=>E({});return document.addEventListener(Eu,P),()=>document.removeEventListener(Eu,P)},[]),u.jsx(Ue.div,{...g,ref:M,style:{pointerEvents:L?B?"auto":"none":void 0,...a.style},onFocusCapture:me(a.onFocusCapture,Q.onFocusCapture),onBlurCapture:me(a.onBlurCapture,Q.onBlurCapture),onPointerDownCapture:me(a.onPointerDownCapture,k.onPointerDownCapture)})});Sv.displayName=e1;var a1="DismissableLayerBranch",l1=y.forwardRef((a,o)=>{const s=y.useContext(bv),i=y.useRef(null),f=Ze(o,i);return y.useEffect(()=>{const d=i.current;if(d)return s.branches.add(d),()=>{s.branches.delete(d)}},[s.branches]),u.jsx(Ue.div,{...a,ref:f})});l1.displayName=a1;function r1(a,o=globalThis?.document){const s=it(a),i=y.useRef(!1),f=y.useRef(()=>{});return y.useEffect(()=>{const d=p=>{if(p.target&&!i.current){let g=function(){wv(t1,s,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",f.current),f.current=g,o.addEventListener("click",f.current,{once:!0})):g()}else o.removeEventListener("click",f.current);i.current=!1},h=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),o.removeEventListener("pointerdown",d),o.removeEventListener("click",f.current)}},[o,s]),{onPointerDownCapture:()=>i.current=!0}}function o1(a,o=globalThis?.document){const s=it(a),i=y.useRef(!1);return y.useEffect(()=>{const f=d=>{d.target&&!i.current&&wv(n1,s,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",f),()=>o.removeEventListener("focusin",f)},[o,s]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Np(){const a=new CustomEvent(Eu);document.dispatchEvent(a)}function wv(a,o,s,{discrete:i}){const f=s.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:s});o&&f.addEventListener(a,o,{once:!0}),i?yv(f,d):f.dispatchEvent(d)}var iu=0;function i1(){y.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??Mp()),document.body.insertAdjacentElement("beforeend",a[1]??Mp()),iu++,()=>{iu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),iu--}},[])}function Mp(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var su="focusScope.autoFocusOnMount",cu="focusScope.autoFocusOnUnmount",Ap={bubbles:!1,cancelable:!0},s1="FocusScope",Ev=y.forwardRef((a,o)=>{const{loop:s=!1,trapped:i=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...h}=a,[p,g]=y.useState(null),v=it(f),x=it(d),S=y.useRef(null),w=Ze(o,N=>g(N)),E=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let N=function(L){if(E.paused||!p)return;const B=L.target;p.contains(B)?S.current=B:In(S.current,{select:!0})},_=function(L){if(E.paused||!p)return;const B=L.relatedTarget;B!==null&&(p.contains(B)||In(S.current,{select:!0}))},R=function(L){if(document.activeElement===document.body)for(const k of L)k.removedNodes.length>0&&In(p)};document.addEventListener("focusin",N),document.addEventListener("focusout",_);const G=new MutationObserver(R);return p&&G.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",_),G.disconnect()}}},[i,p,E.paused]),y.useEffect(()=>{if(p){_p.add(E);const N=document.activeElement;if(!p.contains(N)){const R=new CustomEvent(su,Ap);p.addEventListener(su,v),p.dispatchEvent(R),R.defaultPrevented||(c1(h1(Nv(p)),{select:!0}),document.activeElement===N&&In(p))}return()=>{p.removeEventListener(su,v),setTimeout(()=>{const R=new CustomEvent(cu,Ap);p.addEventListener(cu,x),p.dispatchEvent(R),R.defaultPrevented||In(N??document.body,{select:!0}),p.removeEventListener(cu,x),_p.remove(E)},0)}}},[p,v,x,E]);const M=y.useCallback(N=>{if(!s&&!i||E.paused)return;const _=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,R=document.activeElement;if(_&&R){const G=N.currentTarget,[L,B]=u1(G);L&&B?!N.shiftKey&&R===B?(N.preventDefault(),s&&In(L,{select:!0})):N.shiftKey&&R===L&&(N.preventDefault(),s&&In(B,{select:!0})):R===G&&N.preventDefault()}},[s,i,E.paused]);return u.jsx(Ue.div,{tabIndex:-1,...h,ref:w,onKeyDown:M})});Ev.displayName=s1;function c1(a,{select:o=!1}={}){const s=document.activeElement;for(const i of a)if(In(i,{select:o}),document.activeElement!==s)return}function u1(a){const o=Nv(a),s=Tp(o,a),i=Tp(o.reverse(),a);return[s,i]}function Nv(a){const o=[],s=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const f=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||f?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function Tp(a,o){for(const s of a)if(!f1(s,{upTo:o}))return s}function f1(a,{upTo:o}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(o!==void 0&&a===o)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function d1(a){return a instanceof HTMLInputElement&&"select"in a}function In(a,{select:o=!1}={}){if(a&&a.focus){const s=document.activeElement;a.focus({preventScroll:!0}),a!==s&&d1(a)&&o&&a.select()}}var _p=m1();function m1(){let a=[];return{add(o){const s=a[0];o!==s&&s?.pause(),a=jp(a,o),a.unshift(o)},remove(o){a=jp(a,o),a[0]?.resume()}}}function jp(a,o){const s=[...a],i=s.indexOf(o);return i!==-1&&s.splice(i,1),s}function h1(a){return a.filter(o=>o.tagName!=="A")}var p1=av[" useId ".trim().toString()]||(()=>{}),v1=0;function pi(a){const[o,s]=y.useState(p1());return En(()=>{s(i=>i??String(v1++))},[a]),o?`radix-${o}`:""}const g1=["top","right","bottom","left"],ta=Math.min,At=Math.max,vi=Math.round,ai=Math.floor,tn=a=>({x:a,y:a}),y1={left:"right",right:"left",bottom:"top",top:"bottom"},x1={start:"end",end:"start"};function Nu(a,o,s){return At(a,ta(o,s))}function Nn(a,o){return typeof a=="function"?a(o):a}function Mn(a){return a.split("-")[0]}function Al(a){return a.split("-")[1]}function Gu(a){return a==="x"?"y":"x"}function Yu(a){return a==="y"?"height":"width"}const b1=new Set(["top","bottom"]);function en(a){return b1.has(Mn(a))?"y":"x"}function Vu(a){return Gu(en(a))}function S1(a,o,s){s===void 0&&(s=!1);const i=Al(a),f=Vu(a),d=Yu(f);let h=f==="x"?i===(s?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(h=gi(h)),[h,gi(h)]}function w1(a){const o=gi(a);return[Mu(a),o,Mu(o)]}function Mu(a){return a.replace(/start|end/g,o=>x1[o])}const Rp=["left","right"],Cp=["right","left"],E1=["top","bottom"],N1=["bottom","top"];function M1(a,o,s){switch(a){case"top":case"bottom":return s?o?Cp:Rp:o?Rp:Cp;case"left":case"right":return o?E1:N1;default:return[]}}function A1(a,o,s,i){const f=Al(a);let d=M1(Mn(a),s==="start",i);return f&&(d=d.map(h=>h+"-"+f),o&&(d=d.concat(d.map(Mu)))),d}function gi(a){return a.replace(/left|right|bottom|top/g,o=>y1[o])}function T1(a){return{top:0,right:0,bottom:0,left:0,...a}}function Mv(a){return typeof a!="number"?T1(a):{top:a,right:a,bottom:a,left:a}}function yi(a){const{x:o,y:s,width:i,height:f}=a;return{width:i,height:f,top:s,left:o,right:o+i,bottom:s+f,x:o,y:s}}function Op(a,o,s){let{reference:i,floating:f}=a;const d=en(o),h=Vu(o),p=Yu(h),g=Mn(o),v=d==="y",x=i.x+i.width/2-f.width/2,S=i.y+i.height/2-f.height/2,w=i[p]/2-f[p]/2;let E;switch(g){case"top":E={x,y:i.y-f.height};break;case"bottom":E={x,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:S};break;case"left":E={x:i.x-f.width,y:S};break;default:E={x:i.x,y:i.y}}switch(Al(o)){case"start":E[h]-=w*(s&&v?-1:1);break;case"end":E[h]+=w*(s&&v?-1:1);break}return E}const _1=async(a,o,s)=>{const{placement:i="bottom",strategy:f="absolute",middleware:d=[],platform:h}=s,p=d.filter(Boolean),g=await(h.isRTL==null?void 0:h.isRTL(o));let v=await h.getElementRects({reference:a,floating:o,strategy:f}),{x,y:S}=Op(v,i,g),w=i,E={},M=0;for(let N=0;N<p.length;N++){const{name:_,fn:R}=p[N],{x:G,y:L,data:B,reset:k}=await R({x,y:S,initialPlacement:i,placement:w,strategy:f,middlewareData:E,rects:v,platform:h,elements:{reference:a,floating:o}});x=G??x,S=L??S,E={...E,[_]:{...E[_],...B}},k&&M<=50&&(M++,typeof k=="object"&&(k.placement&&(w=k.placement),k.rects&&(v=k.rects===!0?await h.getElementRects({reference:a,floating:o,strategy:f}):k.rects),{x,y:S}=Op(v,w,g)),N=-1)}return{x,y:S,placement:w,strategy:f,middlewareData:E}};async function Rr(a,o){var s;o===void 0&&(o={});const{x:i,y:f,platform:d,rects:h,elements:p,strategy:g}=a,{boundary:v="clippingAncestors",rootBoundary:x="viewport",elementContext:S="floating",altBoundary:w=!1,padding:E=0}=Nn(o,a),M=Mv(E),_=p[w?S==="floating"?"reference":"floating":S],R=yi(await d.getClippingRect({element:(s=await(d.isElement==null?void 0:d.isElement(_)))==null||s?_:_.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:v,rootBoundary:x,strategy:g})),G=S==="floating"?{x:i,y:f,width:h.floating.width,height:h.floating.height}:h.reference,L=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),B=await(d.isElement==null?void 0:d.isElement(L))?await(d.getScale==null?void 0:d.getScale(L))||{x:1,y:1}:{x:1,y:1},k=yi(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:G,offsetParent:L,strategy:g}):G);return{top:(R.top-k.top+M.top)/B.y,bottom:(k.bottom-R.bottom+M.bottom)/B.y,left:(R.left-k.left+M.left)/B.x,right:(k.right-R.right+M.right)/B.x}}const j1=a=>({name:"arrow",options:a,async fn(o){const{x:s,y:i,placement:f,rects:d,platform:h,elements:p,middlewareData:g}=o,{element:v,padding:x=0}=Nn(a,o)||{};if(v==null)return{};const S=Mv(x),w={x:s,y:i},E=Vu(f),M=Yu(E),N=await h.getDimensions(v),_=E==="y",R=_?"top":"left",G=_?"bottom":"right",L=_?"clientHeight":"clientWidth",B=d.reference[M]+d.reference[E]-w[E]-d.floating[M],k=w[E]-d.reference[E],Q=await(h.getOffsetParent==null?void 0:h.getOffsetParent(v));let P=Q?Q[L]:0;(!P||!await(h.isElement==null?void 0:h.isElement(Q)))&&(P=p.floating[L]||d.floating[M]);const Z=B/2-k/2,W=P/2-N[M]/2-1,te=ta(S[R],W),ie=ta(S[G],W),de=te,we=P-N[M]-ie,ge=P/2-N[M]/2+Z,pe=Nu(de,ge,we),D=!g.arrow&&Al(f)!=null&&ge!==pe&&d.reference[M]/2-(ge<de?te:ie)-N[M]/2<0,$=D?ge<de?ge-de:ge-we:0;return{[E]:w[E]+$,data:{[E]:pe,centerOffset:ge-pe-$,...D&&{alignmentOffset:$}},reset:D}}}),R1=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var s,i;const{placement:f,middlewareData:d,rects:h,initialPlacement:p,platform:g,elements:v}=o,{mainAxis:x=!0,crossAxis:S=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:N=!0,..._}=Nn(a,o);if((s=d.arrow)!=null&&s.alignmentOffset)return{};const R=Mn(f),G=en(p),L=Mn(p)===p,B=await(g.isRTL==null?void 0:g.isRTL(v.floating)),k=w||(L||!N?[gi(p)]:w1(p)),Q=M!=="none";!w&&Q&&k.push(...A1(p,N,M,B));const P=[p,...k],Z=await Rr(o,_),W=[];let te=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&W.push(Z[R]),S){const ge=S1(f,h,B);W.push(Z[ge[0]],Z[ge[1]])}if(te=[...te,{placement:f,overflows:W}],!W.every(ge=>ge<=0)){var ie,de;const ge=(((ie=d.flip)==null?void 0:ie.index)||0)+1,pe=P[ge];if(pe&&(!(S==="alignment"?G!==en(pe):!1)||te.every(q=>en(q.placement)===G?q.overflows[0]>0:!0)))return{data:{index:ge,overflows:te},reset:{placement:pe}};let D=(de=te.filter($=>$.overflows[0]<=0).sort(($,q)=>$.overflows[1]-q.overflows[1])[0])==null?void 0:de.placement;if(!D)switch(E){case"bestFit":{var we;const $=(we=te.filter(q=>{if(Q){const F=en(q.placement);return F===G||F==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(F=>F>0).reduce((F,T)=>F+T,0)]).sort((q,F)=>q[1]-F[1])[0])==null?void 0:we[0];$&&(D=$);break}case"initialPlacement":D=p;break}if(f!==D)return{reset:{placement:D}}}return{}}}};function Dp(a,o){return{top:a.top-o.height,right:a.right-o.width,bottom:a.bottom-o.height,left:a.left-o.width}}function zp(a){return g1.some(o=>a[o]>=0)}const C1=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(o){const{rects:s}=o,{strategy:i="referenceHidden",...f}=Nn(a,o);switch(i){case"referenceHidden":{const d=await Rr(o,{...f,elementContext:"reference"}),h=Dp(d,s.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:zp(h)}}}case"escaped":{const d=await Rr(o,{...f,altBoundary:!0}),h=Dp(d,s.floating);return{data:{escapedOffsets:h,escaped:zp(h)}}}default:return{}}}}},Av=new Set(["left","top"]);async function O1(a,o){const{placement:s,platform:i,elements:f}=a,d=await(i.isRTL==null?void 0:i.isRTL(f.floating)),h=Mn(s),p=Al(s),g=en(s)==="y",v=Av.has(h)?-1:1,x=d&&g?-1:1,S=Nn(o,a);let{mainAxis:w,crossAxis:E,alignmentAxis:M}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return p&&typeof M=="number"&&(E=p==="end"?M*-1:M),g?{x:E*x,y:w*v}:{x:w*v,y:E*x}}const D1=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var s,i;const{x:f,y:d,placement:h,middlewareData:p}=o,g=await O1(o,a);return h===((s=p.offset)==null?void 0:s.placement)&&(i=p.arrow)!=null&&i.alignmentOffset?{}:{x:f+g.x,y:d+g.y,data:{...g,placement:h}}}}},z1=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){const{x:s,y:i,placement:f}=o,{mainAxis:d=!0,crossAxis:h=!1,limiter:p={fn:_=>{let{x:R,y:G}=_;return{x:R,y:G}}},...g}=Nn(a,o),v={x:s,y:i},x=await Rr(o,g),S=en(Mn(f)),w=Gu(S);let E=v[w],M=v[S];if(d){const _=w==="y"?"top":"left",R=w==="y"?"bottom":"right",G=E+x[_],L=E-x[R];E=Nu(G,E,L)}if(h){const _=S==="y"?"top":"left",R=S==="y"?"bottom":"right",G=M+x[_],L=M-x[R];M=Nu(G,M,L)}const N=p.fn({...o,[w]:E,[S]:M});return{...N,data:{x:N.x-s,y:N.y-i,enabled:{[w]:d,[S]:h}}}}}},k1=function(a){return a===void 0&&(a={}),{options:a,fn(o){const{x:s,y:i,placement:f,rects:d,middlewareData:h}=o,{offset:p=0,mainAxis:g=!0,crossAxis:v=!0}=Nn(a,o),x={x:s,y:i},S=en(f),w=Gu(S);let E=x[w],M=x[S];const N=Nn(p,o),_=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(g){const L=w==="y"?"height":"width",B=d.reference[w]-d.floating[L]+_.mainAxis,k=d.reference[w]+d.reference[L]-_.mainAxis;E<B?E=B:E>k&&(E=k)}if(v){var R,G;const L=w==="y"?"width":"height",B=Av.has(Mn(f)),k=d.reference[S]-d.floating[L]+(B&&((R=h.offset)==null?void 0:R[S])||0)+(B?0:_.crossAxis),Q=d.reference[S]+d.reference[L]+(B?0:((G=h.offset)==null?void 0:G[S])||0)-(B?_.crossAxis:0);M<k?M=k:M>Q&&(M=Q)}return{[w]:E,[S]:M}}}},U1=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var s,i;const{placement:f,rects:d,platform:h,elements:p}=o,{apply:g=()=>{},...v}=Nn(a,o),x=await Rr(o,v),S=Mn(f),w=Al(f),E=en(f)==="y",{width:M,height:N}=d.floating;let _,R;S==="top"||S==="bottom"?(_=S,R=w===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(R=S,_=w==="end"?"top":"bottom");const G=N-x.top-x.bottom,L=M-x.left-x.right,B=ta(N-x[_],G),k=ta(M-x[R],L),Q=!o.middlewareData.shift;let P=B,Z=k;if((s=o.middlewareData.shift)!=null&&s.enabled.x&&(Z=L),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(P=G),Q&&!w){const te=At(x.left,0),ie=At(x.right,0),de=At(x.top,0),we=At(x.bottom,0);E?Z=M-2*(te!==0||ie!==0?te+ie:At(x.left,x.right)):P=N-2*(de!==0||we!==0?de+we:At(x.top,x.bottom))}await g({...o,availableWidth:Z,availableHeight:P});const W=await h.getDimensions(p.floating);return M!==W.width||N!==W.height?{reset:{rects:!0}}:{}}}};function ji(){return typeof window<"u"}function Tl(a){return Tv(a)?(a.nodeName||"").toLowerCase():"#document"}function Tt(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function an(a){var o;return(o=(Tv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function Tv(a){return ji()?a instanceof Node||a instanceof Tt(a).Node:!1}function Yt(a){return ji()?a instanceof Element||a instanceof Tt(a).Element:!1}function nn(a){return ji()?a instanceof HTMLElement||a instanceof Tt(a).HTMLElement:!1}function kp(a){return!ji()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Tt(a).ShadowRoot}const L1=new Set(["inline","contents"]);function kr(a){const{overflow:o,overflowX:s,overflowY:i,display:f}=Vt(a);return/auto|scroll|overlay|hidden|clip/.test(o+i+s)&&!L1.has(f)}const H1=new Set(["table","td","th"]);function B1(a){return H1.has(Tl(a))}const q1=[":popover-open",":modal"];function Ri(a){return q1.some(o=>{try{return a.matches(o)}catch{return!1}})}const G1=["transform","translate","scale","rotate","perspective"],Y1=["transform","translate","scale","rotate","perspective","filter"],V1=["paint","layout","strict","content"];function Xu(a){const o=Qu(),s=Yt(a)?Vt(a):a;return G1.some(i=>s[i]?s[i]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!o&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!o&&(s.filter?s.filter!=="none":!1)||Y1.some(i=>(s.willChange||"").includes(i))||V1.some(i=>(s.contain||"").includes(i))}function X1(a){let o=na(a);for(;nn(o)&&!wl(o);){if(Xu(o))return o;if(Ri(o))return null;o=na(o)}return null}function Qu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Q1=new Set(["html","body","#document"]);function wl(a){return Q1.has(Tl(a))}function Vt(a){return Tt(a).getComputedStyle(a)}function Ci(a){return Yt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function na(a){if(Tl(a)==="html")return a;const o=a.assignedSlot||a.parentNode||kp(a)&&a.host||an(a);return kp(o)?o.host:o}function _v(a){const o=na(a);return wl(o)?a.ownerDocument?a.ownerDocument.body:a.body:nn(o)&&kr(o)?o:_v(o)}function Cr(a,o,s){var i;o===void 0&&(o=[]),s===void 0&&(s=!0);const f=_v(a),d=f===((i=a.ownerDocument)==null?void 0:i.body),h=Tt(f);if(d){const p=Au(h);return o.concat(h,h.visualViewport||[],kr(f)?f:[],p&&s?Cr(p):[])}return o.concat(f,Cr(f,[],s))}function Au(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function jv(a){const o=Vt(a);let s=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const f=nn(a),d=f?a.offsetWidth:s,h=f?a.offsetHeight:i,p=vi(s)!==d||vi(i)!==h;return p&&(s=d,i=h),{width:s,height:i,$:p}}function Zu(a){return Yt(a)?a:a.contextElement}function xl(a){const o=Zu(a);if(!nn(o))return tn(1);const s=o.getBoundingClientRect(),{width:i,height:f,$:d}=jv(o);let h=(d?vi(s.width):s.width)/i,p=(d?vi(s.height):s.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const Z1=tn(0);function Rv(a){const o=Tt(a);return!Qu()||!o.visualViewport?Z1:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function K1(a,o,s){return o===void 0&&(o=!1),!s||o&&s!==Tt(a)?!1:o}function Na(a,o,s,i){o===void 0&&(o=!1),s===void 0&&(s=!1);const f=a.getBoundingClientRect(),d=Zu(a);let h=tn(1);o&&(i?Yt(i)&&(h=xl(i)):h=xl(a));const p=K1(d,s,i)?Rv(d):tn(0);let g=(f.left+p.x)/h.x,v=(f.top+p.y)/h.y,x=f.width/h.x,S=f.height/h.y;if(d){const w=Tt(d),E=i&&Yt(i)?Tt(i):i;let M=w,N=Au(M);for(;N&&i&&E!==M;){const _=xl(N),R=N.getBoundingClientRect(),G=Vt(N),L=R.left+(N.clientLeft+parseFloat(G.paddingLeft))*_.x,B=R.top+(N.clientTop+parseFloat(G.paddingTop))*_.y;g*=_.x,v*=_.y,x*=_.x,S*=_.y,g+=L,v+=B,M=Tt(N),N=Au(M)}}return yi({width:x,height:S,x:g,y:v})}function Oi(a,o){const s=Ci(a).scrollLeft;return o?o.left+s:Na(an(a)).left+s}function Cv(a,o){const s=a.getBoundingClientRect(),i=s.left+o.scrollLeft-Oi(a,s),f=s.top+o.scrollTop;return{x:i,y:f}}function P1(a){let{elements:o,rect:s,offsetParent:i,strategy:f}=a;const d=f==="fixed",h=an(i),p=o?Ri(o.floating):!1;if(i===h||p&&d)return s;let g={scrollLeft:0,scrollTop:0},v=tn(1);const x=tn(0),S=nn(i);if((S||!S&&!d)&&((Tl(i)!=="body"||kr(h))&&(g=Ci(i)),nn(i))){const E=Na(i);v=xl(i),x.x=E.x+i.clientLeft,x.y=E.y+i.clientTop}const w=h&&!S&&!d?Cv(h,g):tn(0);return{width:s.width*v.x,height:s.height*v.y,x:s.x*v.x-g.scrollLeft*v.x+x.x+w.x,y:s.y*v.y-g.scrollTop*v.y+x.y+w.y}}function $1(a){return Array.from(a.getClientRects())}function J1(a){const o=an(a),s=Ci(a),i=a.ownerDocument.body,f=At(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=At(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let h=-s.scrollLeft+Oi(a);const p=-s.scrollTop;return Vt(i).direction==="rtl"&&(h+=At(o.clientWidth,i.clientWidth)-f),{width:f,height:d,x:h,y:p}}const Up=25;function F1(a,o){const s=Tt(a),i=an(a),f=s.visualViewport;let d=i.clientWidth,h=i.clientHeight,p=0,g=0;if(f){d=f.width,h=f.height;const x=Qu();(!x||x&&o==="fixed")&&(p=f.offsetLeft,g=f.offsetTop)}const v=Oi(i);if(v<=0){const x=i.ownerDocument,S=x.body,w=getComputedStyle(S),E=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,M=Math.abs(i.clientWidth-S.clientWidth-E);M<=Up&&(d-=M)}else v<=Up&&(d+=v);return{width:d,height:h,x:p,y:g}}const W1=new Set(["absolute","fixed"]);function I1(a,o){const s=Na(a,!0,o==="fixed"),i=s.top+a.clientTop,f=s.left+a.clientLeft,d=nn(a)?xl(a):tn(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,g=f*d.x,v=i*d.y;return{width:h,height:p,x:g,y:v}}function Lp(a,o,s){let i;if(o==="viewport")i=F1(a,s);else if(o==="document")i=J1(an(a));else if(Yt(o))i=I1(o,s);else{const f=Rv(a);i={x:o.x-f.x,y:o.y-f.y,width:o.width,height:o.height}}return yi(i)}function Ov(a,o){const s=na(a);return s===o||!Yt(s)||wl(s)?!1:Vt(s).position==="fixed"||Ov(s,o)}function eS(a,o){const s=o.get(a);if(s)return s;let i=Cr(a,[],!1).filter(p=>Yt(p)&&Tl(p)!=="body"),f=null;const d=Vt(a).position==="fixed";let h=d?na(a):a;for(;Yt(h)&&!wl(h);){const p=Vt(h),g=Xu(h);!g&&p.position==="fixed"&&(f=null),(d?!g&&!f:!g&&p.position==="static"&&!!f&&W1.has(f.position)||kr(h)&&!g&&Ov(a,h))?i=i.filter(x=>x!==h):f=p,h=na(h)}return o.set(a,i),i}function tS(a){let{element:o,boundary:s,rootBoundary:i,strategy:f}=a;const h=[...s==="clippingAncestors"?Ri(o)?[]:eS(o,this._c):[].concat(s),i],p=h[0],g=h.reduce((v,x)=>{const S=Lp(o,x,f);return v.top=At(S.top,v.top),v.right=ta(S.right,v.right),v.bottom=ta(S.bottom,v.bottom),v.left=At(S.left,v.left),v},Lp(o,p,f));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function nS(a){const{width:o,height:s}=jv(a);return{width:o,height:s}}function aS(a,o,s){const i=nn(o),f=an(o),d=s==="fixed",h=Na(a,!0,d,o);let p={scrollLeft:0,scrollTop:0};const g=tn(0);function v(){g.x=Oi(f)}if(i||!i&&!d)if((Tl(o)!=="body"||kr(f))&&(p=Ci(o)),i){const E=Na(o,!0,d,o);g.x=E.x+o.clientLeft,g.y=E.y+o.clientTop}else f&&v();d&&!i&&f&&v();const x=f&&!i&&!d?Cv(f,p):tn(0),S=h.left+p.scrollLeft-g.x-x.x,w=h.top+p.scrollTop-g.y-x.y;return{x:S,y:w,width:h.width,height:h.height}}function uu(a){return Vt(a).position==="static"}function Hp(a,o){if(!nn(a)||Vt(a).position==="fixed")return null;if(o)return o(a);let s=a.offsetParent;return an(a)===s&&(s=s.ownerDocument.body),s}function Dv(a,o){const s=Tt(a);if(Ri(a))return s;if(!nn(a)){let f=na(a);for(;f&&!wl(f);){if(Yt(f)&&!uu(f))return f;f=na(f)}return s}let i=Hp(a,o);for(;i&&B1(i)&&uu(i);)i=Hp(i,o);return i&&wl(i)&&uu(i)&&!Xu(i)?s:i||X1(a)||s}const lS=async function(a){const o=this.getOffsetParent||Dv,s=this.getDimensions,i=await s(a.floating);return{reference:aS(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function rS(a){return Vt(a).direction==="rtl"}const oS={convertOffsetParentRelativeRectToViewportRelativeRect:P1,getDocumentElement:an,getClippingRect:tS,getOffsetParent:Dv,getElementRects:lS,getClientRects:$1,getDimensions:nS,getScale:xl,isElement:Yt,isRTL:rS};function zv(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function iS(a,o){let s=null,i;const f=an(a);function d(){var p;clearTimeout(i),(p=s)==null||p.disconnect(),s=null}function h(p,g){p===void 0&&(p=!1),g===void 0&&(g=1),d();const v=a.getBoundingClientRect(),{left:x,top:S,width:w,height:E}=v;if(p||o(),!w||!E)return;const M=ai(S),N=ai(f.clientWidth-(x+w)),_=ai(f.clientHeight-(S+E)),R=ai(x),L={rootMargin:-M+"px "+-N+"px "+-_+"px "+-R+"px",threshold:At(0,ta(1,g))||1};let B=!0;function k(Q){const P=Q[0].intersectionRatio;if(P!==g){if(!B)return h();P?h(!1,P):i=setTimeout(()=>{h(!1,1e-7)},1e3)}P===1&&!zv(v,a.getBoundingClientRect())&&h(),B=!1}try{s=new IntersectionObserver(k,{...L,root:f.ownerDocument})}catch{s=new IntersectionObserver(k,L)}s.observe(a)}return h(!0),d}function sS(a,o,s,i){i===void 0&&(i={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,v=Zu(a),x=f||d?[...v?Cr(v):[],...Cr(o)]:[];x.forEach(R=>{f&&R.addEventListener("scroll",s,{passive:!0}),d&&R.addEventListener("resize",s)});const S=v&&p?iS(v,s):null;let w=-1,E=null;h&&(E=new ResizeObserver(R=>{let[G]=R;G&&G.target===v&&E&&(E.unobserve(o),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var L;(L=E)==null||L.observe(o)})),s()}),v&&!g&&E.observe(v),E.observe(o));let M,N=g?Na(a):null;g&&_();function _(){const R=Na(a);N&&!zv(N,R)&&s(),N=R,M=requestAnimationFrame(_)}return s(),()=>{var R;x.forEach(G=>{f&&G.removeEventListener("scroll",s),d&&G.removeEventListener("resize",s)}),S?.(),(R=E)==null||R.disconnect(),E=null,g&&cancelAnimationFrame(M)}}const cS=D1,uS=z1,fS=R1,dS=U1,mS=C1,Bp=j1,hS=k1,pS=(a,o,s)=>{const i=new Map,f={platform:oS,...s},d={...f.platform,_c:i};return _1(a,o,{...f,platform:d})};var vS=typeof document<"u",gS=function(){},fi=vS?y.useLayoutEffect:gS;function xi(a,o){if(a===o)return!0;if(typeof a!=typeof o)return!1;if(typeof a=="function"&&a.toString()===o.toString())return!0;let s,i,f;if(a&&o&&typeof a=="object"){if(Array.isArray(a)){if(s=a.length,s!==o.length)return!1;for(i=s;i--!==0;)if(!xi(a[i],o[i]))return!1;return!0}if(f=Object.keys(a),s=f.length,s!==Object.keys(o).length)return!1;for(i=s;i--!==0;)if(!{}.hasOwnProperty.call(o,f[i]))return!1;for(i=s;i--!==0;){const d=f[i];if(!(d==="_owner"&&a.$$typeof)&&!xi(a[d],o[d]))return!1}return!0}return a!==a&&o!==o}function kv(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function qp(a,o){const s=kv(a);return Math.round(o*s)/s}function fu(a){const o=y.useRef(a);return fi(()=>{o.current=a}),o}function yS(a){a===void 0&&(a={});const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:f,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:g,open:v}=a,[x,S]=y.useState({x:0,y:0,strategy:s,placement:o,middlewareData:{},isPositioned:!1}),[w,E]=y.useState(i);xi(w,i)||E(i);const[M,N]=y.useState(null),[_,R]=y.useState(null),G=y.useCallback(q=>{q!==Q.current&&(Q.current=q,N(q))},[]),L=y.useCallback(q=>{q!==P.current&&(P.current=q,R(q))},[]),B=d||M,k=h||_,Q=y.useRef(null),P=y.useRef(null),Z=y.useRef(x),W=g!=null,te=fu(g),ie=fu(f),de=fu(v),we=y.useCallback(()=>{if(!Q.current||!P.current)return;const q={placement:o,strategy:s,middleware:w};ie.current&&(q.platform=ie.current),pS(Q.current,P.current,q).then(F=>{const T={...F,isPositioned:de.current!==!1};ge.current&&!xi(Z.current,T)&&(Z.current=T,qu.flushSync(()=>{S(T)}))})},[w,o,s,ie,de]);fi(()=>{v===!1&&Z.current.isPositioned&&(Z.current.isPositioned=!1,S(q=>({...q,isPositioned:!1})))},[v]);const ge=y.useRef(!1);fi(()=>(ge.current=!0,()=>{ge.current=!1}),[]),fi(()=>{if(B&&(Q.current=B),k&&(P.current=k),B&&k){if(te.current)return te.current(B,k,we);we()}},[B,k,we,te,W]);const pe=y.useMemo(()=>({reference:Q,floating:P,setReference:G,setFloating:L}),[G,L]),D=y.useMemo(()=>({reference:B,floating:k}),[B,k]),$=y.useMemo(()=>{const q={position:s,left:0,top:0};if(!D.floating)return q;const F=qp(D.floating,x.x),T=qp(D.floating,x.y);return p?{...q,transform:"translate("+F+"px, "+T+"px)",...kv(D.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:F,top:T}},[s,p,D.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:we,refs:pe,elements:D,floatingStyles:$}),[x,we,pe,D,$])}const xS=a=>{function o(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:a,fn(s){const{element:i,padding:f}=typeof a=="function"?a(s):a;return i&&o(i)?i.current!=null?Bp({element:i.current,padding:f}).fn(s):{}:i?Bp({element:i,padding:f}).fn(s):{}}}},bS=(a,o)=>({...cS(a),options:[a,o]}),SS=(a,o)=>({...uS(a),options:[a,o]}),wS=(a,o)=>({...hS(a),options:[a,o]}),ES=(a,o)=>({...fS(a),options:[a,o]}),NS=(a,o)=>({...dS(a),options:[a,o]}),MS=(a,o)=>({...mS(a),options:[a,o]}),AS=(a,o)=>({...xS(a),options:[a,o]});var TS="Arrow",Uv=y.forwardRef((a,o)=>{const{children:s,width:i=10,height:f=5,...d}=a;return u.jsx(Ue.svg,{...d,ref:o,width:i,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?s:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Uv.displayName=TS;var _S=Uv;function jS(a){const[o,s]=y.useState(void 0);return En(()=>{if(a){s({width:a.offsetWidth,height:a.offsetHeight});const i=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const d=f[0];let h,p;if("borderBoxSize"in d){const g=d.borderBoxSize,v=Array.isArray(g)?g[0]:g;h=v.inlineSize,p=v.blockSize}else h=a.offsetWidth,p=a.offsetHeight;s({width:h,height:p})});return i.observe(a,{box:"border-box"}),()=>i.unobserve(a)}else s(void 0)},[a]),o}var Ku="Popper",[Lv,Hv]=Ta(Ku),[RS,Bv]=Lv(Ku),qv=a=>{const{__scopePopper:o,children:s}=a,[i,f]=y.useState(null);return u.jsx(RS,{scope:o,anchor:i,onAnchorChange:f,children:s})};qv.displayName=Ku;var Gv="PopperAnchor",Yv=y.forwardRef((a,o)=>{const{__scopePopper:s,virtualRef:i,...f}=a,d=Bv(Gv,s),h=y.useRef(null),p=Ze(o,h),g=y.useRef(null);return y.useEffect(()=>{const v=g.current;g.current=i?.current||h.current,v!==g.current&&d.onAnchorChange(g.current)}),i?null:u.jsx(Ue.div,{...f,ref:p})});Yv.displayName=Gv;var Pu="PopperContent",[CS,OS]=Lv(Pu),Vv=y.forwardRef((a,o)=>{const{__scopePopper:s,side:i="bottom",sideOffset:f=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:S="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:M,...N}=a,_=Bv(Pu,s),[R,G]=y.useState(null),L=Ze(o,se=>G(se)),[B,k]=y.useState(null),Q=jS(B),P=Q?.width??0,Z=Q?.height??0,W=i+(d!=="center"?"-"+d:""),te=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ie=Array.isArray(v)?v:[v],de=ie.length>0,we={padding:te,boundary:ie.filter(zS),altBoundary:de},{refs:ge,floatingStyles:pe,placement:D,isPositioned:$,middlewareData:q}=yS({strategy:"fixed",placement:W,whileElementsMounted:(...se)=>sS(...se,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[bS({mainAxis:f+Z,alignmentAxis:h}),g&&SS({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?wS():void 0,...we}),g&&ES({...we}),NS({...we,apply:({elements:se,rects:Ae,availableWidth:st,availableHeight:Xt})=>{const{width:Qt,height:Zt}=Ae.reference,An=se.floating.style;An.setProperty("--radix-popper-available-width",`${st}px`),An.setProperty("--radix-popper-available-height",`${Xt}px`),An.setProperty("--radix-popper-anchor-width",`${Qt}px`),An.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),B&&AS({element:B,padding:p}),kS({arrowWidth:P,arrowHeight:Z}),w&&MS({strategy:"referenceHidden",...we})]}),[F,T]=Zv(D),X=it(M);En(()=>{$&&X?.()},[$,X]);const I=q.arrow?.x,J=q.arrow?.y,ee=q.arrow?.centerOffset!==0,[he,oe]=y.useState();return En(()=>{R&&oe(window.getComputedStyle(R).zIndex)},[R]),u.jsx("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:$?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(CS,{scope:s,placedSide:F,onArrowChange:k,arrowX:I,arrowY:J,shouldHideArrow:ee,children:u.jsx(Ue.div,{"data-side":F,"data-align":T,...N,ref:L,style:{...N.style,animation:$?void 0:"none"}})})})});Vv.displayName=Pu;var Xv="PopperArrow",DS={top:"bottom",right:"left",bottom:"top",left:"right"},Qv=y.forwardRef(function(o,s){const{__scopePopper:i,...f}=o,d=OS(Xv,i),h=DS[d.placedSide];return u.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:u.jsx(_S,{...f,ref:s,style:{...f.style,display:"block"}})})});Qv.displayName=Xv;function zS(a){return a!==null}var kS=a=>({name:"transformOrigin",options:a,fn(o){const{placement:s,rects:i,middlewareData:f}=o,h=f.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,g=h?0:a.arrowHeight,[v,x]=Zv(s),S={start:"0%",center:"50%",end:"100%"}[x],w=(f.arrow?.x??0)+p/2,E=(f.arrow?.y??0)+g/2;let M="",N="";return v==="bottom"?(M=h?S:`${w}px`,N=`${-g}px`):v==="top"?(M=h?S:`${w}px`,N=`${i.floating.height+g}px`):v==="right"?(M=`${-g}px`,N=h?S:`${E}px`):v==="left"&&(M=`${i.floating.width+g}px`,N=h?S:`${E}px`),{data:{x:M,y:N}}}});function Zv(a){const[o,s="center"]=a.split("-");return[o,s]}var US=qv,LS=Yv,HS=Vv,BS=Qv,qS="Portal",Kv=y.forwardRef((a,o)=>{const{container:s,...i}=a,[f,d]=y.useState(!1);En(()=>d(!0),[]);const h=s||f&&globalThis?.document?.body;return h?Jb.createPortal(u.jsx(Ue.div,{...i,ref:o}),h):null});Kv.displayName=qS;function GS(a,o){return y.useReducer((s,i)=>o[s][i]??s,a)}var ln=a=>{const{present:o,children:s}=a,i=YS(o),f=typeof s=="function"?s({present:i.isPresent}):y.Children.only(s),d=Ze(i.ref,VS(f));return typeof s=="function"||i.isPresent?y.cloneElement(f,{ref:d}):null};ln.displayName="Presence";function YS(a){const[o,s]=y.useState(),i=y.useRef(null),f=y.useRef(a),d=y.useRef("none"),h=a?"mounted":"unmounted",[p,g]=GS(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const v=li(i.current);d.current=p==="mounted"?v:"none"},[p]),En(()=>{const v=i.current,x=f.current;if(x!==a){const w=d.current,E=li(v);a?g("MOUNT"):E==="none"||v?.display==="none"?g("UNMOUNT"):g(x&&w!==E?"ANIMATION_OUT":"UNMOUNT"),f.current=a}},[a,g]),En(()=>{if(o){let v;const x=o.ownerDocument.defaultView??window,S=E=>{const N=li(i.current).includes(CSS.escape(E.animationName));if(E.target===o&&N&&(g("ANIMATION_END"),!f.current)){const _=o.style.animationFillMode;o.style.animationFillMode="forwards",v=x.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=_)})}},w=E=>{E.target===o&&(d.current=li(i.current))};return o.addEventListener("animationstart",w),o.addEventListener("animationcancel",S),o.addEventListener("animationend",S),()=>{x.clearTimeout(v),o.removeEventListener("animationstart",w),o.removeEventListener("animationcancel",S),o.removeEventListener("animationend",S)}}else g("ANIMATION_END")},[o,g]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:y.useCallback(v=>{i.current=v?getComputedStyle(v):null,s(v)},[])}}function li(a){return a?.animationName||"none"}function VS(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}var du="rovingFocusGroup.onEntryFocus",XS={bubbles:!1,cancelable:!0},Ur="RovingFocusGroup",[Tu,Pv,QS]=xv(Ur),[ZS,Di]=Ta(Ur,[QS]),[KS,PS]=ZS(Ur),$v=y.forwardRef((a,o)=>u.jsx(Tu.Provider,{scope:a.__scopeRovingFocusGroup,children:u.jsx(Tu.Slot,{scope:a.__scopeRovingFocusGroup,children:u.jsx($S,{...a,ref:o})})}));$v.displayName=Ur;var $S=y.forwardRef((a,o)=>{const{__scopeRovingFocusGroup:s,orientation:i,loop:f=!1,dir:d,currentTabStopId:h,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:g,onEntryFocus:v,preventScrollOnEntryFocus:x=!1,...S}=a,w=y.useRef(null),E=Ze(o,w),M=_i(d),[N,_]=Bu({prop:h,defaultProp:p??null,onChange:g,caller:Ur}),[R,G]=y.useState(!1),L=it(v),B=Pv(s),k=y.useRef(!1),[Q,P]=y.useState(0);return y.useEffect(()=>{const Z=w.current;if(Z)return Z.addEventListener(du,L),()=>Z.removeEventListener(du,L)},[L]),u.jsx(KS,{scope:s,orientation:i,dir:M,loop:f,currentTabStopId:N,onItemFocus:y.useCallback(Z=>_(Z),[_]),onItemShiftTab:y.useCallback(()=>G(!0),[]),onFocusableItemAdd:y.useCallback(()=>P(Z=>Z+1),[]),onFocusableItemRemove:y.useCallback(()=>P(Z=>Z-1),[]),children:u.jsx(Ue.div,{tabIndex:R||Q===0?-1:0,"data-orientation":i,...S,ref:E,style:{outline:"none",...a.style},onMouseDown:me(a.onMouseDown,()=>{k.current=!0}),onFocus:me(a.onFocus,Z=>{const W=!k.current;if(Z.target===Z.currentTarget&&W&&!R){const te=new CustomEvent(du,XS);if(Z.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ie=B().filter(D=>D.focusable),de=ie.find(D=>D.active),we=ie.find(D=>D.id===N),pe=[de,we,...ie].filter(Boolean).map(D=>D.ref.current);Wv(pe,x)}}k.current=!1}),onBlur:me(a.onBlur,()=>G(!1))})})}),Jv="RovingFocusGroupItem",Fv=y.forwardRef((a,o)=>{const{__scopeRovingFocusGroup:s,focusable:i=!0,active:f=!1,tabStopId:d,children:h,...p}=a,g=pi(),v=d||g,x=PS(Jv,s),S=x.currentTabStopId===v,w=Pv(s),{onFocusableItemAdd:E,onFocusableItemRemove:M,currentTabStopId:N}=x;return y.useEffect(()=>{if(i)return E(),()=>M()},[i,E,M]),u.jsx(Tu.ItemSlot,{scope:s,id:v,focusable:i,active:f,children:u.jsx(Ue.span,{tabIndex:S?0:-1,"data-orientation":x.orientation,...p,ref:o,onMouseDown:me(a.onMouseDown,_=>{i?x.onItemFocus(v):_.preventDefault()}),onFocus:me(a.onFocus,()=>x.onItemFocus(v)),onKeyDown:me(a.onKeyDown,_=>{if(_.key==="Tab"&&_.shiftKey){x.onItemShiftTab();return}if(_.target!==_.currentTarget)return;const R=WS(_,x.orientation,x.dir);if(R!==void 0){if(_.metaKey||_.ctrlKey||_.altKey||_.shiftKey)return;_.preventDefault();let L=w().filter(B=>B.focusable).map(B=>B.ref.current);if(R==="last")L.reverse();else if(R==="prev"||R==="next"){R==="prev"&&L.reverse();const B=L.indexOf(_.currentTarget);L=x.loop?IS(L,B+1):L.slice(B+1)}setTimeout(()=>Wv(L))}}),children:typeof h=="function"?h({isCurrentTabStop:S,hasTabStop:N!=null}):h})})});Fv.displayName=Jv;var JS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function FS(a,o){return o!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function WS(a,o,s){const i=FS(a.key,s);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return JS[i]}function Wv(a,o=!1){const s=document.activeElement;for(const i of a)if(i===s||(i.focus({preventScroll:o}),document.activeElement!==s))return}function IS(a,o){return a.map((s,i)=>a[(o+i)%a.length])}var Iv=$v,eg=Fv,ew=function(a){if(typeof document>"u")return null;var o=Array.isArray(a)?a[0]:a;return o.ownerDocument.body},vl=new WeakMap,ri=new WeakMap,oi={},mu=0,tg=function(a){return a&&(a.host||tg(a.parentNode))},tw=function(a,o){return o.map(function(s){if(a.contains(s))return s;var i=tg(s);return i&&a.contains(i)?i:(console.error("aria-hidden",s,"in not contained inside",a,". Doing nothing"),null)}).filter(function(s){return!!s})},nw=function(a,o,s,i){var f=tw(o,Array.isArray(a)?a:[a]);oi[s]||(oi[s]=new WeakMap);var d=oi[s],h=[],p=new Set,g=new Set(f),v=function(S){!S||p.has(S)||(p.add(S),v(S.parentNode))};f.forEach(v);var x=function(S){!S||g.has(S)||Array.prototype.forEach.call(S.children,function(w){if(p.has(w))x(w);else try{var E=w.getAttribute(i),M=E!==null&&E!=="false",N=(vl.get(w)||0)+1,_=(d.get(w)||0)+1;vl.set(w,N),d.set(w,_),h.push(w),N===1&&M&&ri.set(w,!0),_===1&&w.setAttribute(s,"true"),M||w.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",w,R)}})};return x(o),p.clear(),mu++,function(){h.forEach(function(S){var w=vl.get(S)-1,E=d.get(S)-1;vl.set(S,w),d.set(S,E),w||(ri.has(S)||S.removeAttribute(i),ri.delete(S)),E||S.removeAttribute(s)}),mu--,mu||(vl=new WeakMap,vl=new WeakMap,ri=new WeakMap,oi={})}},aw=function(a,o,s){s===void 0&&(s="data-aria-hidden");var i=Array.from(Array.isArray(a)?a:[a]),f=ew(a);return f?(i.push.apply(i,Array.from(f.querySelectorAll("[aria-live], script"))),nw(i,f,s,"aria-hidden")):function(){return null}},It=function(){return It=Object.assign||function(o){for(var s,i=1,f=arguments.length;i<f;i++){s=arguments[i];for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(o[d]=s[d])}return o},It.apply(this,arguments)};function ng(a,o){var s={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&o.indexOf(i)<0&&(s[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,i=Object.getOwnPropertySymbols(a);f<i.length;f++)o.indexOf(i[f])<0&&Object.prototype.propertyIsEnumerable.call(a,i[f])&&(s[i[f]]=a[i[f]]);return s}function lw(a,o,s){if(s||arguments.length===2)for(var i=0,f=o.length,d;i<f;i++)(d||!(i in o))&&(d||(d=Array.prototype.slice.call(o,0,i)),d[i]=o[i]);return a.concat(d||Array.prototype.slice.call(o))}var di="right-scroll-bar-position",mi="width-before-scroll-bar",rw="with-scroll-bars-hidden",ow="--removed-body-scroll-bar-size";function hu(a,o){return typeof a=="function"?a(o):a&&(a.current=o),a}function iw(a,o){var s=y.useState(function(){return{value:a,callback:o,facade:{get current(){return s.value},set current(i){var f=s.value;f!==i&&(s.value=i,s.callback(i,f))}}}})[0];return s.callback=o,s.facade}var sw=typeof window<"u"?y.useLayoutEffect:y.useEffect,Gp=new WeakMap;function cw(a,o){var s=iw(null,function(i){return a.forEach(function(f){return hu(f,i)})});return sw(function(){var i=Gp.get(s);if(i){var f=new Set(i),d=new Set(a),h=s.current;f.forEach(function(p){d.has(p)||hu(p,null)}),d.forEach(function(p){f.has(p)||hu(p,h)})}Gp.set(s,a)},[a]),s}function uw(a){return a}function fw(a,o){o===void 0&&(o=uw);var s=[],i=!1,f={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:a},useMedium:function(d){var h=o(d,i);return s.push(h),function(){s=s.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(i=!0;s.length;){var h=s;s=[],h.forEach(d)}s={push:function(p){return d(p)},filter:function(){return s}}},assignMedium:function(d){i=!0;var h=[];if(s.length){var p=s;s=[],p.forEach(d),h=s}var g=function(){var x=h;h=[],x.forEach(d)},v=function(){return Promise.resolve().then(g)};v(),s={push:function(x){h.push(x),v()},filter:function(x){return h=h.filter(x),s}}}};return f}function dw(a){a===void 0&&(a={});var o=fw(null);return o.options=It({async:!0,ssr:!1},a),o}var ag=function(a){var o=a.sideCar,s=ng(a,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=o.read();if(!i)throw new Error("Sidecar medium not found");return y.createElement(i,It({},s))};ag.isSideCarExport=!0;function mw(a,o){return a.useMedium(o),ag}var lg=dw(),pu=function(){},zi=y.forwardRef(function(a,o){var s=y.useRef(null),i=y.useState({onScrollCapture:pu,onWheelCapture:pu,onTouchMoveCapture:pu}),f=i[0],d=i[1],h=a.forwardProps,p=a.children,g=a.className,v=a.removeScrollBar,x=a.enabled,S=a.shards,w=a.sideCar,E=a.noRelative,M=a.noIsolation,N=a.inert,_=a.allowPinchZoom,R=a.as,G=R===void 0?"div":R,L=a.gapMode,B=ng(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=w,Q=cw([s,o]),P=It(It({},B),f);return y.createElement(y.Fragment,null,x&&y.createElement(k,{sideCar:lg,removeScrollBar:v,shards:S,noRelative:E,noIsolation:M,inert:N,setCallbacks:d,allowPinchZoom:!!_,lockRef:s,gapMode:L}),h?y.cloneElement(y.Children.only(p),It(It({},P),{ref:Q})):y.createElement(G,It({},P,{className:g,ref:Q}),p))});zi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zi.classNames={fullWidth:mi,zeroRight:di};var hw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pw(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var o=hw();return o&&a.setAttribute("nonce",o),a}function vw(a,o){a.styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o))}function gw(a){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(a)}var yw=function(){var a=0,o=null;return{add:function(s){a==0&&(o=pw())&&(vw(o,s),gw(o)),a++},remove:function(){a--,!a&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},xw=function(){var a=yw();return function(o,s){y.useEffect(function(){return a.add(o),function(){a.remove()}},[o&&s])}},rg=function(){var a=xw(),o=function(s){var i=s.styles,f=s.dynamic;return a(i,f),null};return o},bw={left:0,top:0,right:0,gap:0},vu=function(a){return parseInt(a||"",10)||0},Sw=function(a){var o=window.getComputedStyle(document.body),s=o[a==="padding"?"paddingLeft":"marginLeft"],i=o[a==="padding"?"paddingTop":"marginTop"],f=o[a==="padding"?"paddingRight":"marginRight"];return[vu(s),vu(i),vu(f)]},ww=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return bw;var o=Sw(a),s=document.documentElement.clientWidth,i=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,i-s+o[2]-o[0])}},Ew=rg(),bl="data-scroll-locked",Nw=function(a,o,s,i){var f=a.left,d=a.top,h=a.right,p=a.gap;return s===void 0&&(s="margin"),`
  .`.concat(rw,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(p,"px ").concat(i,`;
  }
  body[`).concat(bl,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([o&&"position: relative ".concat(i,";"),s==="margin"&&`
    padding-left: `.concat(f,`px;
    padding-top: `).concat(d,`px;
    padding-right: `).concat(h,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(p,"px ").concat(i,`;
    `),s==="padding"&&"padding-right: ".concat(p,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(di,` {
    right: `).concat(p,"px ").concat(i,`;
  }
  
  .`).concat(mi,` {
    margin-right: `).concat(p,"px ").concat(i,`;
  }
  
  .`).concat(di," .").concat(di,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(mi," .").concat(mi,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(bl,`] {
    `).concat(ow,": ").concat(p,`px;
  }
`)},Yp=function(){var a=parseInt(document.body.getAttribute(bl)||"0",10);return isFinite(a)?a:0},Mw=function(){y.useEffect(function(){return document.body.setAttribute(bl,(Yp()+1).toString()),function(){var a=Yp()-1;a<=0?document.body.removeAttribute(bl):document.body.setAttribute(bl,a.toString())}},[])},Aw=function(a){var o=a.noRelative,s=a.noImportant,i=a.gapMode,f=i===void 0?"margin":i;Mw();var d=y.useMemo(function(){return ww(f)},[f]);return y.createElement(Ew,{styles:Nw(d,!o,f,s?"":"!important")})},_u=!1;if(typeof window<"u")try{var ii=Object.defineProperty({},"passive",{get:function(){return _u=!0,!0}});window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{_u=!1}var gl=_u?{passive:!1}:!1,Tw=function(a){return a.tagName==="TEXTAREA"},og=function(a,o){if(!(a instanceof Element))return!1;var s=window.getComputedStyle(a);return s[o]!=="hidden"&&!(s.overflowY===s.overflowX&&!Tw(a)&&s[o]==="visible")},_w=function(a){return og(a,"overflowY")},jw=function(a){return og(a,"overflowX")},Vp=function(a,o){var s=o.ownerDocument,i=o;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var f=ig(a,i);if(f){var d=sg(a,i),h=d[1],p=d[2];if(h>p)return!0}i=i.parentNode}while(i&&i!==s.body);return!1},Rw=function(a){var o=a.scrollTop,s=a.scrollHeight,i=a.clientHeight;return[o,s,i]},Cw=function(a){var o=a.scrollLeft,s=a.scrollWidth,i=a.clientWidth;return[o,s,i]},ig=function(a,o){return a==="v"?_w(o):jw(o)},sg=function(a,o){return a==="v"?Rw(o):Cw(o)},Ow=function(a,o){return a==="h"&&o==="rtl"?-1:1},Dw=function(a,o,s,i,f){var d=Ow(a,window.getComputedStyle(o).direction),h=d*i,p=s.target,g=o.contains(p),v=!1,x=h>0,S=0,w=0;do{if(!p)break;var E=sg(a,p),M=E[0],N=E[1],_=E[2],R=N-_-d*M;(M||R)&&ig(a,p)&&(S+=R,w+=M);var G=p.parentNode;p=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!g&&p!==document.body||g&&(o.contains(p)||o===p));return(x&&Math.abs(S)<1||!x&&Math.abs(w)<1)&&(v=!0),v},si=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},Xp=function(a){return[a.deltaX,a.deltaY]},Qp=function(a){return a&&"current"in a?a.current:a},zw=function(a,o){return a[0]===o[0]&&a[1]===o[1]},kw=function(a){return`
  .block-interactivity-`.concat(a,` {pointer-events: none;}
  .allow-interactivity-`).concat(a,` {pointer-events: all;}
`)},Uw=0,yl=[];function Lw(a){var o=y.useRef([]),s=y.useRef([0,0]),i=y.useRef(),f=y.useState(Uw++)[0],d=y.useState(rg)[0],h=y.useRef(a);y.useEffect(function(){h.current=a},[a]),y.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(f));var N=lw([a.lockRef.current],(a.shards||[]).map(Qp),!0).filter(Boolean);return N.forEach(function(_){return _.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),N.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var p=y.useCallback(function(N,_){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!h.current.allowPinchZoom;var R=si(N),G=s.current,L="deltaX"in N?N.deltaX:G[0]-R[0],B="deltaY"in N?N.deltaY:G[1]-R[1],k,Q=N.target,P=Math.abs(L)>Math.abs(B)?"h":"v";if("touches"in N&&P==="h"&&Q.type==="range")return!1;var Z=Vp(P,Q);if(!Z)return!0;if(Z?k=P:(k=P==="v"?"h":"v",Z=Vp(P,Q)),!Z)return!1;if(!i.current&&"changedTouches"in N&&(L||B)&&(i.current=k),!k)return!0;var W=i.current||k;return Dw(W,_,N,W==="h"?L:B)},[]),g=y.useCallback(function(N){var _=N;if(!(!yl.length||yl[yl.length-1]!==d)){var R="deltaY"in _?Xp(_):si(_),G=o.current.filter(function(k){return k.name===_.type&&(k.target===_.target||_.target===k.shadowParent)&&zw(k.delta,R)})[0];if(G&&G.should){_.cancelable&&_.preventDefault();return}if(!G){var L=(h.current.shards||[]).map(Qp).filter(Boolean).filter(function(k){return k.contains(_.target)}),B=L.length>0?p(_,L[0]):!h.current.noIsolation;B&&_.cancelable&&_.preventDefault()}}},[]),v=y.useCallback(function(N,_,R,G){var L={name:N,delta:_,target:R,should:G,shadowParent:Hw(R)};o.current.push(L),setTimeout(function(){o.current=o.current.filter(function(B){return B!==L})},1)},[]),x=y.useCallback(function(N){s.current=si(N),i.current=void 0},[]),S=y.useCallback(function(N){v(N.type,Xp(N),N.target,p(N,a.lockRef.current))},[]),w=y.useCallback(function(N){v(N.type,si(N),N.target,p(N,a.lockRef.current))},[]);y.useEffect(function(){return yl.push(d),a.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:w}),document.addEventListener("wheel",g,gl),document.addEventListener("touchmove",g,gl),document.addEventListener("touchstart",x,gl),function(){yl=yl.filter(function(N){return N!==d}),document.removeEventListener("wheel",g,gl),document.removeEventListener("touchmove",g,gl),document.removeEventListener("touchstart",x,gl)}},[]);var E=a.removeScrollBar,M=a.inert;return y.createElement(y.Fragment,null,M?y.createElement(d,{styles:kw(f)}):null,E?y.createElement(Aw,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function Hw(a){for(var o=null;a!==null;)a instanceof ShadowRoot&&(o=a.host,a=a.host),a=a.parentNode;return o}const Bw=mw(lg,Lw);var cg=y.forwardRef(function(a,o){return y.createElement(zi,It({},a,{ref:o,sideCar:Bw}))});cg.classNames=zi.classNames;var ju=["Enter"," "],qw=["ArrowDown","PageUp","Home"],ug=["ArrowUp","PageDown","End"],Gw=[...qw,...ug],Yw={ltr:[...ju,"ArrowRight"],rtl:[...ju,"ArrowLeft"]},Vw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Lr="Menu",[Or,Xw,Qw]=xv(Lr),[_a,fg]=Ta(Lr,[Qw,Hv,Di]),ki=Hv(),dg=Di(),[Zw,ja]=_a(Lr),[Kw,Hr]=_a(Lr),mg=a=>{const{__scopeMenu:o,open:s=!1,children:i,dir:f,onOpenChange:d,modal:h=!0}=a,p=ki(o),[g,v]=y.useState(null),x=y.useRef(!1),S=it(d),w=_i(f);return y.useEffect(()=>{const E=()=>{x.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>x.current=!1;return document.addEventListener("keydown",E,{capture:!0}),()=>{document.removeEventListener("keydown",E,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),u.jsx(US,{...p,children:u.jsx(Zw,{scope:o,open:s,onOpenChange:S,content:g,onContentChange:v,children:u.jsx(Kw,{scope:o,onClose:y.useCallback(()=>S(!1),[S]),isUsingKeyboardRef:x,dir:w,modal:h,children:i})})})};mg.displayName=Lr;var Pw="MenuAnchor",$u=y.forwardRef((a,o)=>{const{__scopeMenu:s,...i}=a,f=ki(s);return u.jsx(LS,{...f,...i,ref:o})});$u.displayName=Pw;var Ju="MenuPortal",[$w,hg]=_a(Ju,{forceMount:void 0}),pg=a=>{const{__scopeMenu:o,forceMount:s,children:i,container:f}=a,d=ja(Ju,o);return u.jsx($w,{scope:o,forceMount:s,children:u.jsx(ln,{present:s||d.open,children:u.jsx(Kv,{asChild:!0,container:f,children:i})})})};pg.displayName=Ju;var Lt="MenuContent",[Jw,Fu]=_a(Lt),vg=y.forwardRef((a,o)=>{const s=hg(Lt,a.__scopeMenu),{forceMount:i=s.forceMount,...f}=a,d=ja(Lt,a.__scopeMenu),h=Hr(Lt,a.__scopeMenu);return u.jsx(Or.Provider,{scope:a.__scopeMenu,children:u.jsx(ln,{present:i||d.open,children:u.jsx(Or.Slot,{scope:a.__scopeMenu,children:h.modal?u.jsx(Fw,{...f,ref:o}):u.jsx(Ww,{...f,ref:o})})})})}),Fw=y.forwardRef((a,o)=>{const s=ja(Lt,a.__scopeMenu),i=y.useRef(null),f=Ze(o,i);return y.useEffect(()=>{const d=i.current;if(d)return aw(d)},[]),u.jsx(Wu,{...a,ref:f,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:me(a.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),Ww=y.forwardRef((a,o)=>{const s=ja(Lt,a.__scopeMenu);return u.jsx(Wu,{...a,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>s.onOpenChange(!1)})}),Iw=jr("MenuContent.ScrollLock"),Wu=y.forwardRef((a,o)=>{const{__scopeMenu:s,loop:i=!1,trapFocus:f,onOpenAutoFocus:d,onCloseAutoFocus:h,disableOutsidePointerEvents:p,onEntryFocus:g,onEscapeKeyDown:v,onPointerDownOutside:x,onFocusOutside:S,onInteractOutside:w,onDismiss:E,disableOutsideScroll:M,...N}=a,_=ja(Lt,s),R=Hr(Lt,s),G=ki(s),L=dg(s),B=Xw(s),[k,Q]=y.useState(null),P=y.useRef(null),Z=Ze(o,P,_.onContentChange),W=y.useRef(0),te=y.useRef(""),ie=y.useRef(0),de=y.useRef(null),we=y.useRef("right"),ge=y.useRef(0),pe=M?cg:y.Fragment,D=M?{as:Iw,allowPinchZoom:!0}:void 0,$=F=>{const T=te.current+F,X=B().filter(se=>!se.disabled),I=document.activeElement,J=X.find(se=>se.ref.current===I)?.textValue,ee=X.map(se=>se.textValue),he=f2(ee,T,J),oe=X.find(se=>se.textValue===he)?.ref.current;(function se(Ae){te.current=Ae,window.clearTimeout(W.current),Ae!==""&&(W.current=window.setTimeout(()=>se(""),1e3))})(T),oe&&setTimeout(()=>oe.focus())};y.useEffect(()=>()=>window.clearTimeout(W.current),[]),i1();const q=y.useCallback(F=>we.current===de.current?.side&&m2(F,de.current?.area),[]);return u.jsx(Jw,{scope:s,searchRef:te,onItemEnter:y.useCallback(F=>{q(F)&&F.preventDefault()},[q]),onItemLeave:y.useCallback(F=>{q(F)||(P.current?.focus(),Q(null))},[q]),onTriggerLeave:y.useCallback(F=>{q(F)&&F.preventDefault()},[q]),pointerGraceTimerRef:ie,onPointerGraceIntentChange:y.useCallback(F=>{de.current=F},[]),children:u.jsx(pe,{...D,children:u.jsx(Ev,{asChild:!0,trapped:f,onMountAutoFocus:me(d,F=>{F.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Sv,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:v,onPointerDownOutside:x,onFocusOutside:S,onInteractOutside:w,onDismiss:E,children:u.jsx(Iv,{asChild:!0,...L,dir:R.dir,orientation:"vertical",loop:i,currentTabStopId:k,onCurrentTabStopIdChange:Q,onEntryFocus:me(g,F=>{R.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(HS,{role:"menu","aria-orientation":"vertical","data-state":Og(_.open),"data-radix-menu-content":"",dir:R.dir,...G,...N,ref:Z,style:{outline:"none",...N.style},onKeyDown:me(N.onKeyDown,F=>{const X=F.target.closest("[data-radix-menu-content]")===F.currentTarget,I=F.ctrlKey||F.altKey||F.metaKey,J=F.key.length===1;X&&(F.key==="Tab"&&F.preventDefault(),!I&&J&&$(F.key));const ee=P.current;if(F.target!==ee||!Gw.includes(F.key))return;F.preventDefault();const oe=B().filter(se=>!se.disabled).map(se=>se.ref.current);ug.includes(F.key)&&oe.reverse(),c2(oe)}),onBlur:me(a.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(W.current),te.current="")}),onPointerMove:me(a.onPointerMove,Dr(F=>{const T=F.target,X=ge.current!==F.clientX;if(F.currentTarget.contains(T)&&X){const I=F.clientX>ge.current?"right":"left";we.current=I,ge.current=F.clientX}}))})})})})})})});vg.displayName=Lt;var e2="MenuGroup",Iu=y.forwardRef((a,o)=>{const{__scopeMenu:s,...i}=a;return u.jsx(Ue.div,{role:"group",...i,ref:o})});Iu.displayName=e2;var t2="MenuLabel",gg=y.forwardRef((a,o)=>{const{__scopeMenu:s,...i}=a;return u.jsx(Ue.div,{...i,ref:o})});gg.displayName=t2;var bi="MenuItem",Zp="menu.itemSelect",Ui=y.forwardRef((a,o)=>{const{disabled:s=!1,onSelect:i,...f}=a,d=y.useRef(null),h=Hr(bi,a.__scopeMenu),p=Fu(bi,a.__scopeMenu),g=Ze(o,d),v=y.useRef(!1),x=()=>{const S=d.current;if(!s&&S){const w=new CustomEvent(Zp,{bubbles:!0,cancelable:!0});S.addEventListener(Zp,E=>i?.(E),{once:!0}),yv(S,w),w.defaultPrevented?v.current=!1:h.onClose()}};return u.jsx(yg,{...f,ref:g,disabled:s,onClick:me(a.onClick,x),onPointerDown:S=>{a.onPointerDown?.(S),v.current=!0},onPointerUp:me(a.onPointerUp,S=>{v.current||S.currentTarget?.click()}),onKeyDown:me(a.onKeyDown,S=>{const w=p.searchRef.current!=="";s||w&&S.key===" "||ju.includes(S.key)&&(S.currentTarget.click(),S.preventDefault())})})});Ui.displayName=bi;var yg=y.forwardRef((a,o)=>{const{__scopeMenu:s,disabled:i=!1,textValue:f,...d}=a,h=Fu(bi,s),p=dg(s),g=y.useRef(null),v=Ze(o,g),[x,S]=y.useState(!1),[w,E]=y.useState("");return y.useEffect(()=>{const M=g.current;M&&E((M.textContent??"").trim())},[d.children]),u.jsx(Or.ItemSlot,{scope:s,disabled:i,textValue:f??w,children:u.jsx(eg,{asChild:!0,...p,focusable:!i,children:u.jsx(Ue.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...d,ref:v,onPointerMove:me(a.onPointerMove,Dr(M=>{i?h.onItemLeave(M):(h.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(a.onPointerLeave,Dr(M=>h.onItemLeave(M))),onFocus:me(a.onFocus,()=>S(!0)),onBlur:me(a.onBlur,()=>S(!1))})})})}),n2="MenuCheckboxItem",xg=y.forwardRef((a,o)=>{const{checked:s=!1,onCheckedChange:i,...f}=a;return u.jsx(Ng,{scope:a.__scopeMenu,checked:s,children:u.jsx(Ui,{role:"menuitemcheckbox","aria-checked":Si(s)?"mixed":s,...f,ref:o,"data-state":tf(s),onSelect:me(f.onSelect,()=>i?.(Si(s)?!0:!s),{checkForDefaultPrevented:!1})})})});xg.displayName=n2;var bg="MenuRadioGroup",[a2,l2]=_a(bg,{value:void 0,onValueChange:()=>{}}),Sg=y.forwardRef((a,o)=>{const{value:s,onValueChange:i,...f}=a,d=it(i);return u.jsx(a2,{scope:a.__scopeMenu,value:s,onValueChange:d,children:u.jsx(Iu,{...f,ref:o})})});Sg.displayName=bg;var wg="MenuRadioItem",Eg=y.forwardRef((a,o)=>{const{value:s,...i}=a,f=l2(wg,a.__scopeMenu),d=s===f.value;return u.jsx(Ng,{scope:a.__scopeMenu,checked:d,children:u.jsx(Ui,{role:"menuitemradio","aria-checked":d,...i,ref:o,"data-state":tf(d),onSelect:me(i.onSelect,()=>f.onValueChange?.(s),{checkForDefaultPrevented:!1})})})});Eg.displayName=wg;var ef="MenuItemIndicator",[Ng,r2]=_a(ef,{checked:!1}),Mg=y.forwardRef((a,o)=>{const{__scopeMenu:s,forceMount:i,...f}=a,d=r2(ef,s);return u.jsx(ln,{present:i||Si(d.checked)||d.checked===!0,children:u.jsx(Ue.span,{...f,ref:o,"data-state":tf(d.checked)})})});Mg.displayName=ef;var o2="MenuSeparator",Ag=y.forwardRef((a,o)=>{const{__scopeMenu:s,...i}=a;return u.jsx(Ue.div,{role:"separator","aria-orientation":"horizontal",...i,ref:o})});Ag.displayName=o2;var i2="MenuArrow",Tg=y.forwardRef((a,o)=>{const{__scopeMenu:s,...i}=a,f=ki(s);return u.jsx(BS,{...f,...i,ref:o})});Tg.displayName=i2;var s2="MenuSub",[TM,_g]=_a(s2),_r="MenuSubTrigger",jg=y.forwardRef((a,o)=>{const s=ja(_r,a.__scopeMenu),i=Hr(_r,a.__scopeMenu),f=_g(_r,a.__scopeMenu),d=Fu(_r,a.__scopeMenu),h=y.useRef(null),{pointerGraceTimerRef:p,onPointerGraceIntentChange:g}=d,v={__scopeMenu:a.__scopeMenu},x=y.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return y.useEffect(()=>x,[x]),y.useEffect(()=>{const S=p.current;return()=>{window.clearTimeout(S),g(null)}},[p,g]),u.jsx($u,{asChild:!0,...v,children:u.jsx(yg,{id:f.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":f.contentId,"data-state":Og(s.open),...a,ref:Ti(o,f.onTriggerChange),onClick:S=>{a.onClick?.(S),!(a.disabled||S.defaultPrevented)&&(S.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:me(a.onPointerMove,Dr(S=>{d.onItemEnter(S),!S.defaultPrevented&&!a.disabled&&!s.open&&!h.current&&(d.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{s.onOpenChange(!0),x()},100))})),onPointerLeave:me(a.onPointerLeave,Dr(S=>{x();const w=s.content?.getBoundingClientRect();if(w){const E=s.content?.dataset.side,M=E==="right",N=M?-5:5,_=w[M?"left":"right"],R=w[M?"right":"left"];d.onPointerGraceIntentChange({area:[{x:S.clientX+N,y:S.clientY},{x:_,y:w.top},{x:R,y:w.top},{x:R,y:w.bottom},{x:_,y:w.bottom}],side:E}),window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.onPointerGraceIntentChange(null),300)}else{if(d.onTriggerLeave(S),S.defaultPrevented)return;d.onPointerGraceIntentChange(null)}})),onKeyDown:me(a.onKeyDown,S=>{const w=d.searchRef.current!=="";a.disabled||w&&S.key===" "||Yw[i.dir].includes(S.key)&&(s.onOpenChange(!0),s.content?.focus(),S.preventDefault())})})})});jg.displayName=_r;var Rg="MenuSubContent",Cg=y.forwardRef((a,o)=>{const s=hg(Lt,a.__scopeMenu),{forceMount:i=s.forceMount,...f}=a,d=ja(Lt,a.__scopeMenu),h=Hr(Lt,a.__scopeMenu),p=_g(Rg,a.__scopeMenu),g=y.useRef(null),v=Ze(o,g);return u.jsx(Or.Provider,{scope:a.__scopeMenu,children:u.jsx(ln,{present:i||d.open,children:u.jsx(Or.Slot,{scope:a.__scopeMenu,children:u.jsx(Wu,{id:p.contentId,"aria-labelledby":p.triggerId,...f,ref:v,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:x=>{h.isUsingKeyboardRef.current&&g.current?.focus(),x.preventDefault()},onCloseAutoFocus:x=>x.preventDefault(),onFocusOutside:me(a.onFocusOutside,x=>{x.target!==p.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:me(a.onEscapeKeyDown,x=>{h.onClose(),x.preventDefault()}),onKeyDown:me(a.onKeyDown,x=>{const S=x.currentTarget.contains(x.target),w=Vw[h.dir].includes(x.key);S&&w&&(d.onOpenChange(!1),p.trigger?.focus(),x.preventDefault())})})})})})});Cg.displayName=Rg;function Og(a){return a?"open":"closed"}function Si(a){return a==="indeterminate"}function tf(a){return Si(a)?"indeterminate":a?"checked":"unchecked"}function c2(a){const o=document.activeElement;for(const s of a)if(s===o||(s.focus(),document.activeElement!==o))return}function u2(a,o){return a.map((s,i)=>a[(o+i)%a.length])}function f2(a,o,s){const f=o.length>1&&Array.from(o).every(v=>v===o[0])?o[0]:o,d=s?a.indexOf(s):-1;let h=u2(a,Math.max(d,0));f.length===1&&(h=h.filter(v=>v!==s));const g=h.find(v=>v.toLowerCase().startsWith(f.toLowerCase()));return g!==s?g:void 0}function d2(a,o){const{x:s,y:i}=a;let f=!1;for(let d=0,h=o.length-1;d<o.length;h=d++){const p=o[d],g=o[h],v=p.x,x=p.y,S=g.x,w=g.y;x>i!=w>i&&s<(S-v)*(i-x)/(w-x)+v&&(f=!f)}return f}function m2(a,o){if(!o)return!1;const s={x:a.clientX,y:a.clientY};return d2(s,o)}function Dr(a){return o=>o.pointerType==="mouse"?a(o):void 0}var h2=mg,p2=$u,v2=pg,g2=vg,y2=Iu,x2=gg,b2=Ui,S2=xg,w2=Sg,E2=Eg,N2=Mg,M2=Ag,A2=Tg,T2=jg,_2=Cg,Li="DropdownMenu",[j2,_M]=Ta(Li,[fg]),ut=fg(),[R2,Dg]=j2(Li),zg=a=>{const{__scopeDropdownMenu:o,children:s,dir:i,open:f,defaultOpen:d,onOpenChange:h,modal:p=!0}=a,g=ut(o),v=y.useRef(null),[x,S]=Bu({prop:f,defaultProp:d??!1,onChange:h,caller:Li});return u.jsx(R2,{scope:o,triggerId:pi(),triggerRef:v,contentId:pi(),open:x,onOpenChange:S,onOpenToggle:y.useCallback(()=>S(w=>!w),[S]),modal:p,children:u.jsx(h2,{...g,open:x,onOpenChange:S,dir:i,modal:p,children:s})})};zg.displayName=Li;var kg="DropdownMenuTrigger",Ug=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,disabled:i=!1,...f}=a,d=Dg(kg,s),h=ut(s);return u.jsx(p2,{asChild:!0,...h,children:u.jsx(Ue.button,{type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...f,ref:Ti(o,d.triggerRef),onPointerDown:me(a.onPointerDown,p=>{!i&&p.button===0&&p.ctrlKey===!1&&(d.onOpenToggle(),d.open||p.preventDefault())}),onKeyDown:me(a.onKeyDown,p=>{i||(["Enter"," "].includes(p.key)&&d.onOpenToggle(),p.key==="ArrowDown"&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(p.key)&&p.preventDefault())})})})});Ug.displayName=kg;var C2="DropdownMenuPortal",Lg=a=>{const{__scopeDropdownMenu:o,...s}=a,i=ut(o);return u.jsx(v2,{...i,...s})};Lg.displayName=C2;var Hg="DropdownMenuContent",Bg=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=Dg(Hg,s),d=ut(s),h=y.useRef(!1);return u.jsx(g2,{id:f.contentId,"aria-labelledby":f.triggerId,...d,...i,ref:o,onCloseAutoFocus:me(a.onCloseAutoFocus,p=>{h.current||f.triggerRef.current?.focus(),h.current=!1,p.preventDefault()}),onInteractOutside:me(a.onInteractOutside,p=>{const g=p.detail.originalEvent,v=g.button===0&&g.ctrlKey===!0,x=g.button===2||v;(!f.modal||x)&&(h.current=!0)}),style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Bg.displayName=Hg;var O2="DropdownMenuGroup",D2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(y2,{...f,...i,ref:o})});D2.displayName=O2;var z2="DropdownMenuLabel",qg=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(x2,{...f,...i,ref:o})});qg.displayName=z2;var k2="DropdownMenuItem",Gg=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(b2,{...f,...i,ref:o})});Gg.displayName=k2;var U2="DropdownMenuCheckboxItem",L2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(S2,{...f,...i,ref:o})});L2.displayName=U2;var H2="DropdownMenuRadioGroup",B2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(w2,{...f,...i,ref:o})});B2.displayName=H2;var q2="DropdownMenuRadioItem",G2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(E2,{...f,...i,ref:o})});G2.displayName=q2;var Y2="DropdownMenuItemIndicator",V2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(N2,{...f,...i,ref:o})});V2.displayName=Y2;var X2="DropdownMenuSeparator",Yg=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(M2,{...f,...i,ref:o})});Yg.displayName=X2;var Q2="DropdownMenuArrow",Z2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(A2,{...f,...i,ref:o})});Z2.displayName=Q2;var K2="DropdownMenuSubTrigger",P2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(T2,{...f,...i,ref:o})});P2.displayName=K2;var $2="DropdownMenuSubContent",J2=y.forwardRef((a,o)=>{const{__scopeDropdownMenu:s,...i}=a,f=ut(s);return u.jsx(_2,{...f,...i,ref:o,style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});J2.displayName=$2;var F2=zg,W2=Ug,I2=Lg,eE=Bg,tE=qg,nE=Gg,aE=Yg;/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lE=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rE=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,s,i)=>i?i.toUpperCase():s.toLowerCase()),Kp=a=>{const o=rE(a);return o.charAt(0).toUpperCase()+o.slice(1)},Vg=(...a)=>a.filter((o,s,i)=>!!o&&o.trim()!==""&&i.indexOf(o)===s).join(" ").trim(),oE=a=>{for(const o in a)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var iE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sE=y.forwardRef(({color:a="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:f="",children:d,iconNode:h,...p},g)=>y.createElement("svg",{ref:g,...iE,width:o,height:o,stroke:a,strokeWidth:i?Number(s)*24/Number(o):s,className:Vg("lucide",f),...!d&&!oE(p)&&{"aria-hidden":"true"},...p},[...h.map(([v,x])=>y.createElement(v,x)),...Array.isArray(d)?d:[d]]));/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Se=(a,o)=>{const s=y.forwardRef(({className:i,...f},d)=>y.createElement(sE,{ref:d,iconNode:o,className:Vg(`lucide-${lE(Kp(a))}`,`lucide-${a}`,i),...f}));return s.displayName=Kp(a),s};/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cE=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Ru=Se("activity",cE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],fE=Se("arrow-right",uE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dE=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ma=Se("bot",dE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mE=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Pp=Se("brain",mE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hE=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],$p=Se("bug",hE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Br=Se("chevron-down",pE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vE=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],gE=Se("chevron-left",vE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xE=Se("chevron-right",yE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Xg=Se("chevron-up",bE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],wi=Se("circle-alert",SE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wE=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Cu=Se("circle-check-big",wE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],NE=Se("circle-stop",EE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ME=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ei=Se("clock",ME);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AE=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Qg=Se("code",AE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TE=[["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"}]],Ou=Se("database",TE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _E=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Jp=Se("download",_E);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jE=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],RE=Se("file-code",jE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CE=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Du=Se("file-text",CE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OE=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],DE=Se("file",OE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zE=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],kE=Se("folder-open",zE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],LE=Se("image",UE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],BE=Se("info",HE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],GE=Se("loader-circle",qE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YE=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],zr=Se("message-square",YE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VE=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],XE=Se("moon",VE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QE=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],ZE=Se("music",QE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KE=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],PE=Se("play",KE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $E=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],JE=Se("plus",$E);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FE=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],WE=Se("send",FE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IE=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Zg=Se("settings",IE);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eN=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],tN=Se("sun",eN);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nN=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],nf=Se("trash-2",nN);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aN=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],lN=Se("upload",aN);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rN=[["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"}]],oN=Se("user",rN);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iN=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],af=Se("users",iN);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sN=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],cN=Se("video",sN);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uN=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Ni=Se("workflow",uN);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fN=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],gu=Se("wrench",fN);function lf({...a}){return u.jsx(F2,{"data-slot":"dropdown-menu",...a})}function rf({...a}){return u.jsx(W2,{"data-slot":"dropdown-menu-trigger",...a})}function of({className:a,sideOffset:o=4,...s}){return u.jsx(I2,{children:u.jsx(eE,{"data-slot":"dropdown-menu-content",sideOffset:o,className:Ve("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",a),...s})})}function Sl({className:a,inset:o,variant:s="default",...i}){return u.jsx(nE,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":s,className:Ve("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...i})}function hi({className:a,inset:o,...s}){return u.jsx(tE,{"data-slot":"dropdown-menu-label","data-inset":o,className:Ve("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",a),...s})}function zu({className:a,...o}){return u.jsx(aE,{"data-slot":"dropdown-menu-separator",className:Ve("bg-border -mx-1 my-1 h-px",a),...o})}const dN=iv("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Je({className:a,variant:o,...s}){return u.jsx("div",{className:Ve(dN({variant:o}),a),...s})}function Kg({size:a="md",className:o}){return u.jsx(GE,{className:Ve("animate-spin",{"h-4 w-4":a==="sm","h-6 w-6":a==="md","h-8 w-8":a==="lg"},o)})}const Fp=a=>{switch(a){case"agent":return Ma;case"orchestrator":return af;case"workflow":return Ni;default:return Zg}},mN=a=>a==="directory"?kE:Ou,Wp=a=>{switch(a.type){case"agent":const o=a;return{count:o.tools.length,label:"tools",secondaryInfo:o.model?`Model: ${o.model}`:void 0};case"orchestrator":const s=a;return{count:s.agents.length,label:"agents",secondaryInfo:`Type: ${s.orchestrator_type}`};case"workflow":const i=a;return{count:i.steps.length,label:"steps",secondaryInfo:i.start_step?`Start: ${i.start_step}`:void 0};default:return{count:0,label:"items"}}};function hN({entities:a,selectedEntity:o,onSelect:s,isLoading:i=!1}){const[f,d]=y.useState(!1),h=a.filter(M=>M.type==="agent"),p=a.filter(M=>M.type==="orchestrator"),g=a.filter(M=>M.type==="workflow"),v=M=>{s(M),d(!1)},x=o?Fp(o.type):Ma,S=o?.name||o?.id||"Select Entity",w=o?Wp(o):null,E=M=>{const N=Fp(M.type),_=mN(M.source),R=Wp(M);return u.jsx(Sl,{onClick:()=>v(M),className:"cursor-pointer",children:u.jsxs("div",{className:"flex items-center justify-between w-full",children:[u.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[u.jsx(N,{className:"h-4 w-4 flex-shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"truncate font-medium",children:M.name||M.id}),M.description&&u.jsx("div",{className:"text-xs text-muted-foreground truncate",children:M.description}),R.secondaryInfo&&u.jsx("div",{className:"text-xs text-muted-foreground truncate",children:R.secondaryInfo})]})]}),u.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[u.jsx(_,{className:"h-3 w-3 opacity-60"}),u.jsx(Je,{variant:"outline",className:"text-xs",children:R.count})]})]})},M.id)};return u.jsxs(lf,{open:f,onOpenChange:d,children:[u.jsx(rf,{asChild:!0,children:u.jsx(vt,{variant:"outline",className:"w-64 justify-between font-mono text-sm",disabled:i,children:i?u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Kg,{size:"sm"}),u.jsx("span",{className:"text-muted-foreground",children:"Loading..."})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[u.jsx(x,{className:"h-4 w-4 flex-shrink-0"}),u.jsx("span",{className:"truncate",children:S}),o&&w&&u.jsxs(Je,{variant:"secondary",className:"ml-auto flex-shrink-0",children:[w.count," ",w.label]})]}),u.jsx(Br,{className:"h-4 w-4 opacity-50"})]})})}),u.jsxs(of,{className:"w-80 font-mono",children:[h.length>0&&u.jsxs(u.Fragment,{children:[u.jsxs(hi,{className:"flex items-center gap-2",children:[u.jsx(Ma,{className:"h-4 w-4"}),"Agents (",h.length,")"]}),h.map(E)]}),p.length>0&&u.jsxs(u.Fragment,{children:[h.length>0&&u.jsx(zu,{}),u.jsxs(hi,{className:"flex items-center gap-2",children:[u.jsx(af,{className:"h-4 w-4"}),"Orchestrators (",p.length,")"]}),p.map(E)]}),g.length>0&&u.jsxs(u.Fragment,{children:[(h.length>0||p.length>0)&&u.jsx(zu,{}),u.jsxs(hi,{className:"flex items-center gap-2",children:[u.jsx(Ni,{className:"h-4 w-4"}),"Workflows (",g.length,")"]}),g.map(E)]}),a.length===0&&u.jsx(Sl,{disabled:!0,children:u.jsx("div",{className:"text-center text-muted-foreground py-2",children:i?"Loading entities...":"No entities found"})})]})]})}var pN=(a,o,s,i,f,d,h,p)=>{let g=document.documentElement,v=["light","dark"];function x(E){(Array.isArray(a)?a:[a]).forEach(M=>{let N=M==="class",_=N&&d?f.map(R=>d[R]||R):f;N?(g.classList.remove(..._),g.classList.add(d&&d[E]?d[E]:E)):g.setAttribute(M,E)}),S(E)}function S(E){p&&v.includes(E)&&(g.style.colorScheme=E)}function w(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)x(i);else try{let E=localStorage.getItem(o)||s,M=h&&E==="system"?w():E;x(M)}catch{}},Ip=["light","dark"],Pg="(prefers-color-scheme: dark)",vN=typeof window>"u",sf=y.createContext(void 0),gN={setTheme:a=>{},themes:[]},yN=()=>{var a;return(a=y.useContext(sf))!=null?a:gN},xN=a=>y.useContext(sf)?y.createElement(y.Fragment,null,a.children):y.createElement(SN,{...a}),bN=["light","dark"],SN=({forcedTheme:a,disableTransitionOnChange:o=!1,enableSystem:s=!0,enableColorScheme:i=!0,storageKey:f="theme",themes:d=bN,defaultTheme:h=s?"system":"light",attribute:p="data-theme",value:g,children:v,nonce:x,scriptProps:S})=>{let[w,E]=y.useState(()=>EN(f,h)),[M,N]=y.useState(()=>w==="system"?yu():w),_=g?Object.values(g):d,R=y.useCallback(k=>{let Q=k;if(!Q)return;k==="system"&&s&&(Q=yu());let P=g?g[Q]:Q,Z=o?NN(x):null,W=document.documentElement,te=ie=>{ie==="class"?(W.classList.remove(..._),P&&W.classList.add(P)):ie.startsWith("data-")&&(P?W.setAttribute(ie,P):W.removeAttribute(ie))};if(Array.isArray(p)?p.forEach(te):te(p),i){let ie=Ip.includes(h)?h:null,de=Ip.includes(Q)?Q:ie;W.style.colorScheme=de}Z?.()},[x]),G=y.useCallback(k=>{let Q=typeof k=="function"?k(w):k;E(Q);try{localStorage.setItem(f,Q)}catch{}},[w]),L=y.useCallback(k=>{let Q=yu(k);N(Q),w==="system"&&s&&!a&&R("system")},[w,a]);y.useEffect(()=>{let k=window.matchMedia(Pg);return k.addListener(L),L(k),()=>k.removeListener(L)},[L]),y.useEffect(()=>{let k=Q=>{Q.key===f&&(Q.newValue?E(Q.newValue):G(h))};return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[G]),y.useEffect(()=>{R(a??w)},[a,w]);let B=y.useMemo(()=>({theme:w,setTheme:G,forcedTheme:a,resolvedTheme:w==="system"?M:w,themes:s?[...d,"system"]:d,systemTheme:s?M:void 0}),[w,G,a,M,s,d]);return y.createElement(sf.Provider,{value:B},y.createElement(wN,{forcedTheme:a,storageKey:f,attribute:p,enableSystem:s,enableColorScheme:i,defaultTheme:h,value:g,themes:d,nonce:x,scriptProps:S}),v)},wN=y.memo(({forcedTheme:a,storageKey:o,attribute:s,enableSystem:i,enableColorScheme:f,defaultTheme:d,value:h,themes:p,nonce:g,scriptProps:v})=>{let x=JSON.stringify([s,o,d,a,p,h,i,f]).slice(1,-1);return y.createElement("script",{...v,suppressHydrationWarning:!0,nonce:typeof window>"u"?g:"",dangerouslySetInnerHTML:{__html:`(${pN.toString()})(${x})`}})}),EN=(a,o)=>{if(vN)return;let s;try{s=localStorage.getItem(a)||void 0}catch{}return s||o},NN=a=>{let o=document.createElement("style");return a&&o.setAttribute("nonce",a),o.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(o)},1)}},yu=a=>(a||(a=window.matchMedia(Pg)),a.matches?"dark":"light");function MN(){const{setTheme:a}=yN();return u.jsxs(lf,{children:[u.jsx(rf,{asChild:!0,children:u.jsxs(vt,{variant:"ghost",size:"sm",children:[u.jsx(tN,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),u.jsx(XE,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),u.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),u.jsxs(of,{align:"end",children:[u.jsx(Sl,{onClick:()=>a("light"),children:"Light"}),u.jsx(Sl,{onClick:()=>a("dark"),children:"Dark"}),u.jsx(Sl,{onClick:()=>a("system"),children:"System"})]})]})}function xu({entities:a,selectedEntity:o,onSelect:s,isLoading:i=!1}){return u.jsxs("header",{className:"flex h-14 items-center gap-4 border-b px-4",children:[u.jsx("div",{className:"font-semibold",children:"PicoAgents WebUI"}),u.jsx(hN,{entities:a,selectedEntity:o,onSelect:s,isLoading:i}),u.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[u.jsx(MN,{}),u.jsx(vt,{variant:"ghost",size:"sm",children:u.jsx(Zg,{className:"h-4 w-4"})})]})]})}function AN(a,[o,s]){return Math.min(s,Math.max(o,a))}function TN(a,o){return y.useReducer((s,i)=>o[s][i]??s,a)}var cf="ScrollArea",[$g,jM]=Ta(cf),[_N,Ht]=$g(cf),Jg=y.forwardRef((a,o)=>{const{__scopeScrollArea:s,type:i="hover",dir:f,scrollHideDelay:d=600,...h}=a,[p,g]=y.useState(null),[v,x]=y.useState(null),[S,w]=y.useState(null),[E,M]=y.useState(null),[N,_]=y.useState(null),[R,G]=y.useState(0),[L,B]=y.useState(0),[k,Q]=y.useState(!1),[P,Z]=y.useState(!1),W=Ze(o,ie=>g(ie)),te=_i(f);return u.jsx(_N,{scope:s,type:i,dir:te,scrollHideDelay:d,scrollArea:p,viewport:v,onViewportChange:x,content:S,onContentChange:w,scrollbarX:E,onScrollbarXChange:M,scrollbarXEnabled:k,onScrollbarXEnabledChange:Q,scrollbarY:N,onScrollbarYChange:_,scrollbarYEnabled:P,onScrollbarYEnabledChange:Z,onCornerWidthChange:G,onCornerHeightChange:B,children:u.jsx(Ue.div,{dir:te,...h,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":R+"px","--radix-scroll-area-corner-height":L+"px",...a.style}})})});Jg.displayName=cf;var Fg="ScrollAreaViewport",Wg=y.forwardRef((a,o)=>{const{__scopeScrollArea:s,children:i,nonce:f,...d}=a,h=Ht(Fg,s),p=y.useRef(null),g=Ze(o,p,h.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:f}),u.jsx(Ue.div,{"data-radix-scroll-area-viewport":"",...d,ref:g,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...a.style},children:u.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});Wg.displayName=Fg;var rn="ScrollAreaScrollbar",uf=y.forwardRef((a,o)=>{const{forceMount:s,...i}=a,f=Ht(rn,a.__scopeScrollArea),{onScrollbarXEnabledChange:d,onScrollbarYEnabledChange:h}=f,p=a.orientation==="horizontal";return y.useEffect(()=>(p?d(!0):h(!0),()=>{p?d(!1):h(!1)}),[p,d,h]),f.type==="hover"?u.jsx(jN,{...i,ref:o,forceMount:s}):f.type==="scroll"?u.jsx(RN,{...i,ref:o,forceMount:s}):f.type==="auto"?u.jsx(Ig,{...i,ref:o,forceMount:s}):f.type==="always"?u.jsx(ff,{...i,ref:o}):null});uf.displayName=rn;var jN=y.forwardRef((a,o)=>{const{forceMount:s,...i}=a,f=Ht(rn,a.__scopeScrollArea),[d,h]=y.useState(!1);return y.useEffect(()=>{const p=f.scrollArea;let g=0;if(p){const v=()=>{window.clearTimeout(g),h(!0)},x=()=>{g=window.setTimeout(()=>h(!1),f.scrollHideDelay)};return p.addEventListener("pointerenter",v),p.addEventListener("pointerleave",x),()=>{window.clearTimeout(g),p.removeEventListener("pointerenter",v),p.removeEventListener("pointerleave",x)}}},[f.scrollArea,f.scrollHideDelay]),u.jsx(ln,{present:s||d,children:u.jsx(Ig,{"data-state":d?"visible":"hidden",...i,ref:o})})}),RN=y.forwardRef((a,o)=>{const{forceMount:s,...i}=a,f=Ht(rn,a.__scopeScrollArea),d=a.orientation==="horizontal",h=Bi(()=>g("SCROLL_END"),100),[p,g]=TN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(p==="idle"){const v=window.setTimeout(()=>g("HIDE"),f.scrollHideDelay);return()=>window.clearTimeout(v)}},[p,f.scrollHideDelay,g]),y.useEffect(()=>{const v=f.viewport,x=d?"scrollLeft":"scrollTop";if(v){let S=v[x];const w=()=>{const E=v[x];S!==E&&(g("SCROLL"),h()),S=E};return v.addEventListener("scroll",w),()=>v.removeEventListener("scroll",w)}},[f.viewport,d,g,h]),u.jsx(ln,{present:s||p!=="hidden",children:u.jsx(ff,{"data-state":p==="hidden"?"hidden":"visible",...i,ref:o,onPointerEnter:me(a.onPointerEnter,()=>g("POINTER_ENTER")),onPointerLeave:me(a.onPointerLeave,()=>g("POINTER_LEAVE"))})})}),Ig=y.forwardRef((a,o)=>{const s=Ht(rn,a.__scopeScrollArea),{forceMount:i,...f}=a,[d,h]=y.useState(!1),p=a.orientation==="horizontal",g=Bi(()=>{if(s.viewport){const v=s.viewport.offsetWidth<s.viewport.scrollWidth,x=s.viewport.offsetHeight<s.viewport.scrollHeight;h(p?v:x)}},10);return El(s.viewport,g),El(s.content,g),u.jsx(ln,{present:i||d,children:u.jsx(ff,{"data-state":d?"visible":"hidden",...f,ref:o})})}),ff=y.forwardRef((a,o)=>{const{orientation:s="vertical",...i}=a,f=Ht(rn,a.__scopeScrollArea),d=y.useRef(null),h=y.useRef(0),[p,g]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),v=ly(p.viewport,p.content),x={...i,sizes:p,onSizesChange:g,hasThumb:v>0&&v<1,onThumbChange:w=>d.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function S(w,E){return UN(w,h.current,p,E)}return s==="horizontal"?u.jsx(CN,{...x,ref:o,onThumbPositionChange:()=>{if(f.viewport&&d.current){const w=f.viewport.scrollLeft,E=ev(w,p,f.dir);d.current.style.transform=`translate3d(${E}px, 0, 0)`}},onWheelScroll:w=>{f.viewport&&(f.viewport.scrollLeft=w)},onDragScroll:w=>{f.viewport&&(f.viewport.scrollLeft=S(w,f.dir))}}):s==="vertical"?u.jsx(ON,{...x,ref:o,onThumbPositionChange:()=>{if(f.viewport&&d.current){const w=f.viewport.scrollTop,E=ev(w,p);d.current.style.transform=`translate3d(0, ${E}px, 0)`}},onWheelScroll:w=>{f.viewport&&(f.viewport.scrollTop=w)},onDragScroll:w=>{f.viewport&&(f.viewport.scrollTop=S(w))}}):null}),CN=y.forwardRef((a,o)=>{const{sizes:s,onSizesChange:i,...f}=a,d=Ht(rn,a.__scopeScrollArea),[h,p]=y.useState(),g=y.useRef(null),v=Ze(o,g,d.onScrollbarXChange);return y.useEffect(()=>{g.current&&p(getComputedStyle(g.current))},[g]),u.jsx(ty,{"data-orientation":"horizontal",...f,ref:v,sizes:s,style:{bottom:0,left:d.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:d.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Hi(s)+"px",...a.style},onThumbPointerDown:x=>a.onThumbPointerDown(x.x),onDragScroll:x=>a.onDragScroll(x.x),onWheelScroll:(x,S)=>{if(d.viewport){const w=d.viewport.scrollLeft+x.deltaX;a.onWheelScroll(w),oy(w,S)&&x.preventDefault()}},onResize:()=>{g.current&&d.viewport&&h&&i({content:d.viewport.scrollWidth,viewport:d.viewport.offsetWidth,scrollbar:{size:g.current.clientWidth,paddingStart:Ai(h.paddingLeft),paddingEnd:Ai(h.paddingRight)}})}})}),ON=y.forwardRef((a,o)=>{const{sizes:s,onSizesChange:i,...f}=a,d=Ht(rn,a.__scopeScrollArea),[h,p]=y.useState(),g=y.useRef(null),v=Ze(o,g,d.onScrollbarYChange);return y.useEffect(()=>{g.current&&p(getComputedStyle(g.current))},[g]),u.jsx(ty,{"data-orientation":"vertical",...f,ref:v,sizes:s,style:{top:0,right:d.dir==="ltr"?0:void 0,left:d.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Hi(s)+"px",...a.style},onThumbPointerDown:x=>a.onThumbPointerDown(x.y),onDragScroll:x=>a.onDragScroll(x.y),onWheelScroll:(x,S)=>{if(d.viewport){const w=d.viewport.scrollTop+x.deltaY;a.onWheelScroll(w),oy(w,S)&&x.preventDefault()}},onResize:()=>{g.current&&d.viewport&&h&&i({content:d.viewport.scrollHeight,viewport:d.viewport.offsetHeight,scrollbar:{size:g.current.clientHeight,paddingStart:Ai(h.paddingTop),paddingEnd:Ai(h.paddingBottom)}})}})}),[DN,ey]=$g(rn),ty=y.forwardRef((a,o)=>{const{__scopeScrollArea:s,sizes:i,hasThumb:f,onThumbChange:d,onThumbPointerUp:h,onThumbPointerDown:p,onThumbPositionChange:g,onDragScroll:v,onWheelScroll:x,onResize:S,...w}=a,E=Ht(rn,s),[M,N]=y.useState(null),_=Ze(o,W=>N(W)),R=y.useRef(null),G=y.useRef(""),L=E.viewport,B=i.content-i.viewport,k=it(x),Q=it(g),P=Bi(S,10);function Z(W){if(R.current){const te=W.clientX-R.current.left,ie=W.clientY-R.current.top;v({x:te,y:ie})}}return y.useEffect(()=>{const W=te=>{const ie=te.target;M?.contains(ie)&&k(te,B)};return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[L,M,B,k]),y.useEffect(Q,[i,Q]),El(M,P),El(E.content,P),u.jsx(DN,{scope:s,scrollbar:M,hasThumb:f,onThumbChange:it(d),onThumbPointerUp:it(h),onThumbPositionChange:Q,onThumbPointerDown:it(p),children:u.jsx(Ue.div,{...w,ref:_,style:{position:"absolute",...w.style},onPointerDown:me(a.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),R.current=M.getBoundingClientRect(),G.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E.viewport&&(E.viewport.style.scrollBehavior="auto"),Z(W))}),onPointerMove:me(a.onPointerMove,Z),onPointerUp:me(a.onPointerUp,W=>{const te=W.target;te.hasPointerCapture(W.pointerId)&&te.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=G.current,E.viewport&&(E.viewport.style.scrollBehavior=""),R.current=null})})})}),Mi="ScrollAreaThumb",ny=y.forwardRef((a,o)=>{const{forceMount:s,...i}=a,f=ey(Mi,a.__scopeScrollArea);return u.jsx(ln,{present:s||f.hasThumb,children:u.jsx(zN,{ref:o,...i})})}),zN=y.forwardRef((a,o)=>{const{__scopeScrollArea:s,style:i,...f}=a,d=Ht(Mi,s),h=ey(Mi,s),{onThumbPositionChange:p}=h,g=Ze(o,S=>h.onThumbChange(S)),v=y.useRef(void 0),x=Bi(()=>{v.current&&(v.current(),v.current=void 0)},100);return y.useEffect(()=>{const S=d.viewport;if(S){const w=()=>{if(x(),!v.current){const E=LN(S,p);v.current=E,p()}};return p(),S.addEventListener("scroll",w),()=>S.removeEventListener("scroll",w)}},[d.viewport,x,p]),u.jsx(Ue.div,{"data-state":h.hasThumb?"visible":"hidden",...f,ref:g,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:me(a.onPointerDownCapture,S=>{const E=S.target.getBoundingClientRect(),M=S.clientX-E.left,N=S.clientY-E.top;h.onThumbPointerDown({x:M,y:N})}),onPointerUp:me(a.onPointerUp,h.onThumbPointerUp)})});ny.displayName=Mi;var df="ScrollAreaCorner",ay=y.forwardRef((a,o)=>{const s=Ht(df,a.__scopeScrollArea),i=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&i?u.jsx(kN,{...a,ref:o}):null});ay.displayName=df;var kN=y.forwardRef((a,o)=>{const{__scopeScrollArea:s,...i}=a,f=Ht(df,s),[d,h]=y.useState(0),[p,g]=y.useState(0),v=!!(d&&p);return El(f.scrollbarX,()=>{const x=f.scrollbarX?.offsetHeight||0;f.onCornerHeightChange(x),g(x)}),El(f.scrollbarY,()=>{const x=f.scrollbarY?.offsetWidth||0;f.onCornerWidthChange(x),h(x)}),v?u.jsx(Ue.div,{...i,ref:o,style:{width:d,height:p,position:"absolute",right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:0,...a.style}}):null});function Ai(a){return a?parseInt(a,10):0}function ly(a,o){const s=a/o;return isNaN(s)?0:s}function Hi(a){const o=ly(a.viewport,a.content),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,i=(a.scrollbar.size-s)*o;return Math.max(i,18)}function UN(a,o,s,i="ltr"){const f=Hi(s),d=f/2,h=o||d,p=f-h,g=s.scrollbar.paddingStart+h,v=s.scrollbar.size-s.scrollbar.paddingEnd-p,x=s.content-s.viewport,S=i==="ltr"?[0,x]:[x*-1,0];return ry([g,v],S)(a)}function ev(a,o,s="ltr"){const i=Hi(o),f=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,d=o.scrollbar.size-f,h=o.content-o.viewport,p=d-i,g=s==="ltr"?[0,h]:[h*-1,0],v=AN(a,g);return ry([0,h],[0,p])(v)}function ry(a,o){return s=>{if(a[0]===a[1]||o[0]===o[1])return o[0];const i=(o[1]-o[0])/(a[1]-a[0]);return o[0]+i*(s-a[0])}}function oy(a,o){return a>0&&a<o}var LN=(a,o=()=>{})=>{let s={left:a.scrollLeft,top:a.scrollTop},i=0;return(function f(){const d={left:a.scrollLeft,top:a.scrollTop},h=s.left!==d.left,p=s.top!==d.top;(h||p)&&o(),s=d,i=window.requestAnimationFrame(f)})(),()=>window.cancelAnimationFrame(i)};function Bi(a,o){const s=it(a),i=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),y.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(s,o)},[s,o])}function El(a,o){const s=it(o);En(()=>{let i=0;if(a){const f=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(s)});return f.observe(a),()=>{window.cancelAnimationFrame(i),f.unobserve(a)}}},[a,s])}var iy=Jg,HN=Wg,BN=ay;const Aa=y.forwardRef(({className:a,children:o,...s},i)=>u.jsxs(iy,{ref:i,className:Ve("relative overflow-hidden",a),...s,children:[u.jsx(HN,{className:"h-full w-full rounded-[inherit]",children:o}),u.jsx(sy,{}),u.jsx(BN,{})]}));Aa.displayName=iy.displayName;const sy=y.forwardRef(({className:a,orientation:o="vertical",...s},i)=>u.jsx(uf,{ref:i,orientation:o,className:Ve("flex touch-none select-none transition-colors",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...s,children:u.jsx(ny,{className:"relative flex-1 rounded-full bg-border"})}));sy.displayName=uf.displayName;var qi="Tabs",[qN,RM]=Ta(qi,[Di]),cy=Di(),[GN,mf]=qN(qi),uy=y.forwardRef((a,o)=>{const{__scopeTabs:s,value:i,onValueChange:f,defaultValue:d,orientation:h="horizontal",dir:p,activationMode:g="automatic",...v}=a,x=_i(p),[S,w]=Bu({prop:i,onChange:f,defaultProp:d??"",caller:qi});return u.jsx(GN,{scope:s,baseId:pi(),value:S,onValueChange:w,orientation:h,dir:x,activationMode:g,children:u.jsx(Ue.div,{dir:x,"data-orientation":h,...v,ref:o})})});uy.displayName=qi;var fy="TabsList",dy=y.forwardRef((a,o)=>{const{__scopeTabs:s,loop:i=!0,...f}=a,d=mf(fy,s),h=cy(s);return u.jsx(Iv,{asChild:!0,...h,orientation:d.orientation,dir:d.dir,loop:i,children:u.jsx(Ue.div,{role:"tablist","aria-orientation":d.orientation,...f,ref:o})})});dy.displayName=fy;var my="TabsTrigger",hy=y.forwardRef((a,o)=>{const{__scopeTabs:s,value:i,disabled:f=!1,...d}=a,h=mf(my,s),p=cy(s),g=gy(h.baseId,i),v=yy(h.baseId,i),x=i===h.value;return u.jsx(eg,{asChild:!0,...p,focusable:!f,active:x,children:u.jsx(Ue.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":v,"data-state":x?"active":"inactive","data-disabled":f?"":void 0,disabled:f,id:g,...d,ref:o,onMouseDown:me(a.onMouseDown,S=>{!f&&S.button===0&&S.ctrlKey===!1?h.onValueChange(i):S.preventDefault()}),onKeyDown:me(a.onKeyDown,S=>{[" ","Enter"].includes(S.key)&&h.onValueChange(i)}),onFocus:me(a.onFocus,()=>{const S=h.activationMode!=="manual";!x&&!f&&S&&h.onValueChange(i)})})})});hy.displayName=my;var py="TabsContent",vy=y.forwardRef((a,o)=>{const{__scopeTabs:s,value:i,forceMount:f,children:d,...h}=a,p=mf(py,s),g=gy(p.baseId,i),v=yy(p.baseId,i),x=i===p.value,S=y.useRef(x);return y.useEffect(()=>{const w=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(ln,{present:f||x,children:({present:w})=>u.jsx(Ue.div,{"data-state":x?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":g,hidden:!w,id:v,tabIndex:0,...h,ref:o,style:{...a.style,animationDuration:S.current?"0s":void 0},children:w&&d})})});vy.displayName=py;function gy(a,o){return`${a}-trigger-${o}`}function yy(a,o){return`${a}-content-${o}`}var YN=uy,xy=dy,by=hy,Sy=vy;const VN=YN,wy=y.forwardRef(({className:a,...o},s)=>u.jsx(xy,{ref:s,className:Ve("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...o}));wy.displayName=xy.displayName;const ku=y.forwardRef(({className:a,...o},s)=>u.jsx(by,{ref:s,className:Ve("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...o}));ku.displayName=by.displayName;const Uu=y.forwardRef(({className:a,...o},s)=>u.jsx(Sy,{ref:s,className:Ve("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...o}));Uu.displayName=Sy.displayName;const Ey=a=>{switch(a){case"message":return u.jsx(zr,{className:"h-4 w-4"});case"token_chunk":return u.jsx(zr,{className:"h-4 w-4 text-blue-400"});case"tool_call":return u.jsx(Ru,{className:"h-4 w-4"});case"error":return u.jsx(wi,{className:"h-4 w-4 text-red-500"});case"complete":return u.jsx(Cu,{className:"h-4 w-4 text-green-500"});case"workflow_started":case"workflow_completed":return u.jsx(Ru,{className:"h-4 w-4 text-blue-500"});default:return u.jsx(BE,{className:"h-4 w-4"})}},XN=a=>{switch(a){case"error":return"destructive";case"complete":case"workflow_completed":return"default";case"message":case"token_chunk":case"tool_call":return"secondary";default:return"outline"}};function QN({event:a}){const[o,s]=y.useState(!1);return u.jsxs("div",{className:"bg-card border border-muted rounded p-2 shadow-sm",children:[u.jsxs("div",{className:"flex items-center justify-between mb-1",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[Ey(a.type),u.jsx("span",{className:"text-sm font-medium",children:a.type}),u.jsx(Je,{variant:XN(a.type),className:"text-xs px-1.5 py-0.5 h-5",children:a.type})]}),u.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[u.jsx(Ei,{className:"h-3 w-3"}),new Date(a.timestamp).toLocaleTimeString()]})]}),a.data&&u.jsxs("div",{className:"mt-1",children:[u.jsxs("button",{onClick:()=>s(!o),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",children:[o?u.jsx(Br,{className:"h-3 w-3"}):u.jsx(xE,{className:"h-3 w-3"}),o?"Hide":"Show"," data"]}),o&&u.jsxs("div",{className:"mt-1 space-y-2",children:[a.session_id&&u.jsxs("div",{className:"text-xs text-muted-foreground",children:["Session: ",a.session_id]}),u.jsx(Aa,{className:"h-20",children:u.jsx("pre",{className:"text-xs bg-muted p-2 rounded overflow-auto",children:JSON.stringify(a.data,null,2)})})]})]})]})}function ZN({events:a}){const o=a.reduce((s,i)=>(s[i.type]=(s[i.type]||0)+1,s),{});return u.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:Object.entries(o).map(([s,i])=>u.jsx("div",{className:"bg-card border border-muted rounded p-2 shadow-sm",children:u.jsxs("div",{className:"flex items-center gap-2",children:[Ey(s),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium",children:i}),u.jsx("div",{className:"text-xs text-muted-foreground",children:s})]})]})},s))})}function KN({events:a,isStreaming:o}){const s=a.slice(-50);return u.jsxs("div",{className:"h-full flex flex-col border-l bg-background",children:[u.jsxs("div",{className:"p-4 border-b",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx($p,{className:"h-5 w-5"}),u.jsx("h3",{className:"font-semibold",children:"Debug Panel"}),o&&u.jsxs(Je,{variant:"secondary",className:"gap-1",children:[u.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"}),"Live"]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[a.length," events total"]})]}),u.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col px-4",children:u.jsxs(VN,{defaultValue:"events",className:"flex-1 flex flex-col min-h-0",children:[u.jsxs(wy,{className:"grid w-full grid-cols-2 mt-4 mb-2 flex-shrink-0",children:[u.jsx(ku,{value:"events",children:"Events"}),u.jsx(ku,{value:"summary",children:"Summary"})]}),u.jsx(Uu,{value:"events",className:"flex-1 min-h-0 mb-4 overflow-hidden data-[state=active]:flex data-[state=inactive]:hidden",children:u.jsx(Aa,{className:"h-full w-full",children:s.length===0?u.jsxs("div",{className:"flex flex-col items-center justify-center h-32 text-center",children:[u.jsx($p,{className:"h-8 w-8 text-muted-foreground mb-2"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:"No debug events yet"}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Events will appear here during execution"})]}):u.jsx("div",{className:"space-y-1",children:s.map((i,f)=>u.jsx(QN,{event:i},f))})})}),u.jsx(Uu,{value:"summary",className:"flex-1 min-h-0 mb-4 overflow-hidden data-[state=active]:flex data-[state=inactive]:hidden",children:u.jsx(Aa,{className:"h-full w-full",children:a.length===0?u.jsxs("div",{className:"flex flex-col items-center justify-center h-32 text-center",children:[u.jsx(Ru,{className:"h-8 w-8 text-muted-foreground mb-2"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:"No events to summarize"})]}):u.jsx(ZN,{events:a})})})]})})]})}function PN({onFilesSelected:a,accept:o="image/*,.pdf,.txt,.json,.csv,.md",multiple:s=!0,maxSize:i=50*1024*1024,disabled:f=!1,className:d=""}){const h=y.useRef(null),p=w=>{if(!w||w.length===0)return;const E=[],M=[];Array.from(w).forEach(N=>{if(N.size>i){M.push(`${N.name} is too large (max ${$N(i)})`);return}if(o&&!JN(N,o)){M.push(`${N.name} is not an accepted file type`);return}E.push(N)}),M.length>0&&console.warn("File upload errors:",M),E.length>0&&a(E)},g=()=>{h.current&&h.current.click()},v=w=>{p(w.target.files),w.target.value=""},x=w=>{if(w.preventDefault(),w.stopPropagation(),f)return;const E=w.dataTransfer.files;p(E)},S=w=>{w.preventDefault(),w.stopPropagation()};return u.jsxs("div",{className:d,children:[u.jsx("input",{ref:h,type:"file",accept:o,multiple:s,onChange:v,className:"hidden",disabled:f}),u.jsx(vt,{type:"button",variant:"outline",size:"icon",onClick:g,disabled:f,onDrop:x,onDragOver:S,className:"shrink-0 h-[40px] transition-colors hover:bg-muted",title:"Upload files (images, PDFs, text files)",children:u.jsx(lN,{className:"h-4 w-4"})})]})}function $N(a){if(a===0)return"0 Bytes";const o=1024,s=["Bytes","KB","MB","GB"],i=Math.floor(Math.log(a)/Math.log(o));return parseFloat((a/Math.pow(o,i)).toFixed(2))+" "+s[i]}function JN(a,o){return o.split(",").map(i=>i.trim()).some(i=>{if(i.startsWith("."))return a.name.toLowerCase().endsWith(i.toLowerCase());if(i.includes("/*")){const[f]=i.split("/");return a.type.startsWith(f+"/")}else return a.type===i})}function FN({attachments:a,onRemoveAttachment:o,className:s=""}){return a.length===0?null:u.jsx("div",{className:`flex flex-wrap gap-2 p-2 bg-muted rounded-lg ${s}`,children:a.map(i=>u.jsx(WN,{attachment:i,onRemove:()=>o(i.id)},i.id))})}function WN({attachment:a,onRemove:o}){const[s,i]=y.useState(!1),f=()=>{switch(a.type){case"image":return a.preview?u.jsx("img",{src:a.preview,alt:a.file.name,className:"w-full h-full object-cover"}):u.jsx("div",{className:"flex items-center justify-center w-full h-full bg-gray-200",children:u.jsx(LE,{className:"h-6 w-6 text-gray-400"})});case"pdf":return u.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full bg-red-50",children:[u.jsx(Du,{className:"h-6 w-6 text-red-500 mb-1"}),u.jsx("span",{className:"text-xs text-red-600",children:"PDF"})]});case"audio":return u.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full bg-green-50",children:[u.jsx(ZE,{className:"h-6 w-6 text-green-500 mb-1"}),u.jsx("span",{className:"text-xs text-green-600",children:"AUDIO"})]});case"video":return u.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full bg-blue-50",children:[u.jsx(cN,{className:"h-6 w-6 text-blue-500 mb-1"}),u.jsx("span",{className:"text-xs text-blue-600",children:"VIDEO"})]});case"text":return u.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full bg-yellow-50",children:[u.jsx(Du,{className:"h-6 w-6 text-yellow-600 mb-1"}),u.jsx("span",{className:"text-xs text-yellow-700",children:"TEXT"})]});default:return u.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full bg-gray-100",children:[u.jsx(DE,{className:"h-6 w-6 text-gray-500 mb-1"}),u.jsx("span",{className:"text-xs text-gray-600",children:"FILE"})]})}};return u.jsxs("div",{className:"relative w-16 h-16 rounded border overflow-hidden group cursor-pointer",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),title:a.file.name,children:[f(),u.jsx("div",{className:`absolute inset-0 bg-black/60 flex items-center justify-center transition-all duration-200 ease-in-out ${s?"opacity-100 backdrop-blur-sm":"opacity-0 pointer-events-none"}`,onClick:o,children:u.jsx("div",{className:`transition-all duration-200 ease-in-out ${s?"scale-100 opacity-100":"scale-75 opacity-0"}`,children:u.jsx(nf,{className:"h-5 w-5 text-white drop-shadow-lg"})})}),u.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black bg-opacity-75 text-white text-xs p-1 truncate opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:a.file.name})]})}function IN(a){const o=a.type.toLowerCase();return o.startsWith("image/")?"image":o==="application/pdf"?"pdf":o.startsWith("audio/")?"audio":o.startsWith("video/")?"video":o.startsWith("text/")||o==="application/json"||a.name.endsWith(".md")||a.name.endsWith(".txt")||a.name.endsWith(".csv")?"text":"other"}function eM(a){return new Promise((o,s)=>{const i=new FileReader;i.onload=()=>o(i.result),i.onerror=s,i.readAsDataURL(a)})}const Ny=y.forwardRef(({className:a,...o},s)=>u.jsx("textarea",{className:Ve("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:s,...o}));Ny.displayName="Textarea";function tM({onSendMessage:a,disabled:o=!1,placeholder:s="Type a message... (Enter to send, Shift+Enter for new line)",className:i=""}){const[f,d]=y.useState(""),[h,p]=y.useState([]),[g,v]=y.useState(!1),[x,S]=y.useState(null),w=y.useRef(null),E=async B=>{const k=[];for(const Q of B){const P=`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,Z=IN(Q);let W;if(Z==="image")try{W=await eM(Q)}catch(te){console.error("Failed to read image preview:",te)}k.push({id:P,file:Q,preview:W,type:Z})}p(Q=>[...Q,...k])},M=B=>{p(k=>k.filter(Q=>Q.id!==B))},N=async B=>{const k=Array.from(B.clipboardData.items),Q=[];let P=!1;const Z=8e3;for(const W of k)if(W.type.startsWith("image/")){B.preventDefault();const te=W.getAsFile();if(te){const ie=Date.now();Q.push(new File([te],`screenshot-${ie}.png`,{type:te.type}))}}else if(W.type==="text/plain"&&!P){const te=await new Promise(ie=>{W.getAsString(ie)});if(te.length>Z){B.preventDefault(),P=!0;const ie=_(te),we=`pasted-text-${Date.now()}.${ie}`,ge=new Blob([te],{type:"text/plain"});Q.push(new File([ge],we,{type:"text/plain"})),d("")}}if(Q.length>0){await E(Q);const W=Q.length===1?Q[0].name.includes("screenshot")?"Screenshot added as attachment":"Large text converted to file":`${Q.length} files added`;S(W),setTimeout(()=>S(null),3e3)}},_=B=>{const k=B.trim(),Q=k.split(`
`);if(k.startsWith("{")&&k.endsWith("}")||k.startsWith("[")&&k.endsWith("]"))try{return JSON.parse(k),"json"}catch{}return Q.length>1&&Q[0].includes(",")&&Q.slice(0,3).every(P=>P.split(",").length===Q[0].split(",").length)?"csv":k.includes("# ")||k.includes("## ")||k.includes("```")?"md":"txt"},R=async B=>{if(B.preventDefault(),!(!f.trim()&&h.length===0||g||o)){v(!0);try{await a(f.trim(),h),d(""),p([])}catch(k){console.error("Failed to send message:",k)}finally{v(!1)}}},G=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),R(B))},L=(f.trim()||h.length>0)&&!g&&!o;return u.jsx("div",{className:`border-t flex-shrink-0 ${i}`,children:u.jsxs("div",{className:"p-4",children:[x&&u.jsx("div",{className:"mb-2 p-2 bg-green-100 text-green-800 text-sm rounded-md",children:x}),h.length>0&&u.jsx("div",{className:"mb-3",children:u.jsx(FN,{attachments:h,onRemoveAttachment:M})}),u.jsxs("form",{onSubmit:R,className:"flex gap-2",children:[u.jsx("div",{className:"flex-1",children:u.jsx(Ny,{ref:w,value:f,onChange:B=>d(B.target.value),onKeyDown:G,onPaste:N,placeholder:s,disabled:g||o,className:"min-h-[40px] max-h-32 resize-none",rows:1})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(PN,{onFilesSelected:E,disabled:g||o,className:"shrink-0"}),u.jsx(vt,{type:"submit",size:"icon",disabled:!L,className:"shrink-0 h-[40px]",children:u.jsx(WE,{className:"h-4 w-4"})})]})]})]})})}function nM(a){return a.role==="assistant"&&!("mime_type"in a)}function aM(a){return a.role==="tool"}function lM(a){return"mime_type"in a&&(a.role==="user"||a.role==="assistant")}function tv({message:a,isStreaming:o,className:s}){const[i,f]=y.useState(!1),d=a.content,h=1600,p=d.length>h&&!o,g=p&&!i?d.slice(0,h)+"...":d;return u.jsxs("div",{className:`whitespace-pre-wrap break-words ${s||""}`,children:[u.jsx("div",{className:i&&p?"max-h-96 overflow-y-auto":"",children:g}),o&&u.jsx("span",{className:"ml-1 inline-block h-2 w-2 animate-pulse rounded-full bg-current"}),p&&u.jsx("div",{className:"flex justify-end mt-1",children:u.jsx("button",{onClick:()=>f(!i),className:`inline-flex items-center gap-1 text-xs
                       bg-background/80 hover:bg-background border border-border/50 hover:border-border
                       text-muted-foreground hover:text-foreground
                       transition-colors cursor-pointer px-2 py-1 rounded`,children:i?u.jsxs(u.Fragment,{children:["less ",u.jsx(Xg,{className:"h-3 w-3"})]}):u.jsxs(u.Fragment,{children:[(d.length-h).toLocaleString()," more"," ",u.jsx(Br,{className:"h-3 w-3"})]})})})]})}function rM({message:a,className:o}){const[s,i]=y.useState(!1),[f,d]=y.useState(!1),h=a.mime_type.startsWith("image/"),p=a.mime_type==="application/pdf",g=a.mime_type.startsWith("audio/"),v=a.mime_type.startsWith("video/"),x=a.data?`data:${a.mime_type};base64,${a.data}`:a.media_url,S=a.metadata?.filename||"attachment";return h&&x&&!s?u.jsxs("div",{className:`my-2 ${o||""}`,children:[u.jsx("img",{src:x,alt:S,className:`rounded-lg border max-w-full transition-all cursor-pointer ${f?"max-h-none":"max-h-64"}`,onClick:()=>d(!f),onError:()=>i(!0)}),u.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[a.mime_type," • ",S," • Click to ",f?"collapse":"expand"]}),a.content&&u.jsx("div",{className:"mt-2 text-sm",children:a.content})]}):u.jsxs("div",{className:`my-2 p-3 border rounded-lg bg-muted ${o||""}`,children:[u.jsxs("div",{className:"flex items-center gap-2",children:[p?u.jsx(Du,{className:"h-4 w-4 text-red-500"}):g?u.jsx("div",{className:"h-4 w-4 rounded-full bg-green-500"}):v?u.jsx("div",{className:"h-4 w-4 rounded-sm bg-blue-500"}):u.jsx(Jp,{className:"h-4 w-4"}),u.jsx("span",{className:"text-sm font-medium",children:p?"PDF Document":g?"Audio File":v?"Video File":"File Attachment"}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",a.mime_type,")"]})]}),a.content&&u.jsx("div",{className:"mt-2 text-sm",children:a.content}),x&&u.jsxs(vt,{variant:"outline",size:"sm",className:"mt-2",onClick:()=>{const w=document.createElement("a");w.href=x,w.download=S,w.click()},children:[u.jsx(Jp,{className:"h-3 w-3 mr-1"}),"Download ",S]})]})}function oM({message:a}){const[o,s]=y.useState(!1);return!a.tool_calls||a.tool_calls.length===0?null:u.jsx("div",{className:"my-2 space-y-2",children:a.tool_calls.map((i,f)=>{let d;try{d=typeof i.parameters=="string"?JSON.parse(i.parameters):i.parameters}catch{d=i.parameters}return u.jsxs("div",{className:"p-3 border rounded-lg bg-blue-50",children:[u.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>s(!o),children:[u.jsx(Qg,{className:"h-4 w-4 text-blue-600"}),u.jsxs("span",{className:"text-sm font-medium text-blue-800",children:["Tool Call: ",i.tool_name]}),u.jsx("span",{className:"text-xs text-blue-600",children:o?"▼":"▶"})]}),o&&u.jsxs("div",{className:"mt-2 text-xs font-mono bg-white p-2 rounded border",children:[u.jsx("div",{className:"text-blue-600 mb-1",children:"Parameters:"}),u.jsx("pre",{className:"whitespace-pre-wrap",children:JSON.stringify(d,null,2)})]})]},f)})})}function iM({message:a,className:o}){const[s,i]=y.useState(!1);return u.jsxs("div",{className:`my-2 p-3 border rounded-lg ${a.success?"bg-green-50":"bg-red-50"} ${o||""}`,children:[u.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>i(!s),children:[a.success?u.jsx(Qg,{className:"h-4 w-4 text-green-600"}):u.jsx(wi,{className:"h-4 w-4 text-red-600"}),u.jsxs("span",{className:`text-sm font-medium ${a.success?"text-green-800":"text-red-800"}`,children:["Tool Result: ",a.tool_name," ",a.success?"✓":"✗"]}),u.jsx("span",{className:`text-xs ${a.success?"text-green-600":"text-red-600"}`,children:s?"▼":"▶"})]}),s&&u.jsx("div",{className:"mt-2 text-xs font-mono bg-white p-2 rounded border",children:a.error?u.jsxs("div",{className:"text-red-700",children:["Error: ",a.error]}):u.jsx("pre",{className:"whitespace-pre-wrap",children:a.content})})]})}function sM({message:a,isStreaming:o,className:s}){return lM(a)?u.jsx("div",{children:u.jsx(rM,{message:a,isStreaming:o,className:s})}):nM(a)&&a.tool_calls?u.jsxs("div",{children:[a.content&&u.jsx(tv,{message:a,isStreaming:o,className:s}),u.jsx(oM,{message:a,className:s})]}):aM(a)?u.jsx(iM,{message:a,className:s}):u.jsx(tv,{message:a,isStreaming:o,className:s})}function cM({message:a,isStreaming:o=!1,className:s}){return u.jsx(sM,{message:a,isStreaming:o,className:s})}async function uM(a){return new Promise((o,s)=>{const i=new FileReader;i.onload=()=>{const d=i.result.split(",")[1];o(d)},i.onerror=s,i.readAsDataURL(a)})}async function fM(a,o,s="user"){const i=await uM(o);return{role:"user",content:a||`Uploaded ${o.type} file: ${o.name}`,source:s,mime_type:o.type||"application/octet-stream",data:i,metadata:{filename:o.name,size:o.size,lastModified:o.lastModified}}}function dM({message:a,isStreaming:o}){const s=a.role==="user",i=s?oN:Ma;return u.jsxs("div",{className:`flex gap-3 ${s?"flex-row-reverse":""}`,children:[u.jsx("div",{className:`flex h-8 w-8 shrink-0 select-none items-center justify-center rounded-md border ${s?"bg-primary text-primary-foreground":"bg-muted"}`,children:u.jsx(i,{className:"h-4 w-4"})}),u.jsx("div",{className:`flex flex-col space-y-1 ${s?"items-end":"items-start"} max-w-[80%]`,children:u.jsx("div",{className:`rounded px-3 py-2 text-sm ${s?"bg-primary text-primary-foreground":"bg-muted"}`,children:u.jsx(cM,{message:a,isStreaming:o})})})]})}function mM(){return u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"flex h-8 w-8 shrink-0 select-none items-center justify-center rounded-md border bg-muted",children:u.jsx(Ma,{className:"h-4 w-4"})}),u.jsx("div",{className:"flex items-center space-x-1 rounded bg-muted px-3 py-2",children:u.jsxs("div",{className:"flex space-x-1",children:[u.jsx("div",{className:"h-2 w-2 animate-bounce rounded-full bg-current [animation-delay:-0.3s]"}),u.jsx("div",{className:"h-2 w-2 animate-bounce rounded-full bg-current [animation-delay:-0.15s]"}),u.jsx("div",{className:"h-2 w-2 animate-bounce rounded-full bg-current"})]})})]})}function My({messages:a,onSendMessage:o,onClearMessages:s,isStreaming:i,placeholder:f="Type a message...",emptyStateTitle:d="Start a conversation",emptyStateDescription:h="Type a message below to begin"}){const[p,g]=y.useState(!1),v=y.useRef(null),x=y.useRef(null);y.useEffect(()=>{x.current?.scrollIntoView({behavior:"smooth"})},[a,i]);const S=async(w,E)=>{if(!(!w.trim()&&E.length===0||p||i)){g(!0);try{const M=[];if(E.length>0)for(const N of E){const _=await fM(w||`Uploaded ${N.file.name}`,N.file,"user");M.push(_)}else if(w.trim()){const N={role:"user",content:w.trim(),source:"user"};M.push(N)}await o(M)}catch(M){console.error("Failed to send message:",M)}finally{g(!1)}}};return u.jsxs("div",{className:"flex h-full flex-col",children:[u.jsx(Aa,{className:"flex-1 min-h-0 p-4 overflow-auto",ref:v,children:u.jsxs("div",{className:"space-y-4",children:[a.length===0?u.jsxs("div",{className:"flex flex-col items-center justify-center h-32 text-center",children:[u.jsx("div",{className:"text-muted-foreground text-sm",children:d}),u.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:h})]}):u.jsxs(u.Fragment,{children:[a.map((w,E)=>{const M=E===a.length-1,N=i&&M&&w.role==="assistant";return u.jsx(dM,{message:w,isStreaming:N},E)}),i&&u.jsx(mM,{})]}),u.jsx("div",{ref:x})]})}),a.length>0&&u.jsx("div",{className:"px-4 py-2 border-t",children:u.jsxs(vt,{variant:"outline",size:"sm",onClick:s,disabled:i,className:"gap-1",children:[u.jsx(nf,{className:"h-3 w-3"}),"Clear Chat"]})}),u.jsx(tM,{onSendMessage:S,disabled:p||i,placeholder:f})]})}const hM="";class pM{baseUrl;constructor(o=hM){this.baseUrl=o}async request(o,s={}){const i=`${this.baseUrl}${o}`,f=await fetch(i,{headers:{"Content-Type":"application/json",...s.headers},...s});if(!f.ok)throw new Error(`API request failed: ${f.status} ${f.statusText}`);return f.json()}async getHealth(){return this.request("/api/health")}async getEntities(){return this.request("/api/entities")}async getEntity(o){return this.request(`/api/entities/${o}`)}async getAgents(){return(await this.getEntities()).filter(s=>s.type==="agent")}async getOrchestrators(){return(await this.getEntities()).filter(s=>s.type==="orchestrator")}async getWorkflows(){return(await this.getEntities()).filter(s=>s.type==="workflow")}async getSessions(o){const s=o?`?entity_id=${encodeURIComponent(o)}`:"";return this.request(`/api/sessions${s}`)}async createSession(o,s="agent"){return this.request("/api/sessions",{method:"POST",body:JSON.stringify({entity_id:o,entity_type:s})})}async getSession(o){return this.request(`/api/sessions/${o}`)}async getSessionMessages(o){return this.request(`/api/sessions/${o}/messages`)}async deleteSession(o){return this.request(`/api/sessions/${o}`,{method:"DELETE"})}async*streamEntityExecution(o,s){const i=`/api/entities/${o}/run/stream`,f=await fetch(`${this.baseUrl}${i}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(s)});if(!f.ok)throw new Error(`Streaming request failed: ${f.status}`);const d=f.body?.getReader();if(!d)throw new Error("Response body is not readable");const h=new TextDecoder;let p="";try{for(;;){const{done:g,value:v}=await d.read();if(g)break;p+=h.decode(v,{stream:!0});const x=p.split(`
`);p=x.pop()||"";for(const S of x)if(S.startsWith("data: "))try{const w=JSON.parse(S.slice(6)),E=w.event;let M;E.role?M={type:"message",data:E,session_id:w.session_id,timestamp:w.timestamp}:E.content!==void 0&&E.is_complete!==void 0?M={type:"token_chunk",data:E,session_id:w.session_id,timestamp:w.timestamp}:E.event_type?M={type:E.event_type,data:E,session_id:w.session_id,timestamp:w.timestamp}:E.messages&&E.usage?M={type:"complete",data:E,session_id:w.session_id,timestamp:w.timestamp}:M={type:"unknown",data:E,session_id:w.session_id,timestamp:w.timestamp},yield M}catch(w){console.error("Failed to parse SSE event:",w)}}}finally{d.releaseLock()}}async runEntity(o,s){return this.request(`/api/entities/${o}/run`,{method:"POST",body:JSON.stringify(s)})}async clearCache(){return this.request("/api/cache/clear",{method:"POST"})}async getStats(){return this.request("/api/stats")}}const ea=new pM;function vM({entityId:a,currentSessionId:o,onSessionChange:s}){const[i,f]=y.useState([]),[d,h]=y.useState(!1),[p,g]=y.useState(!1),v=async()=>{h(!0);try{const N=await ea.getSessions(a);f(N)}catch(N){console.error("Failed to load sessions:",N)}finally{h(!1)}};y.useEffect(()=>{p&&v()},[p,a]);const x=async()=>{try{const N=await ea.createSession(a,"agent");await v(),s(N.id),g(!1)}catch(N){console.error("Failed to create new session:",N),s(void 0),g(!1)}},S=N=>{s(N),g(!1)},w=async(N,_)=>{_.stopPropagation();try{await ea.deleteSession(N),f(i.filter(R=>R.id!==N)),o===N&&s(void 0)}catch(R){console.error("Failed to delete session:",R)}},E=N=>{const _=new Date(N),G=new Date().getTime()-_.getTime(),L=Math.floor(G/6e4);return L<1?"Just now":L<60?`${L}m ago`:L<1440?`${Math.floor(L/60)}h ago`:_.toLocaleDateString()},M=i.find(N=>N.id===o);return u.jsxs(lf,{open:p,onOpenChange:g,children:[u.jsx(rf,{asChild:!0,children:u.jsxs(vt,{variant:"outline",className:"gap-2",children:[u.jsx(zr,{className:"h-4 w-4"}),M?u.jsxs("span",{className:"max-w-[150px] truncate",children:["Session (",M.message_count," msgs)"]}):u.jsx("span",{children:"New Session"}),u.jsx(Br,{className:"h-4 w-4 opacity-50"})]})}),u.jsxs(of,{align:"end",className:"w-80",children:[u.jsxs(hi,{className:"flex items-center justify-between",children:[u.jsx("span",{children:"Conversation Sessions"}),u.jsxs(vt,{variant:"ghost",size:"sm",onClick:x,className:"h-7 gap-1",children:[u.jsx(JE,{className:"h-3 w-3"}),"New"]})]}),u.jsx(zu,{}),d?u.jsx("div",{className:"px-2 py-8 text-center text-sm text-muted-foreground",children:"Loading sessions..."}):i.length===0?u.jsxs("div",{className:"px-2 py-8 text-center",children:[u.jsx(zr,{className:"h-8 w-8 mx-auto mb-2 text-muted-foreground"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:"No sessions yet"}),u.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Start a conversation to create one"})]}):u.jsx(Aa,{className:"max-h-[300px]",children:i.map(N=>u.jsx(Sl,{onClick:()=>S(N.id),className:`px-3 py-2 cursor-pointer ${o===N.id?"bg-accent":""}`,children:u.jsxs("div",{className:"flex items-start justify-between w-full gap-2",children:[u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Je,{variant:"outline",className:"text-xs px-1.5 py-0",children:[N.message_count," msgs"]}),o===N.id&&u.jsx(Je,{variant:"default",className:"text-xs px-1.5 py-0",children:"Active"})]}),u.jsxs("div",{className:"flex items-center gap-1 mt-1 text-xs text-muted-foreground",children:[u.jsx(Ei,{className:"h-3 w-3"}),E(N.last_activity)]}),u.jsxs("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:[N.id.slice(0,8),"..."]})]}),u.jsx(vt,{variant:"ghost",size:"sm",onClick:_=>w(N.id,_),className:"h-7 w-7 p-0 hover:bg-destructive hover:text-destructive-foreground",children:u.jsx(nf,{className:"h-3 w-3"})})]})},N.id))})]})]})}function gM({selectedAgent:a,onDebugEvent:o}){const[s,i]=y.useState([]),[f,d]=y.useState(!1),[h,p]=y.useState(!1),[g,v]=y.useState(void 0),x=y.useCallback(async E=>{if(v(E),E)try{const M=await ea.getSessionMessages(E);i(M.messages)}catch(M){console.error("Failed to load session messages:",M),i([])}else i([])},[]),S=y.useCallback(async E=>{i(M=>[...M,...E]),d(!0);try{const M={messages:E,session_id:g,stream_tokens:!0};let N={role:"assistant",content:"",source:a.name||a.id};i(_=>[..._,N]);for await(const _ of ea.streamEntityExecution(a.id,M))if(o(_),!g&&_.session_id&&v(_.session_id),_.type==="token_chunk")_.data?.content&&(N={...N,content:N.content+_.data.content},i(R=>[...R.slice(0,-1),N]));else if(_.type==="message")_.data?.role==="assistant"&&_.data?.content&&(N={role:"assistant",content:_.data.content,source:_.data.source||a.name||a.id},i(R=>[...R.slice(0,-1),N]));else if(_.type==="complete"){if(_.data?.messages){const R=_.data.messages[_.data.messages.length-1];R?.role==="assistant"&&(N={role:"assistant",content:R.content,source:R.source||a.name||a.id},i(G=>[...G.slice(0,-1),N]))}break}}catch(M){console.error("Failed to send message:",M);const N={role:"assistant",content:`Error: ${M instanceof Error?M.message:"Unknown error"}`,source:"system"};i(_=>[..._.slice(0,-1),N])}finally{d(!1)}},[a.id,g,o]),w=y.useCallback(()=>{i([]),v(void 0)},[]);return u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"border-b",children:[u.jsxs("div",{className:"p-4 space-y-3",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Ma,{className:"h-6 w-6 text-blue-600"}),u.jsxs("div",{className:"flex-1",children:[u.jsx("h2",{className:"text-lg font-semibold",children:a.name||a.id}),a.description&&u.jsx("p",{className:"text-sm text-muted-foreground",children:a.description})]})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(vM,{entityId:a.id,currentSessionId:g,onSessionChange:x}),u.jsx("div",{className:"h-4 w-px bg-border"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.model&&u.jsxs(Je,{variant:"secondary",className:"text-xs",children:[u.jsx(Pp,{className:"h-3 w-3 mr-1"}),a.model]}),u.jsxs(Je,{variant:"secondary",className:"text-xs",children:[u.jsx(gu,{className:"h-3 w-3 mr-1"}),a.tools.length," tools"]}),a.memory_type&&u.jsxs(Je,{variant:"secondary",className:"text-xs",children:[u.jsx(Ou,{className:"h-3 w-3 mr-1"}),a.memory_type]}),u.jsx(Je,{variant:"secondary",className:"text-xs",children:a.source})]})]}),u.jsx("button",{onClick:()=>p(!h),className:"p-1 hover:bg-accent rounded-md transition-colors","aria-label":h?"Hide details":"Show details",children:h?u.jsx(Xg,{className:"h-4 w-4"}):u.jsx(Br,{className:"h-4 w-4"})})]})]}),h&&u.jsxs("div",{className:"px-4 pb-3 space-y-2 border-t bg-muted/50",children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 pt-2",children:[a.model&&u.jsx("div",{className:"bg-card border border-muted rounded p-2 shadow-sm",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Pp,{className:"h-4 w-4 text-purple-600 shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Model"}),u.jsx("div",{className:"text-sm font-medium truncate",children:a.model})]})]})}),u.jsx("div",{className:"bg-card border border-muted rounded p-2 shadow-sm",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(gu,{className:"h-4 w-4 text-orange-600 shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Tools"}),u.jsxs("div",{className:"text-sm font-medium",children:[a.tools.length," available"]})]})]})}),a.memory_type&&u.jsx("div",{className:"bg-card border border-muted rounded p-2 shadow-sm",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ou,{className:"h-4 w-4 text-green-600 shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Memory"}),u.jsx("div",{className:"text-sm font-medium truncate",children:a.memory_type})]})]})}),u.jsx("div",{className:"bg-card border border-muted rounded p-2 shadow-sm",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"h-4 w-4 rounded-full bg-gray-600 shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Source"}),u.jsx("div",{className:"text-sm font-medium truncate",children:a.source})]})]})})]}),a.tools.length>0&&u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(gu,{className:"h-4 w-4"}),u.jsxs("span",{children:["Available Tools (",a.tools.length,")"]})]}),u.jsx("div",{className:"flex flex-wrap gap-2",children:a.tools.map(E=>u.jsx(Je,{variant:"outline",children:E},E))})]})]})]}),u.jsx("div",{className:"flex-1 min-h-0",children:u.jsx(My,{messages:s,onSendMessage:S,onClearMessages:w,isStreaming:f,placeholder:`Chat with ${a.name||a.id}...`,emptyStateTitle:"Agent Chat",emptyStateDescription:`Start a conversation with this agent. It has access to ${a.tools.length} tools and can help you with various tasks.`})})]})}function wa({className:a,...o}){return u.jsx("div",{"data-slot":"card",className:Ve("bg-card text-card-foreground flex flex-col gap-6 rounded border py-6 shadow-sm",a),...o})}function ci({className:a,...o}){return u.jsx("div",{"data-slot":"card-header",className:Ve("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...o})}function ui({className:a,...o}){return u.jsx("div",{"data-slot":"card-title",className:Ve("leading-none font-semibold",a),...o})}function Ea({className:a,...o}){return u.jsx("div",{"data-slot":"card-content",className:Ve("px-6",a),...o})}function yM({selectedOrchestrator:a,onDebugEvent:o}){const[s,i]=y.useState([]),[f,d]=y.useState(!1),[h,p]=y.useState(null),g=y.useCallback(async S=>{i(w=>[...w,...S]),d(!0),p(null);try{const w={messages:[...s,...S]};let E={role:"assistant",content:"",source:a.name||a.id};i(M=>[...M,E]);for await(const M of ea.streamEntityExecution(a.id,w))if(o(M),M.type==="message")M.data?.content&&(E={...E,content:E.content+M.data.content},i(N=>[...N.slice(0,-1),E])),M.data?.name&&p(M.data.name);else if(M.type==="complete"){p(null);break}}catch(w){console.error("Failed to send message:",w);const E={role:"assistant",content:`Error: ${w instanceof Error?w.message:"Unknown error"}`,source:"system"};i(M=>[...M.slice(0,-1),E])}finally{d(!1),p(null)}},[a.id,s,o]),v=y.useCallback(()=>{i([]),p(null)},[]),x=S=>{switch(S.toLowerCase()){case"round_robin":return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300";case"ai":return"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-300";case"plan":return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300";default:return"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-300"}};return u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"border-b p-4 space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(af,{className:"h-6 w-6 text-blue-600"}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold",children:a.name||a.id}),a.description&&u.jsx("p",{className:"text-sm text-muted-foreground",children:a.description})]})]}),u.jsx(Je,{className:x(a.orchestrator_type),children:a.orchestrator_type})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Ma,{className:"h-4 w-4"}),u.jsxs("span",{children:["Participating Agents (",a.agents.length,")"]})]}),u.jsx("div",{className:"flex flex-wrap gap-2",children:a.agents.map(S=>u.jsxs(Je,{variant:h===S?"default":"outline",className:h===S?"animate-pulse":"",children:[S,h===S&&u.jsx(zr,{className:"h-3 w-3 ml-1"})]},S))})]}),a.termination_conditions.length>0&&u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(NE,{className:"h-4 w-4"}),u.jsx("span",{children:"Termination Conditions"})]}),u.jsx("div",{className:"flex flex-wrap gap-2",children:a.termination_conditions.map(S=>u.jsx(Je,{variant:"secondary",children:S},S))})]}),h&&u.jsx(wa,{className:"bg-blue-50 dark:bg-blue-950 border-blue-200 dark:border-blue-800",children:u.jsx(Ea,{className:"p-3",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"h-2 w-2 bg-blue-600 rounded-full animate-pulse"}),u.jsxs("span",{className:"text-sm font-medium",children:[h," is responding..."]})]})})})]}),u.jsx("div",{className:"flex-1 min-h-0",children:u.jsx(My,{messages:s,onSendMessage:g,onClearMessages:v,isStreaming:f,placeholder:`Start a conversation with ${a.agents.length} agents via ${a.orchestrator_type} orchestration...`,emptyStateTitle:"Multi-Agent Orchestration",emptyStateDescription:`This orchestrator will coordinate conversations between ${a.agents.join(", ")} using ${a.orchestrator_type} pattern.`})})]})}function xM({className:a,type:o,...s}){return u.jsx("input",{type:o,"data-slot":"input",className:Ve("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),...s})}var bM="Label",Ay=y.forwardRef((a,o)=>u.jsx(Ue.label,{...a,ref:o,onMouseDown:s=>{s.target.closest("button, input, select, textarea")||(a.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));Ay.displayName=bM;var SM=Ay;function wM({className:a,...o}){return u.jsx(SM,{"data-slot":"label",className:Ve("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...o})}function EM({selectedWorkflow:a,onDebugEvent:o}){const[s,i]=y.useState({}),[f,d]=y.useState(!1),[h,p]=y.useState({status:"pending",steps_completed:[]}),[g,v]=y.useState(null),[x,S]=y.useState(null),w=(R,G)=>{i(L=>({...L,[R]:G}))},E=y.useCallback(async()=>{d(!0),S(null),v(null),p({status:"running",steps_completed:[]});try{const R={input_data:s};for await(const G of ea.streamEntityExecution(a.id,R))o(G),G.type==="workflow_started"?p(L=>({...L,status:"running"})):G.type==="executor_invoke"?p(L=>({...L,current_step:G.data?.executor_id})):G.type==="executor_result"?p(L=>({...L,steps_completed:[...L.steps_completed,G.data?.executor_id||"unknown"]})):G.type==="workflow_completed"?(p(L=>({...L,status:"completed"})),v(G.data)):G.type==="workflow_error"&&(p(L=>({...L,status:"failed",error:G.data?.error||"Unknown error"})),S(G.data?.error||"Workflow execution failed"))}catch(R){console.error("Workflow execution error:",R),S(R instanceof Error?R.message:"Execution failed"),p(G=>({...G,status:"failed",error:R instanceof Error?R.message:"Unknown error"}))}finally{d(!1)}},[a.id,s,o]),M=R=>h.steps_completed.includes(R)?"completed":h.current_step===R?"running":"pending",N=R=>{switch(R){case"completed":return u.jsx(Cu,{className:"h-4 w-4 text-green-600"});case"running":return u.jsx(Ei,{className:"h-4 w-4 text-blue-600 animate-spin"});case"failed":return u.jsx(wi,{className:"h-4 w-4 text-red-600"});default:return u.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300"})}},_=()=>{if(!a.input_schema)return u.jsx(wa,{children:u.jsx(Ea,{className:"p-4",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:"No input schema defined for this workflow."})})});const R=a.input_schema,G=R.properties||{};return u.jsxs(wa,{children:[u.jsx(ci,{children:u.jsx(ui,{className:"text-sm",children:"Workflow Input"})}),u.jsx(Ea,{className:"space-y-4",children:Object.entries(G).map(([L,B])=>{const k=B;return u.jsxs("div",{className:"space-y-2",children:[u.jsxs(wM,{htmlFor:L,className:"text-sm font-medium",children:[L,R.required?.includes(L)&&u.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),u.jsx(xM,{id:L,type:k.type==="number"?"number":"text",placeholder:k.description||`Enter ${L}`,value:s[L]||"",onChange:Q=>w(L,Q.target.value),disabled:f}),k.description&&u.jsx("p",{className:"text-xs text-muted-foreground",children:k.description})]},L)})})]})};return u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"border-b p-4 space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Ni,{className:"h-6 w-6 text-green-600"}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold",children:a.name||a.id}),a.description&&u.jsx("p",{className:"text-sm text-muted-foreground",children:a.description})]})]}),u.jsxs(Je,{variant:"outline",className:"gap-1",children:[u.jsx(RE,{className:"h-3 w-3"}),a.steps.length," steps"]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Ni,{className:"h-4 w-4"}),u.jsx("span",{children:"Workflow Steps"})]}),u.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:a.steps.map((R,G)=>u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Je,{variant:M(R)==="completed"?"default":M(R)==="running"?"secondary":"outline",className:"gap-1",children:[N(M(R)),R]}),G<a.steps.length-1&&u.jsx(fE,{className:"h-3 w-3 text-muted-foreground"})]},R))})]}),a.start_step&&u.jsxs("div",{className:"text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:"Entry point: "}),u.jsx(Je,{variant:"outline",children:a.start_step})]})]}),u.jsxs("div",{className:"flex-1 p-4 space-y-4 overflow-auto",children:[_(),u.jsx(wa,{children:u.jsx(Ea,{className:"p-4",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"font-medium",children:"Execute Workflow"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Run the workflow with the provided input"})]}),u.jsxs(vt,{onClick:E,disabled:f,className:"gap-2",children:[f?u.jsx(Ei,{className:"h-4 w-4 animate-spin"}):u.jsx(PE,{className:"h-4 w-4"}),f?"Executing...":"Execute"]})]})})}),h.status!=="pending"&&u.jsxs(wa,{children:[u.jsx(ci,{children:u.jsxs(ui,{className:"text-sm flex items-center gap-2",children:[N(h.status),"Execution Status"]})}),u.jsxs(Ea,{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-sm font-medium",children:"Status:"}),u.jsx(Je,{variant:h.status==="completed"?"default":h.status==="running"?"secondary":"destructive",children:h.status})]}),u.jsxs("div",{className:"text-sm",children:[u.jsx("span",{className:"font-medium",children:"Steps completed:"})," ",h.steps_completed.length," of ",a.steps.length]}),h.current_step&&u.jsxs("div",{className:"text-sm",children:[u.jsx("span",{className:"font-medium",children:"Current step:"})," ",u.jsx(Je,{variant:"outline",children:h.current_step})]})]})]}),g&&u.jsxs(wa,{children:[u.jsx(ci,{children:u.jsxs(ui,{className:"text-sm flex items-center gap-2",children:[u.jsx(Cu,{className:"h-4 w-4 text-green-600"}),"Execution Result"]})}),u.jsx(Ea,{children:u.jsx(Aa,{className:"h-32",children:u.jsx("pre",{className:"text-xs bg-muted p-2 rounded overflow-auto",children:JSON.stringify(g,null,2)})})})]}),x&&u.jsxs(wa,{className:"border-destructive",children:[u.jsx(ci,{children:u.jsxs(ui,{className:"text-sm flex items-center gap-2 text-destructive",children:[u.jsx(wi,{className:"h-4 w-4"}),"Execution Error"]})}),u.jsx(Ea,{children:u.jsx("p",{className:"text-sm text-destructive",children:x})})]})]})]})}function NM({message:a="Loading...",description:o,size:s="md",className:i,fullPage:f=!1}){const d=u.jsxs("div",{className:Ve("flex flex-col items-center justify-center gap-3",f?"min-h-[50vh]":"py-8",i),children:[u.jsx(Kg,{size:s,className:"text-muted-foreground"}),u.jsxs("div",{className:"text-center space-y-1",children:[u.jsx("p",{className:Ve("font-medium text-muted-foreground",s==="sm"&&"text-sm",s==="lg"&&"text-lg"),children:a}),o&&u.jsx("p",{className:"text-sm text-muted-foreground/80",children:o})]})]});return f?u.jsx("div",{className:"flex items-center justify-center min-h-screen bg-background",children:d}):d}function MM(){const[a,o]=y.useState({entities:[],agents:[],orchestrators:[],workflows:[],isLoading:!0}),[s,i]=y.useState([]),[f,d]=y.useState(!0),[h,p]=y.useState(()=>{const N=localStorage.getItem("debugPanelWidth");return N?parseInt(N,10):320}),[g,v]=y.useState(!1);y.useEffect(()=>{(async()=>{try{const _=await ea.getEntities(),R=_.filter(B=>B.type==="agent"),G=_.filter(B=>B.type==="orchestrator"),L=_.filter(B=>B.type==="workflow");o(B=>({...B,entities:_,agents:R,orchestrators:G,workflows:L,selectedEntity:_.length>0?_[0]:void 0,isLoading:!1}))}catch(_){console.error("Failed to load entities:",_),o(R=>({...R,error:_ instanceof Error?_.message:"Failed to load entities",isLoading:!1}))}})()},[]),y.useEffect(()=>{localStorage.setItem("debugPanelWidth",h.toString())},[h]);const x=y.useCallback(N=>{N.preventDefault(),v(!0);const _=N.clientX,R=h,G=B=>{const k=_-B.clientX,Q=Math.max(200,Math.min(window.innerWidth*.5,R+k));p(Q)},L=()=>{v(!1),document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",L)};document.addEventListener("mousemove",G),document.addEventListener("mouseup",L)},[h]),S=y.useCallback(()=>{d(!1)},[]),w=y.useCallback(N=>{o(_=>({..._,selectedEntity:N,currentSession:void 0})),i([])},[]),E=y.useCallback(N=>{i(_=>[..._,N])},[]);if(a.isLoading)return u.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[u.jsxs("header",{className:"flex h-14 items-center gap-4 border-b px-4",children:[u.jsx("div",{className:"w-64 h-9 bg-muted animate-pulse rounded-md"}),u.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[u.jsx("div",{className:"w-8 h-8 bg-muted animate-pulse rounded-md"}),u.jsx("div",{className:"w-8 h-8 bg-muted animate-pulse rounded-md"})]})]}),u.jsx(NM,{message:"Initializing PicoAgents WebUI...",description:"Discovering agents, orchestrators, and workflows",fullPage:!0})]});if(a.error)return u.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[u.jsx(xu,{entities:[],selectedEntity:void 0,onSelect:()=>{},isLoading:!1}),u.jsx("div",{className:"flex-1 flex items-center justify-center",children:u.jsxs("div",{className:"text-center space-y-4 max-w-md",children:[u.jsx("div",{className:"text-destructive text-lg font-medium",children:"Failed to load entities"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:a.error}),u.jsx(vt,{onClick:()=>window.location.reload(),variant:"outline",children:"Retry"})]})})]});if(!a.isLoading&&a.entities.length===0)return u.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[u.jsx(xu,{entities:[],selectedEntity:void 0,onSelect:()=>{},isLoading:!1}),u.jsx("div",{className:"flex-1 flex items-center justify-center",children:u.jsxs("div",{className:"text-center space-y-4 max-w-md",children:[u.jsx("div",{className:"text-lg font-medium",children:"No entities found"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:"No agents, orchestrators, or workflows were discovered. Please check your configuration and ensure entities are properly set up."}),u.jsx(vt,{onClick:()=>window.location.reload(),variant:"outline",children:"Retry"})]})})]});const M=()=>{if(!a.selectedEntity)return u.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Select an entity to get started."});switch(a.selectedEntity.type){case"agent":return u.jsx(gM,{selectedAgent:a.selectedEntity,onDebugEvent:E});case"orchestrator":return u.jsx(yM,{selectedOrchestrator:a.selectedEntity,onDebugEvent:E});case"workflow":return u.jsx(EM,{selectedWorkflow:a.selectedEntity,onDebugEvent:E});default:return u.jsxs("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:["Unknown entity type: ",a.selectedEntity.type]})}};return u.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[u.jsx(xu,{entities:a.entities,selectedEntity:a.selectedEntity,onSelect:w,isLoading:a.isLoading}),u.jsxs("div",{className:"flex overflow-hidden",style:{height:"calc(100vh - 56px)"},children:[u.jsx("div",{className:"flex-1 min-w-0 overflow-hidden",children:M()}),f&&u.jsx("div",{className:`w-1 bg-border hover:bg-accent cursor-col-resize flex-shrink-0 relative group ${g?"bg-accent":""}`,onMouseDown:x,onDoubleClick:S,children:u.jsx("div",{className:"absolute inset-y-0 -left-1 -right-1 flex items-center justify-center",children:u.jsx("div",{className:"h-12 rounded-lg bg-primary w-2"})})}),!f&&u.jsx("div",{className:"flex-shrink-0",children:u.jsx(vt,{variant:"ghost",size:"sm",onClick:()=>d(!0),className:"rounded-none border-l",style:{height:"calc(100vh - 56px)"},children:u.jsx(gE,{className:"h-4 w-4"})})}),f&&u.jsx("div",{className:"flex-shrink-0",style:{width:`${h}px`,height:"100%"},children:u.jsx(KN,{events:s,isStreaming:!1})})]})]})}function AM({children:a,attribute:o="class",defaultTheme:s="system",enableSystem:i=!0,disableTransitionOnChange:f=!0,...d}){return u.jsx(xN,{attribute:o,defaultTheme:s,enableSystem:i,disableTransitionOnChange:f,...d,children:a})}lb.createRoot(document.getElementById("root")).render(u.jsx(y.StrictMode,{children:u.jsx(AM,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:u.jsx(MM,{})})}));
